selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
640 stars 157 forks source link

NAL size after decryption is grater than before #103

Open rudestmonk opened 3 years ago

rudestmonk commented 3 years ago

Hello,

I'm receiving the following error trying to download an .m3u8 playlist after passing the decryption key:

{"t_d":10177,"d_d":104,"d_s":49221220}
Downloading part 13
{"t_d":10177,"d_d":112,"d_s":53646928}
Downloading part 14
{"t_d":10177,"d_d":120,"d_s":58642088}
Downloading part 15
{"t_d":10177,"d_d":128,"d_s":63644392}
Downloading part 16
{"t_d":10177,"d_d":136,"d_s":69400388}
Downloading part 17
{"t_d":10177,"d_d":144,"d_s":74978536}
Downloading part 18
{"t_d":10177,"d_d":152,"d_s":80802588}
Downloading part 19
{"t_d":10177,"d_d":160,"d_s":85987440}
Downloading part 20
Error: NAL size after decryption is grater then before - before: 91236, after: 91235 - should never happen!

Here is the command: ./hlsdl <url> -K <key> -b -o output.ts

Could you please advise?

rudestmonk commented 3 years ago

It seems as if it's skipping parts?

{"t_d":10177,"d_d":0, "d_s":0}
Downloading part 0
{"t_d":10177,"d_d":8,"d_s":165064}
Downloading part 1
Downloading part 2
{"t_d":10177,"d_d":24,"d_s":5918428}
Downloading part 3
Downloading part 4
{"t_d":10177,"d_d":40,"d_s":12773660}
Downloading part 5
{"t_d":10177,"d_d":48,"d_s":16192064}
Downloading part 6
Downloading part 7
{"t_d":10177,"d_d":64,"d_s":22671484}