Log in

View Full Version : .mod to .mpg and editing with them through avisynth


gavogavo
9th October 2010, 02:25
I have .mov files that came from a hd cam which i renamed to .mpg and through them to dgmpgdec. Now i have a script that I can through into premiere cs3 and it should pick it up. My question is from a editing standpoint is it better to convert to loseless or edit the mpg through the avisynth that linkded to the d2v file?

Inspector.Gadget
9th October 2010, 17:53
From a video quality perspective, it doesn't matter: the import from Avisynth into Premiere is lossless, and if you don't do any unnecessary colorspace conversions, the export from Premiere with lossless compression will be as well. However, if you're doing any CPU-intensive Avisynth editing (TempGaussMC and other high-effort/high-payoff filters), you may find it best to pre-render from Avisynth to a lossless codec and then import the resulting AVI into Premiere to speed up editing functions within Premiere.

gavogavo
17th October 2010, 23:34
ok so i converted it to loseless to Lagarith Lossless Video but I'm having bad timing issues in premiere cs4? the resolution of it is 1920x1080... It a dual core 2.3ghz cpu. Not enough power?

poisondeathray
18th October 2010, 00:07
nope. lagarith is difficult to edit, too slow

ut video codec is about 5-10x faster for editing (decode speed), but still you need at least a fast quad core or i7 (4c/8t) for 1920x1080 . I don't think you will get real time playback with a dual core in a NLE

gavogavo
19th October 2010, 17:10
ok so there is two other options. One is it a .mod but it been reading as a mpeg2. I could frameserve it from avisynth into premiere. premiere will then see it. Will that be fast enough? or same problem? The second option is more risky I do a bait and switch but if I do that then I will still use the same codec but lower the resolution. So I will have a Lagarith at say 720x480 for editing then bait and switch with the source which is 1920x1080. My concern is premiere will get confused by the resolution changes as in the project"in premiere" it set to 1920x1080. Will that be a problem? If so what would be a good resolution to set the premiere project at? Would I be better of sending the mpeg 2 into avisynth and editing through that or will it still not be enough power for nle.

poisondeathray
19th October 2010, 18:17
ok so there is two other options. One is it a .mod but it been reading as a mpeg2. I could frameserve it from avisynth into premiere. premiere will then see it. Will that be fast enough? or same problem? The second option is more risky I do a bait and switch but if I do that then I will still use the same codec but lower the resolution. So I will have a Lagarith at say 720x480 for editing then bait and switch with the source which is 1920x1080. My concern is premiere will get confused by the resolution changes as in the project"in premiere" it set to 1920x1080. Will that be a problem? If so what would be a good resolution to set the premiere project at? Would I be better of sending the mpeg 2 into avisynth and editing through that or will it still not be enough power for nle.

Why are you frameserving at all ? PP CS4/5 can edit MPEG2 directly. Unless you are doing other processing in avs script?

The bait & switch is called "proxy editing" or "offline editing". There are many guides & other sites that describe how to do this. You could even use something like DV-AVI to do this (it will edit like butter compared to lagarith, even at SD resolution). It's not necessary to use a lossless proxy, a lossy one will suffice because you will swap back to full quality version on final render.

I can't answer any of your "is it powerful enough" questions, because I don't have a dual core to test it out, and it should be simple enough for you to do your own tests

gavogavo
21st October 2010, 02:12
I cant get premiere cs4 to see the mpeg 2 directly poisendeathray. I cant use dv avi because it restricted to 720x480. Maybe frameserve the mpeg 2 to avs then edit it that way. still tho it 1920x1080 i have my doubts.

poisondeathray
21st October 2010, 02:23
I cant get premiere cs4 to see the mpeg 2 directly poisendeathray.


What was it originally? mpeg2 in mov ? or something else

Then you need to properly re-wrap it into mpeg2 program stream e.g. with ffmpeg

If you don't know what it is use mediainfo

You can import mov directly into premiere with quicktime installed as well


I cant use dv avi because it restricted to 720x480.


Yes you can, that's the whole point of proxy editing. You edit at a low resolution so it's fast/quick/responsive , then swap back to full resolution and quality on final render

Google for "proxy editing" in Premiere, there are many guides online and different ways to do it


Maybe frameserve the mpeg 2 to avs then edit it that way. still tho it 1920x1080 i have my doubts.

You can do whatever you want, but frameserving will be slower than decoding natively. It adds additional overhead as well . It makes no sense to frameserve in your case (unless you were offloading decoding to the GPU with DGNVTools), it doesn't help you any unless you were planning to use other filtering


EDIT: or is this JVC .mod ? You use .mod in your title but .mov in the 1st post. Please be more clear

gavogavo
21st October 2010, 15:32
its jvc .mod. if i install quicktime it will solve the problem?

poisondeathray
21st October 2010, 15:57
its jvc .mod. if i install quicktime it will solve the problem?

No it won't. You said mov in the 1st post, and if it was mov, then quicktime would work.

Anyways, you can re-wrap it with ffmpeg and premiere will accept natively

e.g.

ffmpeg -i input.mod -vcodec copy -acodec copy -f mpegts output.m2ts


This will re-wrap into transport stream

If you want to match a .bat file to re-wrap all the clips in a folder (batch process), write the following in notepad, rename .txt extension to .bat, place copy of ffmpeg.exe in the same directory and double click the .bat file


for %%a in ("*.mod") do ffmpeg -i %%a -vcodec copy -acodec copy -f mpegts %%~na.m2ts


cheers

gavogavo
26th October 2010, 14:50
thank you