Log in

View Full Version : Sample rate conversion/resampling issue


cncs
21st May 2006, 03:36
Hi,

After much gnashing of teeth, I am finally asking the question on these excellent forums.


I have 2 DV AVI video capture files with the sound sounding like it is played back at the wrong sample rate.

They were originally copied and edited with Pinnacle, and unfortunately I don't have access to the original tape any longer (For recopying)

The first file, VideoCap_Full.avi, shows the audio being PCM 32KHz when loaded via avisynth.
Playback of that avi file will sound like a tape being played back too slowly. However in my many attempts to transcode the audio, I discovered CCE SP would resample the audio to 48KHz when demuxing the file, giving me a .wav file sounding correct, and with the correct length (For audio sync).
It was straightforward to convert the video to xvid and create a new .avi file.

Now the second file, VideoCap_Edited.avi, shows the audio being PCM 48KHz, and the audio sounds exactly like in the first file (Played back too slowly)
The file is based on the VideoCap_Full.avi file, but with a lot of scenes cut out and reordered.
Demuxing the file via CCE SP exactly like I did the first file, still leaves me with an incorrect sample rate.

I've tried a lot of different conversions using besweet and options/module (soundtouch, ota, shibatch), but I cannot get the audio converted without distortion.

If I use -ota( -fs 72000) in besweet, the audio will sound right pitchwise, but obviously it will be completely out of sync.

I don't know what Pinnacle did when that avi file was generated, but it seems to me like the audio was saved as 32KHz, but somehow put in the .avi file at 48KHz.

I hope someone out there can give me a suggestion - I have a feeling I cannot see the forest for all the trees now.



Kim

setarip_old
21st May 2006, 04:15
Hi!

I'm not offering any possible solutions at this time because, for one thing, I don't understand why you created an edited version of your initial capture when your initial capture doesn't/didn't play properly - or why you would bother trying to fix this unacceptable edited version when you have the now-corrected initial capture available for the same type of editing.

Perhaps you can shed some more light on this?

cncs
21st May 2006, 05:07
Hello,

OK, the initial "Full" version did play back properly in the capture software (Pinnacle), but the created avi capture file subsequently didnot when playing back the avi on other computers/software.

It was a longdistance aquaintance of mine visiting, who dropped the 2 capture files (Full & Edited) in my lap the day before leaving to go back.

I said I would take a look at it and see what I could do.

I am thinking exactly the same though, I'd really like to do a new capture, but unfortunately that isn't possible.


It has become more or less an academic exercise for me now, I've already spent more time on this problem than my girlfriend think is sane, but it beats me how I can get the audio converted (By accident) perfectly well on the original raw capture avi file, and then I cannot on the edited avi file (Only difference between the 2 being the sample rates of 48 and 32KHz respectively).


I understand with the first avi file where the audio was PCM 32KHz, that it somehow got stretched/resampled/fixed to 48KHz so the pitch changed and length stayed the same. (It happened in CCE SP).

But what was the process, and shouldn't I be able to replicate that in besweet, so I can repeat the process on the second avi file (Showing the same playback symptoms, but being listed as having 48KHz as the sample rate).


I hope that gives more background on the issue

Kim

cncs
21st May 2006, 05:10
Oops, I oversaw the whole point in your question.

The reason I am trying to fix the unacceptable edited version, is because I cannot recreate/do the edits on the original (I didn't make the original edited version).