A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged

2

Use ffmpeg -i input.mkv -map_metadata 0 -map 0 -c copy -c:a:0 ac3 -vbr 3 output.mkv See https://superuser.com/a/1219824 for an illustrated guide to how stream options are parsed.


2

Basic syntax is ffmpeg -i in -vf "split=2[pip][full];[pip]crop=W:H:X:Y[pip];[full][pip]overlay=W-w:H-h,crop=iw-M:ih:M:0" -c:a copy out where W,H,X,Y are as per your diagram. M is the margin from the left edge which needs to be cropped out. Select M so that iw-M results in an even number.


2

ffmpeg -y -i inputStream \ -row-mt 1 -s 1280x720 -b:v 1024k -minrate 512k -maxrate 1485k -tile-columns 2 -g 240 -threads 8 -quality good -crf 32 -c:v libvpx-vp9 -c:a libvorbis hd \ -row-mt 1 -s 640x480 -b:v 750k -minrate 375k -maxrate 1088k \ -tile-columns 1 -g 240 -threads 4 -quality good -crf 33 -c:v libvpx-vp9 -c:a libvorbis fsd \ -row-mt 1 -s ...


2

Use -benchmark. You will see something like bench: utime=11.969s stime=0.315s rtime=1.908s, the rtime is what you want.


1

Was not too far! ffmpeg -i input -vf "scale=1920:886:force_original_aspect_ratio=decrease,pad=1920:886:(ow-iw)/2:(oh-ih)/2:#CFD3DA@1" output.mp4


1

If all you need to do is superscale an image, going through the trouble of training neural networks is re-inventing the wheel. By all means, if you're studying computer science and are interested in AI/ML, I'd encourage you to look into it, but to just superscale an image, you don't need to train a neural network. There are tools available. In DaVinci ...


1

Thanks to @Gyan, I was able to fix it. ffmpeg -i input.mp4 -vf "geq=p(mod(X+Y*2\,W)\, Y)" output.mp4


1

Similar to Gyan's overlay answer, a slightly simpler version can use a basic -filter_script with the "swaprect" and "crop" filters. Move the crop target to 0,0 and then crop the target area at 0,0. The target has to be swapped to 0,0 as otherwise the other swapped rect can overlap. This worked with ffmpeg version 3.4.6-0ubuntu0.18.04.1 Make sure the ...


1

According to FFmpeg it supports multiple outputs created out of the same input(s) in the same process. The usual way to accomplish this is: ffmpeg -i input1 -i input2 \ -acodec … -vcodec … output1 \ -acodec … -vcodec … output2 \ -acodec … -vcodec … output3 This way ffmpeg can create several different outputs out of the same input(s). For ...


1

You don't need to use LoadPlugin(), if you will copy files FFMS2.avsi ffms2.dll ffms2.lib ffmsindex.exe into the plugins directory of your AviSynth installation — 64-bit into 64-bit plugins, 32-bit into 32-bit plugins. (FFMS2.avsi is the same for both architectures, but copy it into both.) It's all. Then you directly use it in your AviSynth script calling ...


1

i found my answer in this link: strftime - format date and time strftime(3) - Linux man page ex: i use this command for demo and i made several other command for different date format ffmpeg -y -i input.mp4 -vf "drawtext=fontfile=roboto.ttf:fontsize=36:fontcolor=yellow:text='%{pts\:gmtime\:1575526882\:%A, %d, %B %Y %I\\\:%M\\\:%S %p}'" -preset ultrafast -...


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