video - FFmpeg audio channel rematrix (5.1 to stereo) -



video - FFmpeg audio channel rematrix (5.1 to stereo) -

i've got (very large!) apple prores 422 file 16ch audio. able utilize on less powerful computer, i'd convert standard mp4 file (h264 video codec, stereo audio). original file has 16 channels of audio, however, , ffmpeg gives error when seek convert ('rematrix needed'). how do rematrixing of sound channels? there additional steps needed?

this ffmpeg command used:

ffmpeg -y -i capture0000.mov -vcodec libx264 -vb 2000k -pix_fmt yuv420p -coder 0 -profile:v baseline -acodec libfaac -ab 128k /tmp/out.mp4

this ffmpeg output:

ffmpeg version 2.2.git copyright (c) 2000-2014 ffmpeg developers built on may 8 2014 14:17:45 gcc 4.6 (ubuntu/linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-i/usr/local/ffmpeg_build/include --extra-ldflags=-l/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac libavutil 52. 81.100 / 52. 81.100 libavcodec 55. 60.103 / 55. 60.103 libavformat 55. 37.102 / 55. 37.102 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 5.100 / 4. 5.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 input #0, mov,mp4,m4a,3gp,3g2,mj2, 'capture0000.mov': metadata: creation_time : 2014-08-17 18:30:31 duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s stream #0:0(eng): video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, sar 1:1 dar 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default) metadata: creation_time : 2014-08-17 18:30:31 handler_name : apple alias info handler encoder : apple prores 422 (hq) stream #0:1(eng): audio: pcm_s24le (lpcm / 0x6d63706c), 48000 hz, 16 channels, s32, 18432 kb/s (default) metadata: creation_time : 2014-08-17 18:30:31 handler_name : apple alias info handler [auto-inserted resampler 0 @ 0x3943da0] [swr @ 0x39441a0] rematrix needed between 16 channels , 5.1 there not plenty info [auto-inserted resampler 0 @ 0x3943da0] failed configure output pad on auto-inserted resampler 0 error opening filters!

this ffprobe output:

ffprobe version 2.2.git copyright (c) 2007-2014 ffmpeg developers built on may 8 2014 14:17:45 gcc 4.6 (ubuntu/linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-i/usr/local/ffmpeg_build/include --extra-ldflags=-l/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac libavutil 52. 81.100 / 52. 81.100 libavcodec 55. 60.103 / 55. 60.103 libavformat 55. 37.102 / 55. 37.102 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 5.100 / 4. 5.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 18.100 / 0. 18.100 libpostproc 52. 3.100 / 52. 3.100 input #0, mov,mp4,m4a,3gp,3g2,mj2, 'capture0000.mov': metadata: creation_time : 2014-08-17 18:30:31 duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s stream #0:0(eng): video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, sar 1:1 dar 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default) metadata: creation_time : 2014-08-17 18:30:31 handler_name : apple alias info handler encoder : apple prores 422 (hq) stream #0:1(eng): audio: pcm_s24le (lpcm / 0x6d63706c), 48000 hz, 16 channels, s32, 18432 kb/s (default) metadata: creation_time : 2014-08-17 18:30:31 handler_name : apple alias info handler

found it! after extracting audio, turned out first 2 channels stereo, , other 4 empty, added this:

-af 'pan=stereo:c0=fl:c1=fr'

which takes front end left , front end right channel stereo mix.

audio video encoding ffmpeg h.264

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -