PDA

View Full Version : Loosing audio on "poor man's" transition


TheManuel
28th October 2006, 22:25
I am editing a home video (HuffYUV compressed avi file captured from Hi8 camcorder with audio from sound card's line-in) and there are several abrupt transitions between scenes. For these I just wanted to insert a black, silent segment to provide a pause.
Since I did not have such material on the original file, I captured a few seconds with the camera turned off so that I would get exactly that, a black screen with no sound. I then appended this footage to the original video and proceded to paste it in between scenes where the abrupt changes occured.
However, this has the undesirable effect of loosing all of the audio starting from where I first pasted a black pause, all the way to the end of the file. As a test, I tried the same thing by appending portions of video with sound and that did not happen.

Does anybody have an idea why this is happening and what can be a possible workaround without involving filters?

Thanks.

setarip_old
29th October 2006, 02:16
Hi!Does anybody have an idea why this is happening and what can be a possible workaround without involving filters?Because, in order to successfully append files in VirtualDub, the audio and video have to match exactly.

For EACH of your silent blank clips and your original .AVI, try the following (Do NOT exit VirtualDub each time!):

1) Load file into VirtualDub
2) Set "Video" to "Direct Stream Copying"
3) Set "Audio" to "Full Processing Mode"
4) From the "Audio" dropdown menu, select "Compression"
5) Select, for example, 22,050Hz
6) From the "Audio" dropdown menu, select "Conversion"
7) If necessary, put a checkmark next to "Display all formats"
8) Select your preferred sampling rate from amongst the, for example, 22,050Hz .MP3 rates listed
9) Click on "OK"
10) Save with a new filename

TheManuel
29th October 2006, 03:03
Thanks for your answer setarip_old.
I probably did not give you enough information about the problem. I actually captured both videos with exactly the same settings, including 2 channel, 48khz, 16bit sound and it is in PCM format with no compression applied.

Do you suggest I re-sample or convert the audio on both clips to an additional format?

setarip_old
29th October 2006, 07:45
Do you suggest I re-sample or convert the audio on both clips to an additional format?I'm suggesting that you run your clips (actual video and blanks) through VirtualDub and, now that you've stated the audio setting used, set the audio to "Uncompressed PCM (WAV)" - and follow the steps I listed (Without shutting down VirtualDub until after Step 10)...

TheManuel
30th October 2006, 19:22
OK. I am not trying to sound stupid (even if I still succeed) but that will essentially be converting the audio from 48kHz to 48kHz on both, the video and the blank since they are already at the target audio sampling rate, wouldn't it?

setarip_old
31st October 2006, 00:56
Yes.

Try it, as it will only take a few minutes ;>}

TheManuel
31st October 2006, 03:22
I tried it but it did not work. I re-sampled both to 48k and appended them, then moved the bland somewhere within the original video (a small protion of it) and when I play the output, I still loose sound after the blank. Sure enough the saved avi retains this behavior. I tried the same at 44.1kHz for the sake of making sure a sampling rate was taking place and the same issue occurred.
I guess there is an issue with appending such a blank with no audible sound although there is a sound signal.
I pretty much ran out of steam trying to make it work. For my next edit I will play with Avisynth and its filters.
Unless, of course, a new suggestion comes along.

Thanks for the help, setarip_old.