Page 1 of 1

YouTube Feed Is Failing :-(

Posted: Sat Apr 11, 2020 6:24 am
by sr007
Based on my troubleshooting, this is the root-cause

DEBUG 2020-04-10 17:54:19.625 [ffmpeg-26-2] https://www.youtube.com/watch?v=ytKCcYxUU04: Invalid data found when processing input

Very easy to reproduce, as I'm using https://hub.docker.com/r/universalmediaserver/ums

The following command fails if run inside container

$ docker exec -it ums sh
/usr/src/ums # /usr/bin/ffmpeg -y -loglevel warning -i https://www.youtube.com/watch?v=CXppgJdoM0g -c:v libx264 -profile:v high -level:v 3.1 -c:a libmp3lame -ac 2 -pix_fmt yuv420p -preset ultrafast -f matroska /tmp/ffmpegwebvideo_166_1586538419455
https://www.youtube.com/watch?v=CXppgJdoM0g: Invalid data found when processing input

Possibly YouTube changed something recently.

Is it possible to use youtube-dl in place of ffmpeg, which seems to be more stable for this purpose?

Cheers,
SR

Re: YouTube Feed Is Failing :-(

Posted: Thu Apr 16, 2020 5:00 pm
by SubJunk
Yes we definitely want to start using youtube-dl, and we would welcome a Pull Request for that if you want to try :)