GithubHelp home page GithubHelp logo

codexffmpeg's People

Contributors

gyand 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codexffmpeg's Issues

Question: What's the recommended algorithm for comparing versions, checking for updates?

I couldn't find a simple ffmpeg updater for Windows, so I decided to learn Python and write one for myself. Can you lay down the law for me so I know how to check if there's an update? I'll tell you my guess first: I don't think ffmpeg has an official standardized version output as nice as your web one, but I think I could check if the first line of ffmpeg -version contains your version at https://www.gyan.dev/ffmpeg/builds/release-version and if it's not there, blast the old file with an update. That's imprecise, but it would seem to work, and the cost of getting it wrong wouldn't be large.

I'd love to know what version comparison and update algorithm you'd recommend!

Thank you Gyan for your work keeping the Windows world on ffmpeg.

ffmeg full build doesnt extract to C:\Program Files\ffmpeg

Windows 10. I downloaded the full ffmpeg build, and installed the 7z extractor. Errors are cannot create file C:\Program Files\ffmpeg\ffmpeg
This is my daughters computer. Im not a windows guy, I use linux for more than 20 years.
Any help is appreciated.
TIA

Add "--enable-rsvg" for full builds

Firstly, thanks for your effort!

Would you please add the option --enable-rsvg (and possibly some others if appropriate) when building the "full" variants? I personally don't mind the pre-built binary becoming a little larger. Also, this support seems enabled by default for Linux releases.

cenc

hey gyan thanks for adding cenc decryption key option
the some url require 2 key to download or to be working video and audio
if possible to add a function to add more keys if possible thanks

I can't run -stats_period when compiling for Windows. Could you add?

I am using -pregress to get the current frame that is being processed, leaving it in a .txt file, but I would like to use -stats_period to control the time that the file is updated. However, when adding -stats_period to the script, it presents an error message:

Unrecognized option 'stats_period'. Error splitting the argument list: Option not found

FFmpeg(git full version) filter ebur128 true-peak error

$ ffmpeg -i input.m4a -map a:0 -af ebur128=framelog=verbose:peak=true -f null -

ffmpeg version 2022-04-07-git-607ecc27ed-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 11.2.0 (Rev7, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --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-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --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 57. 24.101 / 57. 24.101
libavcodec 59. 25.101 / 59. 25.101
libavformat 59. 20.101 / 59. 20.101
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 30.100 / 8. 30.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\if-def.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: M4A isomiso2
encoder : Lavf59.20.101
Duration: 00:05:22.25, start: 0.000000, bitrate: 131 kb/s
Stream #0:00x1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[SWR @ 00000250f52b2f00] Input channel layout "0 channels" is invalid or unsupported.
[SWR @ 00000250f52b2f00] Output channel layout "0 channels" is invalid or unsupported.
[SWR @ 00000250f52b2f00] Input channel count and layout are unset
[Parsed_ebur128_0 @ 00000250f513c780] Failed to configure output pad on Parsed_ebur128_0
[Parsed_ebur128_0 @ 00000250f513c780] Summary:

Integrated loudness:
I: -70.0 LUFS
Threshold: 0.0 LUFS

Loudness range:
LRA: 0.0 LU
Threshold: 0.0 LUFS
LRA low: 0.0 LUFS
LRA high: 0.0 LUFS

True peak:
Peak: -inf dBFS
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

libaom-av1 source

The most recent build's libaom-av1's version is reported as 2.0.1-1094-g62541313c.

Its part after g probably corresponds to the hash of some Git commit.

When it was 2.0.0-something, the hashes were from the HEAD of https://aomedia.googlesource.com/aom/+log/

Where should I look for the current source of commits?

DCONFIG_TUNE_VMAF=1

Hello I have problems using vmaf tune. Maybe Im doing something wrong but with:

ffmpeg -i input.mkv -c:v libaom-av1 -some_options -aom-params some_params:tune=vmaf -c:a copy output.mkv

I get this error:

[libaom-av1 @ 000001c2d1247940] 3.3.0-408-g4becfef8d
[libaom-av1 @ 000001c2d1247940] tune: Invalid parameter
[libaom-av1 @ 000001c2d1247940] Additional information: This error may be related to the wrong configuration options: try to set -DCONFIG_TUNE_VMAF=1 at the time CMake is run.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

Without vmaf tune it works perfectly

Release dates

I'm assuming that you're building the releases after midnight from the previous day. So the current says "11-04-2021", but actually the file version says "11-03-2021". Can you match the release date with the actual file version number, please?

Thank you for hosting!

libx264rgb error

Hi, @GyanD I have a problem with the libx264rgb.

When i was using ffmpeg i use libx264rgb to convert videos.

But when I converted a video there was a error.

I will put you a picture so that you can see what happened.

Original:

Test.mp4

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -to 00:00:05 -i "..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4" -c:v libx264 -map 0:0 "....\Test.mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2020-10-04T02:38:22.000000Z
Duration: 00:04:01.53, start: 0.000000, bitrate: 5321 kb/s
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1728x1080, 5000 kb/s, 15 fps, 15 tbr, 30k tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001b5f3920440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI2 AVX2
[libx264 @ 000001b5f3920440] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001b5f3920440] 264 - core 164 r3065 ae03d92 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '....\Test.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf59.4.102
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1728x1080, q=2-31, 15 fps, 15360 tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc59.6.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 75 fps=4.6 q=-1.0 Lsize= 1531kB time=00:00:04.80 bitrate=2612.3kbits/s speed=0.297x
video:1529kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.116314%
[libx264 @ 000001b5f3920440] frame I:1 Avg QP:21.75 size: 77841
[libx264 @ 000001b5f3920440] frame P:19 Avg QP:19.90 size: 36004
[libx264 @ 000001b5f3920440] frame B:55 Avg QP:21.47 size: 14600
[libx264 @ 000001b5f3920440] consecutive B-frames: 1.3% 2.7% 0.0% 96.0%
[libx264 @ 000001b5f3920440] mb I I16..4: 46.9% 44.6% 8.5%
[libx264 @ 000001b5f3920440] mb P I16..4: 19.3% 19.1% 1.9% P16..4: 37.6% 10.5% 4.5% 0.0% 0.0% skip: 7.1%
[libx264 @ 000001b5f3920440] mb B I16..4: 3.0% 2.5% 0.2% B16..8: 39.8% 5.3% 0.7% direct: 6.3% skip:42.2% L0:47.7% L1:48.0% BI: 4.3%
[libx264 @ 000001b5f3920440] 8x8 transform intra:46.2% inter:82.0%
[libx264 @ 000001b5f3920440] coded y,uvDC,uvAC intra: 33.9% 48.0% 6.2% inter: 16.8% 27.0% 0.0%
[libx264 @ 000001b5f3920440] i16 v,h,dc,p: 29% 25% 23% 22%
[libx264 @ 000001b5f3920440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 34% 3% 5% 6% 5% 3% 3%
[libx264 @ 000001b5f3920440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 15% 19% 3% 12% 13% 7% 4% 3%
[libx264 @ 000001b5f3920440] i8c dc,h,v,p: 53% 20% 22% 4%
[libx264 @ 000001b5f3920440] Weighted P-Frames: Y:21.1% UV:10.5%
[libx264 @ 000001b5f3920440] ref P L0: 55.8% 9.8% 21.2% 11.2% 1.9%
[libx264 @ 000001b5f3920440] ref B L0: 84.8% 11.9% 3.3%
[libx264 @ 000001b5f3920440] ref B L1: 92.8% 7.2%
[libx264 @ 000001b5f3920440] kb/s:2503.84

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -i "....\Test.mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '....\Test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.4.102
Duration: 00:00:05.00, start: 0.000000, bitrate: 2507 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1728x1080, 2504 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
Metadata:
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
At least one output file must be specified

Converted in libx264rgb:

Test.1.mp4

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -to 00:00:05 -i "..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4" -c:v libx264rgb -map 0:0 "....\Test (1).mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2020-10-04T02:38:22.000000Z
Duration: 00:04:01.53, start: 0.000000, bitrate: 5321 kb/s
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1728x1080, 5000 kb/s, 15 fps, 15 tbr, 30k tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264rgb))
Press [q] to stop, [?] for help
[libx264rgb @ 0000018962910440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI2 AVX2
[libx264rgb @ 0000018962910440] profile High 4:4:4 Predictive, level 4.0, 4:4:4, 8-bit
[libx264rgb @ 0000018962910440] 264 - core 164 r3065 ae03d92 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '....\Test (1).mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf59.4.102
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), rgb24(pc, bt709, progressive), 1728x1080, q=2-31, 15 fps, 15360 tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc59.6.100 libx264rgb
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 75 fps=3.2 q=-1.0 Lsize= 3896kB time=00:00:04.80 bitrate=6649.5kbits/s speed=0.203x x
video:3894kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.046165%
[libx264rgb @ 0000018962910440] frame I:1 Avg QP:24.03 size:221164
[libx264rgb @ 0000018962910440] frame P:19 Avg QP:22.22 size: 90422
[libx264rgb @ 0000018962910440] frame B:55 Avg QP:23.56 size: 37237
[libx264rgb @ 0000018962910440] consecutive B-frames: 1.3% 2.7% 0.0% 96.0%
[libx264rgb @ 0000018962910440] mb I I16..4: 19.6% 69.6% 10.8%
[libx264rgb @ 0000018962910440] mb P I16..4: 20.3% 23.2% 2.4% P16..4: 25.4% 16.5% 10.1% 0.0% 0.0% skip: 2.2%
[libx264rgb @ 0000018962910440] mb B I16..4: 3.9% 3.7% 0.5% B16..8: 41.3% 5.5% 1.2% direct:13.6% skip:30.4% L0:44.7% L1:42.3% BI:13.0%
[libx264rgb @ 0000018962910440] 8x8 transform intra:50.4% inter:74.2%
[libx264rgb @ 0000018962910440] coded y,u,v intra: 28.9% 44.8% 42.0% inter: 16.8% 37.6% 33.9%
[libx264rgb @ 0000018962910440] i16 v,h,dc,p: 28% 26% 26% 20%
[libx264rgb @ 0000018962910440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 23% 35% 3% 3% 4% 4% 3% 3%
[libx264rgb @ 0000018962910440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 22% 3% 9% 10% 6% 4% 3%
[libx264rgb @ 0000018962910440] Weighted P-Frames: Y:21.1% UV:15.8%
[libx264rgb @ 0000018962910440] ref P L0: 49.9% 8.7% 23.3% 14.9% 3.2%
[libx264rgb @ 0000018962910440] ref B L0: 84.9% 12.0% 3.1%
[libx264rgb @ 0000018962910440] ref B L1: 93.3% 6.7%
[libx264rgb @ 0000018962910440] kb/s:6379.53

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -i "....\Test (1).mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '....\Test (1).mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.4.102
Duration: 00:00:05.00, start: 0.000000, bitrate: 6383 kb/s
Stream #0:00x1: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc, bt709), 1728x1080, 6380 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
Metadata:
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
At least one output file must be specified

if you could fix the libx264rgb error?

32bit for windows

Hi, GyanD.
Would you please build 32bit full lib for windows?
Thanks.

Enable AVS2/3 encoder, please.

AVS2/3 (IEEE 1857, GPL v2) is faster and easier than H265 or AV1, and the patent licensing fees is very simple and affordable.
BtbN is taked my advice. Your website is faster usually. Encoder is enough in most case.
Thank you, very much!

How to build ffmpeg dlls to debug under Visual Studio?

Hi, @GyanD, I met another problem and searching on google with no good advice.
I have built ffmpeg dlls with your seggustions, and got these independent dlls.I can link these dlls in VS project with '/SAFESEH:NO' linking option.But I find these dlls can not be debuged.I try to built ffmpeg with these additional configuration
parameters: '--enable-debug=3 --disable-optimizations --disable-stripping', but the built dll still can not be debuged.I found these suggested building parameters on 'MediaSDK' github page: https://github.com/Intel-Media-SDK/MediaSDK/wiki/Build-FFmpeg-QSV.It suggest these parameters to build a debug ffmpeg(On ubuntu):
./configure --arch=x86_64 --disable-yasm --enable-vaapi --enable-libmfx
--enable-debug=3 --disable-stripping --extra-cflags=-gstabs+
--disable-optimizations
make
Among these parameters, I found '--extra-cflags=-gstabs+' is not compatible with the gcc in mingw64, so I remove it.
Could you give me some advice on how to build a debugable ffmpeg for VS debuging on Windows?Thanks in advance!

Please create a simple GUI for it

I recognized that there often some things removed, edited or changed so older GUI and Programs doesnt work correctly with new ffmpeg versions. In the end all programs also the ones u have to pay for use ffmpeg.

It would be great when you guys create a simple GUI for it that dynamicly list up all aviable commands/paremeters depending to codec and the other options.

I tried it myself the past 2 days via CMD but i had a lot issues to find good settings.

Cannot use inbuilt vmaf model?

Command to use in built models in vmaf is not working in your build?

Command: ffmpeg.exe -f lavfi -i color=c=black:s=640x480:d=1 -filter_complex "[0:v][0:v]libvmaf=model=version=vmaf_v0.6.1" -f null -

BtbN Output:
btbn

Gyan Output:
gyan

Probabale Cause: Unix-Windows path interoperability .....as BtbN is cross-compiled.

Plz suggest ...I have tried lot of combinations ......fmpeg docs are outdated......even built my own FFmpeg with gcc & MSYS2 project...but the result is same.

Invalid DTS error

I'm currently using this code to capture 3 windows at once, scale them to the same dimension, and save their output side by side.
The problem is, it keeps throwing a message in the console the entire time about Invalid DTS, the output file is being saved correctly, but as it spams this message so fast, it's causing the console to increase the use of CPU.

ffmpeg -f gdigrab -framerate 30 -i title="" -f gdigrab -framerate 30 -i title="" -f gdigrab -framerate 30 -i title="" -vsync 2 -c:v h264_nvenc -filter_complex "[0]scale=830:500:force_original_aspect_ratio=decrease,setsar=1[left];[1]scale=830:500:force_original_aspect_ratio=decrease,setsar=1[left2];[2]scale=830:500:force_original_aspect_ratio=decrease,setsar=1[right];[left][left2][right]hstack=inputs=3" output.mp4

Here is the log: pastebin.com/7w4x8HXc
Any idea what's going on?

It seems that Setts Bitstream Filter is missing

(Thank you for great builds)

I can use all Bitstream Filters except setts.
input -vcodec libx264 -bsf setts=pts=DTS output.mxf gets this error :

Error parsing bitstream filter sequence 'setts=pts=DTS': Bitstream filter not found

I'm using the last 4.4 version.

zscale error with some files in newer versions [since last month or so] [Windows 10 "reduced"]

I'm having a problem with a given set of files -- but everything works OK with every other file I've tried so far. I've been testing a few things and in the end it seems that something in my customized Windows 10 x64 install, something I deleted or deactivated, is causing this problem.

I'm asking here trying to find out what might be so I can find a solution. If this is not the place then, please, forgive me and delete the post.
Meanwhile, I'll expose the situation.

  • All previous versions until a month or so worked perfectly.
  • Latest version DO work with most files EXCEPT a bunch of mp4/mkv h-264 encoded videos.
  • Even with those files, everything works until I use zscale to change image size... so I'd say this seem to be related to some of zimg new changes.
  • When the problem appears I get an [Parsed_zscale_0 @ ...] code 2050: active window must be positive error.

In other words, everything was working with ffmpeg-2022-05-04-git-0914e3a14a-essentials_build ... and everything still works with ffmpeg-2022-05-16-git-e3580f6077-essentials_build except for zscale video resizing, and only in these videos... and only in my modified Windows install.

I've attached a sample file:
https://user-images.githubusercontent.com/63074669/173467762-fbcd71bc-9228-4c63-bb33-0b5d32d4dc53.mp4

I would like to know if this is supposed to happen because something inside ffmpeg now relies on something I've never had in my Win install, something that ffmpeg [zimg ?] didn't need in previous versions.

I hope something of what I've wrote makes sense. It looks quite confusing and english isn't my native laguage so I've surely messed it even more.

Where could be the problem? Can be considered a "pre-bug" of a kind?
What is ffmpeg expecting that exists in Windows now that it didn't used before?

libx264rgb error

Hi, @GyanD I have a problem with the libx264rgb.

When i was using ffmpeg i use libx264rgb to convert videos.

But when I converted a video there was a error.

I will put you a video so that you can see what happened.

Original:

Test.mp4

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -to 00:00:05 -i "..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4" -c:v libx264 -map 0:0 "....\Test.mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2020-10-04T02:38:22.000000Z
Duration: 00:04:01.53, start: 0.000000, bitrate: 5321 kb/s
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1728x1080, 5000 kb/s, 15 fps, 15 tbr, 30k tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001b5f3920440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI2 AVX2
[libx264 @ 000001b5f3920440] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001b5f3920440] 264 - core 164 r3065 ae03d92 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '....\Test.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf59.4.102
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1728x1080, q=2-31, 15 fps, 15360 tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc59.6.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 75 fps=4.6 q=-1.0 Lsize= 1531kB time=00:00:04.80 bitrate=2612.3kbits/s speed=0.297x
video:1529kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.116314%
[libx264 @ 000001b5f3920440] frame I:1 Avg QP:21.75 size: 77841
[libx264 @ 000001b5f3920440] frame P:19 Avg QP:19.90 size: 36004
[libx264 @ 000001b5f3920440] frame B:55 Avg QP:21.47 size: 14600
[libx264 @ 000001b5f3920440] consecutive B-frames: 1.3% 2.7% 0.0% 96.0%
[libx264 @ 000001b5f3920440] mb I I16..4: 46.9% 44.6% 8.5%
[libx264 @ 000001b5f3920440] mb P I16..4: 19.3% 19.1% 1.9% P16..4: 37.6% 10.5% 4.5% 0.0% 0.0% skip: 7.1%
[libx264 @ 000001b5f3920440] mb B I16..4: 3.0% 2.5% 0.2% B16..8: 39.8% 5.3% 0.7% direct: 6.3% skip:42.2% L0:47.7% L1:48.0% BI: 4.3%
[libx264 @ 000001b5f3920440] 8x8 transform intra:46.2% inter:82.0%
[libx264 @ 000001b5f3920440] coded y,uvDC,uvAC intra: 33.9% 48.0% 6.2% inter: 16.8% 27.0% 0.0%
[libx264 @ 000001b5f3920440] i16 v,h,dc,p: 29% 25% 23% 22%
[libx264 @ 000001b5f3920440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 34% 3% 5% 6% 5% 3% 3%
[libx264 @ 000001b5f3920440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 15% 19% 3% 12% 13% 7% 4% 3%
[libx264 @ 000001b5f3920440] i8c dc,h,v,p: 53% 20% 22% 4%
[libx264 @ 000001b5f3920440] Weighted P-Frames: Y:21.1% UV:10.5%
[libx264 @ 000001b5f3920440] ref P L0: 55.8% 9.8% 21.2% 11.2% 1.9%
[libx264 @ 000001b5f3920440] ref B L0: 84.8% 11.9% 3.3%
[libx264 @ 000001b5f3920440] ref B L1: 92.8% 7.2%
[libx264 @ 000001b5f3920440] kb/s:2503.84

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -i "....\Test.mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '....\Test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.4.102
Duration: 00:00:05.00, start: 0.000000, bitrate: 2507 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1728x1080, 2504 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
Metadata:
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
At least one output file must be specified

Converted in libx264rgb:

Test.1.mp4

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -to 00:00:05 -i "..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4" -c:v libx264rgb -map 0:0 "....\Test (1).mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\Gamer Webcam Meme\Very Epic Gamer Webcam.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2020-10-04T02:38:22.000000Z
Duration: 00:04:01.53, start: 0.000000, bitrate: 5321 kb/s
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1728x1080, 5000 kb/s, 15 fps, 15 tbr, 30k tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264rgb))
Press [q] to stop, [?] for help
[libx264rgb @ 0000018962910440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI2 AVX2
[libx264rgb @ 0000018962910440] profile High 4:4:4 Predictive, level 4.0, 4:4:4, 8-bit
[libx264rgb @ 0000018962910440] 264 - core 164 r3065 ae03d92 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '....\Test (1).mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf59.4.102
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), rgb24(pc, bt709, progressive), 1728x1080, q=2-31, 15 fps, 15360 tbn (default)
Metadata:
creation_time : 2020-10-04T02:38:23.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc59.6.100 libx264rgb
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 75 fps=3.2 q=-1.0 Lsize= 3896kB time=00:00:04.80 bitrate=6649.5kbits/s speed=0.203x x
video:3894kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.046165%
[libx264rgb @ 0000018962910440] frame I:1 Avg QP:24.03 size:221164
[libx264rgb @ 0000018962910440] frame P:19 Avg QP:22.22 size: 90422
[libx264rgb @ 0000018962910440] frame B:55 Avg QP:23.56 size: 37237
[libx264rgb @ 0000018962910440] consecutive B-frames: 1.3% 2.7% 0.0% 96.0%
[libx264rgb @ 0000018962910440] mb I I16..4: 19.6% 69.6% 10.8%
[libx264rgb @ 0000018962910440] mb P I16..4: 20.3% 23.2% 2.4% P16..4: 25.4% 16.5% 10.1% 0.0% 0.0% skip: 2.2%
[libx264rgb @ 0000018962910440] mb B I16..4: 3.9% 3.7% 0.5% B16..8: 41.3% 5.5% 1.2% direct:13.6% skip:30.4% L0:44.7% L1:42.3% BI:13.0%
[libx264rgb @ 0000018962910440] 8x8 transform intra:50.4% inter:74.2%
[libx264rgb @ 0000018962910440] coded y,u,v intra: 28.9% 44.8% 42.0% inter: 16.8% 37.6% 33.9%
[libx264rgb @ 0000018962910440] i16 v,h,dc,p: 28% 26% 26% 20%
[libx264rgb @ 0000018962910440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 23% 35% 3% 3% 4% 4% 3% 3%
[libx264rgb @ 0000018962910440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 22% 3% 9% 10% 6% 4% 3%
[libx264rgb @ 0000018962910440] Weighted P-Frames: Y:21.1% UV:15.8%
[libx264rgb @ 0000018962910440] ref P L0: 49.9% 8.7% 23.3% 14.9% 3.2%
[libx264rgb @ 0000018962910440] ref B L0: 84.9% 12.0% 3.1%
[libx264rgb @ 0000018962910440] ref B L1: 93.3% 6.7%
[libx264rgb @ 0000018962910440] kb/s:6379.53

C:\Users\ferna\Downloads\FFmpeg\FFmpeg>ffmpeg -i "....\Test (1).mp4"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, 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-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --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-libglslang --enable-vulkan --enable-opencl --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 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 7.100 / 8. 7.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '....\Test (1).mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.4.102
Duration: 00:00:05.00, start: 0.000000, bitrate: 6383 kb/s
Stream #0:00x1: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc, bt709), 1728x1080, 6380 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
Metadata:
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
At least one output file must be specified

if you could fix the libx264rgb error?

How to reduce the dependencies on mingw's dll

@GyanD Thanks for supplying the built ffmpeg for Windows at first!It's very convenient!
Since I need a win32 version ffmpeg, so I try to compile it by myself.
After many attempts, I finally built a ffmpeg with mingw32.But I found the ffmpeg.exe depends on nearly all these DLLs in directoy '/mingw32/bin'.If I want to use it in 'cmd' terminal, I must copy these DLLs to the directory of ffmpeg.exe.
However, I found the version you supplied (which should is also built by'MSYS2' gcc toolchains I guess) doesn't depend on these DLLs, could you tell me how to achieve this?THANKS A LOT!

libnpp support

Hello,

nice work with cuda/cuvid, would be great if you can include nvidia npp so we can do scaling on the GPU :)

Thank you

FDK-AAC

Please include this very essential library and if you fear patents then include as downloadable .dll like someone in oss.netfarm.it does this. AAC if future of audio codecs especially for commercial players and it is very essential part.

image

Output to sftp (libssh) on Win10

Hi,
if I try on Win10 to write a series of pictures taken from desktop to an ssh/sftp target with this command:

ffmpeg -y -f gdigrab -framerate 1 -draw_mouse 1 -i desktop -q:v 2 -f mjpeg -update 1 sftp://user:[email protected]/path/to/image.jpg

I get this error messages:

[2022/05/15 23:54:41.097385, 1] socket_callback_connected: Socket connection callback: 1 (0) [2022/05/15 23:54:41.328384, 1] ssh_known_hosts_read_entries: Failed to open the known_hosts file '/etc/ssh/ssh_known_hosts': No such file or directory [2022/05/15 23:54:41.464384, 1] ssh_packet_userauth_failure: Access denied for 'none'. Authentication that can continue: publickey,password [2022/05/15 23:54:41.789383, 1] ssh_packet_global_request: Invalid SSH_MSG_GLOBAL_REQUEST packet

The path where it is looking for the known hosts file is a linux file path which does not exists in a windows system.
Is this a bug of wrong libssh library in build process or do I am wrong?

Running ffmpeg from Docker on Windows

Hi!

I've been trying to run ffmpeg from Docker on Windows, do you know if this is possible?

I'm getting an exitcode 3221225781, which is microsoft slang for "missing dependencies". Can you tell me something about the environment requirements for ffmpeg.exe ?

Something else I noticed when calling the .exe: nothing happens..

PS K:\src> C:\Users\ContainerAdministrator\AppData\Local\cypress\Cache\9.1.1\Cypress\resources\app\node_modules\@ffmpeg-installer\win32-x64\ffmpeg.exe
PS K:\src>

But when executing the same binary outside of Docker I'm getting the familiar output

PS C:\ffmpeg .\ffmpeg.exe
ffmpeg version 2021-12-09-git-b9f4c1231f-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig
[.. a lot more here ..]
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
PS C:\ffmpeg

add service provider in programe like program_num

hi gyan,
cant set provider/publisher in mpts stream its shows default "FFMPEG"

this is my command

ffmpeg -thread_queue_size 256 -i "udp://224.2.2.2:2000?fifo_size=1000000&buffer_size=10000000" -thread_queue_size 256 -i "udp://224.2.2.2:3008?fifo_size=1000000&buffer_size=10000000" -map 0 -map 1 -program title="Xren0":program_num=100:st=0:st=1 -program title="Xren1":program_num=101:st=2:st=3 -c copy -f mpegts -metadata service_provider="test" -muxrate 40000000 -flush_packets 0 "udp://239.2.2.2:2222?overrun_nonfatal=1&fifo_size=1000000&buffer_size=10000000&pkt_size=1316&ttl=1&bitrate=40000000"

unable to set provider name . it shows ffmpeg default

image

image

Attempted to read or Write protected memory

Hi I am using ffmpeg to integrate with my windows service (written in .net 5) which uses two cameras.
But sometimes it throws an exception of this type system.AccessViolationException
"Attempted to read or write protected memory"

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at FFmpeg.AutoGen.ffmpeg.avcodec_send_frame(FFmpeg.AutoGen.AVCodecContext*, FFmpeg.AutoGen.AVFrame*) at FFMediaToolkit.Encoding.Internal.OutputStream1[[System.__Canon, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Push(System.__Canon)
at FFMediaToolkit.Encoding.VideoOutputStream.AddFrame(FFMediaToolkit.Graphics.ImageData, Int64)
at FFMediaToolkit.Encoding.VideoOutputStream.AddFrame(FFMediaToolkit.Graphics.ImageData)
at TerminalCameraService.Models.Camera.AddFrame(FFMediaToolkit.Graphics.ImageData)
at TerminalCameraService.Models.Camera.DeviceOnImageGrabbed(System.Object, System.EventArgs)
at Emgu.CV.VideoCapture.Grab()
at Emgu.CV.VideoCapture.Run(Emgu.Util.ExceptionHandler)
at Emgu.CV.VideoCapture+<>c__DisplayClass33_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task+<>c.<.cctor>b__277_0(System.Object)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
at System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread)
at System.Threading.Tasks.Task.ExecuteFromThreadPool(System.Threading.Thread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
`

I have to cameras. First camera records every hours.

I control the second camera. I send start command it starts recording. When I send stop command it will stop recording.
Every camera has got its own MediaOutput and VideoCapture

image

Each Camera is different object

Could you please write how to control this system.AccessViolationException.

Shared essentials git builds support

Hi, it would be nice if you inlude in latest git master branch builds a shared build (full and/or essential). It could be helpful to save bandwidth during distribution.

Could not find module

011 2020-10-18: added frei0r plugins to full builds

Download git full with 4.3.1-2020-10-28
Run the following command for Windows:
ffmpeg -loglevel debug -i "D:\testa.mp4" -vf "frei0r=glow:20" -t 10 "D:\testb.mp4"

Error output:
[Parsed_frei0r_0 @ 00000289861defc0] Setting 'filter_name' to value 'glow'
[Parsed_frei0r_0 @ 00000289861defc0] Setting 'filter_params' to value '20'
[h264 @ 0000028985fa9d00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[Parsed_frei0r_0 @ 00000289861defc0] Looking for frei0r effect in '/usr/local/lib/frei0r-1/glow.dll'.
[Parsed_frei0r_0 @ 00000289861defc0] Looking for frei0r effect in '/usr/lib/frei0r-1/glow.dll'.
[Parsed_frei0r_0 @ 00000289861defc0] Looking for frei0r effect in '/usr/local/lib64/frei0r-1/glow.dll'.
[Parsed_frei0r_0 @ 00000289861defc0] Looking for frei0r effect in '/usr/lib64/frei0r-1/glow.dll'.
[Parsed_frei0r_0 @ 00000289861defc0] Could not find module 'glow'.
[AVFilterGraph @ 0000028985f91e80] Error initializing filter 'frei0r' with args 'glow:20'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0

Make MPlayer's ffmpeg and frei0r not report errors,
Output:
[Parsed_frei0r_0 @ 0000020ca78684c0] Setting 'filter_name' to value 'glow'
[Parsed_frei0r_0 @ 0000020ca78684c0] Setting 'filter_params' to value '20'
[Parsed_frei0r_0 @ 0000020ca78684c0] Looking for frei0r effect in 'D:\Software\MPlayer_bak\frei0r-1\glow.dll'.
[Parsed_frei0r_0 @ 0000020ca78684c0] name:Glow author:'Richard Spindler' explanation:'Creates a Glamorous Glow' color_model:rgba8888 frei0r_version:1 version:0.1 num_params:1

Are SIMD instructions enabled when the z library is compiled for the zscale filter?

On my Intel system, it seems that the zscale filter is 4x slower than a combination of the colorspace and scale filters. This contradicts the performance claims on https://github.com/sekrit-twc/zimg, so I was wondering whether you could verify that the z library is compiled with SIMD instructions enabled?

Are you providing any information stating the version of third-party libraries that you are using for building FFmpeg? An outdated version of the library being used might also explain my observations.

Thanks in advance for your assistance!

4.3.1 flagged as trojan

Virustotal 4x engines alert trojan

also chrome:

"Current status
warning
This site is unsafe
The site https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-11-02-full_build.7z contains harmful content, including pages that:

Install unwanted or malicious software on visitors’ computers
The site https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-11-02-full_build.7z contains pages that:

Distribute uncommon downloads
Are you the site owner? Register your site in the Google Search Console to get a detailed report of the security issues impacting your website."

WTF?

HTTPS to HTTP redirect causes issue with PowerShell

First of all thanks for carrying the torch of offering FFmpeg Windows builds. I use your builds in CI tests for my FFmpeg Rust binding: https://github.com/zmwangx/rust-ffmpeg. Really helpful for a non-Windows guy like me.

That said, there's a small problem: the non-versioned URLs redirect from HTTPS to HTTP, then back to HTTPS:

$ curl -LI https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z
HTTP/1.1 200 Connection established

HTTP/2 303
date: Tue, 03 Nov 2020 08:54:06 GMT
server: Apache
location: http://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-10-28-full_build-shared.7z
content-type: text/html; charset=iso-8859-1
via: e4s

HTTP/1.1 301 Moved Permanently
Date: Tue, 03 Nov 2020 08:54:07 GMT
Server: Apache
Location: https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-10-28-full_build-shared.7z
Content-Type: text/html; charset=iso-8859-1

HTTP/2 200
date: Tue, 03 Nov 2020 08:05:02 GMT
server: Apache
last-modified: Sun, 01 Nov 2020 10:38:40 GMT
etag: "2596381-5b3093baf87ca"
accept-ranges: bytes
content-length: 39412609
age: 2945
via: e4s
content-type: application/x-7z-compressed

The HTTPS -> HTTP redirect causes a non-recoverable failure in PowerShell:

> Invoke-WebRequest https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z
Invoke-WebRequest:
303 See Other
See Other
The answer to your request is located here.

More details about the PowerShell issue here: PowerShell/PowerShell#2896

While HTTPS -> HTTP redirect is totally valid, it's indeed not best practice. Would you please configure Apache to redirect directly to the final URL? Thanks.

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.