Closed wjbridge closed 1 year ago
This is great stuff @wjbridge ! I will definitely add this. Last time a messed with upgrading ffmpeg, 5.1 wasn't available on Alpine. Glad to see that has changed :)
Also, yt-dlp might need phantomjs
. This segment will install this in the container if you want to include it
RUN apk add --no-cache fontconfig && \
mkdir -p /usr/share && \
cd /usr/share \
&& curl -L https://github.com/Overbryd/docker-phantomjs-alpine/releases/download/2.11/phantomjs-alpine-x86_64.tar.bz2 | tar xj \
&& ln -s /usr/share/phantomjs/phantomjs /usr/bin/phantomjs \
&& phantomjs --version
Haven't forgot about this, will be the next thing I add. Hopefully this weekend
Is there any guide information on how to use sponsorblock?
So I was doing some research, and I saw this issue https://github.com/jmbannon/ytdl-sub/issues/272 in the list. I am trying to remove Sponsorblock categories in the videos but if the video is not MP4 the conversion fails using
yt-dlp
. The FFMPEG post-processing does not work because this happens after the video is downloaded byyt-dlp
.After some research, I found this related issue, https://github.com/yt-dlp/yt-dlp/issues/871. Seems that the FFMPEG version matters when converting non-MP4 videos. The FFMPEG version needs to be at least
5.1
rather than5.0
.I did some testing modifying the docker file to see if this fixes the issue and I was able to get the Sponsorblock remove categories working! I am not an expert on this related stuff but I thought I share my findings so maybe the proper modifications could make it into a release. Please forgive any Dockerfile proper format rules...I was just testing it out. I had to upgrade the
baseimage-alpine
and install a release candidate FFMPEG version5.1.2-r7
.config.yaml
Dockerfile
Log Output: