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

Downloading existing videos that youtube-dl might not see (not an issue) #9939

Closed
ghost opened this issue Jun 28, 2016 · 10 comments
Closed

Downloading existing videos that youtube-dl might not see (not an issue) #9939

ghost opened this issue Jun 28, 2016 · 10 comments

Comments

@ghost
Copy link

@ghost ghost commented Jun 28, 2016

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • [ x] Feature request (request for a new functionality)
  • [ x] Question
  • Other

Is it possible to get youtube-dl to check the destination directory if a youtube video of the same title exists? I have a lot of .mp4 files since I didnt know about youtube-dl, most bestvideo+bestaudio downloads mkv files so it just downloads it since there is no existing mkv file. can I get it to check if mp4 exists?

Also, is it possible to get it to download and merge on a local directory and then move it to a destination directory, say like a server ?

Thanks.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 28, 2016

  1. Either write script or pass --download-archive a hand-crafted file with line youtube video_id for each downloaded video. Alternatively tell to only download mp4.
  2. You can run arbitrary command on final file with --exec.
@dstftw dstftw closed this Jun 28, 2016
@ghost
Copy link
Author

@ghost ghost commented Jun 28, 2016

telling it to download mp4 still ends up creating a mkv file and it downloads it even though a file with the same name (but .mp4 extension) exists...

I'll have to figure out the script..

Thanks for the quick reply!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 28, 2016

Post --verbose output.
Post the listing of files in directory.

@ghost
Copy link
Author

@ghost ghost commented Jun 28, 2016

problem was the title, it was looking for the youtube id and the other file didnt have that.

thanks for taking the time to look at it ! have a great day.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 28, 2016

You can specify output template -o '%(title)s.%(ext)s' to look for title only.

@ghost
Copy link
Author

@ghost ghost commented Jun 28, 2016

can you verify how i can set it up to download in a local directory and then move it afterwards? im guessing it wouldnt be able to look in the destination directory if it is downlodaing it to the local one.. hmm

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 28, 2016

What are you trying to achieve in the first place? Clearly explain the use case.

@ghost
Copy link
Author

@ghost ghost commented Jun 28, 2016

My server holds all my video files.
My ubuntu VM takes forever to download and merge videos if I do it in the remote directory.
If it does it locally then it downloads with full speed and merges 10 times quicker than remote.

Is there anyway I can, within youtube-dl, move a file to a remote location after it has been merged?

Id would have to check the remote location before downloading.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 28, 2016

I've already pointed out using --exec for that with command that will do the move, like --exec 'mv {} destination'.

@ghost
Copy link
Author

@ghost ghost commented Jun 29, 2016

Thanks! Really appreciate the time.

On 28 June 2016 at 15:25, Sergey M. notifications@github.com wrote:

I've already pointed out using --exec for that with command that will do
the move, like --exec 'mv {} destination'.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9939 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHHM1JQo_IcnfJPsI9GrLYXqGzihSsEGks5qQZFPgaJpZM4JAdCV
.

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
1 participant
You can’t perform that action at this time.