New answers tagged

0

Actually, the filter only supports 16-bit samples, so anything else will be converted. You can open a bug report of type enhancement at trac.ffmpeg.org


0

From my personal experience: if you can not see anything unusual in the input video at specified times then most of the time it's not worth fixing as it's not broken. It can happen when input video has some static images (like some schematics) displayed over some periods of time. It can also happen when input video is a converted version of lower fps video ...


1

for i in *.mp4; do ffmpeg -i "$i" -f mp3 -ab 192k -vn -ar 44100 -ac 2 aud/"${i%.*}.mp3"; done vn: disable video recording during the conversion. ar: set audio sampling rate in Hz. ab: set the audio bitrate. ac: set the number of audio channels. -f: format. aud: name of the audio folder


0

The best and easiest (and only) way that I have found to do this in Linux is to use OBS with the window size set to the desired crop output dimension. Add your video file as an input source, arrange the video output relative to the OBS window so that the desired rectangle that you wish to display initially is lined up with the OBS window, and start recording ...


0

You be better off not care about window functions, no one pays attention to the rendered audio spectrum. Therefore you need not to be analytically correct so you can let spectral leakages happen and just use the rect window. Which is the identity window, simply put, FFmpeg doesn't do any windowing in this mode and performs plain STFT on the audio waveform ...


0

What you need in addition to remove the frozen parts is setpts. Keep in mind that mpdecimate works only on the video stream, so you have to remove the audio because is not going to be synced. ffmpeg -i video.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB -an video-fixed.mp4


0

from : https://stackoverflow.com/questions/70578206/inconsistent-frame-number-with-ffmpeg The source of the differences is that FFprobe counts the discarded packets, and FFmpeg doesn't count the discarded packets as frames. Your results are consistent with video stream that is created with 3 B-Frames (3 consecutive B-Frames for every P-Frame or I-Frame). ...


0

What is the point of having no-scenecut when keyint = min-keyint There is the code in x264 (validate_parameters function): if( h->param.i_keyint_min == X264_KEYINT_MIN_AUTO ) h->param.i_keyint_min = X264_MIN( h->param.i_keyint_max / 10, (int)fps ); It will disallow equality of the keyint and keyint_min.


1

I've put together a Python script that will do all of this. Generates the ffprobe and ffmpeg commands and runs them And outputs a file without black clips GitHub gist: https://gist.github.com/FarisHijazi/eff7a7979440faa84a63657e085ec504 """ @author: https://github.com/FarisHijazi Use ffprobe to extract black frames and ffmpeg to trim them and ...


0

This answer relies on but simplifies the answer by Валерий Заподовников who seems to know his stuff. ffprobe -v quiet -show_streams -select_streams v:0 video.mp4 | grep ^color_transfer= IF color_transfer EQUALS arib-std-b67 OR smpte2084 THEN the video is HDR


0

Here is my solution with explanation ffmpeg -i input.mkv -filter:v "pad=3840:2160:0:280,setsar=1" -c:a copy -c:v libx265 -x265-params lossless=1 my_output_video.mkv ----------111111111----------------2222-3333-4-555----------------------------------------------------------6666666666666666666 Legend 1 - input filename 2 - Target X dimension 3 - ...


1

I use these commands: 4x speedup: ffmpeg" -r 60 -i "inputfile.mp4" -vf "tmix=frames=4:weights='1',select='not(mod(n\,4))',setpts=0.25*PTS" -c:v libx265 -an -x265-params crf=25 "outputfile.mp4" 16x speedup: ffmpeg" -r 60 -i "inputfile.mp4" -vf "tmix=frames=16:weights='1',select='not(mod(n\,16))',setpts=...


2

See https://github.com/zeroepoch/plotbitrate It uses ffprobe under the hood and can output an xml file. Here's an example output.svg: (Although it is slow - almost as slow as transcoding, because it scans the whole video.)


Top 50 recent answers are included