Log in

View Full Version : edit m2v, ac3 to play backwards?


varekai
19th October 2010, 14:39
Hello...

I have demuxed a a short clip, 20 sec., from a DVD to m2v and ac3.
Trying to figure out how to edit both to play backwards, just for fun, and then remux to DVD.
Is it possible and how would I do that?
Thanks...

(edit - figured out how to reverse ac3 audio, no luck on m2v... yet...)

regards

sneaker_ger
19th October 2010, 16:21
Use the AviSynth function reverse().

varekai
20th October 2010, 08:35
Hello...

Read Avisynth Wiki, feeling dumb...tried your script, total newbie... no luck... :o
http://desmond.yfrog.com/Himg375/scaled.php?tn=0&server=375&filename=errorkm.png&xsize=640&ysize=640

AviSource("E:\DVD\avisynth\VideoFile.m2v")
reverse()

regards

manono
20th October 2010, 10:03
an M2V isn't an AVI so you don't use AVISource on it. Index it first using DGIndex and make a script using DGDecode and MPEG2Source before adding Reverse() to the script. How to do all that is explained very well in the docs included in the DGMPGDec package. As for the AC3 audio, get NicAudio and use that to add the audio into the file.

varekai
20th October 2010, 17:07
@manono

Hello...

I followed the DGMPGDec Quick Start Guide, like 10 times... feeling even dumber than before... :o

Input vob plays just fine in preview with DGIndex. Tried many different settings in the script, no luck...
I can get an avi output that plays way to slow, very jerky and with no audio, tried both ac3 and wav as source.
Avi output is over 600MB and original vob is 11MB so that can't be right?

------------------------------------------------------------------------
LoadPlugin("E:\DVD\avisynth\DGIndex\DGDecode.dll")
video=MPEG2Source("E:\DVD\avisynth\project\reverse.d2v")
audio=AC3Source("reverse T80 2_0ch 256Kbps DELAY 0ms.ac3")
AudioDub(video,audio)
reverse()
------------------------------------------------------------------------

If some more info or screendumps is needed let me know.
Thanks...

regards

sneaker_ger
20th October 2010, 17:41
Your script looks fine. You probably set your program (VirtualDub?) to uncompressed output.

manono
20th October 2010, 18:20
Yep, it must be uncompressed. Choose and set up a codec (ones such as XviD or DivX, most likely). If the audio isn't working for you, then leave it out of the script and just mux in the one you made earlier, either during or after encoding the video. The changed script might then be something like:

LoadPlugin("E:\DVD\avisynth\DGIndex\DGDecode.dll")
MPEG2Source("E:\DVD\avisynth\project\reverse.d2v")
reverse()

As for it playing jerky, that could be because you wound up with a very CPU intensive uncompressed AVI. Try again after encoding to a much smaller size.

varekai
21st October 2010, 17:45
hello sneaker_ger and manono :)

Finally got it right! Thanks for your input on avs script, worked like a charm!

Couldn't figure out though how to reverse audio in the script but was able
to edit and add the reversed sound later when muxing.
Also couldn't get the right file output, extension and size, in VirtualDub so I
added the avs script in CCE and got an mpv with almost same size as vob
input and then muxed. Looks great and plays just fine! All done!

I now must learn more about avs script... Lots of fun for me! :D

Thanks and regards

Varekai

Gavino
22nd October 2010, 23:27
Couldn't figure out though how to reverse audio in the script ...
The Reverse() filter also plays the audio backwards, so your earlier script
LoadPlugin("E:\DVD\avisynth\DGIndex\DGDecode.dll")
video=MPEG2Source("E:\DVD\avisynth\project\reverse.d2v")
audio=AC3Source("reverse T80 2_0ch 256Kbps DELAY 0ms.ac3")
AudioDub(video,audio)
reverse()
should do the job (assuming you load in the original, unreversed, audio).