VideoHelp Forum




+ Reply to Thread
Results 1 to 22 of 22
  1. 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.
    Quote Quote  
  2. Originally Posted by LZAA View Post
    Url?
    it's a live, ended. I just keep the segments, and one combined mp4 file which contains encrypted video+ encrypted audio. my bad not use --key xxxxx to decrypt the segments at real time with N_m3u8DL-RE.
    so is it still possible?
    Quote Quote  
  3. Fragments&Key?
    Quote Quote  
  4. Originally Posted by LZAA View Post
    Fragments&Key?
    must I upload 1000+ segments?


    they just looks like this
    Image
    [Attachment 76570 - Click to enlarge]
    Quote Quote  
  5. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by shellcmd View Post
    shaka-packager, got video and audio, but video and audio not sync.
    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
    Quote Quote  
  6. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Originally Posted by shellcmd View Post
    shaka-packager, got video and audio, but video and audio not sync.
    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
    return all success, but when i merge use ffmpeg, it give many timestamp error. i think must something wrong(duration not correct, see screenshot).
    Image
    [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 start
    Last edited by shellcmd; 28th Jan 2024 at 09:00.
    Quote Quote  
  7. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by shellcmd View Post
    return all success, but when i merge use ffmpeg, it give many timestamp error. i think must something wrong.
    Image
    [Attachment 76571 - Click to enlarge]
    By this you mean the video shows a specific duration (01:33:54) but you only have valid a lower duration? You can skip ahead and the video works but it stops dead up to a certain timestamp?
    Quote Quote  
  8. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Originally Posted by shellcmd View Post
    return all success, but when i merge use ffmpeg, it give many timestamp error. i think must something wrong.
    Image
    [Attachment 76571 - Click to enlarge]
    By this you mean the video shows a specific duration (01:33:54) but you only have valid a lower duration? You can skip ahead and the video works but it stops dead up to a certain timestamp?
    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.
    Quote Quote  
  9. 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.
    Quote Quote  
  10. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by shellcmd View Post
    So I suspect that either the video I recorded is incomplete
    Decrypt manually the last video fragment you have from those 1000+ and check if it matches with the last valid portion from your decrypted and merged video. If it matches then you obviously don't have all the fragments.
    Quote Quote  
  11. will try it, thanks.
    Quote Quote  
  12. Originally Posted by shellcmd View Post
    it give many timestamp error
    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.
    click click2
    If I/my posts ever helped you, and you want to give back, send me a private message!
    Quote Quote  
  13. 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.
    Quote Quote  
  14. How to get the "shaka-packager.exe" form
    Quote Quote  
  15. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    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*]
    Quote Quote  
  16. 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"
    Quote Quote  

  17. and what next, shake is missing
    Quote Quote  
  18. What next?

    Read the answers...

    post #16
    Quote Quote  
  19. Originally Posted by cedric8528 View Post
    What next?

    Read the answers...

    post #16


    change the file name to shaka-packager , did I understand correctly????
    Quote Quote  
  20. yes rename as shaka-packager.exe
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!