[FFmpeg-user] ikegami MXF issue while using ffmpeg

Erik Dobberkau erik.dobberkau at gmail.com
Sun Sep 4 20:48:05 EEST 2016


2016-09-03 22:05 GMT+02:00 afellah <ahmed-fellah at hotmail.com>:

>
> Guessed Channel Layout for Input Stream #2.0 : stereo
> Input #2, mxf, from 'A1.MXF':
>   Metadata:
>     uid             : 0fdc43a0-eff5-f5e4-dd34-b16f3f89bfa0
>     generation_uid  : ed27396c-fb10-cdf0-d46f-555b17013117
>     company_name    : Ikegami
>     product_name    : GF
>     product_version : 1.0
>     product_uid     : 4844532d-5631-3020-4141-363930363345
>     modification_date: 2016-03-27 14:20:26
>     material_package_umid:
> 0x060A2B340101010501010D2013000000DE50491B0081A35CBF4756EFB5C90570
>     timecode        : 00:00:00:00
>   Duration: 00:05:24.00, start: 0.000000, bitrate: 1539 kb/s
>     Stream #2:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
>     Metadata:
>       file_package_umid:
> 0x060A2B34010101050101092013000000265F4114361C88D9220B54D67E425195
> Guessed Channel Layout for Input Stream #3.0 : stereo
> Input #3, mxf, from 'B1.MXF':
>   Metadata:
>     uid             : 25334a8d-9130-85a8-fbed-99e9a885988c
>     generation_uid  : dc8be6ca-df13-17bd-9a2a-cc2e94ff6dd0
>     company_name    : Ikegami
>     product_name    : GF
>     product_version : 1.0
>     product_uid     : 4844532d-5631-3020-4141-363930363345
>     modification_date: 2016-03-27 14:20:26
>     material_package_umid:
> 0x060A2B340101010501010D2013000000DE50491B0081A35CBF4756EFB5C90570
>     timecode        : 00:00:00:00
>   Duration: 00:05:24.00, start: 0.000000, bitrate: 1539 kb/s
>     Stream #3:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
>     Metadata:
>       file_package_umid:
> 0x060A2B34010101050101092013000000B131007B96070C4687E97C35128EBA68
> Input #4, mxf, from 'A2.mxf':
>   Metadata:
>     uid             : 3631f14c-6bf0-4e33-9e5e-0a3acc167218
>     generation_uid  : 27295f49-4a0e-0ad6-8b42-38c9bbf7b075
>     company_name    : Ikegami
>     product_name    : GF
>     product_version : 1.0
>     product_uid     : 4844532d-5631-3020-4141-363930363345
>     modification_date: 2016-03-27 14:25:50
>     material_package_umid:
> 0x060A2B340101010501010D2013000000DE50491B0081A35CBF4756EFB5C90570
>     timecode        : 00:00:00:00
>   Duration: N/A, bitrate: N/A
> Input #5, mxf, from 'B2.MXF':
>   Metadata:
>     uid             : 1a646d62-5088-2c7f-5719-49c47364a76e
>     generation_uid  : 36a4e2f6-acf1-3fc8-ec8c-3933f9863495
>     company_name    : Ikegami
>     product_name    : GF
>     product_version : 1.0
>     product_uid     : 4844532d-5631-3020-4141-363930363345
>     modification_date: 2016-03-27 14:25:50
>     material_package_umid:
> 0x060A2B340101010501010D2013000000DE50491B0081A35CBF4756EFB5C90570
>     timecode        : 00:00:00:00
>   Duration: N/A, bitrate: N/A
>

Here you can see already that ffmpeg will not recognize the spanned audio
"just like that", it seems you have to force it on the input side as you
already did below.


> Stream specifier ':a:0' in filtergraph description
> [0:v:0][2:a:0][4:a:0][1:v:0][3:a:0][5:a:0]concat=n=2:v=1:a=
> 2[Video][Audio1][Audio2]
> matches no streams.
>

Two issues here: the order is not exactly correct. But also, as mentioned
above, ffmpeg doesn't find any streams in the spanned audio files (A2/B2).


>
> Also i'm trying now to join the two audio with this command
>
> ffmpeg.exe -i A1.MXF -f s16le -ac 2 -ar 48000 -i A2.MXF -filter_complex
> "[0:0][1:0]concat=n=2:v=0:a=1[out]" -map "[out]" -top 1 -vcodec dnxhd -b:v
> 120M Audio.mov
>
> but i have a noise exactly in the join time.
>
>
yep, same here. And audio sample rate is halved after the noise (when
concatenating and encoding to a wav file, but not when encoding to a mov
the way you did). Strange, and I don't really have a clue. I guess it's
because the spanned files (A2/B2) are missing some header information.

Erik


More information about the ffmpeg-user mailing list