[mythtv] New MPEG2 commercial-cut code ready for testing

Tom Lichti tom at redpepperracing.com
Thu Nov 17 14:43:09 EST 2005


Geoffrey Hausheer wrote:

>On 11/17/05, Tom Lichti wrote:
>  
>
>>I tried it on my mpeg of death, and it still fails at the same spot.
>>What info do you want, if any?
>>    
>>
>When you say 'fails' what do you mean?  Are you getting a hang or a
>crash, or an assertion failure?
>  
>
It just stops processing. A normal run shows this:

root at mythtv:/myth/tv/mpeg2fix-0.11# ./mpeg2fix -i 
../3046_20051112050000.mpg -o test.mpg
Opening ../3046_20051112050000.mpg
Input #0, mpeg, from '../3046_20051112050000.mpg':
  Duration: N/A, bitrate: N/A
  Stream #0.0[0x1e0], 29.97 fps: Video: mpeg2video, yuv420p, 480x480, 
3000 kb/s
  Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
#0 PTS:36037 Delta: 0.000000ms queue: 17
#1 PTS:34363 Delta: 18.600000ms queue: 2
Mux rate: 3.24 Mbit/s
Warning: partial frame found!
Warning, QMAT_SHIFT is larger then 21, overflows possible
Inserting 1 I-Frames after frame #2 (null)
root at mythtv:/myth/tv/mpeg2fix-0.11#  

And only creates an 11MB file from the original 600+MB.

>run with '-d 3' and send me the last 30 or so lines.
>  
>
Id:0:  0:00:40.838 V:2262519 8667 A:447703 7831
VID: B #:3 nb: 2 pts: 3669497 dts: 3669497 pos: 8205780
Id:0:  0:00:40.772 V:2254951 8623 A:447703 7831
VID: B #:4 nb: 2 pts: 3672500 dts: 3672500 pos: 8213d50
Id:0:  0:00:40.805 V:2251119 8579 A:447703 7831
PTS discrepency: 3678506 != 3678531 on B-Type (6)
PTS discrepency: 3681509 != 3681534 on B-Type (7)
PTS discrepency: 3684512 != 3684537 on P-Type (8)
VID: P #:8 nb: 2 pts: 3684512 dts: 3675528 pos: 824e190
Id:0:  0:00:40.939 V:2247135 8535 A:447703 7831
VID: B #:6 nb: 2 pts: 3678506 dts: 3678506 pos: 8151fa8
Id:0:  0:00:40.872 V:2238739 8491 A:447703 7831
VID: B #:7 nb: 2 pts: 3681509 dts: 3681509 pos: 8140420
Id:0:  0:00:40.905 V:2234499 8447 A:447703 7831
PTS discrepency: 3687515 != 3687540 on B-Type (9)
PTS discrepency: 3690518 != 3690543 on B-Type (10)
PTS discrepency: 3693521 != 3693546 on P-Type (11)
VID: P #:11 nb: 2 pts: 3693521 dts: 3684537 pos: 82369a8
Id:0:  0:00:41.039 V:2229939 8403 A:447703 7831
VID: B #:9 nb: 2 pts: 3687515 dts: 3687515 pos: 8243e18
Id:0:  0:00:40.972 V:2221643 8359 A:447703 7831
VID: B #:10 nb: 2 pts: 3690518 dts: 3690518 pos: 81cca88
Id:0:  0:00:41.005 V:2217371 8315 A:447703 7831
PTS discrepency: 3696524 != 3696549 on B-Type (12)
PTS discrepency: 3699527 != 3699552 on B-Type (13)
PTS discrepency: 3702530 != 3702555 on P-Type (14)
VID: P #:14 nb: 2 pts: 3702530 dts: 3693546 pos: 81280a8
Id:0:  0:00:41.139 V:2212919 8271 A:447703 7831
VID: B #:12 nb: 2 pts: 3696524 dts: 3696524 pos: 81beb18
Id:0:  0:00:41.072 V:2203067 8227 A:447703 7831
VID: B #:13 nb: 2 pts: 3699527 dts: 3699527 pos: 825f6b8
Id:0:  0:00:41.105 V:2198231 8183 A:447703 7831
Warning: partial frame found!
PTS discrepency: 3711539 != 3705558 on I-Type (2)
Warning, QMAT_SHIFT is larger then 21, overflows possible
Inserting 1 I-Frames after frame #2 ins0.yuv
VID: I #:2 nb: 2 pts: 3705558 dts: 3702555 pos: 81fb946
Id:0:  0:00:41.172 V:2193159 8139 A:447703 7831
VID: I #:3 nb: 2 pts: 3708561 dts: 3705558 pos: 82f4290
Id:0:  0:00:41.206 V:2173010 8095 A:447703 7831
VID: I #:4 nb: 2 pts: 3711564 dts: 3708561 pos: 832f738
Id:0:  0:00:41.239 V:2061417 8051 A:447703 7831

>run through gdb, and get me a back trace.
>  
>
Not sure how to do that, exactly...

>after that, it may be useful to use mpegparse on it to find out what
>  
>
I see it in the directory, how do I build it? I know I sound like an 
idiot, but I'm not a developer, just someone trying to help...

>is going on, or get me a saample of the video that I can play with. 
>  
>
That shouldn't be a problem.

>there will be videos that we just can't handle, but if myth can play
>it, we should be able to fix it.
>  
>
Myth plays it, but there are lots of artifacts, and error messages on 
the console.

Tom


More information about the mythtv-dev mailing list