Log in

View Full Version : still no mxf?


pantau
23rd February 2012, 13:56
i'm trying to find a way to get avisynth to work directly with avid mxf files. is there still no import plugin around? thanks!

TheFluff
23rd February 2012, 14:12
ffvideosource should be able to open mxf. There's also this (http://code.google.com/p/dcinematools/wiki/MXFSource) that may or may not work better (I just googled "avisynth mxf" to find it; perhaps you should have done the same before posting this thread?).

pantau
23rd February 2012, 15:46
thanks for your answer... it's not working for me, but maybe i'm doing something wrong...

i use megui, and ffms is part of it, so my script reads:

LoadPlugin("C:\Program Files (x86)\MeGUI 0.3.5\tools\ffms\ffms2.dll")
FFVideoSource("E:\Avid MediaFiles\MXF\1\ecohhh3AA01.4F395DB7.E24FF0")

the error i encounter is "FFVideoSource: Can't open ..."

am i maybe not loading the plugin the right way?

poisondeathray
23rd February 2012, 17:49
maybe you mistyped the filename?



FFVideoSource("E:\Avid MediaFiles\MXF\1\ecohhh3AA01.4F395DB7.E24FF0")



E24FF0 doesn't look like an .mxf extension ?

pantau
23rd February 2012, 17:59
thanks, you're right of course, i forgot the .mxf ending...

but now the error i get is: "no video track found"

poisondeathray
23rd February 2012, 18:00
What kind of mxf file, what compression ?

Use mediainfo if you don't know

pantau
23rd February 2012, 18:05
they are native HDV files

poisondeathray
23rd February 2012, 18:09
xdcam or mpeg2 in mxf opens fine with ffvideosource, so hdv should too as well - maybe something peculiar about your particular files ?

you can try re-wrapping with ffmpeg into a transport stream first

pantau
23rd February 2012, 19:23
how would i do that? could you give me a hint on how the ffmpeg command line would look to get a transport stream output?

poisondeathray
23rd February 2012, 19:24
ffmpeg -i input.mxf -vcodec copy -acodec copy -f mpegts output.m2ts

or you can just demux it to m2v and use dgindex (hdv is just mpeg2)

pantau
23rd February 2012, 19:37
sorry for my ignorance, do i have to specify to vcodec and acodec? running the script like this i get a "-vcodec: no such file or directory" error.

"C:\Program Files\ffmpeg-git-a923b6b-win64-static\bin\ffmpeg.exe" -i -vcodec copy -acodec copy -f mpegts "E:\EcoHHH\output.m2ts"

poisondeathray
23rd February 2012, 19:38
sorry for my ignorance, do i have to specify to vcodec and acodec? running the script like this i get a "-vcodec: no such file or directory" error.

"C:\Program Files\ffmpeg-git-a923b6b-win64-static\bin\ffmpeg.exe" -i -vcodec copy -acodec copy -f mpegts "E:\EcoHHH\output.m2ts"


you didn't specify the input file; it's blank after the -i


-i inputfile.mxf

pantau
23rd February 2012, 19:42
i see... now it works, but the output is zero bytes:

Input #0, mxf, from 'E:\Avid MediaFiles\MXF\1\ecohhh3AA01.4F395DB7.E24FF0.mxf':
Duration: 00:30:01.36, start: 0.433771, bitrate: 770 kb/s
Stream #0:0: Data: none
Output #0, mpegts, to 'E:\EcoHHH\output.m2ts':
Output file #0 does not contain any stream

TheFluff
23rd February 2012, 19:57
Judging by that output it looks like the file is encrypted. ffmpeg detects a track, but can't detect its type (audio/video) or compression method. Since ffvideosource is based on ffmpeg, it gets the same result and you get the error "no video track found".

pantau
23rd February 2012, 19:59
so demuxing to m2v wouldn't work either?

TheFluff
23rd February 2012, 20:00
so demuxing to m2v wouldn't work either?

I guess that depends on what you use for that task. Try it and see if it works?

TheFluff
23rd February 2012, 20:01
I guess the problem could also just be a bug in ffmpeg, I can't really tell. If you upload a sample file I guess I could take a look.

pantau
23rd February 2012, 20:06
could you help me how to demux that with ffmpeg? in the documentation there is no mpeg demuxer...

unfortunately i also lack the knowledge to work with http://code.google.com/p/dcinematools/ (no idea on how to compile that)

the smallest file i have is 27MB; if i separate it it won't probably be the same. i'll send a yousendit link to it as soon as it is uploaded...

TheFluff
23rd February 2012, 20:35
The dcinematools package only supports jpeg2k compression.

What gave you the impression that ffmpeg would support demuxing the stream when it can't read it?

pantau
23rd February 2012, 20:45
I guess that depends on what you use for that task. Try it and see if it works?

i guess i misunderstood your remark. so what else could i use to demux?

here's the link of a short piece of mxf video:

https://rcpt.yousendit.com/1387617148/5708e8c47443b186f9f21c94ff71c752?cid=tx-02002208350200000000&s=19105

poisondeathray
23rd February 2012, 20:47
you can try ffmbc, it seems to handle mxf (and transport streams) better than ffmpeg

there is a free tool called amberfin mxf desktop that can demux mxf ; there might be some free mxf tools on sourceforge as well

edit: I didn't see you posted a sample

yes, amberfin works, it will demux a raw file, but you can safely rename the extension to .m2v, or just use dgindex on the raw file (it's just elementary mpeg2 video). There seems to be no audio in the sample .mxf ?

pantau
23rd February 2012, 21:00
no, the audio is in separate files.

i'll try amber later...

pantau
23rd February 2012, 21:17
do you have a source for amberfin apart from the company site which obliges you to sign up to news?

pantau
23rd February 2012, 21:20
ffmbc is not available for windows is this right?

poisondeathray
23rd February 2012, 21:21
I'll put a mirror below

Mods: It's free software, but requires a sign up. If this is violating any rules, I'll take it down

AmberFin MXF Desktop
http://www.mediafire.com/?o6hwb5y53vr4vm0


ffmbc is not available for windows is this right?


yes it is, you can compile for windows, but still has problems with your sample

pantau
23rd February 2012, 21:44
thanks for the link... i can install it, but it crashes media player and vlc when i try to play a file.

anyway, i don't understand how it could help me to get the mxf-files into avisynth?

poisondeathray
23rd February 2012, 21:49
thanks for the link... i can install it, but it crashes media player and vlc when i try to play a file.

anyway, i don't understand how it could help me to get the mxf-files into avisynth?

you demux to elementary video (i.e. video without mxf wrapper)

avisynth can open .m2v video (e.g. dgindex or ffvideosource)

pantau
24th February 2012, 01:05
it works, thanks... not really practical, as i have to demux the files one by one. hopefully some day in the future ffvideosource will work directly with mxf files.

Selur
24th February 2012, 11:55
ffmbc is not available for windows is this right?
VideoHelp (http://www.videohelp.com/tools/ffmbc) also has Windows builds of ffmbc

pantau
24th February 2012, 12:30
thanks... i can't find a description of parameters, neither on the videohelp nor the developers site...

Brazil2
24th February 2012, 12:48
thanks... i can't find a description of parameters, neither on the videohelp nor the developers site...
ffmbc -h

or
ffmbc -h > ffmbc.txt
to print it all into a text file.

pantau
24th February 2012, 13:20
wow, i've never seen so many parameters... could you maybe help me with a simple command line?

is there a input filter based on ffmbc that would allow to directly ingest .mxf into avisynth? or would i have to unwrap/demux?

poisondeathray
24th February 2012, 15:20
I stated above, ffmbc doesn't work on your particular test file

The commandline would be basically the same as ffmpeg (just change ffmbc for ffmpeg)

(But it works for other mxf files, including mpeg2)

pantau
24th February 2012, 15:27
ok, so i'll give up for the moment... my test file is a standard avid hdv mxf file.

poisondeathray
24th February 2012, 15:54
other 'standard' avid files work, like dnxhd

jmac698
26th February 2012, 22:45
Lest we forget doom9's very own version of ffmbc for windows, with included help files:
http://forum.doom9.org/showthread.php?p=1528421#post1528421