VLC not recognising HE-AAC audio stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

VLC not recognising HE-AAC audio stream

Postby ljbade » 10 May 2011 03:09

Im trying to play back some Windows Media Center recorded TV files in VLC.

The files play back the H.264 correctly, but not the audio which is in HE-AAC.
The codec info window just shows "undf" for those streams and I get no audio.

If I play back clips from shows that have 5.1 AC3 tracks then it works, its just the stereo channels which use HE-AAC.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC not recognising HE-AAC audio stream

Postby Jean-Baptiste Kempf » 10 May 2011 12:29

Please, share the file
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 11 May 2011 00:25

It is quite a large files (several GBs).

Is there a way to crop the video to a smaller size?

Lotesdelere
Cone Master
Cone Master
Posts: 10114
Joined: 08 Sep 2006 04:39
Location: Europe

Re: VLC not recognising HE-AAC audio stream

Postby Lotesdelere » 11 May 2011 00:52

It is quite a large files (several GBs).
Is there a way to crop the video to a smaller size?
Use DGsplit and read here about how to do it:
viewtopic.php?f=14&t=57724&p=193335#p193335

Please, cut a short sample of this file, 20-30 MB will be enough, and upload it to some file sharing site, I suggest Multiupload.com because it will automatically upload the file to several other hosts for you, and then post the link to the file here.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 11 May 2011 01:36

Can someone host dgsplit12.zip as the original website appears to be down.

Lotesdelere
Cone Master
Cone Master
Posts: 10114
Joined: 08 Sep 2006 04:39
Location: Europe

Re: VLC not recognising HE-AAC audio stream

Postby Lotesdelere » 11 May 2011 09:29

It's not down, I just downloaded the tool from the original site.
Anyway, you can find it here too: http://www.multiupload.com/BWRS6VYYA7

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 11 May 2011 11:00

I have uploaded a 30MB clip of a recording that has the missing audio: http://www.multiupload.com/NMU1BJ8NN1

EDIT:
Heres the log from VLC for that file too BTY: http://pastebin.com/jzD65FGQ

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC not recognising HE-AAC audio stream

Postby Jean-Baptiste Kempf » 11 May 2011 22:10

Wtv files are not really supported in VLC.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 11 May 2011 23:42

Wtv files are not really supported in VLC.
Why is that? It seems to work OK except for it not recognising the audio codec correctly.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC not recognising HE-AAC audio stream

Postby Jean-Baptiste Kempf » 12 May 2011 00:38

Because noone has done any work on it, so far :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 12 May 2011 03:39

Hmm maybe I should fix that then, at least for the audio codec.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 12 May 2011 04:31

OK looking at the sources, it is libavformat that handles WTV.

WTV appears to use a GUID to ID a codec, so I assume that the GUID for HE-AAC is not configured in libavformat.

How do I get the debug print from libavformat in the VLC log? libavformat prints the offending GUID to debug but somehow VLC doesn't log it.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 12 May 2011 04:38

I have narrowed the missing code to: http://git.videolan.org/?p=ffmpeg.git;a ... =HEAD#l330

It only has MPEG Layer 2, AC3, Extended AC3, and ATRAC. Looks like AAC needs to be added.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 12 May 2011 09:26

OK I finally got gdb working with this.

The two new GUIDs:
H.264: {0x48,0x32,0x36,0x34,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}
AAC: {0x02,0x16,0x00,0x00,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 12 May 2011 11:03

It turns out that avformat and avcodec correctly recognize the stream as CODEC_ID_AAC_LATM but VLC doesn't.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC not recognising HE-AAC audio stream

Postby Jean-Baptiste Kempf » 12 May 2011 12:34

yep, modules/codec/avcodec/fourcc.c is the culprit.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ljbade
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Oct 2008 04:53

Re: VLC not recognising HE-AAC audio stream

Postby ljbade » 12 May 2011 13:02

fourcc.c
Needs this:
{ VLC_CODEC_MP4A, CODEC_ID_AAC_LATM, AUDIO_ES },
added to line 305.

I compiled this using 1.1.9 and it loads the file, but I still don't get any sound. The log is full of:
faad warning: Channel coupling not yet implemented

I can't test this modification against the Git master as it won't build.

Could someone please try this modification on Git and see if it plays my file correctly?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC not recognising HE-AAC audio stream

Postby Jean-Baptiste Kempf » 12 May 2011 17:17

it won't work, But I have an idea how to fix, though...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests