Re: [FFmpeg-user] Right audio channel shifted
Alex wrote VLC still said: http://s14.directupload.net/images/141014/r7h73d5b.jpg One other thing: I checked my database again and I have to verify over 300 videos which are possibly affected by this bug. Is there a possibility with ffmpeg to repair those files automatically or at least see if a file is affected. Otherwise I am going to do this job manually via a vectorscope. :) Thanks, Alex Okay, when I check the trimmed file with ffmpeg it looks okay: C:\ffmpeg -i 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 libavformat56. 9.100 / 56. 9.100 libavdevice56. 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 libpostproc53. 1.100 / 53. 1.100 [mxf @ 00350280] index entry 5095 + TemporalOffset 1 = 5096, which is out of bounds Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mxf, from 'test_new.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000b generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001 company_name: FFmpeg product_name: OP1a Muxer product_version : 56.9.100 product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002 modification_date: -01-01 00:00:00 timecode: 00:00:00:00 Duration: 00:03:32.55, start: 0.00, bitrate: 52515 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5 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 But: [mxf @ 00350280] index entry 5095 + TemporalOffset 1 = 5096, which is out of bounds What does this mean? An why does VLC identifies different channel values? Best, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667781.html Sent from the FFmpeg-users mailing list archive at Nabble.com. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
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 libavformat56. 9.100 / 56. 9.100 libavdevice56. 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 libpostproc53. 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-29bd000b 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.00, bitrate: 52515 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5 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 @ 003b69c0] 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-29bd000b 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, 5 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. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
Hi Alex, I guess there is somehing wrong with the channel mapping, but without the fliter_complex the mapping seems to be okay. I think the filter_complex messes up the mapping. Note this mapping from your output: Stream mapping: Stream #0:2 (pcm_s24le) - atrim atrim - Stream #0:0 (pcm_s24le) Stream #0:0 - #0:1 (copy) and this result: Output #0, mxf, to 'test_new.mxf': Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], and this warning: [mxf @ 003b69c0] there must be exactly one video stream and it must be the first one I'm sure that's your issue. The filter seems to be messing up the mapping, at least in this automatic case. Instead of 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 you probably need something like ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -filter_complex [a:1]atrim=start=0.035[ashifted] -map [ashifted] test_new.mxf (Untested) Note that I'm trying to explicitly map the filter output to a particular stream, avoiding automatic mapping. You may have to play around a bit more with the map options. Is this a bug, BTW? Documentation on -map states: The first -map option on the command line specifies the source for output stream 0, the second -map option specifies the source for output stream 1, etc. Digging further, documentation of -filter_complex clarifies: Output link labels are referred to with ‘-map’. Unlabeled outputs are added to the first output file. So the first documentation section is somewhat unclear, as it is disturbed by the second behavior. (And in the second section: first output file - first output stream, right?) Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
Dear All, Just joined the mailing list. Looking for a video player in a browser, that will play: mp4 video codec, aac audio codec, and floor audio, en, fr, ger, tr translations. Each audio channel will be selected in the browser in most platforms. I have managed to: ffmpeg -i 00.mp4 -i 01.mp4 -i 02.mp4 -i 03.mp4 -map 0:0 -map 0:1 -map 1:0 -map 2:0 -map 3:0 -acodec copy -vcodec copy output.mp4 where output.mp4 is the video file with 4 audio stream muxed together. Now how can i play it in a browser. Regards, Celal Yasar Sahinoz Date: Tue, 14 Oct 2014 13:59:41 +0200 From: barsn...@gmx.net To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] Right audio channel shifted Hi Alex, I guess there is somehing wrong with the channel mapping, but without the fliter_complex the mapping seems to be okay. I think the filter_complex messes up the mapping. Note this mapping from your output: Stream mapping: Stream #0:2 (pcm_s24le) - atrim atrim - Stream #0:0 (pcm_s24le) Stream #0:0 - #0:1 (copy) and this result: Output #0, mxf, to 'test_new.mxf': Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], and this warning: [mxf @ 003b69c0] there must be exactly one video stream and it must be the first one I'm sure that's your issue. The filter seems to be messing up the mapping, at least in this automatic case. Instead of 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 you probably need something like ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -filter_complex [a:1]atrim=start=0.035[ashifted] -map [ashifted] test_new.mxf (Untested) Note that I'm trying to explicitly map the filter output to a particular stream, avoiding automatic mapping. You may have to play around a bit more with the map options. Is this a bug, BTW? Documentation on -map states: The first -map option on the command line specifies the source for output stream 0, the second -map option specifies the source for output stream 1, etc. Digging further, documentation of -filter_complex clarifies: Output link labels are referred to with ‘-map’. Unlabeled outputs are added to the first output file. So the first documentation section is somewhat unclear, as it is disturbed by the second behavior. (And in the second section: first output file - first output stream, right?) Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
Moritz Barsnick wrote Hi Alex, I guess there is somehing wrong with the channel mapping, but without the fliter_complex the mapping seems to be okay. I think the filter_complex messes up the mapping. Note this mapping from your output: Stream mapping: Stream #0:2 (pcm_s24le) - atrim atrim - Stream #0:0 (pcm_s24le) Stream #0:0 - #0:1 (copy) and this result: Output #0, mxf, to 'test_new.mxf': Stream #0:0: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s Stream #0:1: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], and this warning: [mxf @ 003b69c0] there must be exactly one video stream and it must be the first one I'm sure that's your issue. The filter seems to be messing up the mapping, at least in this automatic case. Instead of 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 you probably need something like ffmpeg -i test.mxf -vcodec copy -map 0:v -acodec pcm_s24le -map 0:1 -filter_complex [a:1]atrim=start=0.035[ashifted] -map [ashifted] test_new.mxf (Untested) Note that I'm trying to explicitly map the filter output to a particular stream, avoiding automatic mapping. You may have to play around a bit more with the map options. Is this a bug, BTW? Documentation on -map states: The first -map option on the command line specifies the source for output stream 0, the second -map option specifies the source for output stream 1, etc. Digging further, documentation of -filter_complex clarifies: Output link labels are referred to with ‘-map’. Unlabeled outputs are added to the first output file. So the first documentation section is somewhat unclear, as it is disturbed by the second behavior. (And in the second section: first output file - first output stream, right?) Moritz Hi Moritz, thanks for your help, works great! The mapping thing is still a bit confusing to me. :) One last problem: I would like to set the sample format of the second stream back to s32. I tried the follwoing, but it won't work: ffmpeg -i test.mxf -vcodec copy -map 0:v -map 0:1 -sample_fmt s32 -c:a:0 copy -c:a:1 pcm_s24le -sample_fmt:a:1 s32 -filter_complex [a:1]atrim=start=0.035[ashifted] -map [ashifted] test_new.mxf Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667768.html Sent from the FFmpeg-users mailing list archive at Nabble.com. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
On 10/10/14 23:46, Alex wrote: Thats absolutely clear, but I want to use ffmpeg to solve that issue. Have you actually tried a later version of ffmbc? Baptiste said the issue would be fixed in the next version... Alex [...] -- Tim. Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
Alex doenerbudenchef-at-yahoo.de at ffmpeg.org writes: [...] Since this is apparently not clear: This is not the ffmbc user mailing list. (FFmpeg != ffmbc) Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Right audio channel shifted
Thats absolutely clear, but I want to use ffmpeg to solve that issue. Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Right-audio-channel-shifted-tp4667730p4667732.html Sent from the FFmpeg-users mailing list archive at Nabble.com. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user