Since when raiplay started to block access to .mp4 files in their sites (about three months ago; when they were accessible I downloaded videos directly to avoid the harassment of reconstructing .mp4 files from .m3u8) I've been experimenting with several programs in order to download from manifest. I've noticed a strange fact: with yt-dlp, youtube-dl, ffmpeg and so on there is no problem, anyway I cannot make N_m3u8DL-RE working. I'm curious why, as I like to use this software. As an example, please look at the following video https://www.raiplay.it/video/2022/10/Flesh-and-Blood-S1E1----164d288a-5fcd-4024-997d-f...e732705ab.html, which inspecting gives https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_.../playlist.m3u8. The N_m3u8DL-RE log is the following
Another thing: subtitles are present (.srt format), anyway N_m3u8DL-RE doesn't recognize them.Code:N_m3u8DL-RE -M format=mp4 "https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_root/SUBTITLE_multiaudio/AvcnG04SYgtYaFSOUT4TBweeqqEEqualeeqqEEqual_,1200,1800,2400/playlist.m3u8" --tmp-dir t:\ --save-dir t:\ --save-name "fleshblood" 20:27:34.518 INFO : N_m3u8DL-RE (Beta version) 20230615 20:27:34.577 INFO : Loading URL: https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_root/SUBTITLE_multiaudio/AvcnG04SYgtYaFSOUT4TBweeqqEEqualeeqqEEqual_,1200,1800,2400/playlist.m3u8 20:27:35.425 INFO : New version detected! v0.2.0-beta 20:27:36.543 INFO : Content Matched: HTTP Live Streaming 20:27:36.545 INFO : Parsing streams... 20:27:36.547 WARN : Master List detected, try parse all streams 20:27:36.555 WARN : Writing meta json 20:27:36.564 INFO : Extracted, there are 6 streams, with 3 basic streams, 3 audio streams, 0 subtitle streams 20:27:36.565 INFO : Vid 1280x720 | 2344 Kbps 20:27:36.566 INFO : Vid 1024x576 | 1758 Kbps 20:27:36.567 INFO : Vid 768x432 | 1288 Kbps 20:27:36.567 INFO : Aud aac | Italiano | Italiano 20:27:36.568 INFO : Aud aac | Audiodescrizione | Audiodescrizione 20:27:36.569 INFO : Aud aac | VO | VO 20:28:03.061 INFO : Parsing streams... 20:28:04.840 INFO : Selected streams: 20:28:04.841 INFO : Vid 1280x720 | 2344 Kbps | 277 Segments | ~46m10s 20:28:04.842 INFO : Aud aac | Italiano | Italiano | 277 Segments | ~46m09s 20:28:04.843 INFO : Aud aac | Audiodescrizione | Audiodescrizione | 277 Segments | ~46m09s 20:28:04.844 INFO : Aud aac | VO | VO | 277 Segments | ~46m09s 20:28:04.845 WARN : Writing meta json 20:28:04.868 INFO : Save Name: fleshblood 20:28:04.872 INFO : Start downloading...Vid 1280x720 | 2344 Kbps 20:28:19.987 WARN : Reading media info... 20:28:21.332 INFO : [0x102]: Data, timed_id3 (ID3 ) 20:28:21.340 INFO : [0x100]: Video, h264 (Main) ([27][0][0][0]), 1280x720, 25 fps 21:22:06.122 INFO : ffmpeg merging... 21:22:07.457 WARN : [mpegts @ 000002593a0db880] start time for stream 0 is not set in estimate_timings_from_pts 21:23:13.699 INFO : Start downloading...Aud aac | Italiano | Italiano 21:23:16.249 WARN : Reading media info... 21:23:16.671 INFO : NaN: Audio, aac (LC), 116 kb/s 21:25:08.632 INFO : ffmpeg merging... 21:25:08.976 WARN : [aac @ 0000021cefa4a440] Estimating duration from bitrate, this may be inaccurate 21:25:11.702 INFO : Start downloading...Aud aac | Audiodescrizione | Audiodescrizione 21:25:12.750 WARN : Reading media info... 21:25:12.834 INFO : NaN: Audio, aac (LC), 115 kb/s 21:26:52.962 INFO : ffmpeg merging... 21:26:53.284 WARN : [aac @ 0000019f570aa440] Estimating duration from bitrate, this may be inaccurate 21:26:56.126 INFO : Start downloading...Aud aac | VO | VO 21:26:56.731 WARN : Reading media info... 21:26:56.802 INFO : NaN: Audio, aac (LC), 122 kb/s 21:28:46.468 INFO : ffmpeg merging... 21:28:46.834 WARN : [aac @ 000001dc7ea6b440] Estimating duration from bitrate, this may be inaccurate 21:29:00.838 WARN : fleshblood.mp4 21:29:00.840 WARN : fleshblood.Italiano.m4a 21:29:00.842 WARN : fleshblood.Audiodescrizione.m4a 21:29:00.843 WARN : fleshblood.VO.m4a 21:29:00.844 WARN : Muxing to t:\fleshblood.MUX.mp4 21:29:02.150 WARN : Stream map '0:1' matches no streams. 21:29:02.152 WARN : To ignore this, add a trailing '?' to the map. 21:29:02.160 ERROR: Mux failed 21:29:02.161 ERROR: Failed
What do you think about it, my friends? Thank you very, very much, in advance, for all kind help and explanations. Have a great evening![]()
+ Reply to Thread
Results 1 to 18 of 18
-
-
Using the same folder for both the temp and the save folder doesn't seem the smartest of moves though:
Code:--tmp-dir t:\ --save-dir t:\
Code:N_m3u8DL-RE -M format=mp4 "https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_root/SUBTITLE_multiaudio/AvcnG04SYgtYaFSOUT4TBweeqqEEqualeeqqEEqual_,1200,1800,2400,3600,5000/playlist.m3u8"
-
-
Thank you so very much for advice and help. I've changed the Temp dir and I've left only the save dir on external hd, but unfortunately I still get an error. Please see the log
Code:N_m3u8DL-RE020 -M format=mp4 "https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_root/SUBTITLE_multiaudio/AvcnG04SYgtYaFSOUT4TBweeqqEEqualeeqqEEqual_,1200,1800,2400/playlist.m3u8" --save-dir t:\ --save-name "fleshblood_2" 20:17:42.540 INFO : N_m3u8DL-RE (Beta version) 20230628 20:17:42.631 INFO : Loading URL: https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_root/SUBTITLE_multiaudio/AvcnG04SYgtYaFSOUT4TBweeqqEEqualeeqqEEqual_,1200,1800,2400/playlist.m3u8 20:17:43.849 INFO : Content Matched: HTTP Live Streaming 20:17:43.902 INFO : Parsing streams... 20:17:43.904 WARN : Master List detected, try parse all streams 20:17:43.913 WARN : Writing meta json 20:17:43.923 INFO : Extracted, there are 6 streams, with 3 basic streams, 3 audio streams, 0 subtitle streams 20:17:43.925 INFO : Vid 1280x720 | 2344 Kbps 20:17:43.926 INFO : Vid 1024x576 | 1758 Kbps 20:17:43.928 INFO : Vid 768x432 | 1288 Kbps 20:17:43.947 INFO : Aud aac | Italiano | Italiano 20:17:43.948 INFO : Aud aac | Audiodescrizione | Audiodescrizione 20:17:43.950 INFO : Aud aac | VO | VO 20:17:54.023 INFO : Parsing streams... 20:17:55.947 INFO : Selected streams: 20:17:55.949 INFO : Vid 1280x720 | 2344 Kbps | 277 Segments | ~46m10s 20:17:55.951 INFO : Aud aac | Italiano | Italiano | 277 Segments | ~46m09s 20:17:55.952 INFO : Aud aac | Audiodescrizione | Audiodescrizione | 277 Segments | ~46m09s 20:17:55.952 INFO : Aud aac | VO | VO | 277 Segments | ~46m09s 20:17:55.953 WARN : Writing meta json 20:17:55.967 INFO : Save Name: fleshblood_2 20:17:55.968 WARN : MuxAfterDone is detected, binary merging is automatically enabled 20:17:55.969 INFO : Start downloading...Vid 1280x720 | 2344 Kbps 20:18:00.905 WARN : Reading media info... 20:18:02.440 INFO : [0x102]: Data, timed_id3 (ID3 ) 20:18:02.447 INFO : [0x100]: Video, h264 (Main) ([27][0][0][0]), 1280x720, 25 fps 20:23:13.523 INFO : Binary merging... 20:24:06.404 INFO : Start downloading...Aud aac | Italiano | Italiano 20:24:08.662 WARN : Reading media info... 20:24:09.055 INFO : NaN: Audio, aac (LC), 116 kb/s 20:24:31.072 INFO : Binary merging... 20:24:35.315 INFO : Start downloading...Aud aac | Audiodescrizione | Audiodescrizione 20:24:35.553 WARN : Reading media info... 20:24:35.730 INFO : NaN: Audio, aac (LC), 115 kb/s 20:24:55.891 INFO : Binary merging... 20:25:06.480 INFO : Start downloading...Aud aac | VO | VO 20:25:06.715 WARN : Reading media info... 20:25:06.805 INFO : NaN: Audio, aac (LC), 122 kb/s 20:25:26.842 INFO : Binary merging... 20:25:30.789 WARN : fleshblood_2.ts 20:25:30.790 WARN : fleshblood_2.Italiano.ts 20:25:30.792 WARN : fleshblood_2.Audiodescrizione.ts 20:25:30.793 WARN : fleshblood_2.VO.ts 20:25:30.794 WARN : Muxing to fleshblood_2.MUX.mp4 20:25:31.178 WARN : [mpegts @ 0000018ff5c4b740] start time for stream 0 is not set in estimate_timings_from_pts 20:25:31.187 WARN : [aac @ 0000018ff6060700] Estimating duration from bitrate, this may be inaccurate 20:25:31.214 WARN : [aac @ 0000018ff5c89080] Estimating duration from bitrate, this may be inaccurate 20:25:31.231 WARN : [aac @ 0000018ff625da80] Estimating duration from bitrate, this may be inaccurate 20:25:31.304 WARN : [mp4 @ 0000018ff63dcc80] Could not find tag for codec timed_id3 in stream #0, codec not currently supported in container 20:25:31.309 WARN : Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument 20:25:31.323 ERROR: Mux failed 20:25:31.324 ERROR: Failed
-
The subtitles are outside the playlist, which is why they are not found. To find them easily, just install an extension to better format the JSON in the browser like this one for chrome https://chromewebstore.google.com/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa
and then replace the .html with .json at the video link
Code:https://www.raiplay.it/video/2022/10/Flesh-and-Blood-S1E1----164d288a-5fcd-4024-997d-f70e732705ab.json
right-click on the link and
save as
The MUX fails simply because unfortunately Raiplay has recently made changes, and whatever you download has the same extension .ts, so whatever program you use to mux with N_m3u8DL-RE will always make an error because it won't shoot which is the video and which is the audio, you will have to mux it yourself with another program, I recommend MKVToolNix GUI, or rename the file extensions to mp4 for the video and aac for the audio and mux them with the command line with ffmpeg. Sometimes audio and video are in one .mp4 file. Rarely the audio has to be corrected with a delay of +200ms.Last edited by Goku73; 15th May 2024 at 13:55.
-
Thank you very much for answer and all your efforts to help, I've used literally your command with the last version of N_m3u8DL-RE and last binaries of ffmpeg, but the problem is still present. Please see the log
Code:18:51:52.423 WARN : fleshbloodult.ts 18:51:52.434 WARN : fleshbloodult.Italiano.ts 18:51:52.436 WARN : fleshbloodult.Audiodescrizione.ts 18:51:52.437 WARN : fleshbloodult.VO.ts 18:51:52.439 WARN : Muxing to fleshbloodult.MUX.mp4 18:51:52.906 WARN : [mpegts @ 00000205bba8bf40] start time for stream 0 is not set in estimate_timings_from_pts 18:51:52.978 WARN : [aac @ 00000205bba94840] Estimating duration from bitrate, this may be inaccurate 18:51:52.981 WARN : [aac @ 00000205bc2b00c0] Estimating duration from bitrate, this may be inaccurate 18:51:52.984 WARN : [aac @ 00000205bba91180] Estimating duration from bitrate, this may be inaccurate 18:51:53.213 WARN : [mp4 @ 00000205bba92fc0] Could not find tag for codec timed_id3 in stream #0, codec not currently supported in container 18:51:53.253 WARN : Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument 18:51:53.291 ERROR: Mux failed 18:51:53.295 ERROR: Failed
-
As lomero said, since this is not a DRM-protected video, yt-dlp is definitely the best way to go here. Anyway, if you still want to solve the issue (as in the future you might need to do this with a protected video), I suggest you specifically use the N_m3u8DL-RE binary from here and the ffmpeg binary from here.
If that still doesn't fix it, then there must be something wrong with your system configuration (possibly cmd is using a different ffmpeg build somewhere else in your system). At that point you can either investigate the issue (run: `where ffmpeg`) or use a different muxer like mkvmerge:
Code:-M format=mkv:muxer=mkvmerge
-
Thank you, thank you so very much for all precious help and advice. I took the binaries from links you gave me and, to be sure to use the right ffmpeg I used the command --ffmpeg-binary-path to pick up the last version. No need to say now everything worked! Thanks, again, for all your kind help. Did you get the following warnings, too?
Code:17:37:52.213 WARN : [mpegts @ 000001fa5a69c040] start time for stream 0 is not set in estimate_timings_from_pts 17:37:52.226 WARN : [aac @ 000001fa5ab10500] Estimating duration from bitrate, this may be inaccurate 17:37:52.230 WARN : [aac @ 000001fa5a6de300] Estimating duration from bitrate, this may be inaccurate 17:37:52.233 WARN : [aac @ 000001fa5b31e140] Estimating duration from bitrate, this may be inaccurate
Code:17:18:27.035 INFO : N_m3u8DL-RE (Beta version) 20231113 17:18:27.201 INFO : Loading URL: https://streamcdnr7-b70cb04c54ab478189e9d8ee45637b13.msvdn.net/ostr1/podcastcdn/teche_root/SUBTITLE_multiaudio/AvcnG04SYgtYaFSOUT4TBweeqqEEqualeeqqEEqual_,1200,1800,2400,3600,5000/playlist.m3u8 17:18:28.669 INFO : Content Matched: HTTP Live Streaming 17:18:28.703 INFO : Parsing streams... 17:18:28.706 WARN : Master List detected, try parse all streams 17:18:28.716 WARN : Writing meta json 17:18:28.725 INFO : Extracted, there are 7 streams, with 4 basic streams, 3 audio streams, 0 subtitle streams 17:18:28.728 INFO : Vid 1920x1080 | 5210 Kbps 17:18:28.733 INFO : Vid 1440x810 | 3516 Kbps 17:18:28.736 INFO : Vid 1280x720 | 2344 Kbps 17:18:28.770 INFO : Vid 1024x576 | 1758 Kbps 17:18:28.776 INFO : Aud aac | Italiano | Italiano 17:18:28.777 INFO : Aud aac | Audiodescrizione | Audiodescrizione 17:18:28.779 INFO : Aud aac | VO | VO 17:18:39.542 INFO : Parsing streams... 17:18:40.964 INFO : Selected streams: 17:18:40.968 INFO : Vid 1920x1080 | 5210 Kbps | 277 Segments | ~46m10s 17:18:40.974 INFO : Aud aac | Italiano | Italiano | 277 Segments | ~46m09s 17:18:40.977 INFO : Aud aac | Audiodescrizione | Audiodescrizione | 277 Segments | ~46m09s 17:18:40.979 INFO : Aud aac | VO | VO | 277 Segments | ~46m09s 17:18:40.981 WARN : Writing meta json 17:18:41.008 INFO : Save Name: fleshbloodult_2 17:18:41.010 WARN : MuxAfterDone is detected, binary merging is automatically enabled 17:18:41.014 INFO : Start downloading...Vid 1920x1080 | 5210 Kbps 17:18:45.430 WARN : Reading media info... 17:18:45.545 INFO : [0x102]: Data, timed_id3 (ID3 ) 17:18:45.549 INFO : [0x100]: Video, h264 (High) ([27][0][0][0]), 1920x1080, 25 fps 17:33:17.820 INFO : Binary merging... 17:36:14.144 INFO : Start downloading...Aud aac | Italiano | Italiano 17:36:16.219 WARN : Reading media info... 17:36:20.488 INFO : NaN: Audio, aac (LC), 116 kb/s 17:36:52.714 INFO : Binary merging... 17:36:55.242 INFO : Start downloading...Aud aac | Audiodescrizione | Audiodescrizione 17:36:55.566 WARN : Reading media info... 17:36:55.667 INFO : NaN: Audio, aac (LC), 115 kb/s 17:37:21.039 INFO : Binary merging... 17:37:23.458 INFO : Start downloading...Aud aac | VO | VO 17:37:23.842 WARN : Reading media info... 17:37:23.918 INFO : NaN: Audio, aac (LC), 122 kb/s 17:37:48.913 INFO : Binary merging... 17:37:51.436 WARN : fleshbloodult_2.ts 17:37:51.439 WARN : fleshbloodult_2.Italiano.ts 17:37:51.441 WARN : fleshbloodult_2.Audiodescrizione.ts 17:37:51.443 WARN : fleshbloodult_2.VO.ts 17:37:51.445 WARN : Muxing to fleshbloodult_2.MUX.mp4 17:37:52.213 WARN : [mpegts @ 000001fa5a69c040] start time for stream 0 is not set in estimate_timings_from_pts 17:37:52.226 WARN : [aac @ 000001fa5ab10500] Estimating duration from bitrate, this may be inaccurate 17:37:52.230 WARN : [aac @ 000001fa5a6de300] Estimating duration from bitrate, this may be inaccurate 17:37:52.233 WARN : [aac @ 000001fa5b31e140] Estimating duration from bitrate, this may be inaccurate 17:40:32.384 WARN : Cleaning files... 17:40:32.505 WARN : Rename to fleshbloodult_2.mp4 17:40:32.562 INFO : Done
As for encrypted streams, I've tested and there's no problem, in such case the manifest is in .mpd form and N_m3u8DL-RE worked. Have a great evening -
-
good evening, can anyone help me with this link? https://www.raiplay.it/video/2017/10/Sotto-copertura-La-cattura-di-Zagaria-S2E1-1cbd0e...339f7028e.html
there seems to be only an SD resolution, but I think there is something to unlock also because if I watch it on the TV the Rai HD symbol appears.
Doesn't this link indicate full HD, 5000 resolution?
https://ma688-r.analytics.edgekey.net/9.gif?a=C~b=c9b625d8154de20535~c=9c4efdb1-1c2e-4...-43743863618e~ e=3~g=0~w=24230~ac=7743945.mp4/playlist.m3u8~ag=www.raiplay.it~ah=www.raiplay.it~ al=Windows~am=HLS~at=Firefox% 20126~aw=https://b70cb04c54ab478189e9d8ee45637b13.msvdn.net/dom2/Italy/podcastcdn/Fiction/RaiUno/Sotto_copertura/7743945.mp4/playlist.m3u8?auth=daEd5d4cjbCbRc_cNdNbUbS cEcQcQa5bSa0-bMtH1w-c0-HmxwAFv&aifp=V001~ax=O~ ay=CoreLibrary-4.20.28:JSLoader-1.6.8:THEOplayerLoader-1.1.5~bb=~dx=16.241~en=7743945.mp4/playlist.m3u8~os=Windows-10~sa=Desktop~tt=7743945 .mp4/playlist.m3u8~m=E~v=5000~aa=b70cb04c54ab478189e9d8 ee45637b13.msvdn.net~ap=2978~aq=3562000~cl=3562.99 ~gb=~ta=0~tb=0~td=0~ te=0~tf=0~tx=1125~ty=5000~tz=0~xa=Browser.Close~m= E~u=~v=5000~x=1125~y=5000~z=0~aa =b70cb04c54ab478189e9d8ee45637b13.msvdn.net~ap=297 8~aq=3562000~cl=3562.99~da=0~dc=~dd=1~de=19392~dg= 0~dh=0~fb=0~fd=0~ fe=0~fi=~fk=U:1125,S:0,Q:0,D:0~fl=-~gb=~rs=
Similar Threads
-
Help with RaiPlay keys
By misiek1963 in forum Video Streaming DownloadingReplies: 24Last Post: 24th Sep 2024, 09:39 -
Both Widevine and Playready protection on RaiPlay
By SZplayer in forum Video Streaming DownloadingReplies: 82Last Post: 2nd Aug 2024, 07:43 -
Raiplay show
By RandallFlagg in forum Video Streaming DownloadingReplies: 6Last Post: 18th Jan 2024, 12:34 -
Subtitles RAIPLAY
By alexandre91 in forum Video Streaming DownloadingReplies: 4Last Post: 1st Sep 2023, 06:32 -
RaiPlay Download
By ajones219 in forum Video Streaming DownloadingReplies: 17Last Post: 25th Nov 2021, 02:59