Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg doesn't have included codecs #4231

Closed
synthercat opened this issue Jan 18, 2021 · 4 comments
Closed

ffmpeg doesn't have included codecs #4231

synthercat opened this issue Jan 18, 2021 · 4 comments

Comments

@synthercat
Copy link

I tried both ffmpeg-nightly-vulkan (100653) & ffmpeg-nightly (100653)

If I try to compress using a video using libvpx-VP9 codec
ffmpeg -i inputfile c:v libvpx-vp9 -sn -dn -an outputfile
I get a message that there is no libvpx-vp9 (I don't remember the exact output right now)
However if I type
ffmpeg -codecs
the codec is there.

For the time being I am forced to download directly from https://github.com/BtbN/FFmpeg-Builds/releases
(for example) ffmpeg-N-100653-geb0f532c98-win64-gpl-vulkan.zip

@synthercat
Copy link
Author

synthercat commented Jan 24, 2021

I just realized it's a duplicate unresolved issue #2018 with a workarround being to use ffmpeg.exe literally in PowerShell (meaning no '.\ in files and also typing ffmpeg.exe instead of ffmpeg).

That is inconvinient. I hope it somehow get's resolved.
Have a nice day whoever reading this!

@HUMORCE
Copy link
Member

HUMORCE commented Jan 25, 2021

$ ffmpeg -i .\input.webm -codec libvpx-vp9 -sn -dn -an out.mkv
ffmpeg version n4.3.1-29-g89daac5fe2 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9.3-win32 (GCC) 20200320
  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-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libtwolame --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  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
Input #0, matroska,webm, from '.\input.webm':
  Metadata:
    ENCODER         : Lavf58.45.100
  Duration: 00:00:54.46, start: -0.007000, bitrate: 11560 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 2560x1440, SAR 1:1 DAR 16:9, 60 fps, 60 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      DURATION        : 00:00:54.449000000
    Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      DURATION        : 00:00:54.461000000
Stream mapping:
  Stream #0:0 -> #0:0 (vp9 (native) -> vp9 (libvpx-vp9))
Press [q] to stop, [?] for help
[libvpx-vp9 @ 0000021549020780] v1.9.0
[libvpx-vp9 @ 0000021549020780] Neither bitrate nor constrained quality specified, using default CRF of 32
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0(eng): Video: vp9 (libvpx-vp9) (VP90 / 0x30395056), yuv420p, 2560x1440 [SAR 1:1 DAR 16:9], q=-1--1, 60 fps, 1k tbn, 60 tbc (default)
    Metadata:
      DURATION        : 00:00:54.449000000
      encoder         : Lavc58.91.100 libvpx-vp9
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Error writing trailer of out.mkv: Immediate exit requested bitrate=   6.6kbits/s speed=0.145x
frame=   66 fps=8.0 q=0.0 Lsize=     454kB time=00:00:01.08 bitrate=3433.2kbits/s speed=0.132x
video:453kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.226866%
Exiting normally, received signal 2.
powershell can't handle args like:

-c:v / -c:a / -codec:v / -codec:a ...

try:

-c / -codec / -vcodec / -acodec

@synthercat
Copy link
Author

Downloading ffmpeg directly from it's repository and placing it in a folder that is included in PATH variable can accept -codec:v etc but I guess your solution will work too as I was always using : character. I guess all I got to do is find all the equivalent arguments.
Thank you for your time!

@HUMORCE
Copy link
Member

HUMORCE commented Jan 26, 2021

maybe it's the shim problem.

try this:
https://gist.github.com/HUMORCE/7ce41aba793085e8c3c5f6e8fd1266b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants