Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Having trouble getting the format string to match what I want #9932
Comments
|
CBS does not provide any |
|
Ok, then 1, I know what to do, and 2: What the heck is "best video" then? I see about 15 different video formats in that list? |
|
best video means the best video-only (no audio) format. As all formats provided by CBS contain both video and audio, they don't fit the term "best video". Few websites provide such formats, of which YouTube is the most well-known one. |
|
Okay, thank you. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.06.27. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
I am having trouble getting a specific file format.
My format string:
u'-f', u'bestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/bestvideo[ext=mp4][height>360][height<=480]+bestaudio/bestvideo[height<=480]+bestaudio/best[height<=480]/worst',
Breaking that down:
bestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]
bestvideo[ext=mp4][height>360][height<=480]+bestaudio
bestvideo[height<=480]+bestaudio
best[height<=480]
worst
The goal here:
This CBS recording of Stephen Colbert has these two formats:
hls-1332 mp4 768x432 1332k , avc1.77.30, mp4a.40.2
rtmp-1928 flv 848x480 1928k
I want that hls-1332
I get the rtmp-1928
The flv to mp4 conversion is time consuming, noisy (maxes my fan), etc. 432p is "good enough".
The separation of best video + bestaudio is needed for dealing with youtube's dash. But here, the 432p should match
bestvideo[ext=mp4][height>360][height<=480]+bestaudio
and it has the best audio already in the track.
Unfortunately, it's not working.
I don't know what I'm doing wrong.