mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.36k stars 925 forks source link

hotleak download icon instead video #3835

Open wankio opened 1 year ago

wankio commented 1 year ago

these download icon[/d+].png instead so in the end it can't be play after downloaded https://i.imgur.com/4yKkCKi.png https://i.imgur.com/AIN3dEV.png one of over 240 videos : https://hotleak.vip/anaimiya/video/2484526

icon.m3u8

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:5.005000,
icon0.png
#EXTINF:5.005000,
icon1.png
#EXTINF:2.043844,
icon2.png
#EXT-X-ENDLIST

the right one working is like this : https://i.imgur.com/yptwrzg.png https://hotleak.vip/anaimiya/video/10788454

index.m3u8

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:5.005000,
video0.ts
#EXTINF:5.005000,
video1.ts
#EXTINF:2.502500,
video2.ts
#EXTINF:2.544378,
video3.ts
#EXT-X-ENDLIST

use N_m3u8DL-CLI-SimpleG to test https://media-sv14.camhdxx.com/KbtUzB5Fwjltuwximr9ndA==,1679895290/165/2484526/icon.m3u8 and it work, so i think it have some encrypted most of content that yt-dlp can downloaded but can't be played, that mean it have encrypted i think

Balgden commented 1 year ago

Had a look at this: Downloading the iconX.png files is actually correct. They are renamed *.ts files that each have a small PNG prepended. No encryption or anything complicated.

What I don't know is where or how to best fix that up. Maybe yt-dlp should be skipping garbage at the beginning of each segment?

wankio commented 1 year ago

or i think add m3u8dl into gallery-dl, which can enabled by command

because if that png work, i can still played it in media player but i can't

mjolnir870 commented 9 months ago

You can fix the files with the following ffmpeg command, which I believe will losslessly copy the video and audio while stripping out the png: ffmpeg.exe -f mpegts -i "${FilePath}" -c copy -bsf:a aac_adtstoasc "${FilePath}_FIXED.mp4"