How to minimize the delay in a live streaming with ffmpeg

I found three commands that helped me reduce the delay of live streams. The first command its very basic and straight forward, the second one it’s been combined with other options which might work differently on each environment and the last command it is a hacky version that I found in the documentation It was … Read more

How to create a WebM video file?

You can use ffmpeg to convert to WebM. Make sure to compile it with the –enable-libvpx and –enable-libvorbis flags (see FFmpeg compile guides), or visit the FFmpeg Download page for links to builds that include support. After that, you can use the following command (I’m using input.flv as my example input file): ffmpeg -i input.flv … Read more

ffmpeg: Combine/merge multiple mp4 videos not working, output only contains the first video

Assuming you want to concatenate the movie, you can use the following command: ffmpeg -f concat -i inputs.txt -vcodec copy -acodec copy Mux1.mp4 With the following text in inputs.txt: file 75_540_38HQ2.mp4 file 76_70_20.mp4 file 76_173_80.mp4 file 81_186_35.mp4 Note: some distributions (like Ubuntu) do not have ffmpeg in their repository and instead define ffmpeg to be … Read more

adding silent audio in ffmpeg

anullsrc audio filter You can use ffmpeg to create the silent audio and combine it with a video in one step. This example will use the anullsrc audio filter to generate stereo silent audio with a sample rate of 44100: ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -i video.mov -c:v copy -c:a aac -shortest output.mov channel_layout=stereo:sample_rate=44100 is … Read more

Maintaining aspect ratio with FFmpeg

-vf “scale=640:-1” works great until you will encounter error [libx264 @ 0x2f08120] height not divisible by 2 (640×853) So most generic approach is use filter expressions: scale=640:trunc(ow/a/2)*2 It takes output width (ow), divides it by aspect ratio (a), divides by 2, truncates digits after decimal point and multiplies by 2. It guarantees that resulting height … Read more

Vertically or horizontally stack (mosaic) several videos using ffmpeg? [closed]

Use the vstack (vertical), hstack (horizontal), or xstack (custom layout) filters. It is easier and faster than other methods. Combine/stack two videos or images Vertical Using the vstack filter. ffmpeg -i input0 -i input1 -filter_complex vstack=inputs=2 output Videos must have the same width. Horizontal Using the hstack filter. ffmpeg -i input0 -i input1 -filter_complex hstack=inputs=2 … Read more

FFMPEG- Convert video to images

Official ffmpeg documentation on this: Create a thumbnail image every X seconds of the video Output one image every second: ffmpeg -i input.mp4 -vf fps=1 out%d.png Output one image every minute: ffmpeg -i test.mp4 -vf fps=1/60 thumb%04d.png Output one image every 10 minutes: ffmpeg -i test.mp4 -vf fps=1/600 thumb%04d.png

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)