When I ran this yt-dlp --get-url https://x.com/i/status/1803779798658859067, I got this:…
- User
When I ran this
yt-dlp --get-url https://x.com/i/status/1803779798658859067, I got this:codehttps://video.twimg.com/ext_tw_video/1803775750471815168/pu/pl/avc1/1920x1080/vZD5Yjfg0QPyWJD7.m3u8 https://video.twimg.com/ext_tw_video/1803775750471815168/pu/pl/mp4a/128000/-qu1c1LWCcQqHSYm.m3u8These are the video and audio of the Twitter video in .m3u8 format. I want to play it in MPV but the vie an audio are separated.
- Assistant
To play the video and audio together in MPV using the URLs provided, you can create a temporary
.m3u8file that combines both streams. Alternatively, you can use the command line to let MPV handle the concatenation of the streams directly. Here’s how to do both:Method 1: Creating a Temporary
.m3u8File-
Create a new file, let's say
combined.m3u8, with the following content:m3u8#EXTM3U #EXT-X-STREAM-INF:BANDWIDTH=64000,CODECS="mp4a.40.2" https://video.twimg.com/ext_tw_video/1803775750471815168/pu/pl/mp4a/128000/-qu1c1LWCcQqHSYm.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1000000,CODECS="avc1.640028" https://video.twimg.com/ext_tw_video/1803775750471815168/pu/pl/avc1/1920x1080/vZD5Yjfg0QPyWJD7.m3u8
-