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

Stuart Auchterlonie stuarta at squashedfrog.net
Tue Nov 15 12:51:25 EST 2005


On Tue, Nov 15, 2005 at 08:46:58AM -0800, Geoffrey Hausheer wrote:
> Well, I know why you are getting the infinite loop, but am not sure
> how that can happen, and don't know what to do about it.  Basically,
> the decoder was unable to find an entire frame, and is waiting for
> additional data.  If the frame is truely broken, it is impossible to
> do a frame conversion, and I'm not sure how to proceed.
> 
> Can you add the following patch, and send me the resulting abort.dat
> file along with the error message?
> also running 'print *vf' from gdb after breaking (make sure you are in
> process video) and send me that might be useful too.

Interesting. I tried using the cutpoints from previous runs where
things worked, and it runs to completion again. Looks like where
the cutpoints are affects this. My two command lines...

Working:
nice -10 ./mpeg2fix -i /data/mythtv/1014_20051017222900.mpg -o test2.mpg -c "0 - 7960" -c "40761 - 48204" -c "70560 - 78037" -c "141288 - 148735" -c "189744 - 203159"

Loops:
nice -10 ./mpeg2fix -i /data/mythtv/1014_20051017222900.mpg -o test.mpg -c "0 - 7960" -c "40750 - 48204" -c "70560 - 78037" -c "141288 - 148735" -c "189744 - 203159"

It looks like that first cutpoint change (from 40761 to 40750) is what does
it.

Output when it stops
Failed to decode frame.  Position was: 0
mpeg2fix: mpeg2fix.cpp:788: bool MPEG2fixup::process_video(MPEG2frame*, int): Assertion `state != STATE_BUFFER' failed.
Aborted

I'll send the rest of the logs direct as they are two big for the list.

Stuart



More information about the mythtv-dev mailing list