VOGONS


Editing DOSBox videos

Topic actions

First post, by Teppic

User metadata
Rank Newbie
Rank
Newbie

Using VirtualDub 1.9.11. I want to cut some parts of a video and replace the music. If I cut or crop the beginning of the video until it looks like I want it to, the parts I cut in the beginning of the video are still there after I saved it. Am I doing something wrong? I have both audio and video to direct stream copy.

My AdLib recordings

Reply 1 of 8, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

This is more a "how to use virtualdub" problem.
It's been a while but this should just work.
But don't bother with audio set to direct steam if you want to replace it anyway.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 8, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

[Thread moved to Milliways Section]

Reply 3 of 8, by Teppic

User metadata
Rank Newbie
Rank
Newbie
Dominus wrote:

This is more a "how to use virtualdub" problem.

Maybe so, but how do I use it then? If I remove 295 frames from the video I made and play it with vlc, nothing in the beginning of the video have been removed. If I remove 300 frames and play it, too many frames has been removed.

I just want to remove 150 frames or something, but they still show up in vlc afterwards.

Dominus wrote:

But don't bother with audio set to direct steam if you want to replace it anyway.

Why not? I thought that was the preferred option if you don't want to lose any audio quality.

My AdLib recordings

Reply 4 of 8, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

But I thought you want to replace audio anyway so you can just totally drop audio.

As for the cutting, again, this is a virtual dub thing. Might have something to do with the codec or not. Reencoding to something else might help

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 5 of 8, by Teppic

User metadata
Rank Newbie
Rank
Newbie

I'm replacing the audio within virtualdub, by setting "audio from other file" and then direct stream copy.

Problem is if I re-encode the video with Xvid, cut the beginning and replace the audio, the audio will start a few seconds into the song, for the same amount of time I cut from the video. I thought I could get around this problem by cutting the video and save it first before I re-encode it, but that doesn't seem to work.

My AdLib recordings

Reply 6 of 8, by Teppic

User metadata
Rank Newbie
Rank
Newbie

I think I figured out a way to do it. By cutting the video, save it with full processing mode, open that file, change the audio, save it as something else.

This is some extra steps, and it should work by just using direct stream copy. Maybe there's some other program that's better suited for this? Or maybe there is a codec problem and there's nothing I can do about it. But I thought more people would have problem with it then.

My AdLib recordings

Reply 7 of 8, by Gemini000

User metadata
Rank l33t
Rank
l33t

I've learned a few things about video codecs and VirtualDub in general working on Ancient DOS Games. Direct stream copying is only going to be OK so long as you're not chopping that stream up, otherwise it all depends on the codec being used.

And speaking of codecs, after recently updating them I noticed some severe audio lag in my H.264 conversions. The solution was to change a "zero latency" setting, but then, this was for doing H.264 and I'm pretty sure the codec DOSBox records to doesn't have advanced settings like this. One other approach might be to use VirtualDub's audio skew setting in the Audio > Interleaving menu.

One other approach might be to first save the video completely devoid of any audio, since you're replacing it all anyways, then load up the new video and apply your desired audio without making any video changes at all.

--- Kris Asick (Gemini)
--- Pixelmusement Website: www.pixelships.com
--- Ancient DOS Games Webshow: www.pixelships.com/adg