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.
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.09. 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?
Description of your issue
Many Time when I download a video with youtube-dl and I try to upload it to twitter I get an error "not valid video" I don't know what exactly the problem but when I change aspect ratio with FFmpeg
and the upload to Twitter work.
ffmpeg -i input.mp4 -vf scale=480:854 -c:v h264The majority of the videos that have this problem are downloaded from facebook.
here is how my youtube-dl commande:
youtube-dl -o 'output.%(ext)s' -f 'bestvideo[ext=mp4][width<=?1280][height<=?1024]+bestaudio[ext=m4a]/best[ext=mp4][width<=?1280][height<=?1024]/bestvideo[ext=webm]/best' URLSo is there a way to avoid this problem because it happens with more than 50% of videos. Here are some examples:
https://www.reddit.com/r/BeAmazed/comments/8ahgf9/how/
https://www.facebook.com/demotivateur/videos/10155981163584457/
https://www.reddit.com/r/aww/comments/8a8tlz/curious_baby_octopus/