i'm having a really strange case.Code:N_m3u8dl-re https://r.cdn-ncplus.pl/vod/store01/ALE_44120402/_/hd4-hssdrm02.ism/Manifest --key 34d572450b2342c8997520fa9ea95fcd:137bbc22fc85123f2198095bf0241416 -M format=mp4 --save-name kot
there are 2 audio tracks:
and when i try to grab the first one i get muxing errorsCode:23:33:47.429 INFO : Aud *CENC Polski | 192 Kbps | ec-3 | pol | 6CH | 184 Segments | ~06m07s 23:33:47.431 INFO : Aud *CENC Polski | 128 Kbps | mp4a.40.2 | pol | 2CH | 184 Segments | ~06m08s
any clues?Code:23:41:14.040 WARN : [aac @ 000001943c2cd3c0] Audio object type 0 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. 23:41:14.044 WARN : [mov,mp4,m4a,3gp,3g2,mj2 @ 000001943e77f300] Failed to open codec in avformat_find_stream_info 23:41:14.045 WARN : [aac @ 000001943c2cd3c0] Audio object type 0 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. 23:41:14.046 WARN : [mov,mp4,m4a,3gp,3g2,mj2 @ 000001943e77f300] Could not find codec parameters for stream 0 (Audio: aac (ec-3 / 0x332D6365), 96000 Hz, 0 channels, fltp, 192 kb/s): unspecified number of channels 23:41:14.048 WARN : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options 23:41:14.049 WARN : [mp4 @ 000001943e6c43c0] track 1: codec frame size is not set 2
i mean i know i can use the second audio and it works fine but i'd like to know what is the problem with this (it's decoded fine, i checked the file in cache dir and it's playable)
also how can i force N_M3u8DL-RE to grab the second track from command line ?
tried with(and with all those options separate)Code:-sa codec="mp4a.40.2":lang="pol":br=128|channels="2"
but it always downloads the first one
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 7 of 7
-
Last edited by monk87; 27th Dec 2025 at 18:02.
-
for mux error the error is clear from output log. update ffmpeg
if does not work, and also about your audio error (second issue), just for 1 video only, forget your trouble, use simply clever-FFmpeg-GUI and mux video, audio 1 and audio 2 (or just video+audio 1 only)
on end, about issue on second audio, try only -sa codec="mp4a.40.2" -
well this is pretty fucked up
1. clever ffmpeg gui is not working for this audio file (and i have newest ffmpeg windows build from here https://github.com/BtbN/FFmpeg-Builds/releases

2. adding codec also fails because it downloads the 6ch audio

foobar is able to play it, it says it's "ATSC A/52B (AC-3, E-AC-3)" in codec info
https://gofile.io/d/cDuWCP here's audio/video & manifest just in caseLast edited by monk87; 28th Dec 2025 at 07:17.
-
The header of the eac3 file has been manipulated.
Here is a working version you can mux. -
Get the second audio track
Code:N_m3u8DL-RE https://r.cdn-ncplus.pl/vod/store01/ALE_44120402/_/hd4-hssdrm02.ism/Manifest --key 34d572450b2342c8997520fa9ea95fcd:137bbc22fc85123f2198095bf0241416 -sv best --select-audio bwMax=128 -mt -M mp4 --save-name kot
-
ok after checking with mp4info
it turned out to be a isml container.Code:File: major brand: isml minor version: 1 compatible brand: iso5 compatible brand: iso6 compatible brand: piff compatible brand: msdh fast start: yes Movie: duration: 3680000000 (movie timescale units) duration: 368000 (ms) time scale: 10000000 fragments: yes Found 1 Tracks Track 1: flags: 7 ENABLED IN-MOVIE IN-PREVIEW id: 3 type: Audio duration: 368000 ms language: pol media: sample count: 0 timescale: 10000000 duration: 3680000000 (media timescale units) duration: 368000 (ms) bitrate (computed): 192.000 Kbps sample count with fragments: 11500 duration with fragments: 3680000000 duration with fragments: 368000 (ms) Sample Description 0 Coding: ec-3 (Dolby Digital Plus (Enhanced AC-3)) Codec String: ec-3 Sample Rate: 48000 Sample Size: 16 Channels: 2 E-AC-3 Data Rate: 0 E-AC-3 Substream 0: fscod = 0 bsid = 0 bsmod = 0 acmod = 0 lfeon = 0 num_dep_sub = 0 chan_loc = 0 Dolby Digital Plus with Dolby Atmos: No E-AC-3 dec3 payload: []
so what i came up with is a fix with mp4box
and this fixed file can be merged with mkvmerge without any problemCode:fixed_audio = audio_path[:-5] + "_fixed.ec3" mp4box_cmd = [ "MP4Box", "-raw", "3", audioStream.demuxedFile, "-out", fixed_audio ] result = subprocess.run( mp4box_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True )
thanks for all the other ideasCode:Muxing with mkvmerge (EC-3 / MP4 container)... ['C:\\temp/bin/mkvmerge.exe', '-o', 'C:\\temp/output\\Kot.mkv', '--no-audio', 'C:\\temp/cache\\80081af8dde2d5777eaccf5d925fafea\\demuxed_video.mp4', '--no-video', '--no-subtitles', '--audio-tracks', '0', '--language', '0:pol', 'EC-3_pol_demuxed_audio_fixed.ec3'] mkvmerge v63.0.0 ('Everything') 32-bit 'C:\temp\cache\80081af8dde2d5777eaccf5d925fafea\demuxed_video.mp4': Using the demultiplexer for the format 'QuickTime/MP4'. 'EC-3_pol_demuxed_audio_fixed.ec3': Using the demultiplexer for the format 'AC-3'. 'C:\temp\cache\80081af8dde2d5777eaccf5d925fafea\demuxed_video.mp4' track 0: Using the output module for the format 'AVC/H.264'. 'EC-3_pol_demuxed_audio_fixed.ec3' track 0: Using the output module for the format 'AC-3'. The file 'C:\temp\output\Kot.mkv' has been opened for writing. 'C:\temp\cache\80081af8dde2d5777eaccf5d925fafea\demuxed_video.mp4' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1920/1080. Progress: 100% The cue entries (the index) are being written... Multiplexing took 1 second.
Similar Threads
-
MakeMKV pulls wrong or no Audio Track
By slammer120 in forum Blu-ray RippingReplies: 5Last Post: 21st Feb 2024, 12:30 -
M3u8: Audio track or video track but never both?
By undercash in forum Newbie / General discussionsReplies: 0Last Post: 21st Feb 2023, 07:49 -
Audio track and subtitle track in DVD Styler
By JPM44 in forum Authoring (DVD)Replies: 3Last Post: 12th Nov 2022, 12:20 -
Edit Video Track Separately From Audio Track in VideoPad
By meandersleut in forum EditingReplies: 0Last Post: 12th Sep 2022, 13:11 -
Strange VHS audio sync drift vs. the other digital audio track
By vlp_007 in forum AudioReplies: 5Last Post: 24th Nov 2021, 15:32


Quote