have widevine keys and fragments, combined mp4 file(encrypt video+encrypt audio)
tried ffmpeg raw key method, not work.
shaka-packager, got video and audio, but video and audio not sync.
can mp4decrypt do it? one encrypted mp4 file(not seperated video+audio)
or any method to handle fragments?
thanks for any help.
+ Reply to Thread
Results 1 to 22 of 22
-
-
-
must I upload 1000+ segments?
they just looks like this
[Attachment 76570 - Click to enlarge] -
What does this mean? You managed to decrypt them individually and they work on their own but you can't sync them? Use MKVToolnix and add audio delay and remux
-
since only a combined mp4 file, i renamed it to 007.mp4 and run:
Code:shaka-packager.exe in=007.mp4,stream=video,output=01.mp4 --enable_raw_key_decryption --keys key_id=xx4b2739526d38799b34:key=xx4a27f4b8ef78a5acd shaka-packager.exe in=007.mp4,stream=audio,output=01.m4a --enable_raw_key_decryption --keys key_id=xx4b2739526d38799b34:key=xx4a27f4b8ef78a5acd
[Attachment 76571 - Click to enlarge]
i also tried mkvmerge, video and audio not sync, but duration is correct(1:58:48).
segements i think is ok since it always 100% and no error when i record use N_m3u8DL-RE.
and i record use another pc, with --key xxx:yyy , it works well(shaka-packager not work with wv_m3u8, dont know why), but that pc 'dead' at the first 15 minutes the llve startLast edited by shellcmd; 28th Jan 2024 at 09:00.
-
-
right, the correct duration is 1:58:48, but merge use ffmpeg return many timestamp error, and yes it stuck at about 1:10:00 and duration not correct 1:33:00.
merge with mkvmerge, duration correct, but still many frames stuck. very weird. -
So I suspect that either the video I recorded is incomplete, or the Shaka-Packager doesn't decrypt this type of video very well. I still keep segments, is there a way to use mp4decrypt for decryption attempts?
Last edited by shellcmd; 28th Jan 2024 at 09:51.
-
-
This happens to me too sometimes when I grab streams from a specific site of my country.
It's the same symptoms like you: timestamp errors when merging, it freezes at specific time, video can have a weird/long duration,, mediainfo shows another duration...
It happens when there are fragments missing. The stream gave 404 on some fragments.
I once "resolved" this. It was extremely time consuming (probably there was another way).
I have kept all the fragments and the decrypted video was weird/long duration.
Let's say there were 220 fragments.
I knew there was a "problematic" fragment or something somewhere in the middle but not sure where exactly.
And I started merging and decrypting like this:
From 1.mp4 to 110 mp4
if the decrypted still had long duration, means the problematic fragment is between 1 and 110
Then from 1.mp4 to 50.mp4,
the decrypted file had short duration, meaning it's fine until 50 and the problem lays between 50 and 110
etc etc
I found where the "problem" started. Let's say it was 72.mp4
I deleted that fragment and merged the remaining fragments and decrypted.
The video was normal duration (obviously missing 5-10s depending on the fragment) had to resync the audio and I was done.
But, there must be an easier way. I'm sure someone who knows ffmpeg or other tools better, can diagnose and fix the problem easily. -
vegeta, your method useful, thanks. I now stuck at if it's shaka-packager's issue(because I don't know how to handle mp4decrypt to decrypt this kind of video, so I can't rule out shaka's issue) or some segments missing, nm3u8dl return 0 error, it still 100%. I'm very confused. but right, first check the segments maybe better.
-
Download packager from here
https://github.com/shaka-project/shaka-packager/releases
and rename it to shaka-packager--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Which version for windows 10 64 should I download 1 or 2
1.packager-osx-arm64
2.packager-osx-x64
and change the name to "shaka-packager"
And how do I get "exe" -
-
Similar Threads
-
Need help getting the key to decrypt a video
By Nicryc in forum Video Streaming DownloadingReplies: 9Last Post: 28th Dec 2023, 18:32 -
HELP: Decrypt video and audio files
By Spectrumhsm in forum Newbie / General discussionsReplies: 1Last Post: 18th Oct 2023, 16:02 -
decrypt video from DMM
By Greentea in forum Video Streaming DownloadingReplies: 2Last Post: 18th Jul 2023, 02:29 -
decrypt video from app
By killua in forum Video Streaming DownloadingReplies: 2Last Post: 30th Jun 2023, 22:33 -
I have video and key but i can't decrypt
By noctus in forum Video Streaming DownloadingReplies: 3Last Post: 30th Jan 2021, 02:42