Edit video on Linux (for non-pros)

Occasionally I need to edit a video. I'm not a professional videographer with Adobe Premier working with terabytes of RAW, ProRes, or DNxHD video footage. I just need a format less compressed than the common streaming codecs for small edits between keyframes. Here's the solution I came up with that works for me:

If you need a simple edit of a file without subtitles:

1. Download and run Avidemux

2. File > Open and select your target video

3. In the Video Output section, select Ut Video (ffmpeg) from the dropdown

Note: This is a lossless codec but creates extremely large files. For example, a 10-minute 4K source video was 604 MB but when converted to Ut video codec it became a 53.8 GB file! If you don't have disk space for converting a 2 hour movie into a 646 GB file, you can use the lossy Mjpeg Encoder option then click the "Configure" button under that and choose YUV422 - which resulted in a 14.7 GB file for the same clip.

4. In the Audio Output section, select PCM from the dropdown, then click the "Configure" button under that and choose LPCM

5. In the Output Format section, select MKV Muxer

6. File > Save to save the video (note: this will take a while and create a very large file)

7. Once complete, you can open that new file in Avidemux and make any desired edits. If you need to make edits to the audio you can choose Audio > Save Audio from the menu and edit it in Tenacity

8. When your edits are done, apply these settings to save a compressed video for distributing:

  • In the Video Output section, select Mpeg4 AVC (x264) from the dropdown
  • In the Audio Output section, select AAC (lav) from the dropdown, then click the "Configure" button under that and choose 224 bitrate
  • In the Output Format section, select MP4v2 Muxer
  • File > Save to save the video
______________________________________________________

If you need to make edits but the video has subtitles:

1. Use Shutter Encoder to convert to FFV1 (lossless archival format) or ProRes (lossy)

2. Export audio using Avidemux and edit using Tenacity (highlight swear words, then Generate > Silence...), then export to WAV format

3. Use Subtitle Edit to extract the subtitles and edit (to remove swear words), then export to SRT format

4. Use MKVToolNix to combine the FFV1 video, WAV audio, and SRT subtitles

5. Use LosslessCut to edit any additional scenes from the new file

6. Use Shutter Encoder to convert to H.264 with MKV extension and in the "Advanced" features select "Preserve Subtitles", then set hardware acceleration along the bottom before clicking the "Start Function" to export.

______________________________________________________

If you need to make complex edits:

1. Use MKVToolNix to extract just the video portion of the file

2. Use the free version of Davinci Resolve to perform color correction, then export in ProRes HQ (or ProRes 422 if you don't have enough drive space)

3. Use Topaz Video AI Pro to denoise the video-only file (export as ProRes as well)

4. Use MKVToolNix to combine the color-corrected, denoised video file with the original video file's audio and subtitles

5. If audio/subtitle adjustments are needed, see above

6. Once all edits are done, use Shutter Encoder to export to H.264 (since it has the widest hardware and player support). Make sure to use the MKV extension and also expand "Advanced Features" and select "Preserve Subtitles", then set hardware acceleration along the bottom before clicking the "Start Function" to export.

Comments

Popular Posts