[FFmpeg-user] overlay audio channels

Kosta Vlotis kosta.brazzers at gmail.com
Fri Aug 3 22:00:21 CEST 2012


On Fri, Aug 3, 2012 at 3:47 PM, Clément Bœsch <ubitux at gmail.com> wrote:
> On Fri, Aug 03, 2012 at 03:44:23PM -0400, Kosta Vlotis wrote:
>> On Fri, Aug 3, 2012 at 3:40 PM, Clément Bœsch <ubitux at gmail.com> wrote:
>> > On Fri, Aug 03, 2012 at 03:37:37PM -0400, Kosta Vlotis wrote:
>> >> On Fri, Aug 3, 2012 at 3:29 PM, Nicolas George
>> >> <nicolas.george at normalesup.org> wrote:
>> >> > Le septidi 17 thermidor, an CCXX, Kosta Vlotis a écrit :
>> >> >> i'm not sure i understand the docs.. this is what i have so far:
>> >> >>
>> >> >> ffmpeg -async 1 -i b.mpeg -f mp4 -c:v libx264 -preset slow -g 60 -b:v
>> >> >> 1000k -s 854x480 -aspect 16:9 -vf "pan=stereo: c0=c0+c1 : c1=c0+c1"
>> >> >> -c:a libvo_aacenc -b:a 128k -ar 48000 -ac 1 -threads 0 -y
>> >> >> audiotes1_pan.mp4
>> >> >
>> >> > pan is not a *v*ideo *f*ilter.
>> >> >
>> >> > And you should be dividing by 2 to avoid overflows: c0=0.5*c0+0.5*c1 or
>> >> > c0<c0+c1.
>> >> >
>> >> >> this isnt working
>> >> >
>> >> > Define this.
>> >> >
>> >> > Regards,
>> >> >
>> >> > --
>> >> >   Nicolas George
>> >> >
>> >> > -----BEGIN PGP SIGNATURE-----
>> >> > Version: GnuPG v1.4.12 (GNU/Linux)
>> >> >
>> >> > iEYEARECAAYFAlAcJo4ACgkQsGPZlzblTJPJpACZAZZpYtK+vP/Tu+tSXrbEJFAB
>> >> > 7GIAn0cyhc2DO1jpUCNe8kma20H9mkSn
>> >> > =gMSg
>> >> > -----END PGP SIGNATURE-----
>> >> >
>> >> > _______________________________________________
>> >> > ffmpeg-user mailing list
>> >> > ffmpeg-user at ffmpeg.org
>> >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >> >
>> >>
>> >> this command:
>> >> W:\Brazstore-1\KOSTA NEW W\SOURCE\ENCODING TESTS>ffmpeg -async 1 -i
>> >> video.mpeg -f mp4 -c:v libx264 -preset slow -g 60 -b:v 1000k -s
>> >> 854x480 -aspect 16:9 -vf pan="stereo: c0<c1+c0 : c1<c0+c1" -c:a
>> >> libvo_aacenc -b:a 128k -ar 48000 -threads 0 -y audiotes1_pan.mp4
>> >>
>> >> returns this error:
>> >> [scale @ 040c0e80] Media type mismatch between the '(null)' filter output pad 0
>> >> and the 'Parsed_pan_0' filter input pad 0
>> >> Cannot create the link scale:0 -> pan:0
>> >> Error opening filters!
>> >
>> > "Media type mismatch". -vf stands for video filter as Nicolas said. You
>> > should try to guess the equivalent for audio filter.
>> >
>> > Also, please consider pasting the full FFmpeg output if that still doesn't
>> > work.
>> >
>> > --
>> > Clément B.
>> >
>> > _______________________________________________
>> > ffmpeg-user mailing list
>> > ffmpeg-user at ffmpeg.org
>> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >
>>
>> any idea what the equicalent for audio is? i tried -af and i get this:
>> Unrecognized option 'af'
>> Failed to set value 'pan=stereo: c0<c1+c0 : c1<c0+c1' for option 'af'
>
> You guessed well the option name. But it looks like you don't have a
> FFmpeg recent enough. Unfortunately without the full output no one can
> tell.
>
> --
> Clément B.
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>

oh sorry about that. here is the full output: thanks for the help!

fmpeg -async 1 -i video.mpeg -f mp4 -c:v libx264 -preset slow -g 60
-b:v 1000k -s 854x480 -asp
ect 16:9 -af pan="stereo: c0<c1+c0 : c1<c0+c1" -c:a libvo_aacenc -b:a 128k -ar 4
8000 -threads 0 -y audiotes1_pan.mp4
ffmpeg version N-40126-ga4b58fd Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 26 2012 03:29:50 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e
nable-zlib
  libavutil      51. 47.100 / 51. 47.100
  libavcodec     54. 15.100 / 54. 15.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.100 /  2. 72.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mpeg, video.mpeg':
  Duration: 00:00:55.22, start: 0.426711, bitrate: 31716 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (High), yuv420p, 1920x1080 [SAR 1:1 DA
R 16:9], 31073 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Unrecognized option 'af'
Failed to set value 'pan=stereo: c0<c1+c0 : c1<c0+c1' for option 'af'


More information about the ffmpeg-user mailing list