Log in

View Full Version : Time line problem in Windows Media Player after use this code!


warrr147
22nd January 2012, 13:52
Hi to all
I use this code to add logo on my movie ( by use Coding on avisynth soft and run code on meGUI soft )

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemapFrames\RemapFrames.dll")
a1=DirectShowSource("Movie.mkv")
a2=ImageSource("logo(1280x688).png",pixel_type="RGB32")
a3=Overlay(a1,a2,mask=a2.ShowAlpha())
ReplaceFramesSimple(a1, a3, mappings="[1105 3000][121092 121332][231184 231424]")
LanczosResize(1280,688)

I have 2 problems :
1. It give many many time and it is very big problem
2. When i play the converted movie on windows media player , the time line does not work Correct ( see the follow picture )

http://8208.6.img98.net/out.php/i191228_1.jpg

Although the time line is in the Middle of page , but the movie is finished !!!
this problem is only in windows media player and other software for example jetAudio or kmplayer does not have this problem

plz help me to solve this problems

If you know better code to add logo on movie ( like my code ) and does not have my 2 problems and have better speed for convert please

Show me
I realy need this

Thank you very much

warrr147
22nd January 2012, 20:31
Plz help me!

StainlessS
23rd January 2012, 05:00
this problem is only in windows media player and other software for example jetAudio or kmplayer does not have this problem


Then dont use Windows Media Player.

warrr147
23rd January 2012, 13:09
hi
thanks for your help
but your answer is not correct ! certainly my code have problem
please give me the better answer or correct code to solve this problem in media player
thanks a lot

Jenyok
23rd January 2012, 14:14
Try following.

Add costant
FPS = 25.0 # Or your FPS 24.0, 23.976, 29.970 or another
Lline a1=DirectShowSource("Movie.mkv")
change to a1=DirectShowSource("Movie.mkv", fps=FPS)
Add line a1=AssumeFPS(a1, FPS) # may not add...
and change a2=ImageSource(...... , fps=FPS)

warrr147
24th January 2012, 16:45
Hi again
Thanks a lot for your help , your code Increase the speed a little but please Explanation to me a more!

I realized the code does not have problem but as you know in the convert time , the voice has been seperate from the movie
when i play the movie without a voice , there is not a problem and file play correctly with media player
but when i add voice to movie with mkv muxer tools in MeGui software , The problem occurs!

Please give me a solution for this problem
thanks a lot

warrr147
24th January 2012, 23:55
Plese please please help me!

StainlessS
25th January 2012, 01:00
Might I suggest a little more clarity in what you are trying to achieve and the specifics
of the source A/V, eg constant/variable frame rate. Also, are your trying to watch
your logo disfigured clip in media player via AVS or is that just used to try to view
the edit in real time, and is your machine powerful enough for that. What are the source
dimensions of the clip and also the logo png. MediaInfo output for the source might be useful.
As it is, it's a bit of a mystery what you are trying to do and with what source, supply
some more info and then perhaps people will have a better idea how to assist you. :)