Tag Info

Hot answers tagged

3

You can use the pad video filter to add the required space on the bottom, and then the overlay video filter to place the image: ffmpeg -i video.vob -i image.png -filter_complex \ "[0:v]pad=0:ih+20[bg];[bg][1:v]overlay=0:H-h,format=yuv420p[v]" \ -map "[v]" -map 0:a -c:v libx264 -c:a aac -strict -2 -movflags +faststart output.mp4 I had to make some ...


3

I think it is easier to combine a full dimension background image (720x500px) with your video in ffmpeg instead of adding the 20px footer to the video. You can simply use the overlay filter for this: ffmpeg \ -loop 1 -i 720x500.jpg \ -i 720x480.mp4 \ -filter_complex overlay=0:0 \ -t 0:01.48 \ out.m4v Note: In this example you have to ...


3

I found a way to resolve this jittering issue. The root cause is that mpeg file doesn't have full PTS info. There's a closed ticket of FFmpeg talking about exactly this problem: FFmpeg ticket #974 In order to solve this problem, add -fflags +genpts before the input file. Here is a sample FFmpeg command: ffmpeg -fflags +genpts -i ...


2

To expand on LordNeckbeard's answer, yes, just mux the JPEG data into an MJPEG video stream. That will be the smallest representation of the exact sequence of output images, even though MJPEG is a terribly inefficient codec by today's standards. (no temporal redundancy, and not even any intra prediction. You can make a variable-framerate MJPEG video to ...


2

This will output a lossless H.264 video where frames will use information from other frames ffmpeg -f image2 -r 30 -i %09d.jpg -vcodec libx264 -profile:v high444 -refs 16 -crf 0 -preset ultrafast a.mp4 Explanation of options: -f image2 - tells ffmpeg to select a group of images -r 30 - tells ffmpeg to encode at 30 frames (or images) per second (change ...


2

Usage differences Note: ffmbc/ffmpeg will refer to the tools, while FFmbc/FFmpeg will refer to the projects themselves and/or each whole collection of tools and libraries. There are syntax differences including: ffmbc uses the old, confusing -newaudio option while ffmpeg can just use -map. ffmbc does not support -codec or -c, so instead all stream types ...


2

One difference at least : -target xdcamhd422 is supported by FFmbc but not by FFmpeg. Very useful in a professional broadcast environment. the -target option allows to specify several parameters at once. The -target option value must be one supported by FFm**. In the case of the xdcamhd422 value, it specifies the video codec to be used (mpeg2video), the ...


2

Thanks for stib's suggestion. I leave my answer here. FFmepg build process take higher priority to use dynamic library even if static libraries are ready. Therefore, I first removed some external libraries support from build configuration and make sure all external libraries are only static (remove *.dylib from prefix /usr/local/lib). Then rebuild it with ...


1

edit: I successfully made a 10bit encode of Ducks Take Off. First way: I built a 10bit x264 binary that statically links libx264. cp -al x264-git x264-10bit # instead of changing my normal git checkout cd x264-10bit ./configure --extra-cflags=-march=native --enable-static --disable-interlaced --bit-depth=10 make -j2 sudo install x264 ...


1

If you don't have a high-bit-depth video card and monitor, you then you can just make a temporary lossless file for viewing that will put the same pixels on your monitor: ffmpeg -i input.mp4 -codec copy -pix_fmt yuv420p -c:v libx264 -qp 0 -preset ultrafast -movflags +faststart output.mp4 or -c:v utvideo might be faster to encode. Or if you have a fast ...



Only top voted, non community-wiki answers of a minimum length are eligible