|
i have a question i know is a bit strange.
i was wondering if it's possible to overlay 2 audio channels in the same video with ffmpeg. Example: videoX has left audio channel: X and right audio channel: Y i would like to make it so that it looks like: left audio channel=xy and right audio channel=xy i know that setting "-ac 1" pretty much accomplishes this BUT the metadata obviously shows mono. i'd like to accomplish the same but with stereo instead of mono. any ideas? _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
Le septidi 17 thermidor, an CCXX, Kosta Vlotis a écrit :
> i have a question i know is a bit strange. > > i was wondering if it's possible to overlay 2 audio channels in the > same video with ffmpeg. > > Example: videoX has left audio channel: X and right audio channel: Y > > i would like to make it so that it looks like: left audio channel=xy > and right audio channel=xy You can do exactly that with the pan audio filter. There are examples in the doc. Regards, -- Nicolas George _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 3, 2012 at 12:53 PM, Nicolas George
<[hidden email]> wrote: > Le septidi 17 thermidor, an CCXX, Kosta Vlotis a écrit : >> i have a question i know is a bit strange. >> >> i was wondering if it's possible to overlay 2 audio channels in the >> same video with ffmpeg. >> >> Example: videoX has left audio channel: X and right audio channel: Y >> >> i would like to make it so that it looks like: left audio channel=xy >> and right audio channel=xy > > You can do exactly that with the pan audio filter. There are examples in the > doc. > > Regards, > > -- > Nicolas George > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlAcAewACgkQsGPZlzblTJMizQCfcQ/w/ebjI6lZBmNCFwQlGiZT > ihIAn3ivxf5nQ4y9GUBCBCRsC865eyLE > =Fj+Z > -----END PGP SIGNATURE----- > > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > 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 this isnt working _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
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 _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 3, 2012 at 3:29 PM, Nicolas George
<[hidden email]> 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 > [hidden email] > 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! _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 03, 2012 at 03:37:37PM -0400, Kosta Vlotis wrote:
> On Fri, Aug 3, 2012 at 3:29 PM, Nicolas George > <[hidden email]> 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 > > [hidden email] > > 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! 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 [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 3, 2012 at 3:40 PM, Clément Bœsch <[hidden email]> 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 >> <[hidden email]> 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 >> > [hidden email] >> > 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 > [hidden email] > 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' _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
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 <[hidden email]> 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 > >> <[hidden email]> 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 > >> > [hidden email] > >> > 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 > > [hidden email] > > 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' FFmpeg recent enough. Unfortunately without the full output no one can tell. -- Clément B. _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 3, 2012 at 3:47 PM, Clément Bœsch <[hidden email]> 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 <[hidden email]> 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 >> >> <[hidden email]> 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 >> >> > [hidden email] >> >> > 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 >> > [hidden email] >> > 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 > [hidden email] > 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' _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
Kosta Vlotis <kosta.brazzers <at> gmail.com> writes:
> ffmpeg version N-40126-ga4b58fd This is over three months (and several thousand revisions) old, please update to current git head. Carl Eugen _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 3, 2012 at 4:05 PM, Carl Eugen Hoyos <[hidden email]> wrote:
> Kosta Vlotis <kosta.brazzers <at> gmail.com> writes: > >> ffmpeg version N-40126-ga4b58fd > > This is over three months (and several thousand revisions) old, > please update to current git head. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user thanks, ill get a later version and report back. _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
On Fri, Aug 3, 2012 at 4:13 PM, Kosta Vlotis <[hidden email]> wrote:
> On Fri, Aug 3, 2012 at 4:05 PM, Carl Eugen Hoyos <[hidden email]> wrote: >> Kosta Vlotis <kosta.brazzers <at> gmail.com> writes: >> >>> ffmpeg version N-40126-ga4b58fd >> >> This is over three months (and several thousand revisions) old, >> please update to current git head. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> [hidden email] >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > thanks, ill get a later version and report back. Just tried it. it worked great! thanks for all the help! _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
| Powered by Nabble | Edit this page |
