Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not find codec parameters for stream 0" error. #579

Open
tranthanhbinh2603 opened this issue Jan 4, 2025 · 1 comment
Open

"Could not find codec parameters for stream 0" error. #579

tranthanhbinh2603 opened this issue Jan 4, 2025 · 1 comment

Comments

@tranthanhbinh2603
Copy link

There is 1 video (and it seems to be the only exception) that has this error, and I wonder if you can fix it?
Here is the log:

21:09:13.327 INFO : Output is redirected, ANSI colors are cleared.
21:09:13.375 INFO : N_m3u8DL-RE (Beta version) 20241203
21:09:13.376 INFO : Loading URL: https://pitneybowes.udemy.com/assets/603586/files/2013-09-27_16-40-55-82f5fcd391f6c8a3be3b263968a3fefc/2/aa00bb9879d62a848551a08be633cfdfcd40.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiMjAxMy0wOS0yN18xNi00MC01NS04MmY1ZmNkMzkxZjZjOGEzYmUzYjI2Mzk2OGEzZmVmYy8yLyIsImV4cCI6MTczNjAxNTkyNH0.Pz6I2zZNkPyJ4GxQtxBMXB99lKloSF9OWfMEueWyFFk&provider=cdn77&v=1
21:09:14.271 INFO : Content Matched: HTTP Live Streaming
21:09:14.271 INFO : Parsing streams...
21:09:14.271 WARN : Master List detected, try parse all streams
21:09:14.277 WARN : Writing meta json
21:09:14.280 INFO : Extracted, there are 5 streams, with 5 basic streams, 0 audio streams, 0 subtitle streams
21:09:14.280 INFO : Vid 1920x1080 | 319 Kbps | 30 | avc1.4d400c,mp4a.40.5
21:09:14.280 INFO : Vid 1280x720 | 244 Kbps | 30 | avc1.4d400c,mp4a.40.5
21:09:14.280 INFO : Vid 1024x576 | 219 Kbps | 30 | avc1.4d400c,mp4a.40.5
21:09:14.280 INFO : Vid 768x432 | 193 Kbps | 30 | avc1.4d400c,mp4a.40.5
21:09:14.280 INFO : Vid 640x360 | 175 Kbps | 30 | avc1.4d400c,mp4a.40.5
21:09:14.280 INFO : Parsing streams...
21:09:14.796 INFO : Selected streams:
21:09:14.797 INFO : Vid 1920x1080 | 319 Kbps | 30 | avc1.4d400c,mp4a.40.5 | 21 Segments | ~02m06s
21:09:14.797 WARN : Writing meta json
21:09:14.799 INFO : Save Name: 566850
21:09:14.800 WARN : MuxAfterDone is detected, binary merging is automatically enabled
21:09:14.804 INFO : Start downloading...Vid 1920x1080 | 319 Kbps | 30 | avc1.4d400c,mp4a.40.5
                                                                                          
Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 0/21 0.00% - 0.00Bps --:--:--

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 0/21 0.00% - 0.00Bps(1) --:--:--

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 0/21 0.00% - 95.34KBps --:--:-- 

21:09:16.434 WARN : Reading media info...

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 0/21 0.00% - 95.34KBps --:--:-- 

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 1/21 4.76% - 95.34KBps 00:00:32 

21:09:16.501 INFO : [0x100]: Video, h264 ([27][0][0][0])

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 1/21 4.76% - 95.34KBps 00:00:32 

21:09:16.502 INFO : [0x101]: Audio, aac (LC) ([15][0][0][0]), 64 kb/s

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 1/21 4.76% - 95.34KBps 00:00:32 

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 1/21 4.76% - 95.34KBps 00:00:32 

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 2/21 9.52% - 95.34KBps 00:00:20 

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 2/21 9.52% 413.45KB/4.24MB 318.11KBps 00:00:20

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 3/21 14.29% 413.45KB/4.24MB 318.11KBps 00:00:15

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 5/21 23.81% 413.45KB/4.24MB 318.11KBps 00:00:08

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 7/21 33.33% 413.45KB/4.24MB 318.11KBps 00:00:06

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 19/21 90.48% 4.77MB/5.28MB 4.37MBps 00:00:00   

21:09:18.167 INFO : Binary merging...

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 19/21 90.48% 4.77MB/5.28MB 4.37MBps 00:00:00   

Vid 1920x1080 | 319 Kbps | 30 ------------------------------ 21/21 100.00% 4.81MB - 00:00:00                
21:09:18.196 WARN : 566850.ts
21:09:18.196 WARN : Muxing to 566850.MUX.mp4
21:09:18.243 WARN : [mpegts @ 000001d45c10d8c0] start time for stream 0 is not set in estimate_timings_from_pts
21:09:18.244 WARN : [mpegts @ 000001d45c10d8c0] Packet corrupt (stream = 0, dts = 10387322).
21:09:18.244 WARN : [mpegts @ 000001d45c10d8c0] Packet corrupt (stream = 0, dts = 10927322).
21:09:18.244 WARN : [mpegts @ 000001d45c10d8c0] stream 0 : no TS found at start of file, duration not set
21:09:18.244 WARN : [mpegts @ 000001d45c10d8c0] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
21:09:18.244 WARN : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
21:09:18.245 WARN : [mp4 @ 000001d45c17c740] dimensions not set
21:09:18.245 WARN : [out#0/mp4 @ 000001d45c17c600] Could not write header (incorrect codec parameters ?): Invalid argument
21:09:18.252 ERROR: Mux failed
21:09:18.252 ERROR: Failed

If you need video, mpd link, decryption key or any more information, please reply because mpd link can only live for 2 hours. I live in GMT+7 time zone so this can be a disadvantage if we are not in the same time zone.

@tranthanhbinh2603
Copy link
Author

Sorry for the confusion, I thought it was an mpd link, but it turned out to be an m3u8 link. This link doesn't need a decryption key.

I'll give you the arguments I used:

N_m3u8DL-RE "{link_m3u8}" --save-name {id_lecture} --save-dir "{path i save}" -mt -M mp4 -sv best -sa best --del-after-done --no-log --thread-count 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant