how pipe the 'get_url' of youtube-dl to ffmpeg stdin

I'm not getting pass the output from the first process with Youtube-dl through pipe to stdin of ffmpeg. It is as if the Youtube-dl force the execution of process after pipe instead wait for his own result

youtube-dl -f best -g [URL] -o pipe:1 | ffmpeg -ss 10 -i pipe:0 -vframes 1 capture.png

get the return:

pipe:0: Invalid data found when processing input

3

1 Answer

This should work for you:

youtube-dl -f best [url] -o - | ffmpeg -ss 10 -i pipe: -vframes 1 capture.png 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like