Reputation: 595
Somehow only 1080p60fps files can be rendered with the following command:
ffmpeg.output(input_au, input_vi,"movie.mp4").run()
For example, if I use a YouTube video that has only 1080p but no 60fps, the error message:
"ffmpeg error (see stderr output for detail)"
appears. So how can I render video and audio files in case you want to download YouTube videos with bigger resolutions than 720p? (I'm using pytube dash download, i.e. getting video without audio and the audio as an extra file). Maybe there is also solution to come without ffmpeg, e.g. download the highest available resolution. But as far as I know the pytube library doesn't support progressive downloads for higher resolutions.
Upvotes: 0
Views: 395
Reputation: 141
I use MEncoder for video rendering. Here is the doc : http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
This is not a Python library but you can use it with os.system("mencoder ...")
or subprocess
.
You can use scale
and aspect
options to render your video with the wanted resolution.
Upvotes: 0