PDA

View Full Version : Unable to decode HE-AAC from broadcasting HDTV


lipeter888
28th February 2008, 08:24
I have demuxed a raw HE-AAC file from ts. It can be played in the winamp by using "NullSoft MPEG Audio Decoder 4.2", and I can also decompressed to wave by winamp. But other than that, the audio file can't be opened by any DirectShow filter.
I would like to mux this raw aac file back to mkv container. However, because it can not be recognized by DirectShow, the mkv merge wouldn't allow me to do so.

Can anyone help me with any possible "new" aac decoder that can be registered in the DirectShow filter management?
I have uploaded my sample file here:
http://www.badongo.com/file/8037520
Thanks

menno
28th February 2008, 16:55
The file is most probably in the LATM format. Try searching for that term on this forum, I remember some threads and solutions for this before.

neuron2
28th February 2008, 16:59
I think ffmpeg can support it. I remember seeing a patch for LATM/LOAS parsing some time ago.

SeeMoreDigital
28th February 2008, 17:07
Can you upload your .AAC sample to another web hosting service please?

EDIT: I'm still not being allowed to download the file. All I keep getting is: "You have exceeded your Download Quota!"

clsid
28th February 2008, 17:34
Here is a DirectShow filter for LATM AAC:
http://blog.monogram.sk/janos/2008/01/03/monogram-aac-decoder-v0900/

neuron2
28th February 2008, 17:46
I couldn't make that work with the file provided. Could not render it.

lipeter888
28th February 2008, 21:38
Can you upload your .AAC sample to another web hosting service please?

EDIT: I'm still not being allowed to download the file. All I keep getting is: "You have exceeded your Download Quota!"

I am sorry. Probably someone in your IP range downloaded too much from that file hosting. Here is a new place I put the file:

http://www.fs2you.com/en/files/a2701123-e63c-11dc-a405-0014221b798a/

The previous link is still working and has a much faster speed than this one, in case you can download from that one. Thank you so much for help testing.

lipeter888
28th February 2008, 22:17
Here is a DirectShow filter for LATM AAC:
http://blog.monogram.sk/janos/2008/01/03/monogram-aac-decoder-v0900/

Thank you so much for this information.
I tried to installed the decoder, but still not working for this file.

http://ifs8.imagefly.info/ifs8/e0/regrgergeg.jpg

On the other hand, for a regular HE-AAC I produced with NERO encoder, it can be decoded correctly with monogram decoder. So I am sure the monogram decoder has beem installed correctly
http://ifs8.imagefly.info/ifs8/7c/uuuuuuuuu.jpg

I also set the merit to preffered.
http://ifs9.imagefly.info/ifs9/ad/untitledetwetw.jpg

lipeter888
28th February 2008, 22:25
I couldn't make that work with the file provided. Could not render it.

Thank you so much for testing. Since the Winamp can play this file, I guess there must be some sort of ways to support in directShow.
Since you are the author of deavcindex. By the way, I noticed that the video part of this TS can not be decoded correctly by libavcodec.dll, therefore, it can not be frameserved by dgavcdec. Currently, the only way to re-encode the video part is through DirectShow source by the latest CoreAVC decoder. Do you plan to support CoreAVC for that software? Thanks.

neuron2
28th February 2008, 23:23
Since you are the author of deavcindex. By the way, I noticed that the video part of this TS can not be decoded correctly by libavcodec.dll, therefore, it can not be frameserved by dgavcdec. I can investigate that if you can provide a TS sample. The one you linked is just the AAC demuxed, judging by the file extension.

How did you demux the audio from the transport? Maybe that process went astray.

Give us a TS sample.

lipeter888
29th February 2008, 03:38
Neuron2:
Thanks for this offer. I uploaded a small piece of ts here:
http://www.badongo.com/file/8052102
The broadcasting transport stream comes from territorial HDTV (DVB) in Taiwan.
Video: H264 main profile level 4, 1920*1080 29.97fps.
Audio: HE-AAC (SBR enabled) 48kHz 128kbps dual channel
It can be decoded correctly by stand alone top box.

I previously used the mplayer to demux the raw audio and video (command: mplayer.exe -dumpaudio -dumpfile). Using other demux software will pretty much get the same audio file. This file can be deocded by winamp decoder but not any other decoder as far as I know.

For the video part, it can neither be opened by any media player using libavcodec.dll, nor the previously version of DGAVCIndex. At that time, the only way to play is to install the LATEST CoreAVC.
Serveral days ago, I tried the LATEST version of DGAVCIndex, the ts file can be open at this time, but the picture looks very ugly, which is illustrate as below:
http://ifs8.imagefly.info/o/6f/uergyert3e54.jpg
While at the same time, I tried "DirectShow Source" with CoreAVC code installed to run the avs script, it is perfect.

Right now, since I can use DirectShow source to encode the video, it is good enough for me. The thing I am still worrying is the audio. Below is the winamp decoder property when playing the demuxed audio file. Hopefully you can find solution for that.
Thanks again.

http://ifs8.imagefly.info/ifs8/70/fgjfjdfj.jpg

neuron2
29th February 2008, 04:01
Several days ago, I tried the LATEST version of DGAVCIndex, the ts file can be open at this time, but the picture looks very ugly, which is illustrate as below That's very strange because that doesn't happen with my current private build and the stream you posted. Can you tell me the version number you are using, please?

The thing I am still worrying is the audio. Below is the winamp decoder property when playing the demuxed audio file. Hopefully you can find solution for that. I'll investigate it.

lipeter888
29th February 2008, 04:45
That's very strange because that doesn't happen with my current private build and the stream you posted. Can you tell me the version number you are using, please?

The version I am using is the latest one: DGAVCDec 1.0.0 Alpha 18
which I have just downloaded from http://forum.doom9.org/showthread.php?t=122598 yesterday.

I created the avs script as below:

LoadPlugin("D:\dgavcdec100a18\DGAVCDecode.dll")
AVCSource("D:\PTSHD\Original\PTSHD_02_20_2008_17_52_06_cut.dga")


When I opened the avs in the encoder (either VirtualDubMod or MEGUI), I got that ugly picture in the encoder preview window. When I encode the whole video, the output file is just a series of that kind of picture.

neuron2
29th February 2008, 06:26
Aha. You see that it plays fine in DGAVCIndex but not when served by DGAVCDecode. They use the same decoder so the result should be the same. So this should be fixable as I obviously goofed something up in DGAVCDecode (probably NALU parsing). Thanks for bringing this to my attention.

neuron2
29th February 2008, 18:19
Oy. After spending more hours than I care to disclose carefully comparing the decoding in DGAVCIndex versus DGAVCDecode, I concluded that they were identical.

Then I remembered that DGAVCIndex throws out a field to downsize its window for HD content. As it happens all the blocking was in the fields that were discarded! So the blocking problem is an issue for libavcodec.dll with field pictures.

I'll work on the audio now.

lipeter888
1st March 2008, 03:54
Oy. After spending more hours than I care to disclose carefully comparing the decoding in DGAVCIndex versus DGAVCDecode, I concluded that they were identical.

Then I remembered that DGAVCIndex throws out a field to downsize its window for HD content. As it happens all the blocking was in the fields that were discarded! So the blocking problem is an issue for libavcodec.dll with field pictures.

I'll work on the audio now.

It looks like we should wait for the update of libavcodec.dll.
Thank you so much for helping with the audio too.:thanks:

charley
8th September 2008, 07:21
I'm looking for a way to play HE-AAC audio from broadcasting HDTV in a directshow player.

I've tried all the following but none of them worked :(. Still cant open the aac demuxed file in graphedit.
http://www.elecard.com/products/products-pc/codec-pack/avc-codec
http://www.orban.com/plugin
http://www.rarewares.org/aac-decoders.php
http://sourceforge.net/projects/ffdshow-tryout/
http://www.free-codecs.com/download/3ivx.htm
http://www.free-codecs.com/download/CoreAAC_Directshow_filter.htm
http://blog.monogram.sk/janos/2008/04/20/monogram-aac-decoder-0950/

p.s Is their a fix for the blocking problem with libavcodec.dll yet?

I loaded the h.264 transport stream file into DGAVCDec, saved the dga file, made this script and loaded it into Directshow player. The result is blocky playback.

LoadPlugin("D:\DGAVCDec Version 1.0.0 Alpha 34\DGAVCDecode.dll")
AVCSource("test.dga")

charley
17th September 2008, 09:05
Hey is the comment from this thread any help. I dont know how to get it working in the script.
http://dvbportal.dyn1.de/forum/index.php?topic=834.msg4467#msg4467
By chance, I found a solution to remove the artifacts when using libavcodec. When I converted a truly interlaced movie (paff high profile) DGAVCIndex worked flawlessly. After inserting the BOB filter, all artifacts disappeared.

For PAL content add the following line into your AVS script before any cropping/resizing:

video = video.AssumeTFF().SeparateFields().SelectEven().Bob(0.0, 1.0)