[MPlayer-users] mpeg2ts/aac problem

Nico nsabbi at tiscali.it
Tue Nov 25 10:17:05 CET 2003


I checked that file.
The problem is that the descriptor assigned to AAC in TS in the standard 
(0xf) in your case is correctly assigned
only to the audio pid, but in all the samples I have it's assigned to 
all pids (even to video and sub pids),
so I commented the code to tag  it as AAC. What happens is that the 
demuxer sees that pid as MP2,
which obviously isn't.

You can do two things:
1) in parse_descriptors decomment the code regarding case 0xf and in 
parse_pmt change this block:

//if((type_from_pmt == 0x0f) || (l == 4)) //see in parse_pmt()
if(l==4)
       es->type    = AUDIO_AAC;

to
if((type_from_pmt == 0x0f))
     es->type    = AUDIO_AAC;

that should work as expected

2) try to discover what's the meaning of the descriptors used by those
japanese broadcasters. If it weren't for the mess they make in the PMT the
code would be already working correctly.

BTW I'm planning to add an option to permit users to force a decoder.

        Nico





gabor wrote:

>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>hi,
>
>i tried to watch a file which (they say) comes from a hdtv source.
>
>it's called 
>Tsukihime OP (HDTV Source 1440x1080 MPEG2 192K AAC)
>
>i uploaded the first 4MB (around 2seconds) (i can upload more if needed,
>the whole file has around 200MB) to mplayer-ftp. 
>filename: tsukihime-op-part.ts
>
>the video can be played, with lots of warnings (mplayer log attached),
>but i'm unable to set up the audio.
>i tried to watch with -afm faad and -ac faad, but it didn't help.
>
>btw. this is what the fansubbers recommed to watch it:
>http://pbx.mine.nu/ch/general/index.html#1
>
>unfortunately only windows info :(
>
>so what's the problem?
>
>maybe the file is incorrectly muxed/grabbed?
>
>i tried to demux it following the instructions on that webpage with the
>windows program tsdemux.
>
>i got a m2v file and an aac file.
>
>i tried "mplayer x.m2v -audiofile x.aac",
>but he couldn't open the aac file.
>
>so i decoded the aac file with faad to wav
>"mplayer x.m2v -audiofile x.wav"
>
>worked, but i still get a lot of warnings about he size:
>tsize restrictions for MP at ML or MPEG1 exceeded! (1440x1088)
>
>does that mean that for mpeg2 1440x1088 is too much?
>
>so what do you recommend?
>
>if it's impossible to play with mplayer,
>then is there a container format into which i could mux the m2v and the
>aac to make them mplayer playable (i mean only mux, not reencode).
>
>thanks,
>gabor
>
>
>p.s: if anyone is interested in the file, it's from
>http://pbx.mine.nu:6969/ :)))
>
>
>_______________________________________________
>RTFM!!!  http://www.MPlayerHQ.hu/DOCS
>Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
>http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>  
>




More information about the MPlayer-users mailing list