onury Posted April 27, 2013 Share Posted April 27, 2013 (edited) 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: And here is how the workflow nodes look like: 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 December 13, 2014 by onury Link to comment
Efty.Edge Posted April 29, 2013 Share Posted April 29, 2013 (edited) Great work! But why don't you automatic retrieve the url from the open browser window!? Never the less, its really nice! Efty Edited April 29, 2013 by Efty Edge Link to comment
onury Posted May 10, 2013 Author Share Posted May 10, 2013 (edited) Thanks Efty, I didn't have time for that. Maybe in the next version.. or anyone can improve it on GitHub. Edited December 13, 2014 by onury Link to comment
roccitman Posted July 22, 2015 Share Posted July 22, 2015 Installed on a new lappy and can't get it to download and convert the audio (just download is fine) Have FFMPEG installed: http://d.pr/i/1empo Have Python installed. Still says failed please install ffmpeg: http://d.pr/i/1lL76 Anyone have any ideas? Link to comment
roccitman Posted July 22, 2015 Share Posted July 22, 2015 Also, ffmpeg is working: http://d.pr/i/13HFT Is the workflow looking in a different spot for ffmpeg? Link to comment
roccitman Posted July 22, 2015 Share Posted July 22, 2015 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." Link to comment
onury Posted February 8, 2016 Author Share Posted February 8, 2016 (edited) 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 February 8, 2016 by onury Link to comment
roccitman Posted February 8, 2016 Share Posted February 8, 2016 Hmm, it says /usr/local/bin/ffmpeg Link to comment
roccitman Posted February 8, 2016 Share Posted February 8, 2016 Re-installed. Now it's working /opt/local/bin/ffmpeg Link to comment
xyzpom Posted May 19, 2016 Share Posted May 19, 2016 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 Link to comment
roccitman Posted May 19, 2016 Share Posted May 19, 2016 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. Link to comment
xyzpom Posted May 19, 2016 Share Posted May 19, 2016 Hmmm ok thanks, I'll try reinstalling it. How did you install it, did you use homebrew or something else? Link to comment
xyzpom Posted May 19, 2016 Share Posted May 19, 2016 Wait so you installed it in exactly the same way and it moved to a different folder? Link to comment
roccitman Posted May 20, 2016 Share Posted May 20, 2016 No, got smart and used Homebrew the second time. Link to comment
Stooovie Posted April 2, 2019 Share Posted April 2, 2019 (edited) 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 April 2, 2019 by Stooovie Link to comment
eluxmaxel Posted August 1, 2019 Share Posted August 1, 2019 (edited) so i was having trouble installing the ffmpeg it wont let me install the + stuff in the help - can someone help me install them Edited August 1, 2019 by eluxmaxel Link to comment
Hugowith Posted December 20, 2019 Share Posted December 20, 2019 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 Link to comment
vitor Posted December 20, 2019 Share Posted December 20, 2019 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). Afoan 1 Link to comment
Mark N. Albano Posted February 16, 2021 Share Posted February 16, 2021 (edited) On 4/3/2019 at 2:37 AM, Stooovie said: 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.youtubeconverterbySoftorino Thanks for any help. I didn't quite understand the problem Edited February 16, 2021 by Mark N. Albano Link to comment
Daniele Posted February 20, 2023 Share Posted February 20, 2023 When I download a playlist audio, it comes with .opus files. Can I have mp3 instead? Thanks Link to comment
vitor Posted February 20, 2023 Share Posted February 20, 2023 As mentioned above, this workflow hasn’t been updated in years. Try Download Media which is actively maintained. Locking the thread so future people landing here have a clear path to follow. Link to comment
Recommended Posts