Hi Serge,

 

I don't think it's easy. One has to be very careful about the
video/audio synchronisation issues when pausing. Also rewind() would
behave differently whether the stream is paused or not (when paused, you
still want to decode the current frame but not play any sound).

 

Tanguy

 

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Serge
Lages
Sent: 23 June 2009 12:53
To: OpenSceneGraph Users
Subject: Re: [osg-users] FFmpeg questions

 

Thanks Tanguy for your answer, it explains why I am having troubles...
:)
Any idea on how difficult it should be to implement the pause feature ?

On Tue, Jun 23, 2009 at 12:26 PM, Tanguy Fautre
<tang...@aristechnologies.com> wrote:

Hi,

 

When the ffmpeg plugin was integrated into osg, the pause feature was
not implemented. I'm not sure anyone has implemented it since then, so
it's not a surprise it's not working correctly.

 

Tanguy

 

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Serge
Lages
Sent: 23 June 2009 11:13
To: OpenSceneGraph Users
Subject: Re: [osg-users] FFmpeg questions

 

Hi all,

I've made a test with the osgmovie example and I have the same
behaviour. Using the ffmpeg plugin (by adding .ffmpeg to my file path),
when it starts, everything is OK, my movie is played. But if I pause the
movie, then wait 5 seconds and play it again (with the key 'p'), the
movie is played too fast during 5 seconds...

Anyone can test the osgmovie example on its OS/configuration (with
ffmpeg of course) and tell me if you have the same behaviour ? Maybe
it's a problem with my version of FFmpeg, or a problem with Windows... I
can even send you my movie if you want (send the request by mail), it's
a .flv one, but I have also made tests with avi files and I have the
same problem.

Thanks !

On Fri, Jun 19, 2009 at 10:02 AM, Serge Lages <serge.la...@gmail.com>
wrote:

Hi Garrett,

Thanks for your answer. I've made some tests :

- setCullingActive(false) on my node as no effect, still too fast.
- I've also tried to let my video always on the screen, but I still
start to play it after an action, and it's still too fast during the
same time than I waited to play it...

 

On Thu, Jun 18, 2009 at 9:31 PM, Garrett Potts <po...@cfl.rr.com> wrote:

Hello Serge:

 

Hmm,  sounds like the object is getting culled out and so real time
updates is delayed until it comes back into the scene?? I have not
looked at the code but,    if you are manually putting the object into
the scene then try for fun to say setCullingActive(false); just to test
this theory out.   This way if frustum culling is on or some higher
level culling then it will ignore it for that object.

 

 

Take care

 

Garrett Potts

 

On Jun 18, 2009, at 3:17 PM, Serge Lages wrote:

 

        Hi all,
        
        I have 2 questions about the ffmpeg plugin :
        
        - In the ReaderWriterFFmpeg.cpp file, line 76 a "path" variable
is declared using the osgDB::findDataFile function to get the correct
file name, but line 83, the old "filename" variable is used instead of
"path". This way, the dataPathList is not used to get the video file, is
it normal ?
        
        - Currently, I load a video and put it on an object which is
outside the screen (the video is in pause mode). After an action, this
object slide into the screen and the video is played, but first the
video is played too fast (maybe 2x or 4x) and after some seconds it
comes back to the correct speed. To be more precise, if I wait 5 seconds
before making my object slide into the screen and play the video, it
will be too fast during 5 seconds, if I wait 2 seconds, it's too fast 2
seconds... Anyone knows what's the problem here ?
        
        I'am under WinXP, compile with VS8 and I took my version of
FFmpeg here :
        
http://www.openscenegraph.org/downloads/dependencies/FFmpeg/Windows/ffmp
eg-r15261.zip
        My video is a .FLV with an audio stream.
        
        Thanks for your help !
        
        -- 
        Serge Lages
        http://www.tharsis-software.com

        _______________________________________________
        osg-users mailing list
        osg-users@lists.openscenegraph.org
        
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g

 


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g




-- 
Serge Lages
http://www.tharsis-software.com




-- 
Serge Lages
http://www.tharsis-software.com


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g




-- 
Serge Lages
http://www.tharsis-software.com

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to