Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-12 Thread Javier Taibo
Hi, Try replacing m_context->time_base by m_stream->time_base in FFmpegDecoderVideo::decodeLoop() (FFmpegDecoderVideo.cpp) This should solve your problem with FFMPEG versions after 3.0 Cheers! On Mon, Jun 11, 2018 at 4:36 PM, Andrea Martini wrote: > Hi everyone, > i'm using osg3.5.6

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-12 Thread Andrea Martini
Hi Lauren, GREAT!!! It's works! Using the 3.0 version of ffmepg, i can play both video and audio correctly. Thank you a lot! Cheers, Andrea -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74055#74055

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-12 Thread Voerman, L.
Hi Andrea, The ffmpeg version I was using did not have this problem, (ffmpeg-20160517-git-af3e944-win64-shared) but after updating to ffmpeg-4.0 I could hear and see the problem as well. I've tried ffmpeg versions 3.4.2 and 3.2 as well - still problems, found a binary version of 3.0 here

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-11 Thread Voerman, L.
Hi Andrea, To display the usage of the cpu cores in the task viewer you need to right click the cpu graph, select "Change graph to" and select "Logical Processors". >From "overall usage" we cannot see if that's one core at 100% and the rest near zero or something else. Laurens. On Mon, Jun 11, 201

Re: [osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-11 Thread Voerman, L.
Hi Andrea, did you have a look at the load on the cpu cores? The slowdown seems to indicate a cpu core hitting 100% load. this link might help you further: http://forum.openscenegraph.org/viewtopic.php?p=72124#72124 Regards, Laurens. On Mon, Jun 11, 2018 at 4:36 PM, Andrea Martini wrote: > Hi ev

[osg-users] OsgMovie ffmpeg and audio (SDL2) - Audio seems to make video slower. Audio has hiccoughing

2018-06-11 Thread Andrea Martini
Hi everyone, i'm using osg3.5.6 on visual studio 2013 (windows 10), and i'm using ffmpeg plugin combined with SDL2 to play video and audio streaming with osgmovie example. If i don't use SDL2 (no audio), video streaming works fine. If i add SDL2 (audio), i get two bad results: 1) video stream g