[mythtv-users] Getting mythtranscode to work with MP3 audio

Lukas Kasprowicz lukas.kasprowicz at web.de
Sat Mar 19 22:59:16 UTC 2005


Am Samstag, 19. März 2005 20:28 schrieb Chris Pinkham:
> > > Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> > > MP3lib: init layer2&3 finished, tables done
> > > AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192.0 kbit)
> > > Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> > >
> > > So, is there anyway I can use mythtv's built in transcoder or can I
> > > make my recording in mp2, or will mythtranscode be updated to handle
> > > mp3 files? (Or am I wrong on all this?)
>
> Apply the 1-line debug statement mentioned in this post:
>
> http://www.gossamer-threads.com/lists/mythtv/users/116619?search_string=%22
>Only%20MP2%20audio%20is%20currently%20supported%22;#116619
>
> Make sure you use the modified line posted by Shawn, it's more helpful
> than my original version.
>
> See if you get the same result as the user in that post.  If you do get
> 252 printed, you can try changing the 0xfb to 0xfc as he mentioned to
> see if it works.  If it does, report back here and we can get the code
> fixed up to allow both.
It printed 252.

Don't you mean 0xfd? I changed the 0xfd to 0xfc

        uint8_t pad;
        if (buf[1] != 0xfc)
        {
            cerr << "Only MP2 audio is currently supported\n";
            cerr << "Only MP2 audio is currently supported, unknown type: " << 
(int)buf[1] << endl;
            assert(0);
        }


and i get following

./mythtranscode -i ~mythtv/1058_20050319225000_20050319225100.nuv
Stream: 0 Type: 0
Stream: 1 Type: 1
Input #0, mpeg, from '/home/mythtv/1058_20050319225000_20050319225100.nuv':
  Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, 15000 kb/s
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Output #0, vob, to '/home/mythtv/1058_20050319225000_20050319225100.nuv.tmp':
  Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 15000 kb/s
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Ran out of video buffers!


File /home/mythtv/1058_20050319014500_20050319020000.nuv.tmp was touched, but 
0 byte big.

>
> If anyone wants to put up a sample recording and email me the URL, I
> can take a look at it with the transcoder.



More information about the mythtv-users mailing list