[FFmpeg-user] demuxing and re-muxing of mxf video files
paul__tapper at hotmail.com
Fri Apr 22 15:58:41 CEST 2011
Thanks very much for the help.
I tried your suggestion and FFmpeg complained about the number of mappings in the output file, which I think might have been due to the -newaudio switch, so I tried removing that, and now it looks like its trying to do the re-mux, but is failing. I get the following output...
Input #0, mxf, from 'C:\ffmpegTest\test.mxf': Duration: 00:00:03.40, start: 0.000000, bitrate: 136319 kb/s Stream #0.0: Video: libopenjpeg, rgb24, 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/sInput #1, wav, from 'C:\ffmpegTest\test.mxf.wav': Duration: 00:00:03.40, bitrate: 1536 kb/s Stream #1.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s[mxf @ 0097C990] track 0: could not find essence container ul, codec not currently supported in containerOutput #0, mxf, to 'C:\ffmpegTest\test.mxf.remux.mxf': Metadata: encoder : Lavf52.108.0 Stream #0.0: Video:  / 0x0000, rgb24, 1920x1080, q=2-31, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, 1536 kb/sStream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1Could not write header for output file #0 (incorrect codec parameters ?)
I don't really understand any of this, but the "[mxf @ 0097C990] track 0: could not find essence container ul, codec not currently supported in container" makes me wonder whether there is some problem with the mux-ing of mxf files.
Please, do you have any further suggestions?
> From: rodney.baker at iinet.net.au
> To: ffmpeg-user at ffmpeg.org
> Date: Fri, 22 Apr 2011 21:12:01 +0930
> Subject: Re: [FFmpeg-user] demuxing and re-muxing of mxf video files
> On Fri, 22 Apr 2011 16:56:12 Paul Tapper wrote:
> > Hi,
> > I hope this is the right place to post this question. Sorry if it isn't.
> > I'm trying to use FFmpeg to take an .mxf file and:1. demux the audio out of
> > it to a .wav (and then process the .wav myself), then2. mux together the
> > video from the original .mxf with the .wav that I have now processed, to
> > get back to an .mxf file, as similar as possible to the original .mxf, but
> > now with my processed audio, instead of the original audio. I've got step
> > 1. working with a very simple:
> > ffmpeg.exe -i "test.mxf" "test.mxf.wav"
> > but I'm a bit stuck on step 2.
> > I've tried the following:
> > ffmpeg.exe -an -i "test.mxf" -i "test.mxf.wav" -vcodec copy
> > "test.mxf.remux.mxf" but I get an error "[mxf @ 01EF8610] track 0: could
> > not find essence container ul, codec not currently supported in container"
> > Please could anyone suggest what I should do here? Is this even a
> > sensible thing to attempt with FFmpeg? Thanks
> > Paul
> First of all, you're telling ffmpeg that you want no audio (the -an) switch,
> then trying to add audio.
> You need to specify the 2 input files as you have done, but then map the
> streams from each input file to the output file. If the video in test.mxf is
> stream 0 then you would use -map 0:0 -map 1:0.
> You also need the "newaudio" switch.
> Your final command would look something like:
> ffmpeg -i test.mxf -i test.mxf.wav -acodec copy -vcodec copy -map 0:0 -map 1:0
> output.mxf -newaudio
> You might have to play around with the order of the options (order is
> important). Others who have done this before may have better suggestions.
> Rodney Baker VK5ZTV
> rodney.baker at iinet.net.au
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
More information about the ffmpeg-user