[FFmpeg-user] Multiply audio samples

Michael Koch astroelectronic at t-online.de
Thu Sep 20 18:10:23 EEST 2018


>
>> c://ffmpeg/ffmpeg -i ultrasonic.wav -f lavfi -i
>> "sine=frequency=15000:sample_rate=48000" -filter_complex
>> "[0]highpass=f=15000,highpass=f=15000,highpass=f=15000,highpass=f=15000[sound];[1]volume=8[sine];[sound][sine]amultiply[mixed];[mixed]lowpass=f=10000,lowpass=f=10000,lowpass=f=10000,lowpass=f=10000"
>> out.wav

The ultrasonics converter works fine if used with an audio file, but now 
I wanted to convert a video and I always get this error message 
"Unsupported channel layout "0 channels" which I don't understand. I 
want the audio be converted and the video copied as-is. Here is the 
console output:

c://ffmpeg/ffmpeg -i 7Z7A1699.MOV -f lavfi -i
  "sine=frequency=12000:sample_rate=48000" -filter_complex 
"[0]highpass=f=12000,h
ighpass=f=12000,highpass=f=12000,highpass=f=12000[sound];[1]volume=8,aeval=val(0
)|val(0)[sine];[sound][sine]amultiply,lowpass=f=10000,lowpass=f=10000,lowpass=f=
10000,lowpass=f=10000" -y out.mp4
ffmpeg version N-91960-g63c69d51c7 Copyright (c) 2000-2018 the FFmpeg 
developers

   built with gcc 8.2.1 (GCC) 20180813
   configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfi
g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-lib
freetype --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amr
wb --enable-libopenjpeg --enable-libopus --enable-libshine 
--enable-libsnappy --
enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx 
--enable-l
ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxml2 --
enable-libzimg --enable-lzma --enable-zlib --enable-gmp 
--enable-libvidstab --en
able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa 
--enable-libspeex --en
able-libxvid --enable-libaom --enable-libmfx --enable-amf 
--enable-ffnvcodec --e
nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec 
--enable-dxva2 --enab
le-avisynth
   libavutil      56. 19.101 / 56. 19.101
   libavcodec     58. 30.100 / 58. 30.100
   libavformat    58. 18.101 / 58. 18.101
   libavdevice    58.  4.103 / 58.  4.103
   libavfilter     7. 31.100 /  7. 31.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '7Z7A1699.MOV':
   Metadata:
     major_brand     : qt
     minor_version   : 538247680
     compatible_brands: qt  CAEP
     com.apple.quicktime.make: Canon
     com.apple.quicktime.model: Canon EOS 5D Mark IV
     com.apple.quicktime.rating.user: 0.000000
     com.apple.quicktime.author: Michael Koch
     creation_time   : 2018-09-14T18:20:37.000000Z
   Duration: 00:00:53.00, start: 0.000000, bitrate: 89479 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), 
yuvj420p(pc, bt709
), 1920x1080, 87897 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc (default)
     Metadata:
       creation_time   : 2018-09-14T18:20:37.000000Z
       timecode        : 00:00:46:17
     Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 
stereo, s1
6, 1536 kb/s (default)
     Metadata:
       creation_time   : 2018-09-14T18:20:37.000000Z
       timecode        : 00:00:46:17
     Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
     Metadata:
       creation_time   : 2018-09-14T18:20:37.000000Z
       timecode        : 00:00:46:17
Input #1, lavfi, from 'sine=frequency=12000:sample_rate=48000':
   Duration: N/A, start: 0.000000, bitrate: 768 kb/s
     Stream #1:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
   Stream #0:1 (pcm_s16le) -> highpass (graph 0)
   Stream #1:0 (pcm_s16le) -> volume (graph 0)
   lowpass (graph 0) -> Stream #0:0 (aac)
   Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[aac @ 0000000002d6c280] Unsupported channel layout "0 channels"
Error initializing output stream 0:0 -- Error while opening encoder for 
output s
tream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or 
height
Conversion failed!


More information about the ffmpeg-user mailing list