My condition looks similar to this post, however, none of the tools suggested works (eac3to, tsMuxeR, etc.). Ffmpeg (4.4.1-full_build-www.gyan.dev) show a list of errors:
The command generate an empty "audio.aac", the command somehow works for stereo tracks if I replace "audio.aac" to "audio.wav", however it generate a container "wav" with an aac_latm content. Some streams has 5.1/7.1 tracks it doesn't decode right, it decodes a copy of the 6 or 8 tracks of the LFE channel.Code:ffmpeg -analyzeduration 0 -probesize 10000000 -i "D:\isdb.ts" -vn -map 0:1 -acodec copy D:\audio.aac [NULL @ 000001bb01b01380] non-existing PPS 0 referenced [h264 @ 000001bb01b01380] non-existing PPS 0 referenced [h264 @ 000001bb01b01380] decode_slice_header error [h264 @ 000001bb01b01380] no frame! [h264 @ 000001bb01b01380] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 000001bb01b01380] decode_slice_header error [h264 @ 000001bb01b01380] no frame! [h264 @ 000001bb01b01380] non-existing PPS 0 referenced ... [mpegts @ 000001bb01afc180] probed stream 3 failed [mpegts @ 000001bb01afc180] PES packet size mismatch [mpegts @ 000001bb01afc180] Packet corrupt (stream = 1, dts = 3301740890). [mpegts @ 000001bb01afc180] stream 2 : no PTS found at end of file, duration not set [mpegts @ 000001bb01afc180] Could not find codec parameters for stream 3 (Unknown: none): unknown codec Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (10000000) options Input #0, mpegts, from 'D:\isdb.ts': Duration: 00:00:51.77, start: 36635.065889, bitrate: 8072 kb/s Stream #0:0[0x200]: Video: h264 (High), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x210]: Audio: aac_latm (HE-AAC), 48000 Hz, stereo, fltp Stream #0:2[0x211]: Audio: aac_latm (HE-AAC), 48000 Hz, stereo, fltp Stream #0:3[0x116]: Unknown: none [adts @ 000001bb05c95040] Only AAC streams can be muxed by the ADTS muxer Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Stream mapping: Stream #0:1 -> #0:0 (copy) Last message repeated 1 times
One thing I noticed, short samples sometimes works with eac3to to demux video only, samples with 20min and over makes some tools to either crash, return error or it doesn't identify anything.
For encoding, so far, this avisynth script works for general recordings, I didn't test with animes yet:
Again, some times I need to demux the video and the 5.1 and 7.1 audio tracks to handle the tracks as it is and not to convert or downmix them.Code:video=LWLibavVideoSource("D:\isdb.ts") audio=LWLibavAudioSource("D:\isdb.ts") AudioDub(video, audio) YadifMod2(order=1,opt=4)
Code:General Complete name : D:\isdb2.ts Format : MPEG-TS Format profile : No PAT/PMT File size : 165 MiB Duration : 2 min 49 s Overall bit rate mode : Variable Overall bit rate : 8 144 kb/s Video ID : 512 (0x200) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, Reference fra : 4 frames Format settings, GOP : M=4, N=32 Duration : 2 min 47 s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 (30000/1001) FPS Standard : Component Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan type, store method : Separated fields Scan order : Top Field First Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio #1 ID : 528 (0x210) Format : AAC LC SBR Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication Commercial name : HE-AAC Format settings : NBC Muxing mode : LATM Codec ID : 2 Duration : 2 min 48 s Bit rate mode : Variable Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz / 24.0 kHz Frame rate : 23.438 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -656 ms Audio #2 ID : 529 (0x211) Format : AAC LC SBR Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication Commercial name : HE-AAC Format settings : NBC Muxing mode : LATM Codec ID : 2 Duration : 2 min 48 s Bit rate mode : Variable Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz / 24.0 kHz Frame rate : 23.438 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -613 ms Text ID : 278 (0x116)-1 Format : ARIB STD B24/B37 Duration : 2 min 49 s Bit rate mode : Constant Delay relative to video : -8 h 0 min Stream size : 0.00 Byte (0%) Language : Portuguese
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
This is a sample with 5.1 audio track, they are not always available.
Audio #1 Brazilian Portuguese.
Audio #2 English.
Audio #3 Audio description for visually impaired people.
Audio #4 Brazilian Portuguese audio in 5.1.
Code:General Complete name : D:\isdb4.ts Format : MPEG-TS Format profile : No PAT/PMT File size : 92.6 MiB Duration : 50 s 858 ms Overall bit rate mode : Variable Overall bit rate : 15.3 Mb/s Video ID : 273 (0x111) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4 Format settings : CABAC / 2 Ref Frames Format settings, CABAC : Yes Format settings, Reference fra : 2 frames Format settings, GOP : M=3, N=15 Duration : 50 s 317 ms Bit rate mode : Variable Maximum bit rate : 24.0 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 (30000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan type, store method : Separated fields Scan order : Top Field First Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio #1 ID : 274 (0x112) Format : AAC LC SBR Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication Commercial name : HE-AAC Format settings : NBC Muxing mode : LATM Codec ID : 5 Duration : 50 s 816 ms Bit rate mode : Variable Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz / 24.0 kHz Frame rate : 23.438 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -293 ms Audio #2 ID : 275 (0x113) Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Muxing mode : LATM Codec ID : 2 Duration : 50 s 858 ms Bit rate mode : Variable Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -345 ms Audio #3 ID : 276 (0x114) Format : AAC LC SBR Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication Commercial name : HE-AAC Format settings : NBC Muxing mode : LATM Codec ID : 5 Duration : 50 s 816 ms Bit rate mode : Variable Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz / 24.0 kHz Frame rate : 23.438 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -293 ms Audio #4 ID : 277 (0x115) Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Muxing mode : LATM Codec ID : 2 Duration : 50 s 837 ms Bit rate mode : Variable Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -345 ms Text ID : 278 (0x116)-1 Format : ARIB STD B24/B37 Duration : 49 s 978 ms Bit rate mode : Constant Delay relative to video : 13 h 15 min Stream size : 0.00 Byte (0%) Language : Portuguese
-
-
Looks like handbrake can handle short files, it identify and sync all audio tracks before converting, however a 1h or 2h recordings it's a "no go".
While trying to demux these files with different tools, I've find one that did the job, mpegts-demux. All stream demuxed, now I can handle it from here.
Thanks.
Similar Threads
-
Demux a Dolby Surround 2.0 file into separate streams?
By Xoanon in forum AudioReplies: 27Last Post: 2nd Jul 2021, 08:21 -
USB TV Tuner for all Regions (ATSC, DTMB, DVB-T/DVB-T2, and ISDB-T)
By SuperLOL in forum DVB / IPTVReplies: 8Last Post: 6th Jan 2020, 20:42 -
How to demux avi?
By desertcoyote in forum AudioReplies: 12Last Post: 26th Jul 2018, 01:38 -
Demux all audio streams with ffmpeg
By leonsk in forum Newbie / General discussionsReplies: 8Last Post: 12th Sep 2017, 14:59 -
TS folder needs a demux all
By loninappleton in forum Newbie / General discussionsReplies: 35Last Post: 11th Dec 2016, 16:25