Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
-really- Tricky File Appending
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Borgs8472
Posted: Sep 25 2002, 07:14 PM


Unregistered









Hi everyone, I wonder if anyone can help me with my problem?

I am trying to append the first part of starwars episode 2 to the second part.

However I get a message saying:

"Cannot append segment, the video streams have different data formats"

Fair enough I suppose. So I rencode the first (shorter) part into divx like the second one to try and remedy this.

THEN I get the message:

"Cannot append segment: The audio streams have different sampling rates (12000.00000 vs 11999.00000)"

Ok, this is new teritory I think.

So I open the second part in Sound Forge where I can set the sample rate. I try to set the sample rate of the second to 12000, but this seems to throw the audio/video sync way off.

And I can't even open the newly encoded divx part 1 in soundforge.

So... what can be done to combine the cursed files??
 
  Top
Sarreq Teryx
Posted: Sep 25 2002, 08:49 PM


VirtualdubMod Alpha tester


Group: Vdubmod Alpha Testing Team
Posts: 175
Member No.: 41
Joined: 16-July 02



for the sound forge problem, you need to make sure you are resampling the audio and not just changing the sampling rate, resampling retains the speed and duration of the original while changing the sampling rate up or down, just changing the rate will make the audio faster or slower (faster in your case) and mismatch the length from the video.

with the video portion, you have to make sure the frame rates and divx version (examp. if the second part v4 and you encoded the first with 5.0.2, it won't mesh) match also, but it's probably not the problem with the first part not loading in SF, you could easily strip the audio into a wav file from VD, hop that into SF, do what needs to be done, then remux it back into the video with VD, it'll take longer, but it should get the audio to load into SF.

after all that, it shouldTM append just fine

--------------------
And as I walk through the Valley of the Shadow of Death, Lord, thy balls and shaft, they comfort me, you annoint my head with oil, some salt, a dash of pepper, a sprigg of parsley......Lord?............Lord??? What dost thou intend to do with that fork???
 
    Top
Borgs8472
Posted: Sep 26 2002, 01:56 PM


Unregistered









Hmm, well it seems that I hadn't encoded the two parts into the same format, though they are now.

However I'm very new to soundforge, and therefore don't know how to append the second video file onto the first. And in any case I can't find the same values of 12000.00000 on any of IT's tools.

Also while attempting to make an audio version on virtual dub, I found that you can't.

It allows you to process with no audio, but not with no video it seems, there isn't an option.

Oh well, so I detached the video from the audio in soundforge, but the (wav) file is even bigger than the video and audio combined.

And I don't want to stick two huge wav files together, and I'm not quite sure how to in any case.

So, I need to a)
combine both parts in soundforge, possible while changing a sampling rate, possibly not, including both audio and video.

Or cool.gif
combine both parts in virtual dub, having adjusted the sample rate somehow in soundforge.

Anyone know how?
 
  Top
Sarreq Teryx
Posted: Sep 26 2002, 05:56 PM


VirtualdubMod Alpha tester


Group: Vdubmod Alpha Testing Team
Posts: 175
Member No.: 41
Joined: 16-July 02



I didn't know SF did video now. neat! biggrin.gif

anyway

the only way to strip the audio into it's own file in VD, is by using the "Save WAV" option on the file menu

you're going to append the video in virtualdub, later.

the ouput wav would be larger, it's uncompressed audio.

In SF:
take the 2 seperate wav files that you got when you split them out of the AVI and load them seperately. under SF's Process menu, there's the Resample option, make sure you resample to the same sampling rate, if you want to make one exactly the same as the other, use the numnbers in the one that is already set properly. MAKE SURE "Set the Sample Rate Only" IS NOT SELECTED. Interpolation can be set by your preference, "Apply Anti-alias filter" is highly recomended. when done save the wav files seperately. after you hit OK and the resampling happens, on the file menu, go to the Properties option, on that panel, go to the Format tab, and on that page, make sure both waves are set to the same bit depth and "Channels" settings, to make sure you can recompress them using MP3, Lame, or OGG later, use 16-bit in the bit depth, and being a movie, leave it set to stereo. save them.

Appending the 2 together is a either drag and drop or cut and paste operation. load both Wavs into SF, in the WAV belonging to the first half of the movie, in it's window's status bar, click the zoom out button (smaller magnifying glas) until you see the entire wave form of the file, then click on the gray area at the end of the wavform (left-most of window). in the second half's window, press CTRL+A (Select ALL on the Edit menu), then CTRL+INS (or CTRL+C does the same, Copy in the Edit menu). go back to the first half's window and press SHIFT+INS (CTRL+V, Paste on the Edit menu), and there you have your appended WAV, just save it under another filename, or if you want to use the existing file for one of the 2 halves go ahead, doesn't matter now.

In VD:
open the first half of the movie. Go to the file menu and pick "Append AVI Segment", in there pick the movie's second half.

under the Audio menu pick "WAV Audio", pick the file you just saved in SF. Goto the compressions settings under the Audio menu anf pick your codec and format (I recommend, for 12000Hz, if you have "Lame MP3", that, at at-least 24kbps, if not then "MPEG Layer-3" at 32kbps, and no lower).

set the video for direct stream copy.

save the AVI.

--------------------
And as I walk through the Valley of the Shadow of Death, Lord, thy balls and shaft, they comfort me, you annoint my head with oil, some salt, a dash of pepper, a sprigg of parsley......Lord?............Lord??? What dost thou intend to do with that fork???
 
    Top
Borgs8472
Posted: Sep 28 2002, 03:36 PM


Unregistered









Ok, so close but yet so far.

I made wavs from the avi's using the "save as wav" option. So far so good. The file plays fine, seems to be great. It's encoded with mpeg layer 3 codec, don't know if that's the problem.

Anyhow I open the file with soundforge, it "opens" but I can't play it from there, and when I try to say, resample it it says "the file contains no data". Maybe I havn't the right codec or something? Anyhow I tried to open and append the two wav files in a variety of soundediting programmes I downloaded just for this purpose, though I don't think I found an all purpose any format audio file merger. sad.gif

Soundeditpro for example can open the files, but can't append them. sad.gif

I tried turning the files into mp3's with Quick Change. It didn't work. sad.gif

Anyhow, I might have to decompress the files somehow, then perhaps they'd edit and append fine. But how?
 
  Top
Sarreq Teryx
Posted: Sep 29 2002, 01:18 AM


VirtualdubMod Alpha tester


Group: Vdubmod Alpha Testing Team
Posts: 175
Member No.: 41
Joined: 16-July 02



sorry, should've told you to set the audio menu to direct stream copy first.

--------------------
And as I walk through the Valley of the Shadow of Death, Lord, thy balls and shaft, they comfort me, you annoint my head with oil, some salt, a dash of pepper, a sprigg of parsley......Lord?............Lord??? What dost thou intend to do with that fork???
 
    Top
Borgs8472
Posted: Sep 29 2002, 10:23 AM


Unregistered









Huh? No direct stream copy isn't a problem at all. I made the wav files fine, it's just I can't do anything much with them apart from play them.

So, have I got the wavs from virtual dub wrong, or am I missing an option in sound forge that will make it suddenly think "wow, this file is readable, resamplable and appendable after all"?
 
  Top
Sarreq Teryx
Posted: Sep 29 2002, 01:03 PM


VirtualdubMod Alpha tester


Group: Vdubmod Alpha Testing Team
Posts: 175
Member No.: 41
Joined: 16-July 02



sorry again, half asleep there, I meant Full Processing

--------------------
And as I walk through the Valley of the Shadow of Death, Lord, thy balls and shaft, they comfort me, you annoint my head with oil, some salt, a dash of pepper, a sprigg of parsley......Lord?............Lord??? What dost thou intend to do with that fork???
 
    Top
ChristianHJW
Posted: Sep 29 2002, 08:03 PM


Advanced Member


Group: Moderators
Posts: 1768
Member No.: 2
Joined: 7-July 02



use the 'search' function here .. there was another thread about appending segments that will solve your problem ...

--------------------
Visit the unofficial Virtualdub support forum on http://forums.virtualdub.org - help to reduce the big number of emails Avery Lee is getting every day !!
Support matroska as container and Gstreamer as the only truely open, x-platform multimedia platform ....
 
       Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
8 replies since Sep 25 2002, 07:14 PM Track this topic | Email this topic | Print this topic

<< Back to Newbie Questions