Tag Info

New answers tagged

0

Thanks for posting -v debug output. From that, I see the colormatrix filter doesn't support high-bit-depth inputs. There's an auto-inserted scale filter downsampling to yuv422p (which means 8bit), before it. You might as well compress the output with an 8-bit-per-component codec, if you need ffmpeg's colormatrix anyway, since ffmpeg already downsampled ...


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 ...


0

Use ffmpeg's concat filter to concatenate multiple -i dir/foo%d.png input sources into a single output video. Old question so not taking time to dig up links or write more. Just google.


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 ...


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 ...


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 ...


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 ...


1

It turned out that it is quite easy to cut by the original timestamp. Let's stick with the example I've given in the question. ffplay -i recording_xyz.ts -vf "cropdetect=24:16:0" gives you the following information about the stream: Input #0, mpegts, from 'recording_xyz.ts': Duration: 01:38:00.24, start: 81825.820733, bitrate: 12748 kb/s Program 11110 ...



Top 50 recent answers are included