How to get information about a video file with the Linux command line easily.

Getting information about a video file on Linux with the command line is very easy. I will show how you can easily find the resolution of a video and the format. This example below will return the resolution of a video file. jason@jason-desktop:~/Videos$ ffprobe XR_3DA_2019_03_16_19_22_35_777.avi 2>&1 | grep -E ‘[[:digit:]]{3,}x[[:digit:]]{3,}’ | awk ‘{print $11}’ 1920x1080jason@jason-desktop:~/Videos$ … Read more

Easily capture a good quality webm of a movie clip with ffmpeg.

This simple one-liner will capture a high-quality webm file from a movie. 4.4 Thu May 07 jason@Yog-Sothoth 0: $ ffmpeg -i inputmovie.avi -ss 51:43.02 -t 7 -c:v libvpx -b:v 3200k -an -sn -copyts -threads 4 guns1.webm4.4 Thu May 07 jason@Yog-Sothoth 0: $ ffmpeg -i inputmovie.avi -ss 51:43.02 -t 7 -c:v libvpx -b:v 3200k -an -sn … Read more

Overlay two videos on top of another with ffmpeg.

Overlaying two other video files on to another is very easy with ffmpeg. I had two video files that are 640×360 pixels, and one that is 1920×1080. I used this command line with ffmpeg to overlay them. ffmpeg -i controller_agroprom.mp4 -vf "movie=dbz120.mp4 [a]; movie=dbz121.mp4 [b]; [in][a] overlay=0:32 [c]; [c][b] overlay=0:448" out99.mp4ffmpeg -i controller_agroprom.mp4 -vf "movie=dbz120.mp4 … Read more

How to rip subtitles from a movie file using ffmpeg.

Ripping the subtitles from a movie file is very easy, just use this command to rip the subs to a file for later perusal. Or to correct grammar and spelling/translation errors. ffmpeg -i BLADE_RUNNER_2049_WEB_DL_1080p-BLUEBIRD.mkv -map 0:s:0 subs.srtffmpeg -i BLADE_RUNNER_2049_WEB_DL_1080p-BLUEBIRD.mkv -map 0:s:0 subs.srt This rips the first subs track to a file called subs.srt. This is … Read more

How to generate a transparent webm file from a transparent GIF. This is easy.

How to create a transparent webm file using ffmpeg ffmpeg -i "transparent.gif" -c:v libvpx -qmin 0 -qmax 18 -crf 9 -b:v 1400K -quality good -cpu-used 0 -auto-alt-ref 0 -pix_fmt yuva420p -an -sn -metadata title="Transparent Webm." "Transparent.webm"ffmpeg -i "transparent.gif" -c:v libvpx -qmin 0 -qmax 18 -crf 9 -b:v 1400K -quality good -cpu-used 0 -auto-alt-ref 0 -pix_fmt … Read more

How to best encode a video for Youtube on Linux.

This simple one-liner will encode a video to a format suitable for Youtube. 4.4 Tue Sep 04 jason@Yog-Sothoth 0: $ ffmpeg -i scorcher.avi -codec:v libx264 -crf 21 -bf 2 -flags +cgop -pix_fmt yuv420p -codec:a aac -strict -2 -b:a 384k -r:a 48000 -movflags faststart scorcher.mp4 This gives good quality output whilst reducing the file-size by 10. … Read more

Easy way to make a webm for Firefox playback with ffmpeg.

This is how to create a nice webm using FFmpeg on Linux. Firstly, capture the section of the video you wish to be encoded as a webm. This command will strip out a section of video from 00:09:23 to 00:09:33 and save it in the same format as the existing file. jason@jason-desktop:~/Videos$ ffmpeg -i total.mkv … Read more

How to encode a video to webm format and use it as a GIF replacement.

This is how to encode a video to webm format without sound to create a GIF replacement. The ffmpeg utility allows encoding a video in different formats. This is the perfect command for encoding a good quality webm video. ffmpeg -i gzdoom_2012_11_04_20_34_10_391.avi -ss 00:01:00.000 -to 00:01:20.000 \ -codec:v libvpx -quality good -cpu-used 0 -b:v 500k … Read more

Fedora 16 screencast recording & Windows XP outdated.

I have had problems trying to record a screencast for Gnome Shell 3.2.1, the top and bottom panels disappear when I activate the recordmydesktop command to record the desktop to a file. I have found a solution linked below that should work and allow me to record a nice video of my Gnome Shell desktop. … Read more