Hello,
New to the list, my first request.
Hello All,
I am attempting to extract channel 2 audio from a mxf file recorded
using a Canon C200 video camera. I will be recording an event, soon,
with audio from two different sources. Channel 1 will be the primary,
but there is likely to be audio on channel 2 that I would want to
incorporate into the final video production.
My computer system is Linux and I use Openshot for video processing.
Openshot does not support multi-channel audio directly, uses channel 1
audio by default – but, I can add audio tracks when creating a final
video. I would be able to add channel 2 audio as appropriate.
I have researched ffmpeg, trying several different suggestions, to find
the correct syntax to extract the audio from channel 2, to no avail.
My test mxf does have 2 channels of audio, for certain – I used 2
microphones and switched off the two sources, independently, to test as
I was recording audio and watching the audio metering on the monitor.
Using this command:
‘ffprobe -i Test.mxf -show_streams -select_streams a:’
produces this output (portion shown):
~~~
Duration: 00:02:04.12, start: 0.000000, bitrate: 154887 kb/s
Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709/bt709/unknown,
progressive), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 59.94 tbn
Metadata:
file_package_umid:
0x060A2B340101010501010D4313000000CD5E7B50171106800000852096000119
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D4313000000CD5E7B50171106800000852096000119
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit),
1152 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D4313000000CD5E7B50171106800000852096000119
~~~
I’ve tried several ffmpeg commands, this command:
‘ffmpeg -f s24le -ar 48000 -ac 1 -i Test.mxf output.wav’
gives this error:
~~~
[pcm_s24le @ 0x5c2a542100c0] Invalid PCM packet, data has size 1 but at
least a size of 3 was expected
[aist#0:0/pcm_s24le @ 0x5c2a5420b780] Decoding error: Invalid data found
when processing input
[out#0/wav @ 0x5c2a541e39c0] video:0kB audio:1564554kB subtitle:0kB
other streams:0kB global headers:0kB muxing overhead: 0.000005%
size= 1564554kB time=04:38:08.55 bitrate= 768.0kbits/s speed=1.43e+03x
~~~
Also, that command seems to want to create an audio file twice as long
as the original.
Other suggested ffmpeg commands produce similar errors.
Any assistance greatly appreciated.
Thanks,
Jim
--
Jim Arner
[email protected]
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]