Skip to main content
Topic: Re: how to extract the raw aac from MPEG2 TS? (Read 2283 times) previous topic - next topic - Topic derived from how to extract the ra...
0 Members and 1 Guest are viewing this topic.

Re: how to extract the raw aac from MPEG2 TS?

Hi there,

Are there some tools to extract the raw AAC from the MPEG2 TS?

Need an answer ASAP Please :)

Thank you

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #1
Hi there,

Are there some tools to extract the raw AAC from the MPEG2 TS?

Need an answer ASAP Please :)

Thank you
A tool I find very useful for extracting audio from video, or just losslessy clipping audio or video in general is Xmedia recode.
https://www.xmedia-recode.de/en/download.html
Hit open file and open the video file, under format choose "custom" and on the dropdowns do m4a, then in the audio tab hit Mode: copy, change your destination if needed, if you need it clipped at certain times go to the filters/preview tab and go to the start time to ____ thing. When you are done, hit add to queue and hit encode.

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #2
Hi there,
Are there some tools to extract the raw AAC from the MPEG2 TS?
Need an answer ASAP Please :)
Thank you


ts muxer can separate the audio track from the video container without any encoding.

Re: how to extract the raw aac from MPEG2 TS?

Reply #3
Hi there

Thank you so much for your help guys, Truly thank you :)

I have tried a quite a bit of programs but can't seem to be able to do it

When you right click the file and go to Details TAB it says
Bit rate 256kbps
Channels 2 stereo
Audio sample rate 48kHz

I would like to demux the original raw file 256kbps / 48kHz

Link to my file (8GB) a bit big but that's what it is
https://www.dropbox.com/s/nzhvepysom67w2e/bruno.rar?dl=0

I'm uploading the file to my Dropbox, it should be done in about 30-60mins

feel free to download and experiment

Thank you so so so much guys :)

Re: how to extract the raw aac from MPEG2 TS?

Reply #4
Audio seems to use LATM format which isn't that well supported. One way to get the audio extracted in a working condition is to use eac3to with -demux parameter (eac3to -demux bruno.ts) and wait for it to write audio and video streams to separate files. Then use mkvtoolnix to convert the .aac file to .mka. Now you can use ffmpeg with command ffmpeg -i newfile.mka -c:a copy bruno.m4a to have a usable audio file.

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #5
Hi there,

Are there some tools to extract the raw AAC from the MPEG2 TS?

Need an answer ASAP Please :)

Thank you
A tool I find very useful for extracting audio from video, or just losslessy clipping audio or video in general is Xmedia recode.
https://www.xmedia-recode.de/en/download.html
Hit open file and open the video file, under format choose "custom" and on the dropdowns do m4a, then in the audio tab hit Mode: copy, change your destination if needed, if you need it clipped at certain times go to the filters/preview tab and go to the start time to ____ thing. When you are done, hit add to queue and hit encode.
there is only convert option, the copy option is not there

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #6
Do you whant a gui tool or a command line, in comand line ffmpeg can do it, I don't know any gui to do it but I can think of a hack using mkvtoolnix and mkvcleaver.

Re: how to extract the raw aac from MPEG2 TS?

Reply #7
I have tried what you've said (Phanton_13 )but ended up only with 127kbps file

Don't know what I'm doing wrong

ffmpeg I believe it needs to be MAC version to have AAC encoder
Windows one doesn't have it


HERE is the new link to the File
Sign in or create an account for OneDrive to download

https://1drv.ms/u/s!ArJ8rhoDYk4et1uGU4sA4I6I6LkK

PS: my other link for Dropbox has reached its daily download limit lol, but OneDrive doesn't have download limits I believe

Feel free to download and experiment with it

Once again I really appreciate all your kind help :)

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #8
Audio seems to use LATM format which isn't that well supported. One way to get the audio extracted in a working condition is to use eac3to with -demux parameter (eac3to -demux bruno.ts) and wait for it to write audio and video streams to separate files. Then use mkvtoolnix to convert the .aac file to .mka. Now you can use ffmpeg with command ffmpeg -i newfile.mka -c:a copy bruno.m4a to have a usable audio file.
Audio seems to use LATM format which isn't that well supported. One way to get the audio extracted in a working condition is to use eac3to with -demux parameter (eac3to -demux bruno.ts) and wait for it to write audio and video streams to separate files. Then use mkvtoolnix to convert the .aac file to .mka. Now you can use ffmpeg with command ffmpeg -i newfile.mka -c:a copy bruno.m4a to have a usable audio file.
that did not result in 256kbps file unfortunately

HERE is the new link to the File
Sign in or create an account for OneDrive to download

https://1drv.ms/u/s!ArJ8rhoDYk4et1uGU4sA4I6I6LkK

Feel free to download and experiment with it

I appreciate your help


Re: how to extract the raw aac from MPEG2 TS?

Reply #9
Only thing I see claiming the audio to be 256 kbps is Windows Explorer's details info. No tool I have shows the file to contain more than one video track and one audio track. The audio track extraction is lossless, and the extracted audio sounds the same as the original source file as played by various media players. My opinion is that if you somehow get a 256 kbps audio out of the file it is a transcode.

As an additional test I remuxed the .ts file to Matroska and the more efficient container format dropped the size to match the combined size of the video and audio streams eac3to demuxing produced. And I noticed this method allows bypassing the eac3to step as ffmpeg can now extract a proper AAC stream from the matroska (ffmpeg -i bruno.mkv -c:a copy -vn bruno.m4a).

Re: how to extract the raw aac from MPEG2 TS?

Reply #10
The bitrate that windows give is only a guess and sometimes that guess is really bad, basically it tends to guive the maximun bitrate not the nean one when the file uses variable bitrate or any of its incarnations.

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #11
I'd like to help out, but I refuse to create a MS account just for downloading it...
Maybe somebody could upload it it to another hoster like https://mega.nz/ for example ?

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #12
I'd like to help out, but I refuse to create a MS account just for downloading it...
Maybe somebody could upload it it to another hoster like https://mega.nz/ for example ?
OK I will upload it to mega.nz later today when I come back from work

Re: how to extract the raw aac from MPEG2 TS?

Reply #13
Ok, but it'll be a few hours, before I can have a look at it.
It's already 8:15pm over here, so I'll have a look at it tomorrow.

In regards to:
ffmpeg I believe it needs to be MAC version to have AAC encoder
Windows one doesn't have it
ffmpeg always had a built-in AAC encoder, but until two years ago, it was considered as experimental.
 ;)

Re: how to extract the raw aac from MPEG2 TS?

Reply #14
you should use MediaInfo to interrogate video & audio files for their technical information; not Windows.

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #15
AAC encoder
You should not encode, you just want to demux out the audio, right?
Memento: this is Hydrogenaudio. Do not assume good faith.


Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #17
Then Case's reply.

By the way, LATM is restricted to only a single audio stream, isn't it? So if it is LATM, there should not be any second stream in there?
Memento: this is Hydrogenaudio. Do not assume good faith.


Re: how to extract the raw aac from MPEG2 TS?

Reply #19
You can use DVD Audio Extractor


Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #21
there is only convert option, the copy option is not there
Please post a screenshot with the information I highlighted in this screenshot.
I've uploaded XMedia Recode Screenshot to mega.co.nz, here is the link

https://mega.nz/#!1goV3JCL!1Ov2ozDcqY80WowF_lJYxGVyXu2Flyx36lOTIpeHGY0

Re: how to extract the raw aac from MPEG2 TS?

Reply #22
Ok then, I downloaded it and this must be the most exotic media file, I've ever encountered ... :D

MediaInfo shows these audio details:
Code: [Select]
Audio 
ID : 528 (0x210)
Menu ID : 1 (0x1)
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Format settings : NBC
Muxing mode : LATM
Codec ID : 17-5
Duration : 1 h 15 min
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 SPF)
Compression mode : Lossy

MPC-HC identifies the audio stream as
Code: [Select]
Audio
ID                             : 528 (0x210)
Menu ID                        : 1 (0x1)
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : HE-AAC / LC
Muxing mode                    : LATM
Codec ID                       : 17
Duration                       : 1 h 15 min
Bit rate mode                  : Variable
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 kHz / 24.0 kHz
Frame rate                     : 23.438 FPS (1024 SPF)
Compression mode               : Lossy

FFMPEG says:
Code: [Select]
Stream #0:1[0x210]: Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp

tsMuxeR cannot even detect the audio stream at all  :o

TS Doctor throws a bucket load of errors (+4000) when trying to fix the stream.
Code: [Select]
ES  ERROR  : Sequence Parameter Set (1) video_full_range_flag byte is 184 and should be 112 !

Smart Cutter identifies the audio stream as "AAC LATM"

...

I'll post back, when (if) I was able to extract the audio stream properly.

Re: Re: how to extract the raw aac from MPEG2 TS?

Reply #23
Ok then, I downloaded it and this must be the most exotic media file, I've ever encountered ... :D

MediaInfo shows these audio details:
Code: [Select]
Audio 
ID : 528 (0x210)
Menu ID : 1 (0x1)
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Format settings : NBC
Muxing mode : LATM
Codec ID : 17-5
Duration : 1 h 15 min
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 SPF)
Compression mode : Lossy

MPC-HC identifies the audio stream as
Code: [Select]
Audio
ID                             : 528 (0x210)
Menu ID                        : 1 (0x1)
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : HE-AAC / LC
Muxing mode                    : LATM
Codec ID                       : 17
Duration                       : 1 h 15 min
Bit rate mode                  : Variable
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 kHz / 24.0 kHz
Frame rate                     : 23.438 FPS (1024 SPF)
Compression mode               : Lossy

FFMPEG says:
Code: [Select]
Stream #0:1[0x210]: Audio: aac_latm (HE-AAC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp

tsMuxeR cannot even detect the audio stream at all  :o

TS Doctor throws a bucket load of errors (+4000) when trying to fix the stream.
Code: [Select]
ES  ERROR  : Sequence Parameter Set (1) video_full_range_flag byte is 184 and should be 112 !

Smart Cutter identifies the audio stream as "AAC LATM"

...

I'll post back, when (if) I was able to extract the audio stream properly.
If the bit rate is Variable, then what original raw bit rate can we demux 128kbps or 256kbps or what?

Anyway thank you so much everyone for helping with this BS :)

Keep on working on this boys and girls we're almost there :)


 
SimplePortal 1.0.0 RC1 © 2008-2018