Download streaming video (.m3u8) từ VnExpress.net bằng FFMPEG

wall[e]

New Member
Joined
Sep 27, 2017
Messages
222
Reaction score
0
che.nguyen said:
Cách 1 là bạn chạy đúng câu lệnh rồi, tuy nhiên bạn chưa để tên file là .ts hay .mp4, thêm tên file nữa là xong .

Cụ thể đường dẫn của bạn bị sai nên ffmpeg ko tải về được .

ffmpeg -i "m3u8link" -c copy D:\new\

Với D là ổ đĩa D trong máy bạn .
new là thư mục nằm trong ổ D (nếu chưa có thư mục này thì phải tạo)
Tên file ko có phải thêm thì ffmpeg mới down về --> D:\new\tênfile.mp4

Ví dụ code down về dạng này --> ffmpeg -i "m3u8link" - c copy tênfile.mp4

Trường hợp bạn tải về bằng ffmpeg mà muốn save vào 1 chỗ cố định như ổ D thì thêm như sau

ffmpeg -i "m3u8link" -c copy "D:/tênfile.mp4"
lâu quá mình mớt quay lại thớt @@
chưa kịp down hình như trang web * nó fix rồi thớt ạ
Request Header => Refer nó chỉ hiện link mà ko hiện đuôi .html

ngay cả 1 extension ngày xưa down được bắt h nó ko bắt dc link lun :v
 

che.nguyen

New Member
Joined
Oct 7, 2019
Messages
26
Reaction score
0
wall[e] said:
lâu quá mình mớt quay lại thớt @@
chưa kịp down hình như trang web * nó fix rồi thớt ạ
Request Header => Refer nó chỉ hiện link mà ko hiện đuôi .html

ngay cả 1 extension ngày xưa down được thì bây nó ko bắt dc link lun :v
post link bạn cần down để mình xem thử .
 

wall[e]

New Member
Joined
Sep 27, 2017
Messages
222
Reaction score
0
che.nguyen said:
post link bạn cần down để mình xem thử .
chỗ mần ăn của ngừ ta nên mình ko tiện post, mình muốn down về xem do chỗ trọ ko có internet @@
với có nằm vùng trên này thì phải, thảo luận được mấy hôm là hết down dc...
 

SIVAS

New Member
Joined
Dec 3, 2017
Messages
553
Reaction score
0
thế còn với VTV.VN thì sao bác thớt. Bó tay với thằng này, recap thì mất tgian quá :surrender:
 

che.nguyen

New Member
Joined
Oct 7, 2019
Messages
26
Reaction score
0
SIVAS said:
thế còn với VTV.VN thì sao bác thớt. Bó tay với thằng này, recap thì mất tgian quá :surrender:
cho cái link đi bạn ?
 

Mr-Nobody

New Member
Joined
Sep 28, 2017
Messages
21
Reaction score
0
@che_nguyen:

Em có thử theo hướng dẫn của bác mà báo lỗi như dưới, không biết sai ở đâu



Code:

.\ffmpeg.exe -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36" -referer "https://vtv.vn/video/so-nguoi-mac-cum-nhap-vien-tang-411004.htm" -i "https://hls.mediacdn.vn/vtv/2019/12/17/1712vn-hom-nay-1576583323961510135240-aa1e31576584501226.mp4/720.m3u8?v=a771e8f5" -c copy test.mp4
ffmpeg version git-2019-10-11-71d9ae1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20191010
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 35.100 / 56. 35.100
libavcodec 58. 59.102 / 58. 59.102
libavformat 58. 33.100 / 58. 33.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 62.100 / 7. 62.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
[hls @ 000001cf20019200] Skip ('#EXT-X-ALLOW-CACHE:YES')
[hls @ 000001cf20019200] Skip ('#EXT-X-VERSION:3')
[hls @ 000001cf20019200] Opening 'https://kms.sohatv.vn/drm/de4d2449-3e56-4614-9d8f-9f51cfe9df58.key' for reading
[hls @ 000001cf20019200] Opening 'crypto+https://hls.mediacdn.vn/vtv/2019/12/17/1712vn-hom-nay-1576583323961510135240-aa1e31576584501226.mp4/720/seg-1-v1-a1.ts?v=a771e8f5' for reading
[hls @ 000001cf20019200] Opening 'crypto+https://hls.mediacdn.vn/vtv/2019/12/17/1712vn-hom-nay-1576583323961510135240-aa1e31576584501226.mp4/720/seg-2-v1-a1.ts?v=a771e8f5' for reading
[hls @ 000001cf20019200] Error when loading first segment 'https://hls.mediacdn.vn/vtv/2019/12/17/1712vn-hom-nay-1576583323961510135240-aa1e31576584501226.mp4/720/seg-1-v1-a1.ts?v=a771e8f5'
https://hls.mediacdn.vn/vtv/2019/12/17/1712vn-hom-nay-1576583323961510135240-aa1e31576584501226.mp4/720.m3u8?v=a771e8f5: Invalid data found when processing input​
 
Top