Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]record m3u8 ,but output file not video format #20

Open
WLaoDuo opened this issue Aug 9, 2024 · 0 comments
Open

[bug]record m3u8 ,but output file not video format #20

WLaoDuo opened this issue Aug 9, 2024 · 0 comments

Comments

@WLaoDuo
Copy link

WLaoDuo commented Aug 9, 2024

[git commit e7eb3b4]

win11

.\hlsdl.exe -u https://b-hls-16.doppiocdn.com/hls/111375206/111375206.m3u8 -r true

The output is a file named "download",cant open with vlc, when I use imhex to view its binary, its beginning is not like video format.I use ffmpeg try to download it again,the result is a video file.

log:

.\hlsdl.exe -u https://b-hls-16.doppiocdn.com/hls/111375206/111375206.m3u8  -r true
2024/08/09 17:42:21 Start record live streaming movie...
2024/08/09 17:42:25 Recorded segment  8347
2024/08/09 17:42:25 Recorded segment  8348
2024/08/09 17:42:25 Recorded segment  8349
2024/08/09 17:42:26 Recorded segment  8350
2024/08/09 17:42:26 Recorded segment  8351
2024/08/09 17:42:29 Recorded segment  8352
2024/08/09 17:42:31 Recorded segment  8353
2024/08/09 17:42:34 Got stop signal
2024/08/09 17:42:34 Recorded file at  download

m3u8:

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:2
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA-SEQUENCE:8108
#EXT-X-DISCONTINUITY-SEQUENCE:2
#EXT-X-MAP:URI="https://b-hls-16.doppiocdn.com/hls/111375206/111375206_init_XC4S2CVZu2iTbllX.mp4"
#EXT-X-PROGRAM-DATE-TIME:2024-08-09T09:34:20.463+0000
#EXTINF:2.000
https://b-hls-16.doppiocdn.com/hls/111375206/111375206_8108_93cVdnn3KtYezhND_1723196060.mp4
#EXT-X-PROGRAM-DATE-TIME:2024-08-09T09:34:22.394+0000
#EXTINF:2.000
https://b-hls-16.doppiocdn.com/hls/111375206/111375206_8109_HvmYVjpt2ZVmQcpw_1723196062.mp4
#EXT-X-PROGRAM-DATE-TIME:2024-08-09T09:34:24.444+0000
#EXTINF:2.000
https://b-hls-16.doppiocdn.com/hls/111375206/111375206_8110_OCZpu2rdAgshDc6I_1723196064.mp4

the beginning binary of "download":

47 81 00 00 0B F4 00 00 4A 88 00 00 0B 9A 00 00 1E D8 00 00 0B 9A 00 00 3D B5 00 00 0B F4 00 00 59 CB 00 00 0B 9A 00 00 6D A9 00 00 0B 9A 00 00 4E 26 00 00 0B F4 00 00 56 28 00 00 0B 9A 00 00 48 11 00 00 0B 9A 00 00 20 21 00 00 0B F4 00 00 45 A2 00 00 01 0C 74 72 61 66 00 00 00 1C 74 66 68 64 00 02 00 38 00 00 00 02 00 00 03 FF 00 00 01 5C 02 00 00 00 00 00 00 14 74 66 64 74 01 00 00 00 00 00 00 00 31 F5 03 1D 00 00 00 D4 74 72 75 6E 00 00 03 01 00 00 00 18 00 05 53 57 00 00 03 FF 00 00 01 5C 00 00 04 00 00 00 01 5F 00 00 04 01 00 00 01 60 00 00 03 FF 00 00 01 69 00 00 04 00 00 00 01 5B 00 00 04 00 00 00 01 55 00 00 04 00 00 00 01 58 00 00 04 00 00 00 01 60 00 00 04 00 00 00 01 58 00 00 04 00 00 00 01 62 00 00 04 00 00 00 01 55 00 00 04 00 00 00 01 5E 00 00 04 00 00 00 01 50 00 00 04 00 00 00 01 8C 00 00 04 00 00 00 01 A1 00 00 04 00 00 00 01 58 00 00 04 00 00 00 01 51 00 00 04 00 00 00 01 4B 00 00 04 00 00 00 01 57 00 00 04 00 00 00 01 4B 00 00 04 00 00 00 01 52 00 00 04 00 00 00 01 48 00 00 04 00 00 00 01 4F 00 00 04 01 00 00 01 52 00 05 72 12 6D 64 61 74 00 00 00 25 67 4D 40 1F 95 90 05 00 5B B0 16 A0 20 20 28 00 00 1F 40 00 07 53 07 00 00 03 00 89 54 00 00 11 2A 8B 77 97 05 00 00 00 04 68 EB 8F 20 00 01 98 9F 65 B8 02 02 7F EF B9 EA 99 0D 47 F0 1A 93 4E F1 24 BA B7 6B 32 11 85 66 60 73 E3 70 78 90 DE CD 58 59 84 5A CC 23 57 AF 34 3A 27 CC 31 8C 29 B9 47 64 34 27 88 3D 30 B0 19 23 78 6B 74 03 E5 AE 37 54 39 94 F9 99 70 8F BE 94 49 EA C5 EB EB B1 0D 7A 79 01 85 21 14 5B B2 11 83 B4 95 0F B2 1C 4B B3 E7 E2 9B EA 2F E9 63 11 60 49 FF EE 86 5D 9D 70 1A D3 E1 9A 5B 22 2B B0 46 87 C4 C9 46 F8 95 D6 FB 57 62

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant