How to merge sound and video in FFmpeg. This is very helpful sometimes.

To merge a Video file and an audio file, only FFmpeg is required. I needed the audio from one other video, I ripped it like this. ffmpeg -i Online-1.mp4 -vn -acodec copy output-audio.aacffmpeg -i Online-1.mp4 -vn -acodec copy output-audio.aac Then I could use this command to merge the aac audio with a silent video to … Read more

Encode a video file into a PNG image easily with this script, This really does work well.

This script will encode a video file into a png image that may be shared on the Internet. This is very cool indeed, this allows a good-quality video to be shared in a relatively small image. #!/bin/env bash   : ‘ usage: script.sh <input> <hres> <yres> <fps divisor> <aspect> <audio bitrate> [<output>] example: script.sh input.mkv … Read more

Record a window in Ubuntu easily with the OBS studio application. This is very easy.

Recording a window with OBS is very easy, this allows easy streaming and recording of gameplay or a video window. The screenshot above shows an OBS studio window displaying a video window, you select the window by double-clicking the Window Capture (Xcomposite) 2 option. This brings up another dialogue to select any open window on … Read more

How to use FFmpeg to get a slow-motion video clip.

Making a slow-motion clip from a video can be very useful to show off what is happening in a certain scene. The example below will make a slow-motion clip from a video file. This would be another very useful FFmpeg tip. > ffmpeg -i qS_lu5dKo9A2qoNW.mp4 -c:v libvpx -b:v 3200k -filter:v "setpts=2.0*PTS" -ss 00:00:03 -t 6.9 … Read more

How to properly brighten a video file with FFmpeg.

Making a video file brighter is very easy, this can be done with FFmpeg. The curves filter can easily brighten a video file without causing much degradation at all. Use this example to make a video file a bit brighter and it will still be the same quality. ffmpeg -i -i underground-war.mp4 -vf "curves=all=’0/0 0.4/1 … Read more

More fun with FFmpeg. How to reverse video colors in interesting ways.

FFmpeg allows interesting video manipulation. This includes inverting the colours of video files. The example below will invert the colours of a video file. ┌──[[email protected]]─[~/Videos/titles] └──╼ ╼ $ ffmpeg -i zombiestrain.avi -vf lutrgb="r=negval:g=negval:b=negval" zomby.avi┌──[[email protected]]─[~/Videos/titles] └──╼ ╼ $ ffmpeg -i zombiestrain.avi -vf lutrgb="r=negval:g=negval:b=negval" zomby.avi This is an example of what this filter will give you. This … Read more

How to download a video blob easily from a website.

Downloading a video blob from a website can be very frustrating. This is easier with the Download Helper extension for Firefox. This can make this task very easy. When you are on a website that hasthe video you want, click the Download Helper icon and find the format and resolution you wish to download. Then … Read more

How to download Tik Tik videos without using an app in 2020.

Tik Tok is a very useful website for sharing short-form videos online. But you cannot easily download videos unless you know how to. But there is a very useful trick to do this using Firefox. Just open a video then right-click on the video and then choose Inspect Element. Then look for this certain section … Read more

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

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

Play movies with mpv and scale the output to a certain size.

The mpv media player can scale the output, just as mplayer does. This can be useful. Use this parameter to scale the video. -vf scale=960:720-vf scale=960:720 This is how this is done. This will scale the output to 960×720 pixels. 4.4 Mon Jul 08 jason@Yog-Sothoth 0: $ mpv -vf scale=960:720 olr_2_5_controller.mp44.4 Mon Jul 08 jason@Yog-Sothoth … Read more

How to play a Youtube video with MPV and skip to a certain section.

Playing a Youtube video with mpv is very easy, it is also possible to skip to a certain part of the video whenever you wish. Make sure that you have the latest version of Youtube-dl first. sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/bin/youtube-dlsudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/bin/youtube-dl Then run this command, and it should work … Read more

How to play a movie with mpv in your terminal window.

This command will display an image in your terminal. Very useful for viewing images without using an external image viewer. mpv –no-config –pause –vo=tct https://stallman.org/rms.jpgmpv –no-config –pause –vo=tct https://stallman.org/rms.jpg Play a movie in your terminal window with mpv. 4.4 Thu Nov 29 jason@Yog-Sothoth 0: $ mpv –no-config –vo=tct fc4.mp44.4 Thu Nov 29 jason@Yog-Sothoth 0: $ … Read more