Log in

View Full Version : Remove Frames?


LordTrace
19th August 2003, 00:52
i need to remove a few frames from the end of a dvd
just wondering if anyone could tell me how or point me to a guide of how to do this

Angelus
19th August 2003, 01:50
You could use VOBSplit which can be found on this website. Since its at the end of the movie, it should be pretty easy to do this.

jggimi
19th August 2003, 02:02
You can use the AviSynth (.avs script) Trim (http://www.avisynth.org/index.php?page=Trim) filter from inside of Gknot. Use the Edit button from the Save&Encode window to edit the script(s) before encoding. After editing, I recommend using the Preview button to see the results of the script pumped through Windows Media Player.

Gknot using the Trim filter when separatly encoding end-credits. Using Gknot's Trim end-credits trim options can help help you figure out how the Trim command works.

Note that the Gknot process uses the AviSynth scripting for video only, and while using Audio with AviSynth works well, it is limited to Linear PCM (.wav file) format only. So editing audio synchronized with video can be done, but it's a little convoluted:

The process would typically include the use of BeSweet to convert from (typically) Dolby Digital to Linear PCM (.wav format), then scripting the audio into the stream with the the AudioDub (http://www.avisynth.org/index.php?page=AudioDub) and the DelayAudio (http://www.avisynth.org/index.php?page=DelayAudio) filters, then using VdubMod to extract the edited audio from the AviSynth, then converting the edited audio from PCM to MP3 using BeSweet again. Finally, the edited audio can be used with Gknot via the "just mux" option with a 0 delay (as delay is already accounted for if you use DelayAudio.)

LordTrace
19th August 2003, 02:26
thanks guys ill try those out

LordTrace
19th August 2003, 02:37
Originally posted by Angelus
You could use VOBSplit which can be found on this website. Since its at the end of the movie, it should be pretty easy to do this.

i dont thing thats gonna work since i see no options to cut frames only bytes

i need to take exactly 6 video frames out


the AviSynth would prolly work if i could figure it out lol
im doing LOTR Extended and i need to cut out six frames at the end of the first dvd so i can run it thru dvd2avi as one big movie

jggimi
19th August 2003, 02:42
Oh, well, FOTR:EE will not require any audio adjustment, just the use of Trim for the video stream. And a judicious use of the search button should find a sample script or two -- including, I think, one of mine.

LordTrace
19th August 2003, 02:43
yea i serched alot and i cant seem to figure it out (been trying to rip this dvd in my spare time since a it came out in stores lolol)
and yea the last few frames have no audio

i did see your script somewhere prolly didnt make much sence to me at the time

LordTrace
19th August 2003, 02:46
if i run it thu dvd2avi now can i trim them out out during the encode?

jggimi
19th August 2003, 02:54
That's the idea -- have both VOB sets in different folders, load both vob sets into DVD2AVI as a single stream, then use Trim to remove the 6 frames. I went back and searched for it, and found the best thread. Read this quote from http://forum.doom9.org/showthread.php?s=&threadid=43333 carefully. Note that Disc 1 Chapter 28 was deselected when using DVD Decrypter, and Disc 2 Chapter 1 was also deselected:I no longer have the .avs file. But here's what I did...

I used Decomb (Telecide/Decimate) to IVTC. There were 6 frames prior to IVTC, 5 frames after. I no longer remember if I trimmed before or after the IVTC filters, take your pick. If you trim before, use frame numbers from the .d2v, if after, use frame numbers from Vdub.

This is from memory. I think I experimented with the .avs a few times to make sure I had the right number of frames to get the syntax exactly right.

As I recall (and I may be wrong)... I used:

Trim(0,last_good_frame_from_disc_1)+Trim(first_good_frame_from_disc_2,0)

[EDIT: I did not rip the last chapter of disc 1's PGC (chapter 28?) as it was part of the DVD menu, not part of the content. I did the same sort of thing (first or last chapter, can't remember) on disc 2.]

LordTrace
19th August 2003, 04:49
ok im gonna try that .. thanks

i removed the last chapter in disc one and the last 2 in disc two
im pretty sure chapter one on disc two is needed

Trim(0,last_good_frame_from_disc_1)+Trim(first_good_frame_from_disc_2,0) .. do the folders with the vobs have to be named in a certain way?

LordTrace
19th August 2003, 05:29
i tryed a sample of the last vob on cd1 and the first of cd2 and used
Trim(0,last_good_frame_from_disc_1)+Trim(first_good_frame_from_disc_2,0) and still out of sync :(

so im guessing you meant to actually add the frames in place of last_good_frame_from_disc_1 and first_good_frame_from_disc_2 lol

LordTrace
19th August 2003, 05:51
im pretty sure i found the 5 frames

thanks for all the help guys :D

LordTrace
19th August 2003, 06:15
used this on my test

# TRIM
Trim(0,2478)+Trim(2484,0)
#

its alot beter but still a lil out of sync :confused:

LordTrace
20th August 2003, 04:04
i give up

ill try it again in another few months :( lol

jggimi
20th August 2003, 04:31
Those frame numbers seem very, very low. Are you testing just the transition chapters? 2478 at 23.976fps is only 103 seconds long.

It's been so long since I did this ... but the process I used was to create a single .d2v that used both VOB sets; I used DVD Decrypter and extracted the content chapters -- in my R1 version of FOTR:EE the PGCs contained extra chapters at the end of disc 1 and the start of disc 2.

To create the single .d2v, I first opened the disc 1 vobset from the disc1 folder, then clicked the ADD button and added the vobset from the disc2 folder.

LordTrace
20th August 2003, 05:05
thats almost exactly what i am doing but im pretty sure the first chapter on the second disc is needed (its very large and has video)

so im using dvddec to take out the last one on both discs and the second to last on disc 2

maybe im just getting the frames from the wrong place as i cant figure out how to get them in vdub.. so i am just using the window that pops up in gknot then you load the d2v and counting the frames that are black between the discs and then using last good to first good for trim

jggimi
20th August 2003, 05:47
I understand your difficulty, now. Here's the procedure for getting exact frame numbers easily.

Start VdubMod, and open the .avs script as if it were an .avi file.

You can then find the exact frame numbers, and use them in your Trim filter.

---

AviSynth scripts are text files which, when opened in an AVI player, produce what appears to be uncompressed AVI video (and audio, as I described earlier). For example, when you press the Preview button, Gknot saves a temporary .avs script and then opens it with Windows Media Player 6.4.

VirtualDub and it's variants will treat the file the same way a player does. You can check individual frames, see frame rates, frame counts, resolution, etc. It's very helpful, as you can see what gets sent to the encoder, without doing any encoding.

LordTrace
20th August 2003, 05:49
ahhh.. thanks man

ill have to rerip the vobs and start over when i have time tomarow