Downloading a Few Seconds of Audio from a Youtube Video with ffmpeg and youtube-dl Results in [youtube]: No such file or
By : Aleksey Kuznetsov
Date : March 29 2020, 07:55 AM
should help you out The issue is the output which is returned from youtube-dl is several lines of information, so ffmpeg doesn't know how to deal with it properly. You'll want to return the actual name of the file without any other information included; a tool like awk or sed can be helpful for this. In addition there will need to be an encoding step added at the end so the audio stream gets copied to the output file (libmp3lame->mp3). code :
ffmpeg -ss 60 -t 10 $(youtube-dl -f 140 -g https://www.youtube.com/watch?v=kDCk3hLIVXo | \
sed "s/.*/-i &/") -c:v copy -codec:a libmp3lame output.mp3
output.mp3: Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 64 kbps, 44.1 kHz, Stereo
|
How to save the filename of youtube video downloaded from youtube-dl in a variable
By : vicked
Date : March 29 2020, 07:55 AM
To fix the issue you can do You'll have to use the static YoutubeDL.getVideoInfo(String url)-method. Afterwards you can either save it into a VideoInfo-instance or use the member variable directly from the return value.
|
How to get a online video's duration without downloading the full video?
By : Ivarinfo gana
Date : March 29 2020, 07:55 AM
To fix this issue If you have direct link to the video itself, like http://www.dl.com/xxx.mp4, you can direct use ffprobe to get the duration of this video by using:
|
Downloading video file from local NodeJS server
By : donglei sui
Date : March 29 2020, 07:55 AM
I wish this helpful for you Node.js web servers do not serve directories unless you explicitly tell them to. If you're using Express, use the static() middleware to tell it to serve that directory.
|
Embedded YouTube video doesn't work on local server
By : lucimon
Date : March 29 2020, 07:55 AM
With these it helps Sergiy Shcherbina's answer helped me solve this issue. I was running my web server from a vm and accessing it through my local IP address. It seems that you need to access your page that contains the embedded youtube player through a host name and NOT an IP address.
|