Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th June 2013, 09:55   #1  |  Link
Floatingshed
Registered User
 
Join Date: Nov 2008
Posts: 324
mxf in avisynth

I've been unable to get any mxf's into Avisynth, so decided to de-mux first. Really this is a FFMBC question but there isn't a section for that...!

I can de-mux the video like this:

Code:
ffmbc -i test.mxf -t 60 -vcodec copy video.m2v
or the audio like this:

Code:
ffmbc -i test.mxf -t 60 -acodec copy -vn audio.wav
But trying to do both at the same time fails:

Code:
ffmbc -i test.mxf -t 60 -vcodec copy video.m2v -acodec copy audio.wav
The error is: [wav @ 01eca520] NONE codec not supported in WAVE format
Could not write header for output file #1


ffmpeg appears to de-mux both audio and video at once (using the same command) but the resulting audio is mangled.

Any help much appreciated.

Thanks.
Floatingshed is offline   Reply With Quote
Old 6th June 2013, 12:01   #2  |  Link
hanfrunz
Registered User
 
hanfrunz's Avatar
 
Join Date: Feb 2002
Location: Germany
Posts: 540
Can please give us more information about this MXF file? How many tracks? What kind of audio codec?
Where does it come from?

regards
hanfrunz
hanfrunz is offline   Reply With Quote
Old 6th June 2013, 12:43   #3  |  Link
Floatingshed
Registered User
 
Join Date: Nov 2008
Posts: 324
Certainly.
The mxf contains one m2v video file and 4 pcm audio files.
It was produced (I think) on an avid editor and is a promotional video for a Portugese shopping centre! (I am the voice-over on it!)
My object here is to make a more compatible version to use as a demo of my work.
Floatingshed is offline   Reply With Quote
Old 6th June 2013, 14:08   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
Quote:
Originally Posted by Floatingshed View Post
I've been unable to get any mxf's into Avisynth,
ffms2
poisondeathray is offline   Reply With Quote
Old 6th June 2013, 14:37   #5  |  Link
Floatingshed
Registered User
 
Join Date: Nov 2008
Posts: 324
Quote:
Originally Posted by poisondeathray View Post
ffms2
Tried that, ffaudiosource only returns the first audio track.
Floatingshed is offline   Reply With Quote
Old 6th June 2013, 15:16   #6  |  Link
paradoxical
Guest
 
Posts: n/a
Quote:
Originally Posted by Floatingshed View Post
Tried that, ffaudiosource only returns the first audio track.
Use separate FFAudioSource calls and specify a different track number for each call.
  Reply With Quote
Old 7th June 2013, 17:12   #7  |  Link
Floatingshed
Registered User
 
Join Date: Nov 2008
Posts: 324
Quote:
Originally Posted by paradoxical View Post
Use separate FFAudioSource calls and specify a different track number for each call.
Aha! So that's where I was going wrong. Thanks.

I've sorted it out now, although I'm still curious about ffmbc's reluctance...
Floatingshed is offline   Reply With Quote
Old 8th June 2013, 00:10   #8  |  Link
jordanh
Registered User
 
Join Date: Apr 2013
Location: Vienna, Austria
Posts: 55
Quote:
Originally Posted by Floatingshed View Post
, although I'm still curious about ffmbc's reluctance...
You nailed it. Ufortunately audio handling of MXF Files is not only in ffmpeg based stuff complicated. It is one of the most common "incompatibility" problems of MXF in general.
Basically for understanding the problem you first have to understand that there are different ways to transport audio in MXF:
-) with or without audio header (typically wav or AES)
-) devided into multiple tracks or multiple channels in one stream
* SD/D10: 8 ch / 1 track
* HD/XDCAMHD: 8 ch / 8 tracks
* some dirty mxf: 2 ch / 1 track
* other dirty mxf: 4ch / 2 tracks

Now, what you did was to ask default wav for output from ffmbc, without specifying any channel layout. If i was the developer of ffmbc, i would for sure use 2ch / 1 track for default wav layout.
jordanh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.