Video: Difference between revisions

From 太極
Jump to navigation Jump to search
Line 165: Line 165:
* [https://handbrake.fr/ Handbrake]
* [https://handbrake.fr/ Handbrake]
* [https://www.makeuseof.com/best-free-video-converters-for-linux/ The 8 Best Free Video Converters for Linux]
* [https://www.makeuseof.com/best-free-video-converters-for-linux/ The 8 Best Free Video Converters for Linux]
* [https://www.makeuseof.com/how-to-rip-dvd-to-mac/ How to Rip a DVD to Your Mac]
* [https://www.makeuseof.com/tag/5-simple-steps-rip-entire-dvd-hard-drive/ How to Rip an Entire DVD to Your Hard Drive: 6 Simple Steps]
* [https://www.makeuseof.com/tag/5-simple-steps-rip-entire-dvd-hard-drive/ How to Rip an Entire DVD to Your Hard Drive: 6 Simple Steps]
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>

Revision as of 10:40, 25 December 2023

Video editing in Linux

DaVinci Resolve

LosslessCut

  • https://github.com/mifi/lossless-cut
  • Free Video Cutter LosslessCut Adds Multiple Cut Points, Video Merging Feature
  • Tested on Ubuntu 22.04 and it works perfectly. sudo snap install losslesscut
    1. Move the white segment for the play position and press the 'Play' button to start playing from there
    2. Click the left button for the Start position and the right button for the End position to create a segment
    3. Repeat the above process to create a second segment
    4. Choose "Merge cuts" from the dropdown list of the right most control above the video
    5. Click the "Export" button and review all the options there. Click the "Export" button again will save the file if you have only one segment. OR click "Export+merge" button to save the merged segments to a new file.
    6. The speed is fast

Losslesscut.png

Video Trimmer

Video Trimmer: A No-nonsense, Simple Video Trimming Application for Linux Desktop

Join two MKV files

Joining Two MKV files in Ubuntu? I use simpleScreenRecorder to create one mkv file. Then I want to append it so I record another short one. mkvmerge from mkvtoolnix works well.

Another suggestion that does not limit to mkv format is avidemux (cross platform).

Note MKV files are not supported by Chrome. To convert mkv files to mp4, use ffmpeg. ffmpeg -i dummy.mkv dummy.mp4 See How to Convert MKV to MP4 in Ubuntu Using FFmpeg. In my example, the mp4 format has a smaller file size compared to the mkv format.

Shotcut

It is a cross-platform open source software. See The best free video editing software: Great tools for YouTube stardom and more, 22 awesome open source programs that do everything you need.

I tested inserting a text in a video. Compared to Youtube video editor

  • The text is really a text. No pop-up shape to select
  • Not sure how to control the text so it only appears at a certain time interval

Not as intuitive to use.

Pitivi

Blender

Looks very professional too. Windows/Linux/OSX (binary files are provided). Worth to try.

Kdenlive

The 5 Best YouTube Channels to Learn Kdenlive 2023/7

Flowblade

Free Linux Video Editor Flowblade 2.0 Released With Configurable Timeline Editing Workflow, New Tools

Youtube Video Editor

Good

  • Annotation and Title (Video Manager -> Videos -> Edit -> End screens and annotations -> Annotations -> Add annotations (Speech bubble, Note, Title, Spotlight, Label). However, the annotations do not show up on mobile. See this post for a discussion.
  • Add photos

Bad

  • Music cannot have fade in/out

Notes

Best Video Editing Apps and Software for YouTube

7 Things You Need to Build a Low-Cost YouTube Studio

http://www.makeuseof.com/tag/build-low-cost-youtube-studio/

Subtitle Generators Online

The 5 Best Free Auto Subtitle Generators Online

Free or Open source Subtitle editor

Comparison of subtitle editors

For TV captions, use white color font with black color for borders and transparent background.

OpenShot-qt

sudo apt-get install openshot

When I needed to export the video (choose 'youtube' profile, 'youtube-HD' target, 'HD 270, 29 .97 bps', and 'high' quality), I found I need to install libx264 code. On Ubuntu, I open software center and seach 'libavformat'. I choose 'libavformat-extra-53'.

An introduction to video editing in Openshot 2.0 from howtoforge.

Don't use the version (1.4.3 date 2009) because it crashed too often.

The new version 2.0.7 (date 2016) looks a little different (theme is black. Cool!). Its icon and command (openshot-qt) are different too. The project saved from 1.4.3 cannot be opened in 2.0.7. The tools icons are different: Add track, Snapping tool, Add Marker, Previous Marker, Next Marker, Zoom in/out.

This version of OpenShot + (old) Core2Duo Ubuntu = Dynamic Heatmap Viewer video.

Audio library

You can download free music from Youtube Audio Library. If you use a copy righted music and upload your video to youtube, the video will show Ad eventually.

Take a snapshot

The keyboard shortcut Ctrl+d does not work.

One suggestion is to use VLC. VLC -> Video -> Take Snapshot. The snapshot will be automatically created in ~/Pictures/ directory (*.png format).

Procedure

  1. Put audio and video files in one folder
  2. Use openshot to create a new video. Also
    • Use the +/- sign for zoom in and zoom out
    • Right click video file and select Volume -> Entire clip -> level 0%
    • Right click audio and select Volume -> End of clip -> fade out (slow)
  3. openshot -> Save (arrow/download-like button)
  4. openshot -> Export (red circle button)
    • Modify the file name so it won't overwrite the original (openshot won't check it)
    • Select Profile = Web, Target=Youtube-HD, Video Profile=HD 1080p 25 fps, Quality=High.
  5. Check the exported video (play it first by VLC).
    • On one instance the audio is fuzzy until the middle of the video. So I have to change the audio
    • On another instance the video length is longer than I expected because the final annotation slide lasts too long. A solution is to change the setting (Profile=All Formats, Target=MP4 (h.264), Video Profile=HD 1080p 24 or 23.98 fps). If I use 25 fps, the file will be wrong.
  6. Upload to Youtube. Use Youtube video editor to include annotation.

VideoLAN Movie Creator

ffdiaporama

Create videos from images, movie clips and music.

Flowblade Movie Editor

It is written in Python. Only Linux version is available (no Windows nor OS X). Good for beginners.

sudo apt-get install flowblade

Lightworks

Free and Pro versions are available. Windows/Linux/OSX.

Windows

How to Create Videos With the Windows 11 Photos App

Codec information

How to find out which Codec a video file is using

Video rip/convert/transcoder

sudo add-apt-repository ppa:stebbins/handbrake-releases
sudo apt-get update
sudo apt-get install handbrake-gtk

sudo apt-get install handbrake-cli

To merge audio and video

# naive: use the one with longer duration as the total length
avconv -i music.m4a -i input.mp4 -acodec aac -strict experimental output.mp4
# improved: specify the start time (-ss) and duration (-t)
# unfortunately the music at the specified end time may not be the end
# so a better way is to use a video editor (eg OpenShot) and specify fade out on the end of the audio!
avconv -i music.m4a -i input.mp4 -acodec aac -strict experimental -ss 00:00:00 -t 00:01:01 -codec copy output.mp4

To extract audio only:

avconv -i INPUT.flv -codec copy -vn OUTPUT.mp4

Handbrake to reduce file size

When I try to use handbrake to convert a video,

  • Original file: 25 seconds. Bit rate is N/A. 16.8MB.
  • "Preset - Official - General - Fast 1080p30". Bit rate 3461 kbps. File size is 11.6MB
  • "Preset - Official - General - Very Fast 1080p30". Same dimension, code, frame rate but bit rate is half. Audio properties are the same. File size 6.2MB

Convert video to gifs

PC build for video editing

Video Editing 4K PC Build: Creating Content for Under a Grand

Crop/cut videos

Google map animation

How the sausage is made

Frame rate, bit rate

Video Bitrate Vs. Frame Rate

Tips to Make Home Videos Look Professional

10 Simple Tips to Make Home Videos Look Professional

Video conference apps

PowerPoint

GPU Acceleration

H.264

Advanced Video Coding

VP9

H.265

AV1

  • https://en.wikipedia.org/wiki/AV1
    • av1 is royalty free
  • AV1 is a new video codec that is designed to be more efficient than the current H.264 and H.265 codecs. If your computer doesn’t have AV1 decoding, it means you’ll use more bandwidth, or you’ll use more battery watching that super high-resolution video.
  • AV1 is intended to be the successor to the HEVC (H.265) format currently used for 4K HDR video on platforms such as Prime Video, Apple TV+, Disney Plus, and Netflix.
    • You may need to use AV1 to watch videos in situations where you want to stream high-quality video content with minimal data usage. For example, AV1 could be used for streaming movies, video chat, screen sharing, and video game streaming.
    • Google and Netflix also use AV1 to transmit videos in applications like YouTube and Google Duo to offer better quality on low bandwidth connections.
    • To watch AV1 content, you need both hardware and software support. This mostly depends on the device you have and the operating system it is using. For example, if you are using Windows 10, you can add AV1 codec support to your device by installing the AV1 Video Extension from the Microsoft Store.
  • List of CPU/SoC with AV1 support? CPU (with iGPU included) that can perform AV1 hardware decoding: Intel 11th generation and newer. AMD Ryzen 6000 or newer.
  • How to turn on AV1 settings on YouTube and why you should do it.
  • Tested: AV1 performance in 11th-gen Tiger Lake vs. 10th-gen Ice Lake and Comet Lake, Ryzen 4000

OBS

影評