[mythtv-commits] Re: Ticket #406: mythtranscode --mpeg2: sample rate not set - Error writing output header

MythTV mythtv at cvs.mythtv.org
Tue Oct 4 11:02:37 UTC 2005


#406: mythtranscode --mpeg2: sample rate not set - Error writing output header
------------------------------+---------------------------------------------
 Reporter:  laga at laga.ath.cx  |        Owner:  ijr
     Type:  defect            |       Status:  new
 Priority:  minor             |    Milestone:     
Component:  mythtv            |      Version:     
 Severity:  medium            |   Resolution:     
------------------------------+---------------------------------------------
Comment (by laga at laga.ath.cx):

 Hi Aaron!

 Thanks for your prompt reply. Your approach on the problem is very simple
 and effective, however, I can't implement it due to my lack of any coding
 skills.

 I've spend some time looking at mpeg2trans.cpp and eventually figured out
 how to make it spit out some debugging messages. However, it doesn't make
 any sense to me - I think that I'm just printing the wrong stuff
 (variables? I wouldn't know ;).

 You can take a look at my changes here: http://laga.ath.cx/~laga/mythtv
 /mpeg2trans-verbose.patch

 That's what I get when running my modified version of mythtranscode (sorry
 for the formatting)

 laga at styx:~/myth-dev/mythtv/programs/mythtranscode$ ./mythtranscode
 --mpeg2 --ho
 norcutlist --infile /mnt/foo/video/1070_20050925201000_20050925221000.nuv
 2005-10-04 12:24:52.111 Using runtime prefix = /usr
 2005-10-04 12:24:52.146 New DB connection, total: 1
 2005-10-04 12:24:52.162 New DB connection, total: 2
 2005-10-04 12:24:52.178 Begining MPEG2 to MPEG2 transcode of Donnie Darko
 (Donni
 e Darko) - ... cutlist will be honored.
 Input #0, mpegts, from
 '/mnt/foo/video/1070_20050925201000_20050925221000.nuv':
   Duration: N/A, bitrate: N/A
   Stream #0.0[0x2ff]: Video: mpeg2video, yuv420p, 720x576, 25.00 fps,
 15000 kb/s
   Stream #0.1[0x300](deu): Audio: mp2, 48000 Hz, stereo, 192 kb/s
   Stream #0.2[0x301](deu): Audio: mp3
 2005-10-04 12:24:52.692 verbose message: ost->codec->codec_type 0
 2005-10-04 12:24:52.693 verbose message: ost->codec->codec_id 2
 2005-10-04 12:24:52.694 verbose message: ost->codec->codec_tag 0
 2005-10-04 12:24:52.694 verbose message: ist->codec->codec_type 0
 2005-10-04 12:24:52.695 verbose message: ist->codec->codec_id 2
 2005-10-04 12:24:52.695 verbose message: ist->codec->codec_tag 0
 2005-10-04 12:24:52.696 verbose message: ost->codec->codec_id 86017
 2005-10-04 12:24:52.697 verbose message: ost->codec->codec_tag 0
 2005-10-04 12:24:52.697 verbose message: ist->codec->codec_type 1
 2005-10-04 12:24:52.698 verbose message: ist->codec->codec_id 86017
 2005-10-04 12:24:52.698 verbose message: ist->codec->codec_tag 0
 2005-10-04 12:24:52.699 verbose message: ost->codec->codec_type 1
 2005-10-04 12:24:52.699 verbose message: ost->codec->codec_id 86017
 2005-10-04 12:24:52.699 verbose message: ost->codec->codec_tag 0
 2005-10-04 12:24:52.700 verbose message: ist->codec->codec_type 1
 2005-10-04 12:24:52.700 verbose message: ist->codec->codec_id 86017
 2005-10-04 12:24:52.701 verbose message: ist->codec->codec_tag 0
 Output #0, dvd, to
 '/mnt/foo/video/1070_20050925201000_20050925221000.nuv.tmp':
   Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 15000 kb/s
   Stream #0.1: Audio: 0x0000, 48000 Hz, stereo, 192 kb/s
   Stream #0.2: Audio: 0x0000
 2005-10-04 12:24:52.704 Couldn't open output file, error #-2
 laga at styx:~/myth-dev/mythtv/programs/mythtranscode$

 When you take a closer look at the "verbose messages", you'll notice that
 I get every message three times. I believe that this happens because my
 recordings has three streams, including the broken mp3 stream. However,
 two of those three messages are identical, which doesn't make much sense
 to me.

 It would be really nice if someone could shed some light on this. It would
 be even better if someone who actually knows to program could implement
 this (ever written a "hello world" program? I bow to you). Let's just hope
 that someone considers this to be an important issue :)

 regards,
 Michael "laga" Haas

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/406>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list