Very interesting Bash shell script for creating a Webm clip from a movie.

This is a very useful Bash shell script, this will create a Webm clip from a movie. This shows how to get parameters in a Bash script easily. #!/bin/bash   while [[ "$#" -gt 0 ]]; do case $1 in -f|–filename) filename="$2"; shift ;; -t|–timestamp) timestamp="$2"; shift ;; -o|–outfile) outfile="$2"; shift ;; *) echo "Unknown … Read more

How to get the best quality when creating a webm with FFmpeg.

Rip a Youtube video to a good quality Webm with FFmpeg This very useful command will get a Youtube video and rip a certain timeframe from the video to a good quality WebM file. Create a Webm with FFmpeg. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ffmpeg -ss 00:00:55 -to 00:01:05 -i `yt-dlp -g -f bestvideo GbPK2VCarvU` -threads … Read more

How to get an excerpt from a video with FFmpeg.

Extracting an excerpt from a video is very useful, this is how to do it. The command below extracts an excerpt from a video at 00:00:05 to 00:00:15. This is scaled to 640×360 pixels and is good quality. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ffmpeg -v 1 -i agropromfun.mp4 -ss 00:00:05 -to 00:00:15 -c:v libvpx -crf 4 … 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

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 encode a section of a movie to a webm file with mpv.

To encode a section of a movie file to a high-quality webm file, use this simple addon for mpv. Firstly run this command to create a directory to put the lua script. mkdir -p ~/.config/mpv/scriptsmkdir -p ~/.config/mpv/scripts Then download the required script to the directory we created. This is located on this Github. https://github.com/ekisu/mpv-webm. wget … Read more

How to record your Linux desktop to a mkv file with ffmpeg.

Record your Linux desktop to a video file and showcase it on Youtube To get a simple desktop recording of your Linux desktop for teaching purposes or any other use, just follow this guide. This command below. will record a high-quality video file of your Linux desktop to an MKV file. It will automatically get … 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