Hot answers tagged

5

I ran into this same stuttering after remuxing to mkv and then playing the video on a Roku. Solved the issue by first fixing the avi with the mpeg4_unpack_bframes filter, then remuxing that as mkv. See https://www.ffmpeg.org/ffmpeg-bitstream-filters.html#mpeg4_005funpack_005fbframes Posting here as this is the top Search result when searching "avi to ...


4

The currently accepted answer is from 2014. The more recently added tpad filter lets you do this more easily. ffmpeg -i in.mp4 -vf tpad=stop_mode=clone:stop_duration=2 out.mp4


3

In addition to "visually lossless", there's the concept of "visually almost lossless": "Visually almost lossless" is usually established by static side-by-side viewing. This is probably what the CRF is about, since it "looks lossless". I believe Gyan's mention of "scrutiniz[ing] in fine detail" is about this ...


3

I have found that using -map 0 will select all tracks, including subtitles if available. ffmpeg -i "!original!" -map 0 -c:v libx265 -preset medium -crf 28 -c:a copy "g:\Prepare\Convert\!file!"


3

Short answer specific to this problem: Use this option: -map_metadata 0:s:2 Explanation: Timecode often comes in a format specific to the file format, so ffmpeg can't be expected to just 'copy' it without getting explicit instructions. In Sony a7siii 4k 10bit footage mp4 file, there is a separate 'data' stream to which it is added as a metadata. It is ...


3

To concatenate multiple files for expected playback in common players, following properties need to match for video: codec, codec profile, codec level, resolution, reference count, pixel format, timebase/timescale. audio: codec, codec profile, channel count & layout, sample format and sampling rate. Advanced players can tolerate mid-stream changes in ...


3

This command preserved the colorspace and also video didnt get darker after transcoding ffmpeg -i input.mp4 -color_primaries smpte170m -color_trc smpte170m -colorspace smpte170m -r 25 -crf 18 output.mp4 source: https://kdenlive.org/en/project/color-hell-ffmpeg-transcoding-and-preserving-bt-601/ more about colorspace: https://trac.ffmpeg.org/wiki/colorspace


3

Add -video_track_timescale X to manually set a timescale of X. ffmpeg -i org_video_1280x720.mp4 -strict -2 -vf "scale=640:360" -video_track_timescale 90k new_video_640x360.mp4


2

I've created a little site recently for generating the FFmpeg CLI command to create xfade + acrossfade command for several videos. Check it out maybe you find it useful. https://romander.github.io/ffmpeg-script-generator/ Add also you can check source code or contribute https://github.com/Romander/ffmpeg-script-generator


2

You can use red official program "REDline" Download It from here https://www.red.com/download/redline-linux-beta It's a shell script. to install it. From properties change it's permission to allow execute. Now open it in terminal and install it $ sudo <filelocation/file.sh> if you are in a installer directory you can install it by running $ ...


2

LosslessCut is an open-source video cutting tool. Its interface is built using Electron, and its backend is ffmpeg. It's available on the three main operating systems (Linux/Mac/Windows), and also from the Mac, Microsoft and Snap stores.


2

Although Mark has provided great answer, you don't need to train models from scratch, all Super-Resolution models that ffmpeg supports have pre-trained checkpoints: https://github.com/XueweiMeng/sr/tree/sr_dnn_native all you need to do is to convert it to frozen graph (.pb) file and then use it in ffmpeg.


2

h264_nvenc is able to encode in constant quality, at least from Pascal onwards. I had to do quite some digging around the internet to figure out how to properly use it, but finally found a working formula. A command like below will record in constant quality, and the CQ value 26 will produce about the same but slightly better quality, measured with VMAF, as ...


2

ffmpeg -i input.mkv -map 0:v:0 -c:v copy -map 0:a:0 -c:a:0 aac -b:a:0 512k -map 0:a:0 -c:a:1 copy -map 0:s:0 -c:s:0 copy -metadata:s:s:0 language=eng -map 0:s:1 -c:s:1 copy -metadata:s:s:1 language=fre output.mkv Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (truehd (native) -> aac (native)) Stream #0:1 -> #0:2 (copy) # truehd 7.1 Stream #0:3 -&...


2

I can think you should try this project, https://github.com/nielstenboom/recurring-content-detector. I would recommend trying the Color Histogram or Color Texture Motion algorithms. The Convoluted Neural Network one is quite compute intensive and the results haven’t been that good for me. Since your looking for such a small clip, you might need to reduce the ...


2

I see no need to worry about those meta data or why you should remove them. Pantry and Ingredients tags refer to asset tracking. In fact most of this data are production related and not relevant in any way for a consumer. The rest tells you about technical features, like the resolution or video codec. A watermark is something different. If you want to ...


2

Can there be a reliable answer? No. As with almost everything is video. The real answer is: It depends. With mp4, the moov must be at the beginning, AND the mdat must properly interleave tracks. For example, If the there more than one megabyte of audio before the video, Then it won't work even with the moov at the start. For TS, there must be a SPS, a PPS ...


2

In yuv420p, 1280x720 [SAR 1:1 DAR 16:9], yuv420p indicates the pixel format and chroma subsampling scheme. the video's raster resolution is simply 1280x720. the video's Sample Aspect Ratio (width of pixel : height of pixel ratio) is 1:1 (square pixels) the video's Display Aspect Ratio is 16:9


2

Right now the only solution I found is a two steps process: Extract the mp3 stream: $ ffmpeg -i input.avi -c:a copy input.mp3 Combine it back into the original AVI container: $ ffmpeg -i input.avi -i input.mp3 -c:v copy -c:a copy -map 0:v:0 -map 1:a:0 output.avi Leads to: % ffprobe -hide_banner -i output.avi Input #0, avi, from 'output.avi': Metadata: ...


2

The issue was caused by ffmpeg/libavformat/movenc.c::mov_write_esds_tag, it can't find max_bitrate. To solve it you should specify audio bitrate -b:a 128k along with -vbr 4. Then mp4's ESDescriptor would have info about max_bitrate and mediainfo and decoders would know that audio stream has variable bitrate mode.


2

The ttconv Python package will do it. It can be installed with pip.


2

DVD does not support 720p. It’s only supports 480p/i. HD DVD was a failed competitor to Blu-ray. Standard DVD players are not forward compatible.


2

The intended way to do this is to add -hide_banner. This way, logging is still visible.


2

I found one solution in cropping the video, turning it into black and white and then putting this as an overlay on itself. ffmpeg -y -i "input.ts" -filter_complex "[0] crop=57:57:79:39 [cr];[cr] hue=s=0 [cr2];[0][cr2] overlay=79:39" -map "[cr2]" -vcodec h264_qsv -b:v 12300k output.ts


2

If the codecs of your input file are already h264 and aac for video and audio, respectively, you can just copy without decoding and encoding again. ffmpeg -i input.3gp -c:v copy -c:a copy output.mp4 The options -c:v copy and -c:a copy indicate video and audio won't be encoded again, respectively. If audio format in the input cannot be embedded to the output,...


1

I followed your instructions. I changed localhost to 127.0.0.1:10000, and I was using input from an rtsp. Here is my command. It worked for me. I was able to get the stream in VLC player. ffmpeg -i "rtsp://someurl/" -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 \ -f flv rtmp://127.0.0.1:10000/live


1

Specify bitrate as -b:v 0 made the trick forme, the overall bitrate bumped from 2m to 16m. ffmpeg -i in.mp4 -c:v h264_nvenc -b:v 0 out.mp4


1

The FFMPEG does not support strtime %f option; therefore, the fractional second works with AVTB only. The parameter is -filter_complex "drawtext=fontsize=90:x=20:y=20:text='pts=%{pts\:gmtime\:0\:%S %f} AVTB=%{eif\:trunc(t)\:d\:2}.%{eif\:(1M*t-1M*trunc(t))/10000\:d\:2}':box=1" and the result is


1

Yes, method 2 is suitable. Add something like enable=0


1

Use -x265-params log-level=0 Reference: https://x265.readthedocs.io/en/3.1/cli.html#cmdoption-log-level


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