Fmstrat / youtube-dl-api

A server application with bookmarklet that allows you to tell a server to download videos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need a newer version of ffmpeg

coppit opened this issue · comments

I suppose you could close this as "not a bug" because the container doesn't technically support --merge-outputformat mp4. But what I did is enter this as my format: %(title)s.%(ext)s" --merge-output-format "mp4 (with the quotes). Doing this creates the right command line, although I feel like it's a Bobby Tables kind of move. (https://xkcd.com/327/). You might consider an "extra args" config setting to make it easier for people to configure youtube-dl.

Anyway, when I do this, --merge-output-format mp4 is causing an error, due to an old version of ffmpeg in the container. Here's the error when I run the youtube-dl command in the container:

# youtube-dl --no-playlist -q --no-warnings --no-mtime -o "%(title)s.%(ext)s" --merge-output-format "mp4" "https://www.youtube.com/watch?v=KLmqgI4QfHc"
ERROR: Stream #1:0 -> #0:1 (copy)

I installed version 4.2.2 of ffmpeg from here: https://www.ffmpeg.org/download.html#build-linux and it worked.

Unfortunately, apk add --upgrade ffmpeg only finds 4.2.1-r3. The Alpine package website lists 4.2.2-r1 (https://pkgs.alpinelinux.org/packages?name=ffmpeg&branch=edge&arch=x86_64), but I guess you'd need to move to a newer Alpine for apk to find it?

Hm... Looks like I spoke too soon. Not working after all. Closing this while I investigate further.