[osg-users] osgmovie stop playing after long time pause
Robert Osfield
robert.osfield at gmail.com
Wed Feb 24 03:04:40 PST 2016
On 24 February 2016 at 09:56, Dan Liu <139250065 at qq.com> wrote:
> I'm using OSG 3.4
>
I have just tested osgmovie with ffmpeg and for long pauses find that it
stops updating the video when I unpause. My guess is that there is
something within the plugin that amiss, so a bug that will need fixing, but
I'm not the original author so can't jump in and pinpoint what it might be.
Using notification system might help track down where the problem might be
rooted. i.e.
export OSG_NOTIFY=INFO
osgmovie -e ffmpeg /film/1080p30.mp4
When I try this I find that the updates to the texture due to the frame
when pause/unpause are working I get the output:
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
Reusing orphaned TextureObject, _numOfTextureObjects=1
0x19d9970 Pause
Reusing orphaned TextureObject, _numOfTextureObjects=1
But when things stop working each type I press 'p' to toggle the pause I
just get:
0x742970 Play
0x742970 Play
0x742970 Play
0x742970 Play
0x742970 Play
My best guess would be that there is some race condition in the ffmeg's
thread that manages the video and audio updates. Putting some debugging in
there would be a useful next step. I'm afraid I have plenty of other work
to be getting on with so will have to leave further investigation to
yourself and others for now.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160224/7c5d82da/attachment-0003.htm>
More information about the osg-users
mailing list