How Do I DeMux An MXF?
These instructions are for PC, not Mac. Suck it, Mac Users! No, not seriously. Check out FFMPEGX. (Tip 'o the hat to tnyp). It may not work for the unpacking as described below, but even so, hey, it's FFMPEG on Mac.
If You Don't Have FFMPEG Installed:
- First obtain a compiled version of FFMPEG from this page.
- What you want to download from there is the latest Static build suitable for your OS.
- You may also need 7Zip to open the archive.
- Copy the contents of the FFMPEG archive into an FFMPEG directory on your PC. I'd recommend putting it in your Program Files directory.
- Open a command prompt and direct it to the \bin directory.
This approach assumes that you don't want to change what's stored in the MXF at all, just break it out into the component parts. I'll break it down into pieces and explain what each does:
ffmpeg -i [yourinputfile].mxf
- Specifies the input file.
-t 120
- I included this to save time unwrapping so I could get on with testing: this limits the output to 2 minutes of footage only. Remove this to extract the entire length of the file.
-vcodec copy
- leave the video encoded as it is.
[youroutputfile].[appropriate extension]
- In my case, the video was MPEG2, so I set my extension as .m2v. For other formats... eh, consult Wikipedia, I guess.
-acodec copy -f wav
- Extract the first audio track, forcing it to become a wav...
[youroutputfilename_1].wav
- ... and put it into the named wav above.
You can repeat the -acodec... to ...wav part, changing the number, as many times as necessary, and so extract all the audio channels. I did eight mono channels this way, ending up with eight mono wavs. Then it was just a quick trip to dear old AviSynth to stitch the component parts back together again, only my way, this time. The encoder software didn't like it, but then it didn't like the MXF file I started out with, either. So no loss there.
Well, day is over; time to head on home from work, to the internetless void that is my flat. Come on, Swiss efficiency, get me my broadband! We wants the precious! Smeagol wants Google!
(That joke shamefully stolen from Marcus Brigstocke. Youtube him.)
All of the above is EXACTLY how I would have done it. Glad I was able to advise you....
ReplyDeletefyi I have stood/stepped/fallen down from the proffered NHS job as I cannot 'persuade' their website that a. I can tripe and b. I can spoll.
Mma