View Full Version : No Audio in Scripted Vdub clip
bob52
26th January 2014, 20:06
Hello
I created a script to clean up a Dv AVI 10 sec clip (from Vhs source) as i have dot crawl
My file is in C:\gg.avi
My script is
AviSource("c:\gg.avi")
Blur(1.58, 0.0).Sharpen(1.0, 0.0)
saved as myclip.avs
Now
If i just load the DV AVI into VirtualDub on its own <CTRL O>
I get this info
Video:
Frame size, fps (µs per frame): 720x576, 25.000 fps (40000 µs)
Length: 511 frames (0:20.44)
Decompressor: Cedocida DV Codec v0.2.3 (dvsd)
Number of key frames: 511
Min/avg/max/total key frame size: 144000/144000/144000 (71860K)
Min/avg/max/total delta size: (no delta frames)
Data rate: 28800 kbps (0.02% overhead)
Audio:
Sampling rate: 32000Hz
Channels: 2 (Stereo)
Sample precision: 16-bit
Compression: PCM (Uncompressed)
Layout: 52 chunks (0.00s preload)
Length: 654080 samples (0:20.44)
Min/avg/max/total frame size: 51200/51200/51200 (2600K)
Data rate: 1024 kbps (0.05% overhead)
But f I use the myclip.avs to load the video in to Vdub
Video:
Frame size, fps (µs per frame): 720x576, 25.000 fps (40000 µs)
Length: 511 frames (0:20.44)
Decompressor: Internal DIB decoder (YV12)
Number of key frames: 511
Min/avg/max/total key frame size: 622080/622080/622080 (310433K)
Min/avg/max/total delta size: (no delta frames)
Data rate: 124416 kbps (0.00% overhead)
Audio:
Sampling rate:
Channels:
Sample precision:
Compression:
Layout:
Length:
Min/avg/max/total frame size:
Data rate:
There no sound, is something missing from my script
thanks
:mad: Random questions
vampiredom
26th January 2014, 20:19
It has been a while since I dealt with DV sources – and, when I do deal with them, I usually use FFMpegSource.
What you have *should* work to get your audio into VDub… The only thing that gives me pause here is that your audio is 32000Hz. This is likely 4-channel 32000Hz audio @ 12-bit. Perhaps this is not handled well by AviSource.
You may want to try using FFMpegSource to load the AVI file instead:
v = FFVideoSource(filename)
a = FFAudioSource(filename)
Audiodub(v,a)
It could also be issues with the silly "DV Type 1 vs. DV Type 2" thing (again, it has been a while). In this case, you may want to re-save the AVI from Vdub:
Video > Direct Stream Copy
File > Save as AVI
bob52
26th January 2014, 20:58
Many Thanks If Use the
Video > Direct Stream Copy
File > Save as AVI
that did the trick
I'm capturing from VCR (tbc on) to Camcorder via Svideo, then Camcorder to PC (IEE1394) using WinDV
Purpose
To clean up as much as the video i can using scripts and Vdub
Ouput H264 codec in MP4 container to burn onto BDR (25gb) to watch on Bluray player (supports mp4 playback) samsung galaxy note 3
I'm very new to capturing and using Avisyth for the first time is daunting, as its really hard
Do you have to write a indivdual script for for every VHS capture as no captured footage is the same,
for example if my wedding video suffers from colour bleed, would any colour bleed script do or will a new one have to be written just for my wedding
thanks again
vampiredom
26th January 2014, 22:15
I'm capturing from VCR (tbc on) to Camcorder via Svideo, then Camcorder to PC (IEE1394) using WinDV
Make sure that you select "type 2 (vids + auds)" in WinDV config when capturing.
Do you have to write a indivdual script for for every VHS capture as no captured footage is the same, for example if my wedding video suffers from colour bleed, would any colour bleed script do or will a new one have to be written just for my wedding
Well, I will defer to people here more expert in video restoration but, yes, I think you can usually get the best results from tweaking setting for individual clips. Also, I think there are more effective ways of doing dot crawl removal than simple blur and sharpen. I am sure someone else will chime in on this point presently.
I'm very new to capturing and using Avisyth for the first time is daunting, as its really hard
You'll get the hang of it :) And a lot of folks on this forum are brilliant and can be quite helpful (if you are patient and attentive).
Overdrive80
26th January 2014, 22:19
You try this better, because you avoid re-indexer:
a = FFAudioSource("filename")
v = FFVideoSource("filename",threads=1)
Audiodub(v,a)
vampiredom
26th January 2014, 22:55
You try this better, because you avoid re-indexer:
Ah, yes. Good advice. I usually just do FFIndex(filename) beforehand.
Gavino
27th January 2014, 00:11
It could also be issues with the silly "DV Type 1 vs. DV Type 2" thing (again, it has been a while). In this case, you may want to re-save the AVI from Vdub:
Video > Direct Stream Copy
File > Save as AVI
Yes, the problem is that AVISource cannot read audio from Type 1 DV files.
Resaving in VDub creates a Type 2, thus resolving the problem.
bob52
2nd February 2014, 19:37
Many thanks for you response
My capture hardware/WinDV seems to capture raw DV as PAL 720 x 576 4:3, but VHS resoultion is 352 x 576, and all the extra resoultion being captured is noise and artefact (dotcrawl)
Is that the proper Res to process VHS footage for final output
I used the following script
# Load a 720x576 video and resize it to 352x576 (VCR),
# preserving the correct aspect ratio
AviSource("c:\gg.avi").BilinearResize(352, 576, 8, 0, 720, 576)
# or what is the same
AviSource("c:\gg.avi").BilinearResize(352, 576, 8, 0, -8, -0)
Image has come out like this
.
http://i60.tinypic.com/2drz191.jpg
.
Is this script right, movie looks a little squashed
StainlessS
3rd February 2014, 14:29
AviSource("c:\gg.avi").BilinearResize(352, 576, 8, 0, 720, 576)
Actually
AviSource("c:\gg.avi").BilinearResize(352, 576, 8, 0, 704, 576)
VDub does not know Display Aspect Ratio from AVS, and is displaying 352x576 as FAR (Frame Aspect Ratio,
by default, ie VDub "Free Adjust"), to change VDub to display as 4:3 DAR (Display Aspect Ratio) Right click
window and select desired aspect ratio ie 4:3.
It depends what you intend to do with output, eg what container format, eg MP4 allows you to set
Display Aspect Ratio different to Frame Aspect Ratio so even though FAR is 352x576 (~0.6) it will
display in 4:3(1.33333) on devices that can handle change for DAR, for containers/devices that do
not natively support DAR flag you might want to resize to eg 768x576 (768.0 / 576.0 == 1.333333 == 4:3).
352x576 and 352x480 are valid formats for VHS, DVD and SVCD,
see more here in a recently posted thread:
http://forum.doom9.org/showthread.php?t=170110
Is that the proper Res to process VHS footage for final output
I would resize last (after other processing) if deemed necessary for container/device.
bob52
6th February 2014, 20:35
Many Thanks again
I want to try and play the 352x576 clip on my LG bluray player connected to 32" LED TV just to see if everthing is looks ok, (quality and aspect ratio wise)
ive put the clip onto a usb pen drive connected it to my LG player (player supports mp4 playback), I dont know what sound option to use as ive tryed 'MPEG Layer 3, Lame mp3, and AAC-ACM codec, but keep getting 'audio not supported'
i'm using the the x264vfw default option for video
setarip_old
7th February 2014, 01:45
Hi!
It's been ages since I last worked with SVCDs. If I remember correctly, .MP2 audio is required...
bob52
9th February 2014, 18:19
Hi
I dont have a option for Mp2, and im not making a SVCD (just a mp4 file (h264 codec)
the options i have are
http://i58.tinypic.com/30t5uef.jpg
poisondeathray
9th February 2014, 18:25
I would imaging your BD Player / HDTV supports MP3 @ 44.1 Khz, 48 Khz . Some DV variants recorded audio at 32 Khz. What is the sampling rate in your audio ? In vdub look file=>file information , or use mediainfo .
Do you get any video playback? Some hardware players do not support h.264 video in AVI container, yet play it fine in MP4 or MKV containers
EDIT:
Ooops, I missed it in your first post
Audio:
Sampling rate: 32000Hz
Try Resampling it to 44100Hz or 48000 Hz, before using lame MP3 . You can do this in the audio filters
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.