Closed fridrik01 closed 9 years ago
Wow, its actually possible!. For example:
livestreamer -O https://www.youtube.com/watch?v=oHZKYHCDy9Q best | ffmpeg -i - -r 1 -f image2pipe -vcodec pgm pipe:1 | ...
I am trying to do the same for mplayer for Asterisk. I am using: livestreamer --yes-run-as-root --stdout "https://www.youtube.com/watch?v=bNT30uNrUeo" worst -n |/usr/local/bin/madplay -Q -o raw:- --mono -R 8000 -a -10 -
and all I hear is few beeps. In the past the issue was how Asterisk is getting it from mplayer which I assume is based on how it gets it from livestreamer. Is there any way of setting the format with livestreamer?
This is possible with ffmpeg, for example: ffmpeg -i udp://@:5004 -f image2pipe -vcodec pgm pipe:1 | ...
Is it possible to do something similar in livestreamer?