[FFmpeg-user] Using atempo on all audio channels as one

Kevin Wells kevwells at hotmail.co.uk
Fri Dec 12 15:03:41 CET 2014


Hi, currently I am using the below command which is converting HD 23.98 with one discrete channel containing 8 audio tracks, into PAL 25fps with 8 mono audio tracks, using atempo to change the speed of the audio. This all works fine, but the resulting audio tracks, because each track is atempo treated independently the resulting audio have a slight 'phasing' effect to them, where each track has been cut and blended, when put them all back together on a timeline you can see slight inconsistencies between each one.So to my question... Can I apply the atempo filter to all audio tracks and channels as one, rather than each audio independently, so all audios are cut and blended in the same way, in the same pass together, thus hopefully getting rid of any slight 'phasing' effect.Here is my command:
/Users/Me/Desktop/Python/ffmpeg/ffmpeg -r 25 -i /Volumes/GRAID/Credits.mov -filter_complex \"[0:v]scale=720:576:flags=sinc,colormatrix=bt709:bt601[v]; \ [0:a]pan=mono|c0=c0,atempo=1.0427[a0]; \ [0:a]pan=mono|c0=c1,atempo=1.0427[a1]; \ [0:a]pan=mono|c0=c2,atempo=1.0427[a2]; \ [0:a]pan=mono|c0=c3,atempo=1.0427[a3]; \ [0:a]pan=mono|c0=c4,atempo=1.0427[a4]; \ [0:a]pan=mono|c0=c5,atempo=1.0427[a5]; \ [0:a]pan=mono|c0=c6,atempo=1.0427[a6]; \ [0:a]pan=mono|c0=c7,atempo=1.0427[a7]" \-map "[v]" -map "[a0]" -map "[a1]" -map "[a2]" -map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" \-vcodec prores -profile:v 3 -c:a pcm_s16le /Volumes/GRAID/Credits_Test.mov
Here is the console output:/Users/Me/Desktop/Python/ffmpeg/ffmpeg -r 25 -i /Volumes/GRAID/Credits.mov -filter_complex \> "[0:v]scale=720:576:flags=sinc,colormatrix=bt709:bt601[v]; \>  [0:a]pan=mono|c0=c0,atempo=1.0427[a0]; \>  [0:a]pan=mono|c0=c1,atempo=1.0427[a1]; \>  [0:a]pan=mono|c0=c2,atempo=1.0427[a2]; \>  [0:a]pan=mono|c0=c3,atempo=1.0427[a3]; \>  [0:a]pan=mono|c0=c4,atempo=1.0427[a4]; \>  [0:a]pan=mono|c0=c5,atempo=1.0427[a5]; \>  [0:a]pan=mono|c0=c6,atempo=1.0427[a6]; \>  [0:a]pan=mono|c0=c7,atempo=1.0427[a7]" \> -map "[v]" -map "[a0]" -map "[a1]" -map "[a2]" -map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" \> -vcodec prores -profile:v 3 -c:a pcm_s16le /Volumes/GRAID/Credits_Test.movffmpeg version 2.5 Copyright (c) 2000-2014 the FFmpeg developers  built on Dec  8 2014 10:02:02 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect  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  libswscale      3.  1.101 /  3.  1.101  libswresample   1.  1.100 /  1.  1.100  libpostproc    53.  3.100 / 53.  3.100Guessed Channel Layout for  Input Stream #0.2 : 7.1Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/GRAID/Credits.mov':  Metadata:    major_brand     : qt      minor_version   : 537199360    compatible_brands: qt      creation_time   : 2014-12-10 12:15:20    timecode        : 02:30:26:00  Duration: 00:01:00.06, start: 0.000000, bitrate: 98918 kb/s    Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuva444p10le(bt709), 1920x1080, 92771 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc (default)    Metadata:      creation_time   : 2014-12-10 12:15:20      handler_name    : Apple Alias Data Handler      encoder         : Apple ProRes 4444    Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)    Metadata:      creation_time   : 2014-12-10 12:15:20      handler_name    : Apple Alias Data Handler      reel_name       : Unnamed      timecode        : 02:30:26:00    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 8 channels, s16, 6144 kb/s (default)    Metadata:      creation_time   : 2014-12-10 12:15:20      handler_name    : Apple Alias Data Handler[Parsed_pan_2 @ 0x7fb209c17b40] Pure channel mapping detected: 0[Parsed_pan_4 @ 0x7fb209c18620] Pure channel mapping detected: 1[Parsed_pan_6 @ 0x7fb209c18a60] Pure channel mapping detected: 2[Parsed_pan_8 @ 0x7fb209c18c60] Pure channel mapping detected: 3[Parsed_pan_10 @ 0x7fb209c19da0] Pure channel mapping detected: 4[Parsed_pan_12 @ 0x7fb209c1a4c0] Pure channel mapping detected: 5[Parsed_pan_14 @ 0x7fb209c1abe0] Pure channel mapping detected: 6[Parsed_pan_16 @ 0x7fb209c1b320] Pure channel mapping detected: 7Output #0, mov, to '/Volumes/GRAID/Credits_Test.mov':  Metadata:    major_brand     : qt      minor_version   : 537199360    compatible_brands: qt      timecode        : 02:30:26:00    encoder         : Lavf56.15.102    Stream #0:0: Video: prores (apch) (apch / 0x68637061), yuv422p10le, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc (default)    Metadata:      encoder         : Lavc56.13.100 prores    Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:2: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:3: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:4: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:5: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:6: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:7: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16le    Stream #0:8: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s    Metadata:      encoder         : Lavc56.13.100 pcm_s16leStream mapping:  Stream #0:0 (prores) -> scale  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  Stream #0:2 (pcm_s16le) -> pan  colormatrix -> Stream #0:0 (prores)  atempo -> Stream #0:1 (pcm_s16le)  atempo -> Stream #0:2 (pcm_s16le)  atempo -> Stream #0:3 (pcm_s16le)  atempo -> Stream #0:4 (pcm_s16le)  atempo -> Stream #0:5 (pcm_s16le)  atempo -> Stream #0:6 (pcm_s16le)  atempo -> Stream #0:7 (pcm_s16le)  atempo -> Stream #0:8 (pcm_s16le)Press [q] to stop, [?] for helpframe=   17 fps=0.0 q=0.0 size=    5173kB time=00:00:01.42 bitrate=29698.3kbits/frame=   36 fps= 35 q=0.0 size=   11635kB time=00:00:01.89 bitrate=50231.0kbits/frame=   54 fps= 35 q=0.0 size=   17486kB time=00:00:02.85 bitrate=50147.4kbits/frame=   72 fps= 35 q=0.0 size=   23023kB time=00:00:03.37 bitrate=55957.7kbits/frame=   91 fps= 36 q=0.0 size=   28916kB time=00:00:04.30 bitrate=54987.9kbits/frame=  110 fps= 36 q=0.0 size=   34990kB time=00:00:05.26 bitrate=54411.1kbits/frame=  128 fps= 36 q=0.0 size=   40575kB time=00:00:05.73 bitrate=57921.9kbits/frame=  147 fps= 36 q=0.0 size=   46465kB time=00:00:06.69 bitrate=56842.3kbits/frame=  167 fps= 36 q=0.0 size=   52600kB time=00:00:07.15 bitrate=60188.1kbits/frame=  186 fps= 37 q=0.0 size=   58333kB time=00:00:08.11 bitrate=58871.6kbits/frame=  207 fps= 37 q=0.0 size=   63758kB time=00:00:09.08 bitrate=57490.9kbits/frame=  231 fps= 38 q=0.0 size=   67548kB time=00:00:10.04 bitrate=55079.2kbits/frame=  254 fps= 38 q=0.0 size=   71296kB time=00:00:11.00 bitrate=53088.3kbits/frame=  276 fps= 39 q=0.0 size=   74977kB time=00:00:11.96 bitrate=51325.2kbits/frame=  300 fps= 39 q=0.0 size=   79188kB time=00:00:12.46 bitrate=52050.0kbits/frame=  324 fps= 40 q=0.0 size=   83478kB time=00:00:13.41 bitrate=50959.4kbits/frame=  348 fps= 40 q=0.0 size=   87869kB time=00:00:14.37 bitrate=50062.0kbits/frame=  372 fps= 41 q=0.0 size=   92356kB time=00:00:15.33 bitrate=49344.8kbits/frame=  396 fps= 41 q=0.0 size=   96947kB time=00:00:16.29 bitrate=48752.9kbits/frame=  419 fps= 41 q=0.0 size=  101444kB time=00:00:17.23 bitrate=48217.0kbits/frame=  442 fps= 41 q=0.0 size=  106043kB time=00:00:18.21 bitrate=47686.2kbits/frame=  465 fps= 42 q=0.0 size=  110741kB time=00:00:19.17 bitrate=47320.8kbits/frame=  488 fps= 42 q=0.0 size=  115475kB time=00:00:20.10 bitrate=47049.8kbits/frame=  511 fps= 42 q=0.0 size=  120201kB time=00:00:21.07 bitrate=46731.5kbits/frame=  535 fps= 42 q=0.0 size=  125034kB time=00:00:22.03 bitrate=46481.1kbits/frame=  558 fps= 42 q=0.0 size=  129623kB time=00:00:22.99 bitrate=46177.4kbits/frame=  579 fps= 42 q=0.0 size=  133851kB time=00:00:23.95 bitrate=45769.5kbits/frame=  602 fps= 42 q=0.0 size=  138497kB time=00:00:24.91 bitrate=45533.2kbits/frame=  626 fps= 42 q=0.0 size=  143322kB time=00:00:25.87 bitrate=45373.3kbits/frame=  648 fps= 42 q=0.0 size=  147760kB time=00:00:26.51 bitrate=45648.2kbits/frame=  672 fps= 43 q=0.0 size=  152673kB time=00:00:27.32 bitrate=45773.4kbits/frame=  695 fps= 43 q=0.0 size=  157447kB time=00:00:28.26 bitrate=45639.0kbits/frame=  718 fps= 43 q=0.0 size=  162307kB time=00:00:29.21 bitrate=45505.9kbits/frame=  741 fps= 43 q=0.0 size=  167231kB time=00:00:30.18 bitrate=45383.0kbits/frame=  764 fps= 43 q=0.0 size=  172211kB time=00:00:31.14 bitrate=45298.8kbits/frame=  787 fps= 43 q=0.0 size=  177266kB time=00:00:32.10 bitrate=45232.2kbits/frame=  810 fps= 43 q=0.0 size=  182371kB time=00:00:33.06 bitrate=45181.5kbits/frame=  833 fps= 43 q=0.0 size=  187477kB time=00:00:34.02 bitrate=45140.7kbits/frame=  856 fps= 43 q=0.0 size=  192653kB time=00:00:34.98 bitrate=45112.2kbits/frame=  879 fps= 43 q=0.0 size=  197968kB time=00:00:35.94 bitrate=45118.1kbits/frame=  900 fps= 43 q=0.0 size=  202861kB time=00:00:36.54 bitrate=45478.0kbits/frame=  924 fps= 43 q=0.0 size=  208410kB time=00:00:37.36 bitrate=45689.1kbits/frame=  947 fps= 43 q=0.0 size=  213683kB time=00:00:38.35 bitrate=45636.3kbits/frame=  970 fps= 43 q=0.0 size=  218827kB time=00:00:39.31 bitrate=45596.5kbits/frame=  993 fps= 43 q=0.0 size=  223860kB time=00:00:40.24 bitrate=45566.4kbits/frame= 1016 fps= 43 q=0.0 size=  228893kB time=00:00:41.21 bitrate=45499.4kbits/frame= 1039 fps= 43 q=0.0 size=  233862kB time=00:00:42.16 bitrate=45434.1kbits/frame= 1062 fps= 43 q=0.0 size=  238843kB time=00:00:43.13 bitrate=45360.7kbits/frame= 1085 fps= 43 q=0.0 size=  243821kB time=00:00:44.09 bitrate=45296.2kbits/frame= 1108 fps= 44 q=0.0 size=  248736kB time=00:00:45.05 bitrate=45225.6kbits/frame= 1131 fps= 44 q=0.0 size=  253585kB time=00:00:46.01 bitrate=45146.4kbits/frame= 1154 fps= 44 q=0.0 size=  258376kB time=00:00:46.97 bitrate=45058.9kbits/frame= 1177 fps= 44 q=0.0 size=  263170kB time=00:00:47.93 bitrate=44974.4kbits/frame= 1199 fps= 44 q=0.0 size=  267778kB time=00:00:48.55 bitrate=45178.8kbits/frame= 1223 fps= 44 q=0.0 size=  272883kB time=00:00:49.35 bitrate=45289.8kbits/frame= 1246 fps= 44 q=0.0 size=  277806kB time=00:00:50.33 bitrate=45208.6kbits/frame= 1269 fps= 44 q=0.0 size=  282745kB time=00:00:51.27 bitrate=45171.3kbits/frame= 1292 fps= 44 q=0.0 size=  287692kB time=00:00:52.24 bitrate=45111.2kbits/frame= 1315 fps= 44 q=0.0 size=  292651kB time=00:00:53.20 bitrate=45060.5kbits/frame= 1338 fps= 44 q=0.0 size=  297588kB time=00:00:54.16 bitrate=45009.3kbits/frame= 1360 fps= 44 q=0.0 size=  302317kB time=00:00:55.12 bitrate=44929.0kbits/frame= 1383 fps= 44 q=0.0 size=  307263kB time=00:00:56.08 bitrate=44880.4kbits/frame= 1406 fps= 44 q=0.0 size=  312193kB time=00:00:57.04 bitrate=44832.7kbits/frame= 1429 fps= 44 q=0.0 size=  317128kB time=00:00:57.57 bitrate=45120.5kbits/frame= 1440 fps= 44 q=0.0 Lsize=  320054kB time=00:00:57.61 bitrate=45503.4kbits/s    video:276729kB audio:43208kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.036400%
 		 	   		  


More information about the ffmpeg-user mailing list