As for your other update, until you share more details about what service you're using, no one will be able to help you.
+ Reply to Thread
Results 91 to 103 of 103
I already have the files decrypted. The license server is correct. I've figured out the pattern to get keys for this site. It requires PSSH+LIC+token in headers.
Key decrypts full 1080p video fine with no error. Audio is decrypted in segments using yt-dlp. Video plays fine in entirety. Though no audio segments are downloaded with N_m3u8DL-RE downloader using the same MPD and the Audio file seems singular In size with much larger file size than yt-dlp, unable to decrypt I think? using that method. Or could be ffmpeg issue as I get aac bitstream errors of I try to join audio to video obtained using that method of download.
So to get around that I downloaded all 4 segments separately with yt-dlp decrypted them and renamed them and they match the video though for some reason vlc shows each separate file having a longer track length than it really does yet that longer length matches the video length.
There was no json needed. Now they only need to be joined together in one file. I suppose I could transfer them to phone and use a video editing tool and drop the audio files in.
Last edited by Iridule; 11th May 2023 at 10:09.
Since you are making it a point not to mention what site you're using, I'm just going to assume it's particularly embarrassing porn and move on.
I can't tell you what you're possibly doing wrong since I don't know where you're getting the files from, but if all you're looking to do is merging the segments, you can do that with ffmpeg:
ffmpeg -i audiofile1.m4a -i audiofile2.m4a -i audiofile3.m4a -i audiofile4.m4a -c copy audio.m4a ffmpeg -i audio.m4a -i video.mp4 -c copy finalvideo.mp4
$ffmpeg -i decrypted1.m4a -i decrypted2.m4a -i decrypted3.m4a -i decrypted4.m4a -c copy audio.m4a [ipod @ 0x56041f198500] Could not find tag for codec eac3 in stream #0, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 --
./N_m3u8DL-RE -M format=mkv --key....
Last edited by Iridule; 11th May 2023 at 11:48.
I know there are a few services out there that have ads baked in, but in most cases you can find an ad-free mpd or get the correct tracks through the manifests. But I can't give you blind advice, so I don't know. I guess you just have to experiment.
Yt-dlp -F lists audio segments with no ads but it is a pain to get them all and in the right order for the video. Then decrypt each one individually. N_m3u8DL-RE does not show any way of which track is which and I have tried downloading/decrypting all it lists and the resulting file seems to play 1-5 second ad then garbled/silence...this must be a Server Side Advert Insertion ?
[Attachment 70942 - Click to enlarge]
[Attachment 70943 - Click to enlarge]
I could give it a shot for you at my end using N_m3u8DL-RE if you can pass me the keys that you received from the license server, and the MPD URL.
Even the URL to the video would do just fine as long as it isn't behind a subscription.
Last edited by pram0dm; 11th May 2023 at 13:24.
I'll figure it out somehow...
I appreciate the offer, I think the issue is with the MPD. It needs to be edited to remove ad segments. At this point it may just be easier to transfer all to my phone and use playstore app to merge audio and video lol. Over I would say my progress to getting the key was a success which was my main goal. There is a way to properly do this im sure with N_m3u8DL I just haven't figured it out yet. But I will.
Got it...edited the MPD to remove ads Removed everything from <period>...roll-ad-blah-blah </period> until it started to say the second <period> line right before it talked about cenc...
<Period id="0" duration="PT11M56.716S"> <AdaptationSet frameRate="24000/1001" id="0" contentType="video" par="16:9" maxWidth="1920" maxHeight="1080" segmentAlignment="true"> <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"
./N_m3u8DL-RE -M format=mkv --key 4884blahblah8848:80943846 ~/Downloads/manifest.mpd --save-name MergeSuccess
Now I will take a break and go outside before I get carpel tunnel.
P.S. In my searching I found this article useful https://tutorials.hybrik.com/drm/
Fiat Lux et Lux fit
[Attachment 70946 - Click to enlarge]
[Attachment 70947 - Click to enlarge]
Last edited by Iridule; 11th May 2023 at 19:30.
Nice work! You seem determined and a fast learner, so you'll have all this figured out in no time
Is there anything specific guide to capturing, and decrypting live streams for own personal use? The majority of these guides seem to be for downloading from catch up and VOD videos.
Want to PM me? Just ask in the forum first.