Log in

View Full Version : audio not in sync with video


kedicide
7th December 2004, 18:42
Hi experts

When i try to convert a .dat or .mov file into .rmvb using Easy real media producer 1.81 , the video lags behind the audio considerably..
can someone pls provide a solution to this problem??
regards
ked

Sirber
7th December 2004, 21:29
Use avisynth and delay audio :)... maybe...

karl_lillevold
7th December 2004, 23:35
Any Producer encoding tool gets its source via DirectShow, and this is where the problem likely occurs. Most likely due to some combination of DS filters not "ligning up" correctly.

Yes, I would use DirectShowSource("myfile.mov"), then play this in any DS player to check sync. If no problem, encode the .avs file. If there is a sync problem, correct in the Avisynth script.

Alternatives (after encode) include
1) remux to MKV, delay audio in the process
2) use dtdrive to delay the audio in your RM.

kedicide
8th December 2004, 08:34
Thx for the replies..
I am a newbie here..
let's first concentrate on.dat files..
will ask about .mov files later..
can someone pls tell me what settings can i do
in ermp 1.83 to achieve sync??
if at all some other software is to be used , can u pls give step by step instructions??
interestingly the lag worsens near the end of the film and it occurs only in .dat , .mov etc and never in.avi..
help will be really appreciated..
tia
ked

kedicide
9th December 2004, 09:52
someone pls helppppppppppp

Hero--
9th December 2004, 12:28
Hi,
I think .dat can be converted with vcdgear (www.vcdgear.com) to .mpg,
hope this helps,

/H

notags
9th December 2004, 12:36
Originally posted by kedicide
someone pls helppppppppppp

Isn't there an option in ERMP to delay or foward audio to resync with the video? What exactly is your problem?

kedicide
20th December 2004, 18:30
how much exactly to delay ??
also my problem is , it is in sync in the first part and later the problem arises..
can something be done reg. this
tia
ked

bdfy
21st December 2004, 14:27
Hi, guys. I also problems with sound sync in rm-files.
I'm a great fan of Simpsons,Futurama etc , but it's usually available in RM frmat for me. Of course, its quality
is not very good , and I want to get something better.
I tried Avisynth scripts, smth like
LoadPlugin("c:\Program Files\AviSynth 2.5\plugins\_2DCleanYUY2_for_25.dll")
DirectShowSource({Source},fps=25)
ConvertToYUY2
_2DCleanYUY2(0,9,2,2,0,2,2)
but sound slows from video gradually ( or may be video is moving faster?)
I tried to adjust fps parameter - without success:(
How can I adjust sound delay ? I heard about avsMonitor plugin - I'll try it...
What else can I do ? What plugins can I try ?

bdfy
31st December 2004, 15:59
I've just found out what my problem is... Using Fraps I found out that all my rm-videos ( including those I made with Ermp ) have variable fps-rate:( Thus no adjustments of fps-parameter or audio delays will help me :( So what can I do wirh rm-video without recoding into avi ?
Can I use any avisynth filters ?
I hope, you ,guys, will help me after holidays ;)
So, Happy New Year!

notags
31st December 2004, 18:26
Originally posted by bdfy
I've just found out what my problem is... Using Fraps I found out that all my rm-videos ( including those I made with Ermp ) have variable fps-rate:( Thus no adjustments of fps-parameter or audio delays will help me :( So what can I do wirh rm-video without recoding into avi ?
Can I use any avisynth filters ?
I hope, you ,guys, will help me after holidays ;)
So, Happy New Year!

Unfortunately, I don't think there's much you can do in this case. :(

bdfy
3rd January 2005, 04:14
I was told ffdshow support avisynth filters (besides its own ones ), but I couldn't make it to play rm files :( What settings for ffdshow should I use ?

notags
3rd January 2005, 07:25
Originally posted by bdfy
I was told ffdshow support avisynth filters (besides its own ones ), but I couldn't make it to play rm files :( What settings for ffdshow should I use ?

You were misinformed.

bdfy
5th January 2005, 01:51
notags
Probably , I was just misunderstood here;)
If Real Alternative and ffdshow (I've just tried ffdshow-20050105) are installed ffdshow MPEG-4 Video Decoder is available in DirectShow filter list and I can use its own filters for rm as for all other types of video as well. But I couldn't find suitable blurer (strong enough) among ffdshow settings :( I'd like something like deen ...(I've already posted a script)
ffdshow - codecs - format - Raw video, ставишь - all supported should
be checked for this ;)
But I'm still not able to use avisynth scripts:( May be in ffdsho w I shoul use some special syntax in avisynth scripts ? ( the help file is very small :( )

karl_lillevold
5th January 2005, 20:09
Originally posted by bdfy
I've just found out what my problem is... Using Fraps I found out that all my rm-videos ( including those I made with Ermp ) have variable fps-rate:( Thus no adjustments of fps-parameter or audio delays will help me :( So what can I do wirh rm-video without recoding into avi ?
Can I use any avisynth filters ?

If you had used the new rate control (curve compression) or option EncodeAllFrames, your RM files would have had constant frame rate. Which bitrate and resolution did you encode at?

bdfy
5th January 2005, 21:23
1.I want to recode almost all Futurama to smaller size. From ~150Mb (DVD-rip *.avi) to ~40Mb (*.rm). It gives good picture (for me,of course) and suitable size. I use Ermp with the following settings
http://redhammer.h14.ru/futurama.emp
Bitrate down to 250kbps , resize to 400x300 ( from 576 x 432 ) etc.
I'm almost novice in video encoding therefore I did not touch advanced settings...
I also downloaded Autorv 10, but it asks for YV12 decompressor (?):(
What program and with what setting should I use to get constant FPS-rate ? I've just found EncodeAllFrames option in Ermp - Can you tell me what disadvantages does it bring ? (bigger size ?)

2.I also have several Gb of Simpsons in RM. Its quality has much to be desired and I'm looking for method to use bluring filters while watching... I do not won't to recode it because AFAIK it will inevitably decrease the quality. What can I do ?

karl_lillevold
5th January 2005, 22:29
bdfy: Your link appears to be broken. In any case, at that bitrate and resolution you might experience some frame drops unless you use the curve compression rate control, or option EncodeAllFrames. You could also try Sirber's RealAnime (http://forum.doom9.org/showthread.php?s=&threadid=83409), especially made just for batch encoding Anime, but also very good for all other files :)

AutoRV10 requires the Helix YUV codecs, link 2 lines below the download link for AutoRV10. Original Helix YUV Codecs thread here (http://forum.doom9.org/showthread.php?s=&threadid=56972&highlight=helix+yv12+codec).

When you EncodeAllFrames, you may get lower quality for a few individual video frames, but in many cases, constant framerate is much preferable. Try it out, and see...

2) I don't know. Maybe you can enable ffdshow raw YV12 support. It should then insert itself as a postfilter after RV decoding (when you use realmediasplitter / MPC for playback). You can then try to enable some of its postfilter features ...

bdfy
5th January 2005, 22:50
1.10x for links I'll try it out

2.I tried to use ffdshow ... look at my post above

bdfy
6th January 2005, 16:08
OK, I tried "EncodeAllFrames" option. But it doesn't seem to be working! :( I controlled FPS with Fraps and ffdshow OSD and it still varies greatly...
Check my settings (link should work now) may be I missed smth.
http://redhammer.h14.ru/futuram_allframes.rar

karl_lillevold
6th January 2005, 16:25
Your link still does not work. Takes me to a Russian language dating page or something :confused: Anyway, I have not verified EncodeAllFrames in ERMP, or ever used Fraps/ffdshow, so I can not speak for its accuracy for RM files. Hopefully you set the option to /checked/ and not the confusing /shaded/ state in ERMP. Shaded means default, which is Off, for this option. I will try Fraps and see what it does for files I know are constant framerate.

Maybe Producer's inverse telecine is enabled by accident in your settings. If your input is 29.97 fps, inverse telecine might decide to skip frames once in a while.

Other options to verify framerate more accurately are :

1)
rmeditor -i inputfile.rmvb -d dump.log
Find the video stream in the dump.log file, and verify that the video frames are evenly spaced in time, and none missing.

2)
Find rv9log.txt from your encode, as output by the encoder DLL, when calcPSNR option is enabled. Check the same as above.

bdfy
6th January 2005, 21:09
One more take :)
I just notice Attache window...
...
And where is my attach?
...
A-a-a... Can you check it once more? I simply forgot to upload file...:(
Sorry.
http://redhammer.h14.ru/futuram_allframes.zip

karl_lillevold
7th January 2005, 18:35
I did a few tests. It seems ERMP is not working right. When I encode a 24 fps source via the command line or RealAnime, rv9log.txt shows me the following (first column from rv9log.txt):

TR
===
0
83
41
166
125
250
208

When I encode with ERMP with the same settings, I get

TR
===
0
125
41
250
208
416

The first column in these table is the timestamp for each frame encoded. As you can see, with ERMP there are frames skipped.. For a 24 fps source, there should be a frame roughly every 41 ms, and you will notice there are missing frames in the log for ERMP.

I don't know what is wrong with ERMP. Please ask the author on the ERMP thread...

Also, suggestions for changed settings in ERMP:
1) Use Codec RealVideo 10. When you use RealVideo 9, you do not get the best quality. The EHQ setting does not work, unless you choose codec RealVideo 10. I am not sure what is the default in ERMP. If RV9 is default, perhaps we should suggest the author change to RV10 :)
2) Turn off BestPSNRMode. This is not good for general visual quality, only for experiements to obtain the best possible PSNR. Another suggestion we should make to the ERMP author :)
3) check out 2-pass mode, and the new rate control

EDIT: also, I notice ERMP deletes all my reg keys in HKLM\Software\RealNetworks\RV9... :( Reg keys are meant to over-ride any settings in Producer or any GUI. When the GUI deletes the reg keys, it is hard to do certain kind of tests.

bdfy
8th January 2005, 17:12
karl_lillevold
These tables do not say much to me - I'm not a specialist:(
I made rv9log.txt with rmeditor.exe ( goes with Real Anime ), but I can't analize that :(
1) Use Codec RealVideo 10
2) Turn off BestPSNRMode.
I'll try out your ideas at night...
3) check out 2-pass mode
I've already checked out 2-pass mode - it just gives me double larger file (with better quality of course) Should I decrease bitrate to ~125kbps in this case ?

As you can see, with ERMP there are frames skipped..
I don't know what is wrong with ERMP. Please ask the author on the ERMP thread...
If you have time, please, do me a favor - post this bug in ERMP thread;) Your English is better and you isn't a novice at video encoding.IMHO you will describe the problem much better;)

PS: BTW,have you tried Fraps ?

10x for your help in advance;)

karl_lillevold
9th January 2005, 03:09
Until ERMP gets fixed, why don't you use another GUI. RealAnime should be able to batch encode just fine. I don't know what the 2-pass problem could be. The bitrate should be even more accurate in 2-pass. I have not used Fraps yet, the log files are accurate, so it is not needed, but I will later. Thanks.