python-vlc icon indicating copy to clipboard operation
python-vlc copied to clipboard

how to download m3u8 file by python-vlc?

Open adins0 opened this issue 3 years ago • 0 comments

I tried to use the method below to download the file: player = insts.media_player_new() media = insts.media_new("http://123.60.223.219:7083/dev_vod/vod.m3u8?token=eyJhbGciOiJIU...")
media.add_option(':sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:file{dst=video2.mp4,no-overwrite}') player.set_media(media) player.play() But this approach doesn't seem to work very well. Downloaded videos cannot be played.

adins0 avatar Aug 01 '22 04:08 adins0