View Full Version : missing audio at start of file
iradic
21st September 2004, 17:55
hi
sometimes audio is missing (10-15 sec) from start of rmvb file after encoding...
sometimes not...
logs are fine - no errors no warnings...
avs opens fine in vdubmod...
can some setting in job file cause this? or what?
help please
bye
Sirber
21st September 2004, 18:05
I have like 2 sec of mute sound usualy in MPC. Haven't tryed in RealPlayer.
iradic
21st September 2004, 19:45
the thing is that producer doesnt encode audio at start of file (tested demuxed with dtdrive)...
after i removed all setttings from job file that dont affect video qual everything went fine...
karl_lillevold
21st September 2004, 21:13
hi iradic: can you please post an example job file that exhibits the problem, and one that does not? thanks.
Sirber
21st September 2004, 21:13
Can you post bad jobfile and good one?
iradic
22nd September 2004, 00:23
erased bad one
good one is:
<?xml version="1.0" encoding="UTF-8"?>
<job xmlns="http://ns.real.com/tools/job.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ns.real.com/tools/job.2.0 http://ns.real.com/tools/job.2.0.xsd">
<enableTwoPass type="bool">false</enableTwoPass>
<clipInfo>
<entry>
<name>Allow Recording</name>
<value type="bool">true</value>
</entry>
<entry>
<name>Generated By</name>
<value type="string">Helix DNA(TM) Producer 10.0 for Windows, Build 10.0.0.545</value>
</entry>
</clipInfo>
<inputs>
<input xsi:type="avFileInput">
<filename type="string">C:\temp\dvd\input.avs</filename>
<name type="string">input</name>
</input>
</inputs>
<parOutputs>
<output>
<destinations>
<destination xsi:type="fileDestination">
<filename type="string">C:\temp\dvd\input.rmvb</filename>
<name type="string">input</name>
</destination>
</destinations>
<mediaProfile>
<audioMode type="string">music</audioMode>
<disableAudio type="bool">false</disableAudio>
<disableVideo type="bool">false</disableVideo>
<outputHeight type="uint">132</outputHeight>
<outputWidth type="uint">320</outputWidth>
<resizeQuality type="string">high</resizeQuality>
<videoMode type="string">normal</videoMode>
<audienceRefs>
<audienceRef>DVD-extras Audience File</audienceRef>
</audienceRefs>
</mediaProfile>
</output>
</parOutputs>
<audiences>
<audience>
<avgBitrate type="uint">256000</avgBitrate>
<maxBitrate type="uint">1280000</maxBitrate>
<name type="string">DVD-extras Audience File</name>
<streams>
<stream xsi:type="videoStream">
<codecName type="string">rv10</codecName>
<codecProperties type="bag">
<calcPSNR type="bool">false</calcPSNR>
<encoderComplexity type="uint">90</encoderComplexity>
<inloopCutOffBUseRefQuant type="bool">true</inloopCutOffBUseRefQuant>
<inloopCutOffCompatible type="bool">false</inloopCutOffCompatible>
<inloopCutOffQuant type="uint">11</inloopCutOffQuant>
<maxConsecutiveBFrames type="uint">3</maxConsecutiveBFrames>
<noisyEdgeFilter type="bool">false</noisyEdgeFilter>
<rcAnalysisFileName type="string">C:\temp\real\realvideo.pass</rcAnalysisFileName>
<rcBFrameRefQuant type="uint">10</rcBFrameRefQuant>
<rcEnableCurveCompression type="bool">true</rcEnableCurveCompression>
<rcHighBitrateReduce type="uint">0</rcHighBitrateReduce>
<rcKeyFrameBoost type="uint">0</rcKeyFrameBoost>
<rcLogFileName type="string">c:\temp\real\realvideo.log</rcLogFileName>
<rcLowBitrateBoost type="uint">0</rcLowBitrateBoost>
<rcPFrameRefQuant type="uint">6</rcPFrameRefQuant>
<rcPassNumber type="uint">2</rcPassNumber>
</codecProperties>
<enableLossProtection type="bool">false</enableLossProtection>
<encodingType type="string">vbrBitrate</encodingType>
<maxFrameRate type="double">15.000000</maxFrameRate>
<pluginName type="string">rn-videocodec-realvideo</pluginName>
<quality type="uint">1</quality>
</stream>
<stream xsi:type="audioStream">
<codecFlavor type="uint">23</codecFlavor>
<codecName type="string">cook</codecName>
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<streamContext type="bag">
<audioMode type="string">music</audioMode>
<presentationType type="string">audio-video</presentationType>
</streamContext>
</stream>
</streams>
</audience>
</audiences>
</job>
i erased from this job file:
<customPacketSize type="uint">16000</customPacketSize>
<maxStartupLatency type="double">60.000000</maxStartupLatency>
<maxKeyFrameInterval type="double">10.000000</maxKeyFrameInterval>
this is closest i can recall
i created audience file from autorv10 audience file, and then created job from that file... but this also hapened with other audiences - like "100% Quality Download" (although i only changed kbps and audio codec)
hope this helps...
Sirber
22nd September 2004, 00:45
Can you try with and whitout custompacketsize? I guess it's that :) If it is, I'm gonna remove it from RealAnime and fallback to defaults.
iradic
22nd September 2004, 14:28
it was CustomPacketSize... tested
one job file with and one without
Sirber
22nd September 2004, 18:08
Good!
Thanks for the report. :D
karl_lillevold
22nd September 2004, 18:40
Thanks for isolating the problem. Just like I would have recommended :) I think you have exposed a bug though. Even though such a large packet size can not be recommended for low bitrates, it should still be playable. I will have to investigate, and file a bug report if I can reproduce. In either case, the customPacketSize parameter is really not needed anymore. Producer will choose a large packet size for higher than 350 kbps or so VBR in any case, assuming it's a download target..
iradic
22nd September 2004, 20:48
i will have to dissapoint you ... i had the same issue without custom packet size ... i'm switching to matroska and encoding audio separately...
here is the job file...
<?xml version="1.0" encoding="UTF-8"?>
<job xmlns="http://ns.real.com/tools/job.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ns.real.com/tools/job.2.0 http://ns.real.com/tools/job.2.0.xsd">
<enableTwoPass type="bool">false</enableTwoPass>
<clipInfo>
<entry>
<name>Allow Recording</name>
<value type="bool">true</value>
</entry>
<entry>
<name>Generated By</name>
<value type="string">Helix DNA(TM) Producer 10.0 for Windows, Build 10.0.0.545</value>
</entry>
</clipInfo>
<inputs>
<input xsi:type="avFileInput">
<filename type="string">C:\temp\dvd\input.avs</filename>
<name type="string">input</name>
</input>
</inputs>
<parOutputs>
<output>
<destinations>
<destination xsi:type="fileDestination">
<filename type="string">C:\temp\dvd\input.rm</filename>
<name type="string">input</name>
</destination>
</destinations>
<mediaProfile>
<audioMode type="string">music</audioMode>
<disableAudio type="bool">false</disableAudio>
<disableVideo type="bool">false</disableVideo>
<outputHeight type="uint">0</outputHeight>
<outputWidth type="uint">0</outputWidth>
<resizeQuality type="string">high</resizeQuality>
<videoMode type="string">normal</videoMode>
<audienceRefs>
<audienceRef>dvd-extras audience file</audienceRef>
</audienceRefs>
</mediaProfile>
</output>
</parOutputs>
<audiences>
<audience>
<avgBitrate type="uint">256000</avgBitrate>
<maxBitrate type="uint">1280000</maxBitrate>
<name type="string">dvd-extras audience file</name>
<streams>
<stream xsi:type="videoStream">
<codecName type="string">rv10</codecName>
<codecProperties type="bag">
<calcPSNR type="bool">false</calcPSNR>
<encoderComplexity type="uint">90</encoderComplexity>
<inloopCutOffBUseRefQuant type="bool">true</inloopCutOffBUseRefQuant>
<inloopCutOffCompatible type="bool">false</inloopCutOffCompatible>
<inloopCutOffQuant type="uint">11</inloopCutOffQuant>
<maxConsecutiveBFrames type="uint">3</maxConsecutiveBFrames>
<noisyEdgeFilter type="bool">false</noisyEdgeFilter>
<rcAnalysisFileName type="string">C:\temp\real\realvideo.pass</rcAnalysisFileName>
<rcBFrameRefQuant type="uint">10</rcBFrameRefQuant>
<rcEnableCurveCompression type="bool">true</rcEnableCurveCompression>
<rcHighBitrateReduce type="uint">0</rcHighBitrateReduce>
<rcKeyFrameBoost type="uint">0</rcKeyFrameBoost>
<rcLogFileName type="string">c:\temp\real\realvideo.log</rcLogFileName>
<rcLowBitrateBoost type="uint">0</rcLowBitrateBoost>
<rcPFrameRefQuant type="uint">6</rcPFrameRefQuant>
<rcPassNumber type="uint">1</rcPassNumber>
</codecProperties>
<enableLossProtection type="bool">false</enableLossProtection>
<encodingType type="string">vbrBitrate</encodingType>
<maxFrameRate type="double">15.000000</maxFrameRate>
<maxKeyFrameInterval type="double">10.000000</maxKeyFrameInterval>
<maxStartupLatency type="double">60.000000</maxStartupLatency>
<pluginName type="string">rn-videocodec-realvideo</pluginName>
<quality type="uint">1</quality>
</stream>
<stream xsi:type="audioStream">
<codecFlavor type="uint">23</codecFlavor>
<codecName type="string">cook</codecName>
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<streamContext type="bag">
<audioMode type="string">voice</audioMode>
<presentationType type="string">audio-video</presentationType>
</streamContext>
</stream>
<stream xsi:type="audioStream">
<codecFlavor type="uint">0</codecFlavor>
<codecName type="string">racp</codecName>
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<streamContext type="bag">
<audioMode type="string">music</audioMode>
<presentationType type="string">audio-video</presentationType>
</streamContext>
</stream>
</streams>
</audience>
</audiences>
</job>
iradic
22nd September 2004, 20:51
i also tried erasing maxstartuplatency but its the same ... thats all
no more testing... sorry...
karl_lillevold
22nd September 2004, 20:51
ok. what is the format of the audio referenced in the avs input file?
iradic
22nd September 2004, 21:02
its wav 48000 hz
Sirber
22nd September 2004, 21:10
that's wierd...
karl_lillevold
22nd September 2004, 21:13
If you load your .avs file in mplayerc, or graphedit, do you see any suspicious filters getting loaded, that could potentially affect the audio path?
I noticed in your jobfile you are running pass number 1 separately:
<rcPassNumber type="uint">1</rcPassNumber>
This means that the resulting file will be huge, with a very high bitrate, since the encoder will then encode with reference quality. Maybe this can cause a problem.
When you have the problem, if you encode twice or more with the same jobfile, does it always happen?
Also, when the audio disappears, does it go away for good, or come back later?
Next steps would be to find some way to repro with some files small enough to upload to me, so I can file a reproducible bug report.
Thanks.
iradic
23rd September 2004, 09:58
dont have time right now for all that bug testing, maybe in a few days...
about two pass enc i always add null to 1st pass file and encode passes separately...
audio is missing a few (about 10) start seconds and then starts playing fine to the end... tested with demuxing - this never happens when encoding audio-only...
iradic
23rd September 2004, 15:26
ok i did some tests and results are:
realplayer view source:
VIDEO-AUDIO(1) (48 khz):
File Size: 3,419,753 Bytes
Duration: 01:46.24
VIDEO-AUDIO(2) (48 khz):
File Size: 3,304,847 Bytes
Duration: 01:44.467
VIDEO-AUDIO(3) (44,1 khz):
File Size: 3,430,199 Bytes
Duration: 01:45.882
VIDEO-AUDIO(4) (44,1 khz):
File Size: 3,430,199 Bytes
Duration: 01:45.882
AUDIO-ONLY(44&48 khz); VIDEO-AUDIO(1); VIDEO-AUDIO(2)
File Size: 596,134 585,756 470,850
Duration: 01:45.882 01:46.24 01:44.467
VIDEO-AUDIO(3): VIDEO-AUDIO(4)
File Size: 596,190 596,202
Duration: 01:45.882 01:45.882
video-audio(n) is demuxed audio from video-audio file
graphedit:
----------
avisynth video#1 -> avi decompressor -> video renderer
audio#1 -> default directsound device
as you can see above, after i changed audio sample rate to 44100 hz everything went fine...
karl_lillevold
23rd September 2004, 17:19
iradic: thank you. this is very useful. I am not sure I completely understand the audio-video items, and how they indicate what works or not (is the audio only filesize smaller when audio is missing?)
You indicate that the problem occurs only if the WAV file is 48 kHz, right? I already have your job file, if you could PM me your .avs script as well, I will try to reproduce the problem here, and then file a bug report. One more question: Is your Producer version Mercury Alpha 1?
iradic
23rd September 2004, 18:08
yes file sizes are smaller when audio is missing...
first four video-audio items are video with audio files
second four video-audio items are demuxed audio from the above video with audio files
audio-only item is encoded audio separately (without video)...
dont know about producer version its like job file says "Helix DNA(TM) Producer 10.0 for Windows, Build 10.0.0.545" ReadMe says "Date: April 7, 2004" ... dont know anythig more about version ... how to find out?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.