Code Monkey home page Code Monkey logo

ffmpeg-builds's People

Contributors

arakisatoshi avatar bastimeyer avatar bitraid avatar brainiarc7 avatar btbn avatar cdgriffith avatar chkimes avatar daniel-stanciu avatar dtugend avatar mrintrepide avatar n00mkrad avatar nanake avatar nihil-admirari avatar nyanmisaka avatar ogunkarakus avatar phantom10111 avatar pukkandan avatar realies avatar shirt-dev avatar sudo-nautilus avatar tsukumijima avatar yichengliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpeg-builds's Issues

Patch: Support for "Long Paths" on Windows

In the past, most parts of the Windows API only had support for paths with a maximum length of 260 (I think) characters (more precisely, bytes, afaik).
Since Windows 10 version 1607, one can enable support for "Long Paths" (disabled by default, in Windows 10 at least), which then allows for much longer paths (with 255 characters per path segment, which I think is in line with Linux).
See e.g. the Microsoft docs for details.

yt-dlp/yt-dlp already supports Long Paths on Windows, if enabled, from what I understand.
However, FFmpeg unfortunately does not, yet. Because of that, operations involving it fail if the path is longer than 260 characters.
There have already been issues opened with this as the root problem, for example yt-dlp/yt-dlp#1995 and yt-dlp/yt-dlp#1273 (I also ran into this problem).

There is an FFmpeg issue/ticket open for it, but it doesn't seem to be getting much attention.

Since other projects using FFmpeg have run into the same issue, there are some(?) custom FFmpeg builds with a patch that adds Long Paths support. I've looked around a bit for this.
The repository for staxrip has some information:
staxrip/staxrip#338, wiki: Windows 10 long path support, wiki: ffmpeg.

From what it sounds like, only a manifest needs to be added/changed (for the build process?) for FFmpeg to work correctly with Long Paths? I'm not familiar with this, unfortunately. The custom build is linked on the wiki pages above, but there doesn't seem to be source code for it there.

I have briefly tried out the patched FFmpeg build provided there with yt-dlp, with a video that previously failed postprocessing due to the path being too long, and it worked fine, no more errors.

Would it be possible to incorporate this patch here, as well?

Create a winget package for the custom ffmpeg builds and make yt-dlp detect it without config

As in title.

The rationale for "detect it without config" is:

Normally, you have to set the path to ffmpeg in config.txt somehow. However, there are two issues with this.

  1. If you install both yt-dlp and ffmpeg-for-yt-dlp using winget, you want them to just work, without having to mess around with them
  2. Every time you install winget packages, the path might be different, because winget puts them in programmatically created paths that include stuff like, i don't know, package verison or whatever. I don't really know the logic there, but the path is weird. So you can't keep a dotfile for yt-dlp, and have to re-set it every time, and figuring out what it is is annoying
  3. You want your dotfiles to include stuff you care about - holding a program's hand while it finds its optional dependencies isn't one of those things

Bug: The `./build.sh` script is skipping the patch in `/patches` , confirmed on both master and release/6.1 builds.

Hello there,

Subject matter refers: When building FFmpeg with the ./build.sh script, the patch routine is being skipped, see shell output:

peg-builds/linux64-nonfree-6.1:latest bash /build.sh
+ shopt -s nullglob
+ cd /ffbuild
+ rm -rf ffmpeg prefix
+ git clone --filter=blob:none --branch=release/6.1 https://github.com/FFmpeg/FFmpeg.git ffmpeg
Cloning into 'ffmpeg'...
remote: Enumerating objects: 435230, done.
remote: Counting objects: 100% (200/200), done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 435230 (delta 130), reused 185 (delta 122), pack-reused 435030
Receiving objects: 100% (435230/435230), 118.29 MiB | 1.93 MiB/s, done.
Resolving deltas: 100% (304152/304152), done.
remote: Enumerating objects: 8018, done.
remote: Counting objects: 100% (4516/4516), done.
remote: Compressing objects: 100% (4014/4014), done.
remote: Total 8018 (delta 1149), reused 502 (delta 502), pack-reused 3502
Receiving objects: 100% (8018/8018), 16.80 MiB | 4.37 MiB/s, done.
Resolving deltas: 100% (2322/2322), done.
Updating files: 100% (8190/8190), done.
+ cd ffmpeg
+ git config user.email builder@localhost
+ git config user.name Builder
++ date +%Y%m%d
+ ./configure --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-nonfree --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-openssl --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1  --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie '--extra-libs=-ldl -lgomp' --extra-version=20240201

As you can see, patch is being skipped entirely. A bug, perhaps?

Builds failing

Patch one is not applying on the master builds

EDIT: Actually, it appears that patch one was applied to master in FFmpeg/FFmpeg@cc5844d, so it can probably just be deleted

EDIT 2: Actually, it appears (I didn't look super closely) that all 5 patches were merged into master:
Patch 1-FFmpeg/FFmpeg@cc5844d
Patch 2-FFmpeg/FFmpeg@dfa062e
Patch 3-FFmpeg/FFmpeg@13350e8
Patch 4-FFmpeg/FFmpeg@c381f54
Patch 5-FFmpeg/FFmpeg@69364a0
In my opinion this repo should stay up though, so that all most yt-dlp users use the same builds, with the same codecs compiled, and we won't encounter any issues of people using ffmpeg lite etc. Also, this repo should stay up for when #26 gets merged

Question

This won't work on Android with Termux right?

Which build should I download?

Which build should I use? I use 64-bit windows, so that narrows me down to 8, and apparently the GPL builds have more features, and I don't mind a stricter license, so that narrows me down to 4, but what is the difference between these 4?

win64-gpl-4.4
win64-gpl-shared-4.4
win64-gpl-shared
win64-gpl

[Question] What is this ID in the filename?

Hi!

I'm wondering if that alphanumeric string gd38bf5e08e in the file name is a commit ID?

E.g, in ffmpeg-n7.0-7-gd38bf5e08e-win64-gpl-7.0.zip, is gd38bf5e08e the commit ID? Also, how can I use this ID to check out the commit history in the original FFmpeg and check what's been changed?

Thanks!

How to use?..

I am on Linux: how to use and what to run when you have ffmpeg installed from the repo?..

How to enable hardware acceleration?

First of all: Thanks for the fork!
This isn't really an issue and more of a question.
I try to enable d3d11va hardware acceleration using the command

--postprocessor-args='-hwaccel d3d11va'

in the last line of the config-file.
But I only get an error

### ERROR: Postprocessing: Error opening output files: Invalid argument

I am aware this might not be the right place to ask and I would love to ask again or repost this in a better place if anyone knows the answer.

HEVC-over-FLV has two standards, but FFmpeg only implements one of them.

HEVC-over-FLV has two standards, but FFmpeg only implements one of them.

Standard 1: codecid=12 for HEVC
Standard 2: enhanced-rtmp

The patch that was removed in history only implemented Standard 1, but did not implement Standard 2.
In FFmpeg 6.1, only Standard 2 is implemented and not Standard 1.

I have created a patch that supports both standards of HEVC-over-FLV and I hope it will be merged into the current project.

https://github.com/delhi2050/FFmpeg-Builds/blob/master/patches/ffmpeg/master/0002-Support-for-HEVC-over-FLV.patch

[bug] FFmpeg-ytdl, It doesn't really support long paths in the 'output' command.

OS: Windows Server 2019 x64 Datacenter 1809 (1773.2928);
Regedit to enable maxpath: 1 (even GPO is enabled);
FFmpeg used: ffmpeg version N-106989-gb033913d1c-20220524 | ffmpeg version n5.0.1-5-g72a00472d7-20220527 (obviously also with gyan's ffmpeg);

Full path: F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv

What have I done:

(I use a powershell script that is run by sonarr to convert x264 to h265).
Either directly from the command line or through a .ps1 I write this command:

B:\App\ffmpeg-ytdl\bin\ffmpeg.exe -hwaccel_device 0 -hwaccel cuda -i "\\?\F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv" -pix_fmt p010le -map 0:v -c:v hevc_nvenc -preset slow -crf 26 -map 0:a? -map 0:s? -map 0:d? -map 0:t? -c:a copy -c:s copy -c:d copy -c:t copy "\\?\F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi... - h265.mkv"

I used \\?\ In the input (-i) and it runs fine even if the path+filename is over 260 (if I omit \\?\ from -i It gives me the error: No such file or directory).
If I use 5N, I add -5N after ffmpeg-ytdl in the command.

Command executed from cmd with omit of `\\?\` from `-i`:
ffmpeg -hwaccel_device 0 -hwaccel cuda -i "F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv" -pix_fmt p010le -map 0:v -c:v hevc_nvenc -preset slow -crf 26 -map 0:a? -map 0:s? -map 0:d? -map 0:t? -c:a copy -c:s copy -c:d copy -c:t copy "\\?\F:\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - h265.mkv"
ffmpeg version n5.0.1-5-g72a00472d7-20220527 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220527
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv: No such file or directory
If I don't omit `\\?\` from `-i` (brings us to my current problem):
ffmpeg -hwaccel_device 0 -hwaccel cuda -i "\\?\F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv" -pix_fmt p010le -map 0:v -c:v hevc_nvenc -preset slow -crf 26 -map 0:a? -map 0:s? -map 0:d? -map 0:t? -c:a copy -c:s copy -c:d copy -c:t copy "\\?\F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi... - h265.mkv"
ffmpeg version n5.0.1-5-g72a00472d7-20220527 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220527
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Input #0, matroska,webm, from '\\?\F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv':
  Metadata:
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2022-03-19T19:45:43.000000Z
  Duration: 00:23:33.55, start: 0.000000, bitrate: 8121 kb/s
  Stream #0:0(jpn): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS-eng         : 7955246
      DURATION-eng    : 00:23:32.037000000
      NUMBER_OF_FRAMES-eng: 33855
      NUMBER_OF_BYTES-eng: 1404137749
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      BPS-eng         : 128000
      DURATION-eng    : 00:23:32.098000000
      NUMBER_OF_FRAMES-eng: 60814
      NUMBER_OF_BYTES-eng: 22593574
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      title           : English
      BPS-eng         : 164
      DURATION-eng    : 00:23:31.230000000
      NUMBER_OF_FRAMES-eng: 342
      NUMBER_OF_BYTES-eng: 29058
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(por): Subtitle: ass
    Metadata:
      title           : Portuguese(Brazil)
      BPS-eng         : 175
      DURATION-eng    : 00:23:31.230000000
      NUMBER_OF_FRAMES-eng: 347
      NUMBER_OF_BYTES-eng: 30940
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(spa): Subtitle: ass
    Metadata:
      title           : Spanish(Latin_America)
      BPS-eng         : 136
      DURATION-eng    : 00:23:31.150000000
      NUMBER_OF_FRAMES-eng: 298
      NUMBER_OF_BYTES-eng: 24016
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(spa): Subtitle: ass
    Metadata:
      title           : Spanish
      BPS-eng         : 136
      DURATION-eng    : 00:23:31.150000000
      NUMBER_OF_FRAMES-eng: 298
      NUMBER_OF_BYTES-eng: 24036
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(ara): Subtitle: ass
    Metadata:
      title           : Arabic
      BPS-eng         : 191
      DURATION-eng    : 00:23:31.230000000
      NUMBER_OF_FRAMES-eng: 340
      NUMBER_OF_BYTES-eng: 33825
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(fre): Subtitle: ass
    Metadata:
      title           : French
      BPS-eng         : 177
      DURATION-eng    : 00:23:32.620000000
      NUMBER_OF_FRAMES-eng: 344
      NUMBER_OF_BYTES-eng: 31337
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:8(ger): Subtitle: ass
    Metadata:
      title           : German
      BPS-eng         : 163
      DURATION-eng    : 00:23:31.630000000
      NUMBER_OF_FRAMES-eng: 338
      NUMBER_OF_BYTES-eng: 28785
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:9(ita): Subtitle: ass
    Metadata:
      title           : Italian
      BPS-eng         : 225
      DURATION-eng    : 00:23:31.230000000
      NUMBER_OF_FRAMES-eng: 385
      NUMBER_OF_BYTES-eng: 39721
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:10(rus): Subtitle: ass
    Metadata:
      title           : Russian
      BPS-eng         : 224
      DURATION-eng    : 00:23:31.290000000
      NUMBER_OF_FRAMES-eng: 306
      NUMBER_OF_BYTES-eng: 39605
      _STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-03-19 19:45:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:11: Attachment: ttf
    Metadata:
      filename        : arialbd.ttf
      mimetype        : application/x-truetype-font
  Stream #0:12: Attachment: ttf
    Metadata:
      filename        : arialbi.ttf
      mimetype        : application/x-truetype-font
  Stream #0:13: Attachment: ttf
    Metadata:
      filename        : Arial_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:14: Attachment: ttf
    Metadata:
      filename        : ariblk_0.TTF
      mimetype        : application/x-truetype-font
  Stream #0:15: Attachment: ttf
    Metadata:
      filename        : calibri.ttf
      mimetype        : application/x-truetype-font
  Stream #0:16: Attachment: ttf
    Metadata:
      filename        : comicbd.ttf
      mimetype        : application/x-truetype-font
  Stream #0:17: Attachment: ttf
    Metadata:
      filename        : comic_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:18: Attachment: ttf
    Metadata:
      filename        : georgiab.ttf
      mimetype        : application/x-truetype-font
  Stream #0:19: Attachment: ttf
    Metadata:
      filename        : georgiaz.ttf
      mimetype        : application/x-truetype-font
  Stream #0:20: Attachment: ttf
    Metadata:
      filename        : georgia_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:21: Attachment: ttf
    Metadata:
      filename        : impact_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:22: Attachment: ttf
    Metadata:
      filename        : Tahoma_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:23: Attachment: ttf
    Metadata:
      filename        : times_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:24: Attachment: ttf
    Metadata:
      filename        : trebuc_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:25: Attachment: ttf
    Metadata:
      filename        : verdana_0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:26: Attachment: ttf
    Metadata:
      filename        : AdobeArabic-Bold.otf
      mimetype        : application/x-truetype-font
  Stream #0:27: Attachment: ttf
    Metadata:
      filename        : AdobeArabic-BoldItalic.otf
      mimetype        : application/x-truetype-font
  Stream #0:28: Attachment: ttf
    Metadata:
      filename        : AdobeArabic-Italic.otf
      mimetype        : application/x-truetype-font
  Stream #0:29: Attachment: ttf
    Metadata:
      filename        : AdobeArabic-Regular.otf
      mimetype        : application/x-truetype-font
\\?\F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi... - h265.mkv: Invalid argument

If I omit \\?\ from the output... same error from doing it on -i (says it can't find the directory/file). While if I leave \\?\, It actually "finds" the file but says that the arguments are invalid.
And well, after 6 full hours of testing I discovered that it is not the \\?\ that does not work on the output, simply, it is the output function that does not allow to use the file name too long (while on -i it does not happen).

The test was putting "\\?\F:\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - h265.mkv" as output and ffmpeg ran smoothly ๐Ÿคฌ๐Ÿ™ƒ.

Debug Script:
$VerbosePreference="Continue"
Set-PSDebug -Trace 2
$sonarr_episodefile_path = "F:\Anime2\Miss Kuroitsu From the Monster Development Department\Stagione 01\Miss Kuroitsu From the Monster Development Department - s01e10 - Erai-raws [HDTV-1080p] - OE010 - The Very Concept of the Evil Being That Bewitches Souls Summons New Demons through the Chaos It Brings When It Drowns in Turmoil over Its Puzzling Exi....mkv"
Write-Host "$sonarr_episodefile_path"

$mFP = Split-Path $sonarr_episodefile_path -Parent
$mFP = $mFP+'\'
#$fp = Split-Path -Path $sonarr_episodefile_path
#$fn = Split-Path $sonarr_episodefile_path -Leaf

$sfn = [IO.Path]::GetFileNameWithoutExtension($sonarr_episodefile_path)
$sfx = [IO.Path]::GetExtension($sonarr_episodefile_path)

Write-host "$mFP"
Write-host "$sfn"
Write-host "$sfx"
Write-host "\\?\F:\$sfn - h265$sfx"
#$out = "$mFP$sfn - h265$sfx"

$exe = "B:\App\ffmpeg-ytdl\bin\ffmpeg.exe"

#if ($sonarr_eventtype -eq "Download")
#{
#    ffmpeg blah blah
#}
#elseif ($sonarr_eventtype -eq "Test")
#{
#    Write-Host "Test Ok!"
#    exit
#}
# Write-Host "Error!"
# exit

B:\App\ffmpeg-ytdl\bin\ffmpeg.exe -hwaccel_device 0 -hwaccel cuda -i "\\?\$sonarr_episodefile_path" -pix_fmt p010le -map 0:v -c:v hevc_nvenc -preset fast -crf 26 -map 0:a? -map 0:s? -map 0:d? -map 0:t? -c:a copy -c:s copy -c:d copy -c:t copy "\\?\F:\$sfn - h265$sfx"
if ($LastExitCode -eq "1")
{
    throw "$exe failed with exit code $LastExitCode"
}

Move-Item -LiteralPath "F:\$sfn - h265$sfx" -Destination "$mFP"

#Remove-Item -LiteralPath $sonarr_episodefile_path

PLEASE NOTE!:

That crap sonarr passes the filename through an environment variable to the script.
The variable is sonarr_episodefile_path and it is the full path plus the file name and its extension (I couldn't figure out if it adds \\?\ when the name is too long but I think not).
THIS MEANS I CANNOT TOUCH NEITHER THE PATH OR THE FILE NAME (THOSE ARE AND THOSE REMAIN... until they are then "decomposed" in my script into separate variables: path, filename and extension).

So I just add " - h265" to the file name and then delete the starting file.
As a workarround I could use a temporary drive to do the output and then overwrite the original (from the script) but honestly I don't like it.

Thanks in advance!

installation instructions?

How do I install these builds of ffmpeg and ffprobe on Ubuntu?
I clicked on "Wiki" but did not find instructions. Sorry for the noob question...

No support for ARM (raspberry pi 4)

It would be nice to provide these custom ffmpeg builds for ARM. I'm using a raspberry pi 4 on Ubuntu Server and have to use the builds that Ubuntu (apt install) provides. They work about 90% of the time, but occasionally I'll get these errors:
ERROR: Postprocessing: Conversion failed!

Attached is the full verbose output, curious that python threw an exception too.
ytdlp_ffmpeg_error.txt

ffmpeg hangs when recording livestreams

Hey,

I wasn't sure if I should ask this question here or in the yt-dlp issues, but since it has more to do with ffmpeg I guess it makes more sense to ask here.

Every now and then ffmpeg just hangs forever when recording a livestream with yt-dlp, it just gets stuck on reading the m3u8 at random times sometimes after minutes sometimes hours.

I suppose it has to do with the server having a connection issue but the socket not closing the connection so ffmpeg just waits forever to receive something, despite the stream actually continuing.

I played around with all the timeout options in ffmpeg as well as in yt-dlp but nothing changed this behavior.

The only information that sounds like this issue online that I could find was this: http://michael-peeters.blogspot.com/2019/03/hanging-m3u8-downloads-in-ffmpeg.html?m=1

and then also this fork of ffmpeg that sounds like it deals with a similar or exactly this issue? https://github.com/bsenftner/FFmpeg

So my question I guess is, is there a way to fix this issue without a proxy and or using a different ffmpeg fork?

Question: Updating my ffmpeg

Hey So how do I go about updating my ffmpeg? I replace the .exe files for the bin folder, but what do I do with the doc folder?

Patch 1 fails to apply

Sorry to be annoying, but the builds are failing again. This time, it's because patch 1 fails to apply on ffmpeg master.

[Feature Request] Alpine Linux build

As I understand, Alpine Linux links differently than typical Linux builds. I tried downloading and running the executable along with Alpine's libc6-compat package, and got many symbol not found errors.

Since this builds from source, I think a github workflow could be added to do the build within an alpine linux docker container.
This would be beneficial to many docker containers that use Alpine

stable download URL and version?

In https://github.com/hayguen/clipgrab, i've added explicit check for available version of yt-dlp on github, by parsing __version__ line of https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/yt_dlp/version.py

It's simple to compare against the output of yt-dlp --version and allow an update by retrieving e.g. https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp for Linux.

Despite reading issue #10, i'm still confused howto find out the right URL for stable releases, cause those contain the version in the filename, as in https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-n5.1-latest-linux64-gpl-5.1.tar.xz
and the Links at https://github.com/yt-dlp/FFmpeg-Builds#downloads do only provide the latest non-stable master downloads.

Can someone give me a hint, how to automatically determine the latest stable online version and the corresponding URLs?

In addition, it should be possible the retrieve the same version string or just the iso-date running sort of ffmpeg --version-date.

How do I build this from source?

When I run build.sh, it fails saying that I'm not providing enough arguments.
Could you explain how to build this from source?

[mov,mp4,m4a,3gp,3g2,mj2 @ 00000265dad6e740] moov atom not found pipe:0: Invalid data found when processing input

youtube-dl -o - -f '140+134' https://www.youtube.com/watch?v=InweWI41HFE | ffmpeg -re -f mp4 -i pipe:0 -c:a copy -ac 1 -ar 44100 -b:a 128k -c:v libx264 -tune psnr -f flv -b:v 1.5M -maxrate 1.5M -bufsize 3M -g 60 -preset veryfast rtmps://live-api-s.facebook.com:443/rtmp/FB-429913729717319-0-AbyZanKVcZhh3jyH
[youtube] Extracting URL: https://www.youtube.com/watch?v=InweWI41HFE
[youtube] InweWI41HFE: Downloading webpage
[youtube] InweWI41HFE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] InweWI41HFE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] InweWI41HFE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] InweWI41HFE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
WARNING: [youtube] InweWI41HFE: nsig extraction failed: You may experience throttling for some formats
Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
n = sPecqnfUe7cGTXB ; player = https://www.youtube.com/s/player/9383995e/player_ias.vflset/en_US/base.js
WARNING: [youtube] InweWI41HFE: nsig extraction failed: You may experience throttling for some formats
Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
n = TF3nm1b0D3Vd0N6 ; player = https://www.youtube.com/s/player/9383995e/player_ias.vflset/en_US/base.js
[info] InweWI41HFE: Downloading 1 format(s): 140+134
[download] Destination: -
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://rr1---sn-hx3voboxu-2oil.googlevideo.com/videoplayback?expire=1711615962&ei=edsEZsTbPIuU1d8P1fSU-AU&ip=202.57.209.213&id=o-AKis3gRMZpXOWifKER4agAP1ew8UEgM2ydUs-OmjXZ5P&itag=140&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=8H&mm=31%2C29&mn=sn-hx3voboxu-2oil%2Csn-30a7rned&ms=au%2Crdu&mv=m&mvi=1&pl=26&initcwndbps=867500&spc=UWF9f3O5jRIQMNSfyTFfIReNtYVlC8_aWZaFxfuREm2GXSA&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=Lsx35970YgEvU1-SlLQSlI4Q&gir=yes&clen=11389011&dur=703.680&lmt=1711259128025150&mt=1711593894&fvip=2&keepalive=yes&fexp=51141542&c=WEB&sefc=1&txp=5532434&n=TF3nm1b0D3Vd0N6&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRAIgRJGOxXFDq9YzVav0a45UXIvstElYcFDUcXIVvLmONmsCIAjeMNzkNGeefGRCPokxYIQ_DdhGwIoWTdFQME8x6Bv5&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRgIhANr5EfJrzV0k_ioi8NZ8f84nJqIqprdHeeqdsg9bOlLzAiEA0ur5qCGMpN1v4ZLAxwj-L15VJjOsPUe8Zaj5-dmv0LY%3D':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
creation_time : 2024-03-24T05:44:44.000000Z
Duration: 00:11:43.68, start: 0.000000, bitrate: 129 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 1 kb/s (default)
Metadata:
creation_time : 2024-03-24T05:44:44.000000Z
handler_name : ISO Media file produced by Google Inc.
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'https://rr1---sn-hx3voboxu-2oil.googlevideo.com/videoplayback?expire=1711615962&ei=edsEZsTbPIuU1d8P1fSU-AU&ip=202.57.209.213&id=o-AKis3gRMZpXOWifKER4agAP1ew8UEgM2ydUs-OmjXZ5P&itag=134&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=8H&mm=31%2C29&mn=sn-hx3voboxu-2oil%2Csn-30a7rned&ms=au%2Crdu&mv=m&mvi=1&pl=26&initcwndbps=867500&spc=UWF9f3O5jRIQMNSfyTFfIReNtYVlC8_aWZaFxfuREm2GXSA&vprv=1&svpuc=1&mime=video%2Fmp4&ns=Lsx35970YgEvU1-SlLQSlI4Q&gir=yes&clen=27651575&dur=703.633&lmt=1711264865159725&mt=1711593894&fvip=2&keepalive=yes&fexp=51141542&c=WEB&sefc=1&txp=5535434&n=TF3nm1b0D3Vd0N6&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIhAOGBRK9zN3rJT1g_xgXhJZGvVWEpCOz9Qu4foQUbTUcGAiBvX6eLpG6DQcaudF4LNFWEh6Zs7yrrKsVmGALe6yudiA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRgIhANr5EfJrzV0k_ioi8NZ8f84nJqIqprdHeeqdsg9bOlLzAiEA0ur5qCGMpN1v4ZLAxwj-L15VJjOsPUe8Zaj5-dmv0LY%3D':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2024-03-24T07:00:10.000000Z
Duration: 00:11:43.63, start: 0.000000, bitrate: 314 kb/s
Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 2 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
creation_time : 2024-03-24T07:00:10.000000Z
handler_name : ISO Media file produced by Google Inc.
Output #0, mpegts, to 'pipe:':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
encoder : Lavf58.45.100
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 1 kb/s (default)
Metadata:
creation_time : 2024-03-24T05:44:44.000000Z
handler_name : ISO Media file produced by Google Inc.
Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 2 kb/s, 30 fps, 30 tbr, 90k tbn, 15360 tbc (default)
Metadata:
creation_time : 2024-03-24T07:00:10.000000Z
handler_name : ISO Media file produced by Google Inc.
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=21109 fps= 45 q=-1.0 Lsize= 44546kB time=00:11:43.65 bitrate= 518.6kbits/s speed= 1.5x
video:26740kB audio:10995kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 18.047729%
[download] 100% in 00:07:52
ffmpeg version 4.3.2-2021-02-02-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000265dad6e740] moov atom not found
pipe:0: Invalid data found when processing input

How to install alongside chocolatey version?

I have installed yt-dlp through Chocolatey package manager and I also installed FFmpeg Full version with chocolatey.

How to install this build to use it only with yt-dlp and don't effect the original FFmpeg command?

Error when unpacking release executables - tar: This does not look like a tar archive

In my Dockerfiles I have:

curl -L -o ffmpeg.tar.gz https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz && \
      tar -xf ffmpeg.tar.gz && \

As of today they error with:

#7 45.89   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#7 45.89                                  Dload  Upload   Total   Spent    Left  Speed
#7 45.89 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     9    0     9    0     0     34      0 --:--:-- --:--:-- --:--:--    34
#7 46.15 tar: This does not look like a tar archive
#7 46.15 
#7 46.15 gzip: stdin: not in gzip format
#7 46.15 tar: Child returned status 1
#7 46.15 tar: Error is not recoverable: exiting now

Both linux64 and Windows are giving me issues. Any help would be great- thanks!

Windows master builds failing

The Windows builds of the master branch are failing

I'm going to try to run tests to see which patch is causing the error (but I can't help much beyond that)

Test 1: does ffmpeg build successfully if the last 3 patches are deleted?
Result: no (potentially caused by interference from the scheduled build, but I highly doubt it, based on the log)

Test 2: Does it build if we delete patches 2-6 (so only patch 1 applies)?
Result: workflow failed, due to permissions error, but the part that was failing succeeded, so I'm calling it a success

Test 3: Does it build with patches 3-6 deleted?
Result: workflow failed, due to error pruning old releases, but the part that was failing succeeded, so I'm calling it a success

As such, patch 3 is the problematic patch

CC @nihil-admirari

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Cannot determine format of input stream 0:0 after EOF Error marking filters as finished Conversion failed!

youtube-dl -o - https://www.youtube.com/watch?v=q3LSVW99Drw | ffmpeg -re -f mp4 -i pipe:0 -c:a copy -ac 1 -ar 44100 -b:a 128k -c:v libx264 -tune psnr -f flv -b:v 1.5M -maxrate 1.5M -bufsize 3M -g 60 -preset veryfast rtmps://live-api-s.facebook.com:443/rtmp/FB-429913729717319-0-AbyZanKVcZhh3jyH
[youtube] Extracting URL: https://www.youtube.com/watch?v=q3LSVW99Drw
[youtube] q3LSVW99Drw: Downloading webpage
[youtube] q3LSVW99Drw: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] q3LSVW99Drw: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] q3LSVW99Drw: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] q3LSVW99Drw: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
WARNING: [youtube] q3LSVW99Drw: nsig extraction failed: You may experience throttling for some formats
Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
n = bZUIGRGQQ3YqkW9 ; player = https://www.youtube.com/s/player/9383995e/player_ias.vflset/en_US/base.js
WARNING: [youtube] q3LSVW99Drw: nsig extraction failed: You may experience throttling for some formats
Install PhantomJS to workaround the issue. Please download it from https://phantomjs.org/download.html
n = juGOVyB7rTRPGaA ; player = https://www.youtube.com/s/player/9383995e/player_ias.vflset/en_US/base.js
[info] q3LSVW99Drw: Downloading 1 format(s): 18
[download] Destination: -
[download] 100% of 27.83MiB in 00:08:18 at 57.20KiB/s
ffmpeg version 4.3.2-2021-02-02-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000026c9838e740] overread end of atom 'stsd' by 39 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000026c9838e740] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 575x360): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
Duration: 00:07:08.83, bitrate: N/A
Stream #0:0(ui): Video: h264 (avc1 / 0x31637661), none, 575x360, 12288 tbr, 12288 tbn, 24576 tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

Creating security context failed (0x80090300)

Streams fail to download with the above error.

This is an issue carried over from BtbN's build. According to user smitelli, it is because it is compiled without TLS v1.2 support.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.