Re: [osg-users] [osgPlugins] ffmpeg plugin : big delay
Hi, I've tested this patch, but the delay got worst?! :? :' Any idea? Thanks, Malek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32178#32178 ___ 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 : big delay
Hi, I've tested this patch, but the delay got worst?! :? :' Any idea? Ok, can you tell me which pts of first frame? I think you can decrease pts on first frame's pts instead m_stream-start_time. Mikhail. ___ 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 : big delay
Hi Mikhail, Here is my log file with some log informations. Please let me know if you need more tests. (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.541933 (3) : [OSGFFMPEG DEBUG]214 frame_delay 0.0164432 (3) : [OSGFFMPEG DEBUG]329 i_delay 16443 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.541944 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.541955 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.541966 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.541977 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.541989 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542011 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542022 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542033 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542044 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542055 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542066 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542077 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542089 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.5421 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542111 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542122 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542133 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542144 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006 (3) : [OSGFFMPEG DEBUG]329 i_delay -5 (3) : [OSGFFMPEG DEBUG]205 m_stream-start_time 48774 (3) : [OSGFFMPEG DEBUG]207 pts 0 (3) : [OSGFFMPEG DEBUG]213 synched_pts 0.542155 (3) : [OSGFFMPEG DEBUG]214 frame_delay -5.6e-006
[osg-users] [osgPlugins] ffmpeg plugin : big delay
Hey guys, I'm encountering a small issue related to ffmpeg plugin. I'm trying to acquire and show in real time video (RTSP) coming from an axis camera. The problem is that my video has a delay of around 5 seconds.. I did some tests using VLC, and by modifing the cache size I had realtime video..but I have no idea how to make that using osg ffmpeg plugin. Does any one had to overcome this issue? Thank you! Cheers, Malek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32128#32128 ___ 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 : big delay
I'm wondering is there any relation with that instruction : line 231 in FFmpegDecoderVideo.cpp packet = m_packets.timedPop(is_empty, 10); what does the 10 stand for? thanks, Malek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32132#32132 ___ 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 : big delay
Hi, You can try this patch. Mikhail. Index: src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp === --- src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp(revision 11784) +++ src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp(working copy) @@ -208,6 +208,7 @@ pts = 0; } +pts -= m_stream-start_time; pts *= av_q2d(m_stream-time_base); // Publish the frame if we have decoded a complete frame ___ 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 : big delay
Hi Mikhail, Thanks for your response. I think that the patch was disabled by the forum administrator. I'm not able to download it. Cheers, Malek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32140#32140 ___ 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 : big delay
Hi, You can find patch in mailing list archive at http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg44088.html Mikhail. ___ 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 : big delay
ok Thanks again, I'll let you know. Malek -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32146#32146 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org