[FFmpeg-user] Right audio channel shifted
Alex
doenerbudenchef at yahoo.de
Tue Oct 14 11:44:16 CEST 2014
Okay, I played a bit around with the atrim Filter, but the manual isn't very
helpful here. I've tried the following:
C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -map
0:2 -filter_complex "[a:1]atrim=start=0.035" test_new.mxf
ffmpeg version N-66809-g20df026 Copyright (c) 2000-2014 the FFmpeg
developers
built on Oct 11 2014 23:42:02 with gcc 4.9.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-
libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 54. 10.100 / 54. 10.100
libavcodec 56. 4.101 / 56. 4.101
libavformat 56. 9.100 / 56. 9.100
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 1.103 / 5. 1.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 1.100 / 53. 1.100
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Input #0, mxf, from 'test.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000b0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001
company_name : FFmbc
product_name : OP1a Muxer
product_version : 53.6.0
product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002
modification_date: 2014-03-28 11:58:57
timecode : 00:00:00:00
Duration: 00:03:32.59, start: 0.000000, bitrate: 52515 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080
[SAR 1:1 DAR 16:9], 50000 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
File 'test_new.mxf' already exists. Overwrite ? [y/N] y
[mxf @ 00000000003b69c0] there must be exactly one video stream and it must
be the first one
Output #0, mxf, to 'test_new.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000b0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001
company_name : FFmbc
product_name : OP1a Muxer
product_version : 53.6.0
product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002
modification_date: 2014-03-28 11:58:57
timecode : 00:00:00:00
encoder : Lavf56.9.100
Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
Metadata:
encoder : Lavc56.4.101 pcm_s24le
Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 50000 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
Stream mapping:
Stream #0:2 (pcm_s24le) -> atrim
atrim -> Stream #0:0 (pcm_s24le)
Stream #0:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?):
Error number -1 occurred
I guess there is somehing wrong with the channel mapping, but without the
fliter_complex the mapping seems to be okay.
Thanks,
Alex
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667764.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list