pocarist / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

Video with static - Invalid TS #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Input file Badvideo.mov (http://digispotdub.chartermedia.com/ffmbc)
2. Create mpeg2 TS file
3. Buffer underflows occur at points in the video where "static" occurs, 
leading to invalid TS (glitches)

What is the expected output? What do you see instead?
Hoping/expecting to accurately replicate input video (including static) without 
glitching.

What version of the product are you using? On what operating system?
This was created with FFMBC RC8, 32 bit on Windows 7, 32 bit. Also occurs on 
Server 2008 with 64 bit RC8.

Please provide any additional information below:

Command: ffmbc -i BadVideo.mov -s 1920x1080 -tff -aspect 16:9 -vcodec 
mpeg2video -vb 10700k -minrate 10700k -maxrate 10700k -muxrate 11500k -bufsize 
4M -r 29.97 -pix_fmt yuv420p -bf 2 -g 15 -ss 0 -y -acodec ac3 -dialnorm -24 -ar 
48000 -ab 192k -f mpegts BadVideo.mpg 2>Badvideo.txt

CLI output is attached. Badvideo.txt
Media output (Badvideo.mpg) is located on URL: 
http://digispotdub.chartermedia.com/ffmbc

Thank you.

- Full commandline run (with -v 3) and everything the program printed
without
the repeating parts.
- Upload your sample somewhere and supply url

Original issue reported on code.google.com by john.dac...@gmail.com on 6 Jun 2013 at 1:08

Attachments:

GoogleCodeExporter commented 9 years ago
Can you remove muxrate, bufsize, and ss ?

Original comment by baptiste...@gmail.com on 7 Jun 2013 at 9:50

GoogleCodeExporter commented 9 years ago
Thanks for getting back to me.

That seems to help with the invalid TS error, but video buffer underflows still 
occur, and the bit rate jumps up very high. 

Do you have any suggestions on how to stop the underflow errors, and keep the 
bit rate under control?

Original comment by john.dac...@gmail.com on 7 Jun 2013 at 10:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The ffmpeg developers helped provide the two options I should invoke:
-trellis
-lmax

And I was able to make usable video with these settings:
-trellis 1
-lmax 420*QP2LAMBDA

ffmpeg also adjusted their code to provide the following warning:

[mpeg2video @ 0000000002704360] rc buffer underflow
[mpeg2video @ 0000000002704360] max bitrate possibly too small or try trellis wi
th large lmax or increase qmax

This worked even though my video settings required CBR.

Hope this helps!

Original comment by john.dac...@gmail.com on 9 Sep 2013 at 4:40

GoogleCodeExporter commented 9 years ago

Original comment by baptiste...@gmail.com on 1 Apr 2014 at 4:34