please consider this source:
I try to encode it to MP4 using ffmpeg:
but I see that out.mp4 don't playback fine in vlc, betweenn the graphic and video there is a kind of "jump" of the imageCode:ffmpeg.exe -y -i test.avi -c:v libx264 -profile:v high422 -level:v 4.1 -g 33 -bf 2 -b:v 7900k -an -aspect 16:9 out.mp4
How can I resolve? thanks
+ Reply to Thread
Results 1 to 23 of 23
Last edited by marcorocchini; 28th Mar 2015 at 05:10.
Try set the framerate with -r 25 ?
Replace 25 with the actual framerate.
You need to encode TFF, not progressive . VLC playback yadif 2x or bob
Or bob deinterlace and make it 1080p50
You still don't understand the difference between interlaced and progressive video?
I have try
ffmpeg.exe -y -i test.avi -c:v libx264 -profile:v high422 -level:v 4.1 -g 33 -bf 2 -vf yadif=1:0 -r 50 -b:v 7900k -an -aspect 16:9 out.mp4
Yes, yadif in mode one is a smart bob. Not as good as QTGMC() in most cases.
I wonder if the ffmpeg docs are backward regarding the field order. In every other version of Yadif order=0 is BFF.
Last edited by jagabo; 28th Mar 2015 at 17:57.
I cannot resolve
I have try:
ffmpeg.exe -y -i test.avS -c:v libx264 -profile:v high422 -level:v 4.1 -g 33 -bf 2 -b:v 7900k -an -aspect 16:9 out.mp4
but this don't resolve the problem, in the output mp4 I cannot see the dissolve, is there a "jump" in replace of dissolve
Your video is TFF. AssumeTFF() or Yadif(mode=1, order=1).
I went back to post #11 and found that the yadif parameters were correct. Unlike every other version of Yadif order=0 is TFF in ffmpeg. The file it produced worked fine in several players I tried -- except VLC which jumps suddenly from the titles to somewhere in the middle of the clip. If I encode directly with the x264 cli encoder there are still some problems when the bitrate and complexity is too high. It looks to me like this is a problem with VLC.
Last edited by jagabo; 29th Mar 2015 at 07:36.
only to do a proof I would try use
-b:v 7900k -minrate 7900k -maxrate 7900k -bufsize ?
How have to be calculate the bufsize considering a bitrate of 7900k?
ffmpeg.exe -y -i audiosfilata.wav -i sfilata.avi -c:v libx264 -profile:v high422 -level:v 4.1 -g 33 -bf 2 -vf yadif,colormatrix=bt709:bt601 -b:v 8000k -minrate 8000k -maxrate 8000k -bufsize 8000k -c:a libmp3lame -b:a 320k -aspect 16:9 output8000.mp4
bufsize depends on your playback device's limitations. Why are you setting min, max, and average bitrates all the same? Are you aiming for constant bitrate encoding? That's the worst possible encoding method.
I know but I'm not able to calculate final size in VBR mode. However I have a uncompressed .avi file of 460 GB that have duration of 1hour and 15 minutes, HD 1920x1080 25fps 4:2:2. I would like encode it into mp4 so that it fit
- in a 4,7GB dvd
- in a 9Gb dvd
For example, to create a MP4 of 4.37Gb how I have to set min max and average rate? thanks
Same answer, use a bitrate calculator . Not necessarily one for DVD-video, but a generic one
eg this one is similar to the one in megui
If it's not intended for a device (it probably isn't if you're using 4:2:2) , you usually don't want to set min/max or buffer or VBV settings. The more restrictions, the lower the potential quality
The only important one is average bitrate, because that is what is used in the equation
Filesize = average bitrate * running time
running time = 1 hour 15 minutes = 4500 seconds
file size = 4.7 GB = 4,700,000,000 bytes = 37,600,000,000 bits
bitrate = file size / running time:
Subtracting a few percent for the container overhead leaves about 8200 kbits/sec. Subtract 384 kbps for audio (typical for 5.1 AC3) leaves you with about 7800 kbps for the video.
Let me guess the response:
"cats" don't do algebra
<insert cat gif>