funnymanva / ffmpeg-with-ac4

FFMpeg build script that adds AC4 decoder patches
MIT License
10 stars 1 forks source link

No decoder found for ac4 #1

Open jesselve opened 8 months ago

jesselve commented 8 months ago

I was able to use the build script to build ffmpeg. The command I used was: ./build-ffmpeg --build --enable-gpl-and-non-free

However, when I tried converting an "ac4" file to flac with the following command: ffmpeg -i '1.m4a' -acodec flac 1.flac

I received the following error:

. . . 
  Stream #0:1[0x1](und): Audio: ac4 (ac-4 / 0x342D6361), 48000 Hz, 2 channels, 256 kb/s (default)
    Metadata:
      creation_time   : 2023-06-07T16:13:43.000000Z
      handler_name    : sound handler
      vendor_id       : [0][0][0][0]
[aist#0:1/ac4 @ 0x5592b4502c00] Decoding requested, but no decoder found for: ac4
[aost#0:1/flac @ 0x5592b4519a40] Error initializing a simple filtergraph
Error opening output file 1.flac.
Error opening output files: Invalid argument

Do you have any suggestions?

funnymanva commented 8 months ago

Is -acodec still supported versus -c:a flac ? Also can you check that your build does have ac4 listed under ffmpeg -demuxers ? You can test with a container image I have at registry.home.oriley.net/apps/ffmpeg:v6.1 built.

jesselve commented 8 months ago

Thanks for the reply.

I get an identical response when replacing -acodec with -c:a ("Decoding requested, but no decoder found for: ac4").

Yes, "ac4" is listed in my demuxers -- see below.

I'll try your container next.

Thanks again!

~$ ffmpeg -demuxers
ffmpeg version v6.1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: --enable-nonfree --enable-gpl --enable-openssl --enable-libsvtav1 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libxvid --enable-libvidstab --enable-libaom --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libgsm --enable-libfreetype --enable-libfontconfig --enable-libxml2 --enable-libbluray --enable-libfribidi --enable-libass --enable-libdrm --enable-libspeex --enable-gmp --enable-libdav1d --enable-libfdk-aac --enable-libwebp --enable-libsrt --disable-stripping --disable-debug --disable-doc --disable-shared --enable-pthreads --enable-static --enable-small --enable-version3 --extra-cflags=-I/home/jde/ffmpeg/workspace/include --extra-ldexeflags= --extra-ldflags=-L/home/jde/ffmpeg/workspace/lib --extra-libs='-ldl -lpthread -lm -lz -lstdc++' --pkgconfigdir=/home/jde/ffmpeg/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/home/jde/ffmpeg/workspace
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
File formats:
 D. = Demuxing supported
 .E = Muxing supported
 --
 D  3dostr
 D  4xm
 D  aa
 D  aac
 D  aax
 D  ac3
 D  ac4
 . . . 
funnymanva commented 8 months ago

I'll admit to not doing much with flac, can you try with ac3 or aac? I've mostly just built this so I can get the ATSC 3.0 channels from my HDHomeRun to stream with audio when I'm out of the house.

jesselve commented 8 months ago

No luck with ac3 or aac either -- I'll let you know once I've tried your container.

My use case is a bit different: I have a number of aac audio files, many multi-channel, that I cannot play so I'm trying to convert them into another format.