Jump to content

Recommended Posts

This is a workflow for easily downloading videos (and/or extracting audio) from various websites such as YouTube, Vimeo, DailyMotion and more... It uses youtube-dl as the core component. 
 

Main Features:

  • Download video from URL.  vd {video-url} 
  • Download and extract audio into an MP3 file.  vd-audio {video-url} 
  • Display and download video metadata (json).  vd-info {video-url} 
  • Update core component (youtube-dl).  vd-update 
  • Display quick help in Large Type. vd-help 

Note: vd-update command currently only updates youtube-dl, not the workflow itself.

 

Please see full details, updates (and source) of the project at GitHub.
Download Video Downloader workflow.

 
Here is a full visual list of what Video Downloader can do:

 

ss-1.jpg

 

 

And here is how the workflow nodes look like:
 

wf.jpg

  
Requirements:

 

For the audio extraction (vd-audio) feature to work, you should install FFmpeg yourself manually (because of licensing issues). 
If you don't have it already; you can find details on how to install FFmpeg at the GitHub page.

 

---
 
(While writing this, I found out about Vítor's workflow; which is also nice and uses youtube-dl. Well, I'm releasing this anyway for it's extra features like audio conversion, metadata info, etc..)

Pls. drop a note if you like it...

Thanks.

Edited by onury

Share this post


Link to post

Great work! But why don't you automatic retrieve the url from the open browser window!?

 

Never the less, its really nice!

 

Efty

Edited by Efty Edge

Share this post


Link to post

Thanks Efty,

I didn't have time for that. Maybe in the next version.. or anyone can improve it on GitHub.

Edited by onury

Share this post


Link to post

For giggles I changed line 29 in vd.sh from

ffmpeg_installed=$(program_exists "ffmpeg")

to

ffmpeg_installed=true

Now it gives me the warning at lines 64 and 65

    echo "Download failed! ($download_result)"
    echo "Make sure you've entered a valid video URL or parameter. Otherwise, try updating or re-installing Video Downloader."

Share this post


Link to post

  • Did you run vd-update in Alfred after install?
  • What do you get when you run which ffmpeg in terminal?

    It should output /opt/local/bin/ffmpeg

Edited by onury

Share this post


Link to post

I can't seem to install it in /opt/local/bin/ but I don't understand why it needs to specifically be there.

 

How did you manage to install it into the different location?

 

Sorry I'm a noob

Share this post


Link to post

How did you manage to install it into the different location?

 

I think it needs to be there because the WF expects it. I didn't do anything special. Just re-installed it. Sorry, not much help.

Share this post


Link to post

I'd like to set this as the format parameters:

 

-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4'

 

but no matter how I edit the vd.sh script, it's always failing. I'm not very familiar with the intricacies of bash scripting, can anyone help?

 

The pertinent lines are (probably) these:

 

output_format="$download_dir/%(title)s.%(ext)s"

options="-i -q -o "$output_format"" # --restrict-filenames

yt_output=$("$yt" $options "$video_url")

 

 

The goal is to set this, for example: 

 

youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' https://www.youtube.com/watch?v=-me5AGrIvOo

 

Thanks for any help.

 

 

Edited by Stooovie

Share this post


Link to post

so i was having trouble installing the ffmpeg it wont let me install the + stuff in the help - can someone help me install them51612696_ScreenShot2019-08-01at4_52_09PM.thumb.png.eff440953cc14fb01017e32ceb31177b.png

Edited by eluxmaxel

Share this post


Link to post

Hey,

 

Thx for the WF. How can I change the directory of ffmpeg in vd.sh file cause my package are installed  in /usr/local/bin/ffmpeg and should be in /opt/local/bin/.
If someone has any idea I'll take it :) 

Hugo

Share this post


Link to post

I don’t mean to hijack the thread, but the author of this Workflow has been inactive from the forums for almost four years, and the Workflow hasn’t gotten an update in six.


All the recent issues I’m seeing mentioned are solved in DownVid (disclaimer: I’m the author), so I’m linking it in case you want to give it a try. You won’t need to futz around with ffmpeg, and it uses the “best format mp4” by default (@Stooovie).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...