Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos
Thanks for sharing your changes Trystan! Always good to have more choices with regards to video plugins. FWIW, I have another very stable FFmpeg plugin here: https://github.com/scrawl/ogre-ffmpeg-videoplayer It's currently using Ogre for rendering rather than OSG, but should be really easy to port. I will be porting it to OSG when I'm done with porting the rest of my engine. Cheers, Jannik -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63315#63315 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos
hi Trystan, Great work! When i have more time, will test the new ffmpeg for osg plugin,and feed back. zhuwan 04,09,2015 -原始邮件- 发件人: Trystan Larey-Williams trys...@trystan.org 发送时间: 2015-4-9 5:09:27 收件人: osg-users@lists.openscenegraph.org 抄送: 主题: Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos Hi all, We ended up with a complete rewrite of the ffmpeg plugin that we've found to provide much more stable and reliable playback compared to the bundled one on the 3.2.x line. The developer hired believed a complete rework was the most expedient path to fix the various issues we encountered. I haven't been following the most recent posts on work on the existing plugin (looks like there has been some), but ours may be worth some review. All the code is licensed under the standard OSG license. https://bitbucket.org/digitalis/osg-ffmpeg-plugin/overview -Trystan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63298#63298 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos
A highly interesting contribution, for sure. Maybe it solves some of the problems I've been having with the existing FFMPEG plug-in. Thank you for placing it under the OSG license. Christian 2015-04-08 23:09 GMT+02:00 Trystan Larey-Williams trys...@trystan.org: Hi all, We ended up with a complete rewrite of the ffmpeg plugin that we've found to provide much more stable and reliable playback compared to the bundled one on the 3.2.x line. The developer hired believed a complete rework was the most expedient path to fix the various issues we encountered. I haven't been following the most recent posts on work on the existing plugin (looks like there has been some), but ours may be worth some review. All the code is licensed under the standard OSG license. https://bitbucket.org/digitalis/osg-ffmpeg-plugin/overview -Trystan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63298#63298 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos
Hi all, We ended up with a complete rewrite of the ffmpeg plugin that we've found to provide much more stable and reliable playback compared to the bundled one on the 3.2.x line. The developer hired believed a complete rework was the most expedient path to fix the various issues we encountered. I haven't been following the most recent posts on work on the existing plugin (looks like there has been some), but ours may be worth some review. All the code is licensed under the standard OSG license. https://bitbucket.org/digitalis/osg-ffmpeg-plugin/overview -Trystan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63298#63298 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos
As this issue effects a large number of videos and is important functionality for us, we're willing to pay someone for a fix. If interested, please contact j...@digitaliseducation.com. Thanks, Trystan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61876#61876 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgPlugins] ffmpeg plugin halting during playback of some videos
Hi all, We've been finding some problems with playback of a set of videos. The issue is reproducible using osgMovie but only when --audio is enabled. A particular video will freeze at the same moment on every playback instance (although different videos will freeze in different places). We haven't been able to find a pattern to the bitrates or encoding of videos that fail. All our testing has been using videos on a local drive. In all cases, the videos play fine via 'avplay', which also uses SDL as the audio sink. I'm not familiar with the ffmpeg libs or video/audio decoding in general, but I spent some time debugging the issue. The behavior I'm seeing when the problem reproduces is the video packet buffer becomes full. It appears that as the frame processing loop is spending time trying to insert video frames into a full queue, the audio queue quickly empties and audio begins to stutter. For a reason I wasn't able to determine, this situation degrades further and video packet processing halts with the video queue still full. My intuition was that a race condition is developing so I played around with the timing of threads and locks to no avail. Eventually, I had to move onto other tasks. The only workaround I was able to find was simply increasing both the video and audio packet queue sizes by a couple orders of magnitude. This is certainly not a robust fix though since it likely just hides the problem and pushes it to a later time in a video. I was able to get permission to distribute one of the videos that causes the problem. The audio stuttering reliably begins around 1:05 and video halts a few seconds later (same timing on several machines). It's too large to attach but can be downloaded at http://digitaliseducation.com/random/badblast.mp4. Relevant versions used ... OSG 3.2.1 Ubuntu 14.04 libavcodec.so.54.35.0 libSDL-1.2.so.0.11.4 Cheers, Trystan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61763#61763 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org