On Thu, 5 May 2005, Boleslaw Ciesielski wrote:
Cory Papenfuss wrote:I honestly just saw that this morning earlier in the thread. I've used mencoder -aoc copy -ovc copy to make an avi-encapsulated MPEG2 stream and then avidemux to work with it. I played a bit with the -mpegopts this morning on a known bad stream and got the same mencode errrors:Notable programs that definately *are* broken are any scripts that strip A/V and remux, or those that use avidemux. Avidemux cannot deal with varying sync.
Do you know if remuxing in one step using "mencoder -of mpeg -mpegopts format=dvd" still suffers from this problem?
1 duplicate frame(s)!
Pos:1194.2s 35777f (81%) 629fps Trem: 0min 743mb A-V:-0.070 [4003:192]
1 duplicate frame(s)!
Pos:1194.6s 35787f (81%) 629fps Trem: 0min 743mb A-V:-0.070 [4003:192]
1 duplicate frame(s)!
Pos:1195.1s 35802f (81%) 629fps Trem: 0min 743mb A-V:-0.067 [4003:192]
1 duplicate frame(s)!
Pos:1459.3s 43719f (100%) 632fps Trem: 0min 743mb A-V:-0.034 [4001:191]
... and dvdauthor errors: STAT: fixing VOBU at 25MB (97/2914, 3%) WARN: audio sector out of range: -8222 (vobu #101, pts 25.391)
WARN: audio sector out of range: -8281 (vobu #102, pts 25.642)
WARN: audio sector out of range: -8412 (vobu #103, pts 25.892)
WARN: audio sector out of range: -8468 (vobu #104, pts 26.142)
WARN: audio sector out of range: -8578 (vobu #105, pts 26.392)
as the other guy. Avidemux won't play it right, so I suspect that it didn't clean it up.... although it didn't seem to make it worse either. Also, it appeared to clean up the PES structure some. Before, I'd get little chunks of PES packets (about 25-40 at a time):
$ tcscan -i sync.nuv
<snip>
------------- presentation unit [103] ---------------
stream id [0xbe] 3
stream id [0xc0] 1
stream id [0xe0] 29
33 packetized elementary stream(s) PES packets found
presentation unit PU [103] contains 3 MPEG video sequence(s)
Average Bitrate is 35000. Min Bitrate is 5000, max is 5000 (CBR)
---------------------------------------------------
found ISO/IEC 13818-2 or 11172-2 MPEG video stream [0xe0]
found ISO/IEC 13818-3 or 11172-3 MPEG audio track 0 [0xc0]
found padding stream [0xbe]
------------- presentation unit [104] ---------------
stream id [0xbe] 3
stream id [0xc0] 1
stream id [0xe0] 33
37 packetized elementary stream(s) PES packets found
presentation unit PU [104] contains 3 MPEG video sequence(s)
Average Bitrate is 35000. Min Bitrate is 5000, max is 5000 (CBR)
---------------------------------------------------
<snip>
... after the mencode, the whole stream is in one PU:
$ tcscan -i test2.mpg
found first packet header at stream offset 0x0
found unknown stream [0xbb]
found navigation pack [0xbf]
found ISO/IEC 13818-2 or 11172-2 MPEG video stream [0xe0]
sequence: 704x480 4:3, 29.97 fps, 5000 kbps, VBV 224 kB , Custom Intra Matrix , Custom Non-Intra Matrix
found ISO/IEC 13818-3 or 11172-3 MPEG audio track 0 [0xc0]
found padding stream [0xbe]
end of stream reached
------------- presentation unit [0] ---------------
stream id [0xbb] 2914
stream id [0xbe] 2
stream id [0xbf] 5828
stream id [0xc0] 17336
stream id [0xe0] 360378
386458 packetized elementary stream(s) PES packets found
presentation unit PU [0] contains 2914 MPEG video sequence(s)
Average Bitrate is 217. Min Bitrate is 5000, max is 5000 (CBR)
---------------------------------------------------
(scan_pes.c) detected a total of 1 presentation unit(s) PU and 2914 sequence(s)
I'll bet that since mplayer is good enough to play with varying PTS/DTS, it doesn't try to fix that. I did mess with a few options like
init_vpts, init_apts, vdelay, drop, tsaf, reorder.... nothing seemed to help that issue.
-Cory
************************************************************************* * Cory Papenfuss * * Electrical Engineering candidate Ph.D. graduate student * * Virginia Polytechnic Institute and State University * *************************************************************************
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
