ffmpeg how to capture lower resolution video from a multi resolution stream resource

0

Guys, I used to capture a live video stream from a website. Recently this website updated their video to 4K available, thus there would be 4k, 2k, 1080p and 720p video stream to choice. While I use ffmpeg to record those videos, it always catch the highest resolution stream. It was fine when the highest resolution is 1080p only. After updated, I can capture 4k stream only as my resource, that cause my problem because my internet bandwidth is limited, there are too many segment (frames) lost during the recording, and I got failure notice eventually. I used a only simple ffmpeg command at win10 Command Prompt as: ffmpeg -i "https://website address/playlist.m3u8" -codec copy output.mp4 How can I capture the 1080p stream instead of 4k stream by ffmpeg?

Michael Herr

Posted 2019-01-19T08:32:17.293

Reputation: 1

Question was closed 2019-01-19T20:12:47.420

Thank you so much dude, but how to do it? I had tried the parameter as: ffmpeg -i "https://website_address/playlist.m3u8" -s 1280*720 ....... yet actually the command start download the highest resolution as 4k stream then resize it to 720p, that would still consume high bandwidth beyond my network capability, sadly.

– Michael Herr – 2019-01-19T14:19:59.663

thx, gotcha! there is a parameter -map! – Michael Herr – 2019-01-19T14:50:52.477

No answers