Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube playlist backup and formats #7560

Closed
Azenet opened this issue Nov 19, 2015 · 5 comments
Closed

Youtube playlist backup and formats #7560

Azenet opened this issue Nov 19, 2015 · 5 comments

Comments

@Azenet
Copy link

@Azenet Azenet commented Nov 19, 2015

I use youtube-dl to backup a youtube playlist every day, but I'm running into an issue: very often I will get mp4 and mkv files of the same video in my folder. Both the files have video and audio. Is there a way I can avoid this happening ? I am running 2015.11.18, and the command line I am using is youtube-dl -i playlistUrl.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 19, 2015

So, what format you want?
If you only want mp4 files you can use -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best

@phihag
Copy link
Contributor

@phihag phihag commented Nov 19, 2015

You can also use --download-archive.

@Azenet
Copy link
Author

@Azenet Azenet commented Nov 19, 2015

Thanks for your answers, I am going to use --download-archive archive -f best --merge-output-format mkv, as I'd rather have mkv files, which seems to work for now. My actual issue was that youtube-dl would save sometimes in mp4 and sometimes in mkv, but --download-archive prevents that.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 19, 2015

--download-archive does not prevent that. What does prevent it is --merge-output-format mkv, i.e. always muxing bestvideo+bestaudio into mkv.

@dstftw dstftw closed this Nov 19, 2015
@Azenet
Copy link
Author

@Azenet Azenet commented Nov 19, 2015

@dstftw I meant downloading videos only once whatever the resulting format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.