I have a TS file below with 5 streams (1 video and 4 audio). I want to demux the video stream and only one audio stream. What the best soft I will have to use?
Code:General ID : 1222 (0x4C6) Complete name : C:\000\3. Lib.ts Format : BDAV Format/Info : Blu-ray Video File size : 259 MiB Duration : 2mn 10s Overall bit rate mode : Variable Overall bit rate : 16.7 Mbps Video ID : 273 (0x111) Menu ID : 39104 (0x98C0) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Format settings, GOP : M=3, N=15 Codec ID : 27 Duration : 2mn 10s Bit rate mode : Variable Maximum bit rate : 24.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177 Transfer characteristics : BT.709-5, BT.1361 Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177 Audio #1 ID : 274 (0x112) Menu ID : 39104 (0x98C0) Format : AAC Format/Info : Advanced Audio Codec Format profile : HE-AAC / LC Muxing mode : LATM Codec ID : 17 Duration : 2mn 10s Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz / 24.0 KHz Compression mode : Lossy Delay relative to video : -328ms Language : Portuguese Audio #2 ID : 275 (0x113) Menu ID : 39104 (0x98C0) Format : AAC Format/Info : Advanced Audio Codec Format profile : HE-AAC / LC Muxing mode : LATM Codec ID : 17 Duration : 2mn 10s Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz / 24.0 KHz Compression mode : Lossy Delay relative to video : -340ms Language : Portuguese Audio #3 ID : 276 (0x114) Menu ID : 39104 (0x98C0) Format : AAC Format/Info : Advanced Audio Codec Format profile : HE-AAC / LC Muxing mode : LATM Codec ID : 17 Duration : 2mn 10s Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz / 24.0 KHz Compression mode : Lossy Delay relative to video : -310ms Language : Portuguese Audio #4 ID : 277 (0x115) Menu ID : 39104 (0x98C0) Format : AAC Format/Info : Advanced Audio Codec Format profile : HE-AAC / LC Muxing mode : LATM Codec ID : 17 Duration : 2mn 10s Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz / 24.0 KHz Compression mode : Lossy Delay relative to video : -364ms Language : Portuguese Menu ID : 257 (0x101) Menu ID : 39104 (0x98C0) List : 273 (0x111) (AVC) / 274 (0x112) (AAC, Portuguese) / 275 (0x113) (AAC, Portuguese) / 276 (0x114) (AAC, Portuguese) / 277 (0x115) (AAC, Portuguese) / 278 (0x116) () Language : / Portuguese / Portuguese / Portuguese / Portuguese
+ Reply to Thread
Results 1 to 30 of 35
-
-
When I use tsRemux choosing only the audio file (see the attached file), the extracted stream is in MPEG Audio format, It is different for the original in TS file, that was AAC.
Specs. of the extracted audio:
Code:General ID : 1 (0x1) Complete name : C:\000\audio19.aac Format : BDAV Format/Info : Blu-ray Video File size : 5.27 MiB Duration : 2mn 10s Overall bit rate : 339 Kbps Maximum Overall bit rate : 35.5 Mbps Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : MPEG Audio Codec ID : 4 Duration : 2mn 10s Compression mode : Lossy
-
Baldrick already replied about demuxing.
When I use tsRemux choosing only the audio file (see the attached file), the extracted stream is in MPEG Audio format, It is different for the original in TS file, that was AAC.
Video
Format : BDAV Format/Info : Blu-ray Video
Audio Format : AAC Format/Info : Advanced Audio Codec Format profile : HE-AAC / LC
This TS is not from BluRay.
When did AAC get divorced with MP4? It looks like MP4 container renamed to TS - A fox under lion skin. or muxed into a wrong container. It would not be a fault of tsRemux looking for lions and not recognizing a fox underneath.Last edited by enim; 26th Jun 2013 at 09:51.
-
Incorrect. AAC has never been married to MP4
, to begin with.
Especially because it was actually born in the "MPEG-2 World"
https://forum.videohelp.com/threads/329917-MPC-HC-with-a-MPEG-4-TS-file?p=2196284&viewf...=1#post2196284 -
Incorrect. AAC has never been married to MP4
May be the all babies without marriage? -
there are too many MP4Box versions floating around, some are buggy, some are too buggy and a few works.
in your case i would rather say TS improperly muxed. As error says IsoMedia file is truncated, I guess screwed up headers.
Try converting your TSfile using some freebies - editors or convertors that offers you Video stream copy and convert only audio stream(s) (selected with stream id) to either DTS or AC3. If you have to... have to convert video stream to try to maintain same as your source: Maximum bit rate : 24.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 fps.Last edited by enim; 26th Jun 2013 at 10:37.
-
You can also try mkvtoolnix (mkvmergegui), open the ts, disable the audio tracks, make a new mkv.
-
-
This .TS file was generated by a HDTV receiver model ZBT-650n.
Bladrick suggestion for Moritz Bunkus - mkvmerge GUI (mmg) looks appealing as it can do more than muxing.
Hopefully you can select Video and selected Audio (AAC) - as is to re-mux into MKV.
mkvmerge --identify-verbose "C:\000\3. Lib.ts", for more information.
mkvextract tracks "C:\000\3. Lib.ts" --raw 1:video.h264 2:audio2.aac 3:audio3.aac 4:audio4.aac
Where, the track IDs must be the same as the ones output by mkvmerge --identify option.
Roglopes, I would like you to post your inputs and feedback once you solve this puzzle.Last edited by enim; 26th Jun 2013 at 13:21.
-
I got that same error in tsMuxer when I had an m2ts file with the extension .ts. After I renamed it to .m2ts tsMuxer handled it fine. That may not be the exact extent of your file but I too believe it's probably as simple as a misidentified extent.
There's not much to do but then I can't do much anyway. -
-
ffmpeg -i input.ts -map 0:4 -acodec copy output.aac
Try converting your TSfile using some freebies - editors or convertors that offers you Video stream copy and convert only audio stream(s) (selected with stream id) to either DTS or AC3. If you have to... have to convert video stream to try to maintain same as your source: Maximum bit rate : 24.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 fps.
-
4th audio stream
0.0 is usually 1st video stream
0.1 is usually 1st audio stream
0.2 is usually 2nd audio stream
.
.
You can use ffmpeg -i input.ext and it will print the stream information for that specific file, according to ffmpeg (other programs might use different numbering schemes for track id or numbers) -
thanks poisondeathrey,
I have absolute zero experience with ffmpeg, trying to read ffmpeg documentaion.
reglopes,
Are You able to play sourceVideo.TS file in any media player?
try something like this : ffmpeg -i input.ts -map 0:4 -acodec copy -vcodec copy -formats mkv (or mp4) output.mkv (or output.mp4)
the last resource:
Try converting your TSfile using some freebies - editors or convertors that offers you Video stream copy and convert only audio stream(s) (selected with stream id) to either DTS or AC3. If you have to... have to convert video stream to try to maintain same as your source: Maximum bit rate : 24.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 fps.Last edited by enim; 26th Jun 2013 at 14:32.
-
If you can't get ffmpeg to demux it properly (sometimes it doesn't write the proper header information) , try demuxing with eac3to
eac3to input.ts -demux
This will demux all tracks, to get individual tracks you have to use the stream id (it sometimes different than ffmpeg's numbering, it might be 4 or 5 for example , you have to look at the info given by eac3to for the precise track numbering)
Code:eac3to input.ts 4:output.aac
-
It works, using eac3to I can extract the audio stream.
The problem now is when I'll create a mkv file, the video was accepted by the audio not.
mkvMerge:
Code:Command line used: "C:\Program Files (x86)\MKVToolNix\mkvmerge.exe" --output-charset UTF-8 --identify-for-mmg "C:\000\output001 DELAY -613ms.aac" Output: Error: File C:\000\output001 DELAY -613ms.aac has unknown type. Please have a look at the supported file types ('mkvmerge --list-types') and contact the author Moritz Bunkus <moritz@bunkus.org> if your file type is supported but not recognized properly.
-
Because your audio is he-aac, I think you need to include the --aac-is-sbr 1 flag in mkvmerge
You asked how to demux it, not how to put in mkv container, but it's probably easier to do with ffmpeg in 1 step
ffmpeg -i input.ts -map 0:0 -vcodec copy -map 0:4 -acodec copy output.mkv -
or he can video stream copy and use proper audio encoder (codec) available like dts or ac3 in ffmpeg and get a valid mkv with proper valid audio stream. something like ffmpeg -i input.ts -map 0:0 -vcodec copy -map 0:4 -acodec dts (or ac3) [audio encoder parameters] output.mkv
But, OP never said anything about
Are You able to play sourceVideo.TS file in any media player?
Is he able to decode source audio stream successfully? -
Similar Threads
-
how to demux mkv file?
By shun in forum EditingReplies: 10Last Post: 24th Mar 2014, 07:31 -
demux avi, mkv file
By volam1 in forum EditingReplies: 19Last Post: 4th Oct 2013, 07:03 -
I have a .mpg file that I need to demux I want the audio..
By J Tinsby in forum Video ConversionReplies: 6Last Post: 23rd Jun 2011, 18:20 -
I want to demux an .mp4 file and convert to a microsoft dv .avi file
By Canon GL-2 Guy in forum Newbie / General discussionsReplies: 4Last Post: 13th Sep 2009, 21:42 -
demux karaoke iso file
By volam in forum EditingReplies: 0Last Post: 14th May 2009, 09:38