[mythtv] [PATCH] MPEG2->MPEG2 commercial cut (myth patch)

Jim Paris jim at jtan.com
Fri Jan 2 17:18:28 EST 2004


> Okay, now that I'm back from holidays, here is a new version of the
> mpeg2->mpeg2 commercial cut code.
...
> I'd like any bug reports.  If I don't hear anything, it'll probably go
> into CVS in about a week.

This is the first time I've used any of the mythtranscode stuff, so
some of these problems may not be related to the new code, but here
goes:

Running CVS as of last night, with your patches, plus my own minor
fixes for the broken video preview stuff.

I went into the database and set up the MPEG2 transcoding profile as
video=MPEG-2 and audio=NULL.  I then made a backup of one of my
recordings by copying it to .nuv.old

Started watching this recording, hit m, hit z, hit m, to load the
commercial cutlist.  Roughly 10 minutes of the 30 minute show were
marked cut.

Hit "x", screen showed "Transcoding", but nothing seemed to happen
(no mythtranscode running, no new files in /tv).  I hit "x" again
and it said "Stopped transcoding".  I hit "x" a third time and it
said "Transcoding", and this time the mythtranscode process was
running (and a .nuv.tmp showed up in /tv).

The original .nuv was about 770 megs, and the .nuv.tmp grew to about
723 megs.  A few seconds later, Myth clobbered (!@#$) my .nuv.old
and renamed the .nuv.tmp to .nuv.

Issues
- I lost my original.  Bad choice of filename I suppose.  Myth should
  be more careful to not clobber and delete .nuv.old files unnecessarily
  if SaveTranscodings is 0.

- It didn't seem to cut any commercials.  Should it have?  It wasn't
  clear from your mail whether it should, when started from
  mythfrontend,

- If it didn't cut the commercials, why did the file shrink?

- The cut file seems to play OK in mplayer and MythTV, but from
  within MythTV seeking around is slow, and the total recording time
  jumps around, getting closer and closer to the actual time (30 mins)
  as I near the end of the recording.  I also can't enter edit-mode
  anymore.

- Mythfrontend spits out errors while playing it and seeking around:

2004-01-02 16:35:06 Changing from None to None
Input #0, mpeg, from '/tv/1060_20031209033000_20031209040000.nuv':
  Stream #0.0: Video: mpeg2video, 720x480, 29.97 fps
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
starting read ahead
2004-01-02 16:39:14 Opening OSS audio device '/dev/dsp'.
2004-01-02 16:39:14 Using XV port 103
2004-01-02 16:39:15 Changing from None to WatchingPreRecorded
[mpeg2video @ 0x83a78e8]00 motion_type at 43 25
[mpeg2video @ 0x83a78e8]00 motion_type at 2 26
[mpeg2video @ 0x83a78e8]00 motion_type at 20 27
[mpeg2video @ 0x83a78e8]00 motion_type at 7 28
[mpeg2video @ 0x83a78e8]invalid mb type in P Frame at 6 29
[mpeg2video @ 0x83a78e8]invalid mb type in P Frame at 9 26
[mpeg2video @ 0x83a78e8]ac-tex damaged at 1 27
[mpeg2video @ 0x83a78e8]ac-tex damaged at 8 28
[mpeg2video @ 0x83a78e8]ac-tex damaged at 9 29
[mpeg2video @ 0x83a78e8]ac-tex damaged at 15 27
[mpeg2video @ 0x83a78e8]ac-tex damaged at 37 28
[mpeg2video @ 0x83a78e8]00 motion_type at 3 29
[mpeg2video @ 0x83a78e8]00 motion_type at 7 29

(etc).

- Mythbackend gives an error, may be unrelated:

2004-01-02 16:32:35 Transcoding from /tv/1060_20031209033000_20031209040000.nuv to /tv/1060_20031209033000_20031209040000.nuv.tmp
Input #0, mpeg, from '/tv/1060_20031209033000_20031209040000.nuv':
  Stream #0.0: Video: mpeg2video, 720x480, 29.97 fps
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
BUG: StackedConfigurationGroup::raise(): unrecognized child 0 on setting Input #0, mpeg, from '/tv/1060_20031209033000_20031209040000.nuv':
  Stream #0.0: Video: mpeg2video, 720x480, 29.97 fps
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Output #0, vob, to '/tv/1060_20031209033000_20031209040000.nuv.tmp':
  Stream #0.0: Video: mpeg2video, 720x480, 29.97 fps, q=2-31, 6000 kb/s
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 384 kb/s

I can give a more useful report and provide sample videos etc 
once I figure out how this stuff should work :)

-jim


More information about the mythtv-dev mailing list