[FFmpeg-user] Syntax issue with audio filter

Marc marcfflist at vq5.net
Wed Mar 4 13:06:16 CET 2015


Thanks for your reply Nicolas,

I've tried your suggestion, output below, but the same error message is output:

$ ffmpeg -report -loglevel verbose -y -i input.mkv -map 0:v:0 -c:v:0
copy -map 0:a:language:eng -c:a:0 copy -map 0:a:language:eng -c:a:1
ac3 -ab:a:1 192k -ac:a:1 2 -af:a:1
"pan=stereo:FL=FC+0.30*FL+0.30*BL:FR=FC+0.30*FR+0.30*BR" -map 0:s -c:s
-copy output.mkv

ffmpeg started on 2015-03-04 at 12:03:50
Report written to "ffmpeg-20150304-120350.log"
ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers
  built on Feb 15 2015 21:42:49 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg
--enable-avresample --disable-debug --enable-nonfree --enable-gpl
--enable-version3 --enable-libpulse --enable-libopencore-amrnb
--enable-libopencore-amrwb --disable-decoder=amrnb
--disable-decoder=amrwb --enable-libx264 --enable-libx265
--enable-libfdk-aac --enable-libvorbis --enable-libmp3lame
--enable-libopus --enable-libvpx --enable-libspeex --enable-libass
--enable-avisynth --enable-libsoxr --enable-libxvid
--enable-libvo-aacenc --enable-libvidstab
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'input.mkv':
  Metadata:
    encoder         : libebml v1.0.0 + libmatroska v1.0
  Duration: 02:14:03.95, start: 0.000000, bitrate: 10504 kb/s
    Chapter #0:0: start 0.000000, end 552.927000
    Metadata:
      title           : 00:00:00.000
    Chapter #0:1: start 552.927000, end 930.138000
    Metadata:
      title           : 00:09:12.927
    Chapter #0:2: start 930.138000, end 1368.742000
    Metadata:
      title           : 00:15:30.138
    Chapter #0:3: start 1368.742000, end 1811.435000
    Metadata:
      title           : 00:22:48.742
    Chapter #0:4: start 1811.435000, end 2378.876000
    Metadata:
      title           : 00:30:11.435
    Chapter #0:5: start 2378.876000, end 2881.003000
    Metadata:
      title           : 00:39:38.876
    Chapter #0:6: start 2881.003000, end 3504.751000
    Metadata:
      title           : 00:48:01.003
    Chapter #0:7: start 3504.751000, end 3876.539000
    Metadata:
      title           : 00:58:24.751
    Chapter #0:8: start 3876.539000, end 4382.837000
    Metadata:
      title           : 01:04:36.539
    Chapter #0:9: start 4382.837000, end 4754.249000
    Metadata:
      title           : 01:13:02.837
    Chapter #0:10: start 4754.249000, end 5141.261000
    Metadata:
      title           : 01:19:14.249
    Chapter #0:11: start 5141.261000, end 5654.023000
    Metadata:
      title           : 01:25:41.261
    Chapter #0:12: start 5654.023000, end 6104.598000
    Metadata:
      title           : 01:34:14.023
    Chapter #0:13: start 6104.598000, end 6692.102000
    Metadata:
      title           : 01:41:44.598
    Chapter #0:14: start 6692.102000, end 7358.851000
    Metadata:
      title           : 01:51:32.102
    Chapter #0:15: start 7358.851000, end 8043.952000
    Metadata:
      title           : 02:02:38.851
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x800 [SAR 1:1
DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp,
1536 kb/s (default)
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : Forced
    Stream #0:3(eng): Subtitle: subrip
    Stream #0:4(eng): Subtitle: subrip
    Metadata:
      title           : SDH
Filtergraph 'pan=stereo:FL=FC+0.30*FL+0.30*BL:FR=FC+0.30*FR+0.30*BR'
was defined for audio output stream 0:1 but codec copy was selected.
Filtering and streamcopy cannot be used together.

On 4 March 2015 at 10:33, Nicolas George <george at nsup.org> wrote:
> Le tridi 13 ventôse, an CCXXIII, Marc a écrit :
>> $ ffmpeg -report -loglevel verbose -y -i "input.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:language:eng -c:a:0 copy -map 0:a:language:eng -c:a:1 ac3 -ab 192k -ac 2 -af "pan=stereo:FL=FC+0.30*FL+0.30*BL:FR=FC+0.30*FR+0.30*BR" -map 0:s -c:s copy "output.mkv"
>
> Unless there is a stream specifier, an option applies to all streams where
> it makes sense. In particular, in this command, -af applies to both audio
> streams, including the first one that is copied. You need to add stream
> specifiers.
>
> For the future, remember to include the full console output, it is usually
> not possible to guess the problem with just an excerpt.
>
> Regards,
>
> --
>   Nicolas George
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list