Log in

View Full Version : Encoding audio without video file


ArkiMage
6th September 2002, 03:07
I have some ripped TV shows I used Virtualdub to trim and edit. After using CCE to encode the video only I deleted the source .m2v file and am now trying to encode the audio. I've used Tmpgenc previously to do this but did not delete the video file first. Now that I have though it refuses to work. Tried a few other audio encoders to no avail also. I have an .AVS file which references the video (.d2v) and audio (.wav) files. The .d2v is a DVD2AVI file referencing the .m2v file which I've deleted. I've edited the .avs file and removed references to the video but still can't get the audio to encode. Does it need the video file to be there or can the trim points and other details in the .avs and the .wav file work alone? Thanks!

pacohaas
6th September 2002, 03:36
you can just use the wave file and encode it using your favorite encoder (might i suggest not using TMPG as the audio encoder is not high quality)

ArkiMage
6th September 2002, 03:39
OK, sure... What's better at encoding .WAV -> .MP2 then? If it's better I'll sure give it a try... Oh, and I can't just encode the .WAV since it's not edited or trimmed. It would not sync with the video. Mark IN/OUT points were made with Virtual Dub and must stay in sync. Commercials cut out, start/end points changed, etc.. Thanks though!

pacohaas
6th September 2002, 03:46
Both BeSweet and HeadAC3he allow for splitting the output as you wish, and both are higher quality than TMPG's mp2 encoder.

ArkiMage
6th September 2002, 03:58
I appreciate the help! But, I don't think either of those are the answer... OR I'm seriously not understanding something! Neither of the ones you mentioned will accept a .AVS file as input for encoding audio. I can't just encode the .WAV, it's 15 minutes longer than the video after editing. It must be encoded from the .AVS to match the editing done to the video... Am I way off-base here? Isn't this common? Hmm...

pacohaas
6th September 2002, 04:06
i just said to encode the wave, but use either of those programs to specify the range(currently specified in the avs file). Just look at the avs and use the same values it has and you're set.

ArkiMage
6th September 2002, 04:16
Ahh.. That makes sense.. Thanks! Will give it a try...

ArkiMage
7th September 2002, 01:11
Another question if you don't mind... I could only get static out of BeSweet but HeadAC3HE seems to work fine. I'm just not real sure how to input the trim points from the .AVS file. In the .AVS is this line:

Trim(2323,81355)

When I enter a Start Frame of 2323 that's only 48/100 of a second. What actually is trimmed off the beginning of the file is roughly 45 seconds. They must be describing the amount of time on different scales. Any idea how to convert?

Thanks!

ArkiMage
7th September 2002, 04:42
In looking at this some more.. I now see that HeadAC3he is representing the starting frame as 48000 = 1sec for the 48khz input frequency. I still don't see how 2323 relates though. In playing the audio file and manually counting where the beginning is I count roughly 78 seconds. How does 2323 relate to ~78sec with a 48khz sampling frequency and 23.976fps video. I've played with the numbers and can't find the correlation. There's got to be some _simple_ mathematical formula to figure this out, geez...

DSPguru
7th September 2002, 08:29
Originally posted by ArkiMage
I could only get static out of BeSweetwhich means.. ?

pacohaas
7th September 2002, 09:07
Originally posted by ArkiMage
How does 2323 relate to ~78sec with a 48khz sampling frequency and 23.976fps video. I've played with the numbers and can't find the correlation. There's got to be some _simple_ mathematical formula to figure this out, geez...well looks like it doesn't use the 23.976fps, but the original 29.97fps. If you use that, 2323frames/29.97fps=77.51084sec, this looks to be the formula you are seeking.

ArkiMage
7th September 2002, 13:29
Sorry DSPGuru, BeSweet looks like one _sweet_ program :) I went back and tried some more with it and it must have been something I was doing wrong previously.

I had figured out after posting that last message last night that 2323 / 30 * 48000 got it very close. With 29.97 as the frame rate for the real divisor sounds like that should be correct. I'll try that today.

Thanks guys!

DSPguru
7th September 2002, 13:35
you can use BeSweet's partial encoding feature. just set the correct timestamps and it will sync to the relevant frame.
and please use the logfile option, so you could see the actual picked timestamps.