lariva
31st January 2008, 00:26
If anyone could give me a hand....
Synapse:
I have pulled HD stream of off my Scientific Atlanta 8300HD box.
I ran it through dgindex that produced an index file for 720p@59.94 video and an ac3 file.
Now I'm at the point where I need to edit out the commercials, encode with x264 and merge with ac3 (for mkv) or covert ac3 to aac and mux it for mp4.
with avisynth 2.5.7
the most basic script possible:
LoadPlugin("c:\program files\dgindex\DGDecode.dll")
video = MPEG2SOURCE("c:\video.d2v")
audio = DirectShowSource("C:\video PID 121 T01 3_2ch 448Kbps DELAY -387ms.ac3")
audiodub (video,audio)
I need to have audio with video for it to stay in sync when commercials are edited out.
at this point I can edit the video and save the resulting wave file and get the frame numbers to be used with trim() later on.
The issue is this:
if AVS script is played in windows media player, media classic or any other player it works fine.
If AVS script is loaded in the vdub - there is silence instead of the audio.
file->properties shows:
sampling rate 48000HZ
channels: 6 stereo
sample precision: 16 bit
Audio Tag: 0x0001, Not decodable microsoft PCM
Compression: PCM uncompressed
Layout: 268 chunks 00.00s preload
length 171504000 samples 59:33:00
min/avg/max frame size: 9600/9600/9600
Data rate: 4608kbps (0.25% overhead)
current setup is a PC connected to hdtv with audio connected to avr5800 via optical.
I have discovered that to get 5.1 channel on my AVR from HD audio I have to use S/PDIF 5.1 encoding in ffdshow. If that option is used then avisynth states:
"DirectShowSource: Renderfile, the filter graph manager won't talk to me" without S/PDIF encoding the best sound I can get out of HD audio is pro logic II.
It took me a while to find S/PDIF situation out so while I was fooling around with ffdshow, windows mixer configuration etc, I did see vdub work once or twice with stereo speaker setup (I was trying to get 5.1, and that obviously wont work).
Now that I have reset all the options back to where they were in the beginning, I have:
Windows Mixer set to "stereo speakers"
supported sample rate is 16 and 24 bit
ffdshow s/pdif encoding is disabled
ac3 is handled by ffdshow only, no other drivers on the machine
To me the most confusing part is that the avs script works fine in media player, but no sound in vdub or nun dub.
I have tried loading AC3 stream in nanodub - identical result (I suppose that is good which means some stupid error on my part)
Synapse:
I have pulled HD stream of off my Scientific Atlanta 8300HD box.
I ran it through dgindex that produced an index file for 720p@59.94 video and an ac3 file.
Now I'm at the point where I need to edit out the commercials, encode with x264 and merge with ac3 (for mkv) or covert ac3 to aac and mux it for mp4.
with avisynth 2.5.7
the most basic script possible:
LoadPlugin("c:\program files\dgindex\DGDecode.dll")
video = MPEG2SOURCE("c:\video.d2v")
audio = DirectShowSource("C:\video PID 121 T01 3_2ch 448Kbps DELAY -387ms.ac3")
audiodub (video,audio)
I need to have audio with video for it to stay in sync when commercials are edited out.
at this point I can edit the video and save the resulting wave file and get the frame numbers to be used with trim() later on.
The issue is this:
if AVS script is played in windows media player, media classic or any other player it works fine.
If AVS script is loaded in the vdub - there is silence instead of the audio.
file->properties shows:
sampling rate 48000HZ
channels: 6 stereo
sample precision: 16 bit
Audio Tag: 0x0001, Not decodable microsoft PCM
Compression: PCM uncompressed
Layout: 268 chunks 00.00s preload
length 171504000 samples 59:33:00
min/avg/max frame size: 9600/9600/9600
Data rate: 4608kbps (0.25% overhead)
current setup is a PC connected to hdtv with audio connected to avr5800 via optical.
I have discovered that to get 5.1 channel on my AVR from HD audio I have to use S/PDIF 5.1 encoding in ffdshow. If that option is used then avisynth states:
"DirectShowSource: Renderfile, the filter graph manager won't talk to me" without S/PDIF encoding the best sound I can get out of HD audio is pro logic II.
It took me a while to find S/PDIF situation out so while I was fooling around with ffdshow, windows mixer configuration etc, I did see vdub work once or twice with stereo speaker setup (I was trying to get 5.1, and that obviously wont work).
Now that I have reset all the options back to where they were in the beginning, I have:
Windows Mixer set to "stereo speakers"
supported sample rate is 16 and 24 bit
ffdshow s/pdif encoding is disabled
ac3 is handled by ffdshow only, no other drivers on the machine
To me the most confusing part is that the avs script works fine in media player, but no sound in vdub or nun dub.
I have tried loading AC3 stream in nanodub - identical result (I suppose that is good which means some stupid error on my part)