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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

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

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd February 2012, 13:56   #1  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
still no mxf?

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!
pantau is offline   Reply With Quote
Old 23rd February 2012, 14:12   #2  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
ffvideosource should be able to open mxf. There's also this 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?).
TheFluff is offline   Reply With Quote
Old 23rd February 2012, 15:46   #3  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
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?
pantau is offline   Reply With Quote
Old 23rd February 2012, 17:49   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
maybe you mistyped the filename?

Quote:

FFVideoSource("E:\Avid MediaFiles\MXF\1\ecohhh3AA01.4F395DB7.E24FF0")
E24FF0 doesn't look like an .mxf extension ?
poisondeathray is offline   Reply With Quote
Old 23rd February 2012, 17:59   #5  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
thanks, you're right of course, i forgot the .mxf ending...

but now the error i get is: "no video track found"
pantau is offline   Reply With Quote
Old 23rd February 2012, 18:00   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
What kind of mxf file, what compression ?

Use mediainfo if you don't know
poisondeathray is offline   Reply With Quote
Old 23rd February 2012, 18:05   #7  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
they are native HDV files
pantau is offline   Reply With Quote
Old 23rd February 2012, 18:09   #8  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
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
poisondeathray is offline   Reply With Quote
Old 23rd February 2012, 19:23   #9  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
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?
pantau is offline   Reply With Quote
Old 23rd February 2012, 19:24   #10  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
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)
poisondeathray is offline   Reply With Quote
Old 23rd February 2012, 19:37   #11  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
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"
pantau is offline   Reply With Quote
Old 23rd February 2012, 19:38   #12  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by pantau View Post
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
poisondeathray is offline   Reply With Quote
Old 23rd February 2012, 19:42   #13  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
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
pantau is offline   Reply With Quote
Old 23rd February 2012, 19:57   #14  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
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".
TheFluff is offline   Reply With Quote
Old 23rd February 2012, 19:59   #15  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
so demuxing to m2v wouldn't work either?
pantau is offline   Reply With Quote
Old 23rd February 2012, 20:00   #16  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
Quote:
Originally Posted by pantau View Post
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 is offline   Reply With Quote
Old 23rd February 2012, 20:01   #17  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
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.
TheFluff is offline   Reply With Quote
Old 23rd February 2012, 20:06   #18  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
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...
pantau is offline   Reply With Quote
Old 23rd February 2012, 20:35   #19  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
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?
TheFluff is offline   Reply With Quote
Old 23rd February 2012, 20:45   #20  |  Link
pantau
Registered User
 
Join Date: Sep 2010
Posts: 49
Quote:
Originally Posted by TheFluff View Post
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/138761714...000000&s=19105
pantau 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 19:17.


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