Right audio channel shifted

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Right audio channel shifted

Alex
This post was updated on .
Hi all,

I normally transcode MY prores files to mxf/xdcam422 and 2 dedicated pcm audio streams with ffmbc, which basically works very well.

Due a bug in ffmbc 0.7-rc7 (https://groups.google.com/forum/#!topic/ffmbc-discuss/6rqUhyG4Wv8), I have recognized yesterday, that the second audio stream of some of my files is shifted by about 40ms.

I've had a look at the ffmpeg manual and found "atrim" as one possible solution for my problem. Is there maybe a smoother way to get the audio channels back in sync?

Best,
Alex
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Carl Eugen Hoyos
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Alex
Thats absolutely clear, but I want to use ffmpeg to solve that issue.

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

tim nicholson-3
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Alex
<quote author="tim nicholson-3">
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
> [...]

Yep, I've tried ffmbc 0.7.1 and it works fine now. But I have to bring the audio back in sync for approx. 80 files.

Do you have any suggestions?

Thanks,
Alex
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Alex
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
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Moritz Barsnick
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 @ 00000000003b69c0] 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Celal Yasar Sahinoz
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: [hidden email]
> To: [hidden email]
> 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 @ 00000000003b69c0] 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
     
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Alex
In reply to this post by Moritz Barsnick
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 @ 00000000003b69c0] 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


Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Moritz Barsnick
On Tue, Oct 14, 2014 at 06:35:07 -0700, Alex wrote:
> 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:

In this case, since you didn't include the output, I was quite lost. I
use "-loglevel debug" to inspect the filter chain, by the way.

> 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

Using one artificial audio source, I was able to experiment a bit.

It appears that it's only the default output of pcm_s16le that is
incorrectly selected for you, your choice of -c:a pcm_s24le is fine,
and atrim seems to handle s32 fine.

In other words: "-c:a:0 copy -c:a:1 pcm_s24le" should work fine in your
case, you can omit "-sample_fmt:a:1 s32". Furthermore, I was able to
make "-c:a:1 pcm_s24le -sample_fmt:a:1 s32" work. Perhaps your first
"-sample_fmt s32" is incorrect (apart from being unneeded). I can't
even tell what it applies to.

As I said: No output messages, no idea. :-)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Alex
Moritz Barsnick wrote
On Tue, Oct 14, 2014 at 06:35:07 -0700, Alex wrote:
> 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:

In this case, since you didn't include the output, I was quite lost. I
use "-loglevel debug" to inspect the filter chain, by the way.

> 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

Using one artificial audio source, I was able to experiment a bit.

It appears that it's only the default output of pcm_s16le that is
incorrectly selected for you, your choice of -c:a pcm_s24le is fine,
and atrim seems to handle s32 fine.

In other words: "-c:a:0 copy -c:a:1 pcm_s24le" should work fine in your
case, you can omit "-sample_fmt:a:1 s32". Furthermore, I was able to
make "-c:a:1 pcm_s24le -sample_fmt:a:1 s32" work. Perhaps your first
"-sample_fmt s32" is incorrect (apart from being unneeded). I can't
even tell what it applies to.

As I said: No output messages, no idea. :-)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Thanks for your time Moritz.

You are right, I forgot to remove the first -sample_fmt 32, sorry. I run the command again:

C:\>ffmpeg -i test.mxf -vcodec copy -map 0:v -map 0:1 -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
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
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: 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 #0:1: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      encoder         : Lavc56.4.101 pcm_s24le
Stream mapping:
  Stream #0:2 (pcm_s24le) -> atrim
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  atrim -> Stream #0:2 (pcm_s24le)
Press [q] to stop, [?] for help
[mxf @ 0000000002b64460] -d10_channelcount requires MXF D-10 and will be ignored
    Last message repeated 1 times
[mxf @ 0000000002b64460] missing frames2kB time=00:03:29.75 bitrate=52557.5kbits/s
frame= 5097 fps=516 q=-1.0 Lsize= 1362548kB time=00:03:32.58 bitrate=52505.4kbits/s
video:1297530kB audio:59779kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.385942%

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



Reply | Threaded
Open this post in threaded view
|

Re: WAS Right audio channel shifted

tim nicholson-3
In reply to this post by Celal Yasar Sahinoz
On 14/10/14 13:07, Celal Yasar Sahinoz wrote:
> Dear All,
> Just joined the mailing list.

Then please take a moment to check on the ml etiquette.

Specifically please do not:-

1/. top post
2/. Hijack existing threads

In order to avoid further pollution of the existing thread please do
*not* reply to this message, but submit a new message with your original
request again.

> 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: [hidden email]
>> To: [hidden email]
>> Subject: Re: [FFmpeg-user] Right audio channel shifted
>>
>> Hi Alex,
>> [.... hi jacked thread....]

--
Tim.
Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Right audio channel shifted

Alex
In reply to this post by Alex
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
  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
[mxf @ 0000000000350280] 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-29bd000b0000
    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: 0000-01-01 00:00:00
    timecode        : 00:00:00:00
  Duration: 00:03:32.55, 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

But: "[mxf @ 0000000000350280] 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