Recording video

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Recording video

Brennan Peter Sellner
Hi,

I'm having some difficulty recording video using OpenRAVE's
Options->Record Video option.  First, in order to build with video
recording in Linux, I had to fix a typo in src/aviUtil.cpp.  Line 449 (as
of r275) should be checking 'defined(HAVE_FFMPEG_AVCODEC_H)', not
'defined(DHAVE_FFMPEG_AVCODEC_H)' (note the leading 'D').  Also, I would
suggest adding a printout to the effect of 'ffmpeg support not compiled'
in the vicinity of aviUtil.cpp:636 to make it clear why the movie isn't
being saved in such an event.

However, once I corrected this and rebuilt, OpenRAVE crashes after
selecting the output file (e.g. after the file selection dialog closes):

[aviUtil.cpp:554] opening /home/brennan/cbw.avi, w:640 h:480x fps:30, codec: mpeg4
[qtcoinviewer.cpp:1808] Starting to capture /home/brennan/cbw.avi
openrave: gl.c:1875: cc_glglue_instance: Assertion `gi->versionstr && "could not call glGetString() -- no current GL context?"' failed.

I've included a backtrace at the end of this email, if it's of use; it
looks like a GL issue within Coin.  I have all the libraries suggested by
the wiki installed on an Ubuntu 6.06 (Dapper Drake) box, although two
package names differed: libxvidcore4-dev (instead of libxvidcore-dev) and
libdc1394-13-dev (instead of libdc1394-dev).  My binary is built against
Qt 4.1.2 and libCoin 2.4.4.  I'm using an NVIDIA card with working
hardware acceleration; more details available upon request.

This does not appear to be correlated with a particular scene or plugin:
it occurs with my scene and plugin loaded, with no plugin and
tridov.robot.xml, and with no plugin nor scene.

Anything I can do to help debug this?

Thanks,

-Brennan

---------------------------------------------------

#0  0xb7fdf410 in ?? ()
#1  0xb3a75ffc in ?? ()
#2  0x00000006 in ?? ()
#3  0xb3a7612c in ?? ()
#4  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#5  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6  0xb6a91f51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7c95774 in cc_glglue_instance () from /usr/lib/libCoin.so.40
#8  0xb7c9580a in cc_glglue_instance_from_context_ptr () from /usr/lib/libCoin.so.40
#9  0xb7c97d8d in glxglue_context_create_offscreen () from /usr/lib/libCoin.so.40
#10 0xb7c8eff2 in cc_glglue_context_create_offscreen () from /usr/lib/libCoin.so.40
#11 0xb7c8f34e in cc_glglue_context_max_dimensions () from /usr/lib/libCoin.so.40
#12 0xb7d2319f in CoinOffscreenGLCanvas::getMaxTileSize () from /usr/lib/libCoin.so.40
#13 0xb7d2337a in CoinOffscreenGLCanvas::clampSize () from /usr/lib/libCoin.so.40
#14 0xb7d2356c in CoinOffscreenGLCanvas::setWantedSize () from /usr/lib/libCoin.so.40
#15 0xb7d1e057 in SoOffscreenRendererP::renderFromBase () from /usr/lib/libCoin.so.40
#16 0xb7d1edf6 in SoOffscreenRenderer::render () from /usr/lib/libCoin.so.40
#17 0x080e1d9b in QtCoinViewer::_RecordVideo (this=0x85b6670) at qtcoinviewer.cpp:2106
#18 0xb7e09a36 in SoSensor::trigger () from /usr/lib/libCoin.so.40
#19 0xb7e0c504 in SoTimerSensor::trigger () from /usr/lib/libCoin.so.40
#20 0xb7e0a2e0 in SoSensorManager::processTimerQueue () from /usr/lib/libCoin.so.40
#21 0x080f2ce3 in SoQtP::slot_timedOutSensor (this=0x8600aa8) at SoQt.cpp:431
#22 0x080f297d in SoQtP::qt_metacall (this=0x8600aa8, _c=InvokeMetaMethod, _id=0, _a=0x0) at moc_SoQtP.icc:68
#23 0xb69f22bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0xb69f26f6 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#25 0xb6a0e0df in QTimer::timeout () from /usr/lib/libQtCore.so.4
#26 0xb69fa734 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#27 0xb69f17e6 in QObject::event () from /usr/lib/libQtCore.so.4
#28 0xb74107c5 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#29 0xb7411700 in QApplication::notify () from /usr/lib/libQtGui.so.4
#30 0xb6a052f0 in QEventDispatcherUNIX::activateTimers () from /usr/lib/libQtCore.so.4
#31 0xb6a0592b in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
#32 0xb74738a6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() () from /usr/lib/libQtGui.so.4
#33 0xb69e468a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#34 0xb69e489d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0xb69e6fe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#36 0xb7410565 in QApplication::exec () from /usr/lib/libQtGui.so.4
#37 0x080e137b in QtCoinViewer::main (this=0x85b6670) at qtcoinviewer.cpp:1369
#38 0x08065818 in MainOpenRAVEThread (p=0x0) at main.cpp:358
#39 0xb787f341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#40 0xb6b394ee in clone () from /lib/tls/i686/cmov/libc.so.6



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Rosen Diankov-2
Hi Brennan,

defined(HAVE_FFMPEG_AVCODEC_H) now fixed and a message is added to
print when avi recording builds are disabled. Thanks!

As for your crashing bug, there is a high probability it is a problem
with your graphics driver. My only suggestion is to update the
drivers, disable hardware acceleration, or play with other options.

rosen,

2008/7/21 Brennan Peter Sellner <[hidden email]>:

> Hi,
>
> I'm having some difficulty recording video using OpenRAVE's
> Options->Record Video option.  First, in order to build with video
> recording in Linux, I had to fix a typo in src/aviUtil.cpp.  Line 449 (as
> of r275) should be checking 'defined(HAVE_FFMPEG_AVCODEC_H)', not
> 'defined(DHAVE_FFMPEG_AVCODEC_H)' (note the leading 'D').  Also, I would
> suggest adding a printout to the effect of 'ffmpeg support not compiled'
> in the vicinity of aviUtil.cpp:636 to make it clear why the movie isn't
> being saved in such an event.
>
> However, once I corrected this and rebuilt, OpenRAVE crashes after
> selecting the output file (e.g. after the file selection dialog closes):
>
> [aviUtil.cpp:554] opening /home/brennan/cbw.avi, w:640 h:480x fps:30, codec: mpeg4
> [qtcoinviewer.cpp:1808] Starting to capture /home/brennan/cbw.avi
> openrave: gl.c:1875: cc_glglue_instance: Assertion `gi->versionstr && "could not call glGetString() -- no current GL context?"' failed.
>
> I've included a backtrace at the end of this email, if it's of use; it
> looks like a GL issue within Coin.  I have all the libraries suggested by
> the wiki installed on an Ubuntu 6.06 (Dapper Drake) box, although two
> package names differed: libxvidcore4-dev (instead of libxvidcore-dev) and
> libdc1394-13-dev (instead of libdc1394-dev).  My binary is built against
> Qt 4.1.2 and libCoin 2.4.4.  I'm using an NVIDIA card with working
> hardware acceleration; more details available upon request.
>
> This does not appear to be correlated with a particular scene or plugin:
> it occurs with my scene and plugin loaded, with no plugin and
> tridov.robot.xml, and with no plugin nor scene.
>
> Anything I can do to help debug this?
>
> Thanks,
>
> -Brennan
>
> ---------------------------------------------------
>
> #0  0xb7fdf410 in ?? ()
> #1  0xb3a75ffc in ?? ()
> #2  0x00000006 in ?? ()
> #3  0xb3a7612c in ?? ()
> #4  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
> #5  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
> #6  0xb6a91f51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
> #7  0xb7c95774 in cc_glglue_instance () from /usr/lib/libCoin.so.40
> #8  0xb7c9580a in cc_glglue_instance_from_context_ptr () from /usr/lib/libCoin.so.40
> #9  0xb7c97d8d in glxglue_context_create_offscreen () from /usr/lib/libCoin.so.40
> #10 0xb7c8eff2 in cc_glglue_context_create_offscreen () from /usr/lib/libCoin.so.40
> #11 0xb7c8f34e in cc_glglue_context_max_dimensions () from /usr/lib/libCoin.so.40
> #12 0xb7d2319f in CoinOffscreenGLCanvas::getMaxTileSize () from /usr/lib/libCoin.so.40
> #13 0xb7d2337a in CoinOffscreenGLCanvas::clampSize () from /usr/lib/libCoin.so.40
> #14 0xb7d2356c in CoinOffscreenGLCanvas::setWantedSize () from /usr/lib/libCoin.so.40
> #15 0xb7d1e057 in SoOffscreenRendererP::renderFromBase () from /usr/lib/libCoin.so.40
> #16 0xb7d1edf6 in SoOffscreenRenderer::render () from /usr/lib/libCoin.so.40
> #17 0x080e1d9b in QtCoinViewer::_RecordVideo (this=0x85b6670) at qtcoinviewer.cpp:2106
> #18 0xb7e09a36 in SoSensor::trigger () from /usr/lib/libCoin.so.40
> #19 0xb7e0c504 in SoTimerSensor::trigger () from /usr/lib/libCoin.so.40
> #20 0xb7e0a2e0 in SoSensorManager::processTimerQueue () from /usr/lib/libCoin.so.40
> #21 0x080f2ce3 in SoQtP::slot_timedOutSensor (this=0x8600aa8) at SoQt.cpp:431
> #22 0x080f297d in SoQtP::qt_metacall (this=0x8600aa8, _c=InvokeMetaMethod, _id=0, _a=0x0) at moc_SoQtP.icc:68
> #23 0xb69f22bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #24 0xb69f26f6 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #25 0xb6a0e0df in QTimer::timeout () from /usr/lib/libQtCore.so.4
> #26 0xb69fa734 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
> #27 0xb69f17e6 in QObject::event () from /usr/lib/libQtCore.so.4
> #28 0xb74107c5 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
> #29 0xb7411700 in QApplication::notify () from /usr/lib/libQtGui.so.4
> #30 0xb6a052f0 in QEventDispatcherUNIX::activateTimers () from /usr/lib/libQtCore.so.4
> #31 0xb6a0592b in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
> #32 0xb74738a6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() () from /usr/lib/libQtGui.so.4
> #33 0xb69e468a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
> #34 0xb69e489d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
> #35 0xb69e6fe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
> #36 0xb7410565 in QApplication::exec () from /usr/lib/libQtGui.so.4
> #37 0x080e137b in QtCoinViewer::main (this=0x85b6670) at qtcoinviewer.cpp:1369
> #38 0x08065818 in MainOpenRAVEThread (p=0x0) at main.cpp:358
> #39 0xb787f341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #40 0xb6b394ee in clone () from /lib/tls/i686/cmov/libc.so.6
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Paul E. Rybski
In reply to this post by Brennan Peter Sellner
Hi Brennan,
        As a point of reference, I'm running Ubuntu 8.04 on an old NVIDIA card
(nVidia Corporation NV28 [GeForce4 Ti 4800]) with the nvidia restricted
drivers that are part of this distribution.  I just updated to Openrave
278 and successfully ran and captured a video of the hanoi example to an
avi file.

Given the errors that you're having, my first thought is that the
version of FFMPEG that you're using might be causing problem.  FYI, I
didn't have to change any sort of typo in openrave to get it to compile
on my distro.  Also, my version of ffmpeg comes from the medibuntu
distribution:  http://www.medibuntu.org/  I followed the instructions
there to get a better working version of mplayer and ffmpeg was one of
the packages that was updated.  You might want to try this for Dapper.
Some additional useful instructions (mainly for Hardy Heron but I think
they translate okay for Dapper... YMMV) are found here:
http://ubuntuforums.org/showthread.php?t=766683&highlight=medibuntu

Otherwise, you might also want to try downloading and installing the
latest NVIDIA driver from their web page.  Mind you, this is a complete
guess.  If possible, upgrading to 8.04 might be the most comprehensive
solution if upgrading your media libraries doesn't fix the problem.

As a side note, this may be an artifact of my ancient video card, but I
had to disable the snazzy "Desktop Cube" effect in compiz in order for
Openrave to actually display anything but black in its window.  I have
yet to try this on a more modern machine with better video hardware to
see if this is a common problem.

-Paul

Brennan Peter Sellner wrote:

> Hi,
>
> I'm having some difficulty recording video using OpenRAVE's
> Options->Record Video option.  First, in order to build with video
> recording in Linux, I had to fix a typo in src/aviUtil.cpp.  Line 449 (as
> of r275) should be checking 'defined(HAVE_FFMPEG_AVCODEC_H)', not
> 'defined(DHAVE_FFMPEG_AVCODEC_H)' (note the leading 'D').  Also, I would
> suggest adding a printout to the effect of 'ffmpeg support not compiled'
> in the vicinity of aviUtil.cpp:636 to make it clear why the movie isn't
> being saved in such an event.
>
> However, once I corrected this and rebuilt, OpenRAVE crashes after
> selecting the output file (e.g. after the file selection dialog closes):
>
> [aviUtil.cpp:554] opening /home/brennan/cbw.avi, w:640 h:480x fps:30, codec: mpeg4
> [qtcoinviewer.cpp:1808] Starting to capture /home/brennan/cbw.avi
> openrave: gl.c:1875: cc_glglue_instance: Assertion `gi->versionstr && "could not call glGetString() -- no current GL context?"' failed.
>
> I've included a backtrace at the end of this email, if it's of use; it
> looks like a GL issue within Coin.  I have all the libraries suggested by
> the wiki installed on an Ubuntu 6.06 (Dapper Drake) box, although two
> package names differed: libxvidcore4-dev (instead of libxvidcore-dev) and
> libdc1394-13-dev (instead of libdc1394-dev).  My binary is built against
> Qt 4.1.2 and libCoin 2.4.4.  I'm using an NVIDIA card with working
> hardware acceleration; more details available upon request.
>
> This does not appear to be correlated with a particular scene or plugin:
> it occurs with my scene and plugin loaded, with no plugin and
> tridov.robot.xml, and with no plugin nor scene.
>
> Anything I can do to help debug this?
>
> Thanks,
>
> -Brennan
>
> ---------------------------------------------------
>
> #0  0xb7fdf410 in ?? ()
> #1  0xb3a75ffc in ?? ()
> #2  0x00000006 in ?? ()
> #3  0xb3a7612c in ?? ()
> #4  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
> #5  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
> #6  0xb6a91f51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
> #7  0xb7c95774 in cc_glglue_instance () from /usr/lib/libCoin.so.40
> #8  0xb7c9580a in cc_glglue_instance_from_context_ptr () from /usr/lib/libCoin.so.40
> #9  0xb7c97d8d in glxglue_context_create_offscreen () from /usr/lib/libCoin.so.40
> #10 0xb7c8eff2 in cc_glglue_context_create_offscreen () from /usr/lib/libCoin.so.40
> #11 0xb7c8f34e in cc_glglue_context_max_dimensions () from /usr/lib/libCoin.so.40
> #12 0xb7d2319f in CoinOffscreenGLCanvas::getMaxTileSize () from /usr/lib/libCoin.so.40
> #13 0xb7d2337a in CoinOffscreenGLCanvas::clampSize () from /usr/lib/libCoin.so.40
> #14 0xb7d2356c in CoinOffscreenGLCanvas::setWantedSize () from /usr/lib/libCoin.so.40
> #15 0xb7d1e057 in SoOffscreenRendererP::renderFromBase () from /usr/lib/libCoin.so.40
> #16 0xb7d1edf6 in SoOffscreenRenderer::render () from /usr/lib/libCoin.so.40
> #17 0x080e1d9b in QtCoinViewer::_RecordVideo (this=0x85b6670) at qtcoinviewer.cpp:2106
> #18 0xb7e09a36 in SoSensor::trigger () from /usr/lib/libCoin.so.40
> #19 0xb7e0c504 in SoTimerSensor::trigger () from /usr/lib/libCoin.so.40
> #20 0xb7e0a2e0 in SoSensorManager::processTimerQueue () from /usr/lib/libCoin.so.40
> #21 0x080f2ce3 in SoQtP::slot_timedOutSensor (this=0x8600aa8) at SoQt.cpp:431
> #22 0x080f297d in SoQtP::qt_metacall (this=0x8600aa8, _c=InvokeMetaMethod, _id=0, _a=0x0) at moc_SoQtP.icc:68
> #23 0xb69f22bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #24 0xb69f26f6 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #25 0xb6a0e0df in QTimer::timeout () from /usr/lib/libQtCore.so.4
> #26 0xb69fa734 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
> #27 0xb69f17e6 in QObject::event () from /usr/lib/libQtCore.so.4
> #28 0xb74107c5 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
> #29 0xb7411700 in QApplication::notify () from /usr/lib/libQtGui.so.4
> #30 0xb6a052f0 in QEventDispatcherUNIX::activateTimers () from /usr/lib/libQtCore.so.4
> #31 0xb6a0592b in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
> #32 0xb74738a6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() () from /usr/lib/libQtGui.so.4
> #33 0xb69e468a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
> #34 0xb69e489d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
> #35 0xb69e6fe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
> #36 0xb7410565 in QApplication::exec () from /usr/lib/libQtGui.so.4
> #37 0x080e137b in QtCoinViewer::main (this=0x85b6670) at qtcoinviewer.cpp:1369
> #38 0x08065818 in MainOpenRAVEThread (p=0x0) at main.cpp:358
> #39 0xb787f341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #40 0xb6b394ee in clone () from /lib/tls/i686/cmov/libc.so.6
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>

--
Paul E. Rybski, Ph.D., Systems Scientist
The Robotics Institute, Carnegie Mellon University
Phone: 412-268-7417, Fax: 412-268-7350
Web: http://www.cs.cmu.edu/~prybski


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Rosen Diankov-2
The easiest way to narrow down the problem is to disable video
recording by adding the --disable-ffmpeg option when compiling ie:

./configure --disable-ffmpeg --prefix=`pwd`

in the root openrave dir should do the trick of replicating the build.sh script

If you click on recording video, Coin will still go through the
necessary paths to extract an image from the video card, it is just
that it won't get saved.

If it still crashes, the video drivers are at fault. If it doesn't, ffmpeg is.

rosen,

2008/7/22 Paul E. Rybski <[hidden email]>:

> Hi Brennan,
>        As a point of reference, I'm running Ubuntu 8.04 on an old NVIDIA card
> (nVidia Corporation NV28 [GeForce4 Ti 4800]) with the nvidia restricted
> drivers that are part of this distribution.  I just updated to Openrave
> 278 and successfully ran and captured a video of the hanoi example to an
> avi file.
>
> Given the errors that you're having, my first thought is that the
> version of FFMPEG that you're using might be causing problem.  FYI, I
> didn't have to change any sort of typo in openrave to get it to compile
> on my distro.  Also, my version of ffmpeg comes from the medibuntu
> distribution:  http://www.medibuntu.org/  I followed the instructions
> there to get a better working version of mplayer and ffmpeg was one of
> the packages that was updated.  You might want to try this for Dapper.
> Some additional useful instructions (mainly for Hardy Heron but I think
> they translate okay for Dapper... YMMV) are found here:
> http://ubuntuforums.org/showthread.php?t=766683&highlight=medibuntu
>
> Otherwise, you might also want to try downloading and installing the
> latest NVIDIA driver from their web page.  Mind you, this is a complete
> guess.  If possible, upgrading to 8.04 might be the most comprehensive
> solution if upgrading your media libraries doesn't fix the problem.
>
> As a side note, this may be an artifact of my ancient video card, but I
> had to disable the snazzy "Desktop Cube" effect in compiz in order for
> Openrave to actually display anything but black in its window.  I have
> yet to try this on a more modern machine with better video hardware to
> see if this is a common problem.
>
> -Paul
>
> Brennan Peter Sellner wrote:
>> Hi,
>>
>> I'm having some difficulty recording video using OpenRAVE's
>> Options->Record Video option.  First, in order to build with video
>> recording in Linux, I had to fix a typo in src/aviUtil.cpp.  Line 449 (as
>> of r275) should be checking 'defined(HAVE_FFMPEG_AVCODEC_H)', not
>> 'defined(DHAVE_FFMPEG_AVCODEC_H)' (note the leading 'D').  Also, I would
>> suggest adding a printout to the effect of 'ffmpeg support not compiled'
>> in the vicinity of aviUtil.cpp:636 to make it clear why the movie isn't
>> being saved in such an event.
>>
>> However, once I corrected this and rebuilt, OpenRAVE crashes after
>> selecting the output file (e.g. after the file selection dialog closes):
>>
>> [aviUtil.cpp:554] opening /home/brennan/cbw.avi, w:640 h:480x fps:30, codec: mpeg4
>> [qtcoinviewer.cpp:1808] Starting to capture /home/brennan/cbw.avi
>> openrave: gl.c:1875: cc_glglue_instance: Assertion `gi->versionstr && "could not call glGetString() -- no current GL context?"' failed.
>>
>> I've included a backtrace at the end of this email, if it's of use; it
>> looks like a GL issue within Coin.  I have all the libraries suggested by
>> the wiki installed on an Ubuntu 6.06 (Dapper Drake) box, although two
>> package names differed: libxvidcore4-dev (instead of libxvidcore-dev) and
>> libdc1394-13-dev (instead of libdc1394-dev).  My binary is built against
>> Qt 4.1.2 and libCoin 2.4.4.  I'm using an NVIDIA card with working
>> hardware acceleration; more details available upon request.
>>
>> This does not appear to be correlated with a particular scene or plugin:
>> it occurs with my scene and plugin loaded, with no plugin and
>> tridov.robot.xml, and with no plugin nor scene.
>>
>> Anything I can do to help debug this?
>>
>> Thanks,
>>
>> -Brennan
>>
>> ---------------------------------------------------
>>
>> #0  0xb7fdf410 in ?? ()
>> #1  0xb3a75ffc in ?? ()
>> #2  0x00000006 in ?? ()
>> #3  0xb3a7612c in ?? ()
>> #4  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
>> #5  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
>> #6  0xb6a91f51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
>> #7  0xb7c95774 in cc_glglue_instance () from /usr/lib/libCoin.so.40
>> #8  0xb7c9580a in cc_glglue_instance_from_context_ptr () from /usr/lib/libCoin.so.40
>> #9  0xb7c97d8d in glxglue_context_create_offscreen () from /usr/lib/libCoin.so.40
>> #10 0xb7c8eff2 in cc_glglue_context_create_offscreen () from /usr/lib/libCoin.so.40
>> #11 0xb7c8f34e in cc_glglue_context_max_dimensions () from /usr/lib/libCoin.so.40
>> #12 0xb7d2319f in CoinOffscreenGLCanvas::getMaxTileSize () from /usr/lib/libCoin.so.40
>> #13 0xb7d2337a in CoinOffscreenGLCanvas::clampSize () from /usr/lib/libCoin.so.40
>> #14 0xb7d2356c in CoinOffscreenGLCanvas::setWantedSize () from /usr/lib/libCoin.so.40
>> #15 0xb7d1e057 in SoOffscreenRendererP::renderFromBase () from /usr/lib/libCoin.so.40
>> #16 0xb7d1edf6 in SoOffscreenRenderer::render () from /usr/lib/libCoin.so.40
>> #17 0x080e1d9b in QtCoinViewer::_RecordVideo (this=0x85b6670) at qtcoinviewer.cpp:2106
>> #18 0xb7e09a36 in SoSensor::trigger () from /usr/lib/libCoin.so.40
>> #19 0xb7e0c504 in SoTimerSensor::trigger () from /usr/lib/libCoin.so.40
>> #20 0xb7e0a2e0 in SoSensorManager::processTimerQueue () from /usr/lib/libCoin.so.40
>> #21 0x080f2ce3 in SoQtP::slot_timedOutSensor (this=0x8600aa8) at SoQt.cpp:431
>> #22 0x080f297d in SoQtP::qt_metacall (this=0x8600aa8, _c=InvokeMetaMethod, _id=0, _a=0x0) at moc_SoQtP.icc:68
>> #23 0xb69f22bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
>> #24 0xb69f26f6 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
>> #25 0xb6a0e0df in QTimer::timeout () from /usr/lib/libQtCore.so.4
>> #26 0xb69fa734 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
>> #27 0xb69f17e6 in QObject::event () from /usr/lib/libQtCore.so.4
>> #28 0xb74107c5 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
>> #29 0xb7411700 in QApplication::notify () from /usr/lib/libQtGui.so.4
>> #30 0xb6a052f0 in QEventDispatcherUNIX::activateTimers () from /usr/lib/libQtCore.so.4
>> #31 0xb6a0592b in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
>> #32 0xb74738a6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() () from /usr/lib/libQtGui.so.4
>> #33 0xb69e468a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
>> #34 0xb69e489d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
>> #35 0xb69e6fe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
>> #36 0xb7410565 in QApplication::exec () from /usr/lib/libQtGui.so.4
>> #37 0x080e137b in QtCoinViewer::main (this=0x85b6670) at qtcoinviewer.cpp:1369
>> #38 0x08065818 in MainOpenRAVEThread (p=0x0) at main.cpp:358
>> #39 0xb787f341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
>> #40 0xb6b394ee in clone () from /lib/tls/i686/cmov/libc.so.6
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Openrave-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/openrave-users
>>
>
> --
> Paul E. Rybski, Ph.D., Systems Scientist
> The Robotics Institute, Carnegie Mellon University
> Phone: 412-268-7417, Fax: 412-268-7350
> Web: http://www.cs.cmu.edu/~prybski
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Brennan Peter Sellner
On Tue, 22 Jul 2008, Rosen Diankov wrote:

> The easiest way to narrow down the problem is to disable video
> recording by adding the --disable-ffmpeg option when compiling ie:
>
> ./configure --disable-ffmpeg --prefix=`pwd`
>
> in the root openrave dir should do the trick of replicating the build.sh script
>
> If you click on recording video, Coin will still go through the
> necessary paths to extract an image from the video card, it is just
> that it won't get saved.
>
> If it still crashes, the video drivers are at fault. If it doesn't, ffmpeg is.
>
> rosen,
>

Good point.  FYI, my problem appears to be with ffmpeg: rebuilding r278
with --disable-ffmpeg avoids the crash.

I'll look into upgrading ffmpeg in a day or so; for posterity, I'm using
Ubuntu's Dapper Drake ffmpeg package (version 3:0.cvs20050918-5ubuntu1.1).
ffmpeg reports its version as CVS build 3276800.

Rosen, would your gut feeling be that it's an issue with ffmpeg itself, or
one of the supporting libraries/codecs (e.g. libavcodec, libavformat,
libxvidcore, libx264, etc.)?

Everyone else: what versions of ffmpeg have definitely worked for you?
I'd rather not hunt at random. ;-)

Thanks!

-Brennan



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Paul E. Rybski
As another data point, ffmpeg 3:0.cvs20070307-5ubuntu7
                     works for me.

-Paul

Brennan Peter Sellner wrote:

> On Tue, 22 Jul 2008, Rosen Diankov wrote:
>
>> The easiest way to narrow down the problem is to disable video
>> recording by adding the --disable-ffmpeg option when compiling ie:
>>
>> ./configure --disable-ffmpeg --prefix=`pwd`
>>
>> in the root openrave dir should do the trick of replicating the build.sh script
>>
>> If you click on recording video, Coin will still go through the
>> necessary paths to extract an image from the video card, it is just
>> that it won't get saved.
>>
>> If it still crashes, the video drivers are at fault. If it doesn't, ffmpeg is.
>>
>> rosen,
>>
>
> Good point.  FYI, my problem appears to be with ffmpeg: rebuilding r278
> with --disable-ffmpeg avoids the crash.
>
> I'll look into upgrading ffmpeg in a day or so; for posterity, I'm using
> Ubuntu's Dapper Drake ffmpeg package (version 3:0.cvs20050918-5ubuntu1.1).
> ffmpeg reports its version as CVS build 3276800.
>
> Rosen, would your gut feeling be that it's an issue with ffmpeg itself, or
> one of the supporting libraries/codecs (e.g. libavcodec, libavformat,
> libxvidcore, libx264, etc.)?
>
> Everyone else: what versions of ffmpeg have definitely worked for you?
> I'd rather not hunt at random. ;-)
>
> Thanks!
>
> -Brennan
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>

--
Paul E. Rybski, Ph.D., Systems Scientist
The Robotics Institute, Carnegie Mellon University
Phone: 412-268-7417, Fax: 412-268-7350
Web: http://www.cs.cmu.edu/~prybski


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Rosen Diankov-2
On second look at the code, I was wrong. Disabling ffmpeg does not go
through all the rendering code paths. You'll need to change lines 635
and 639 in aviUtil.cpp to "return true" for this to happen.

Rosen,

2008/7/22 Paul E. Rybski <[hidden email]>:

> As another data point, ffmpeg 3:0.cvs20070307-5ubuntu7
>                     works for me.
>
> -Paul
>
> Brennan Peter Sellner wrote:
>> On Tue, 22 Jul 2008, Rosen Diankov wrote:
>>
>>> The easiest way to narrow down the problem is to disable video
>>> recording by adding the --disable-ffmpeg option when compiling ie:
>>>
>>> ./configure --disable-ffmpeg --prefix=`pwd`
>>>
>>> in the root openrave dir should do the trick of replicating the build.sh script
>>>
>>> If you click on recording video, Coin will still go through the
>>> necessary paths to extract an image from the video card, it is just
>>> that it won't get saved.
>>>
>>> If it still crashes, the video drivers are at fault. If it doesn't, ffmpeg is.
>>>
>>> rosen,
>>>
>>
>> Good point.  FYI, my problem appears to be with ffmpeg: rebuilding r278
>> with --disable-ffmpeg avoids the crash.
>>
>> I'll look into upgrading ffmpeg in a day or so; for posterity, I'm using
>> Ubuntu's Dapper Drake ffmpeg package (version 3:0.cvs20050918-5ubuntu1.1).
>> ffmpeg reports its version as CVS build 3276800.
>>
>> Rosen, would your gut feeling be that it's an issue with ffmpeg itself, or
>> one of the supporting libraries/codecs (e.g. libavcodec, libavformat,
>> libxvidcore, libx264, etc.)?
>>
>> Everyone else: what versions of ffmpeg have definitely worked for you?
>> I'd rather not hunt at random. ;-)
>>
>> Thanks!
>>
>> -Brennan
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Openrave-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/openrave-users
>>
>
> --
> Paul E. Rybski, Ph.D., Systems Scientist
> The Robotics Institute, Carnegie Mellon University
> Phone: 412-268-7417, Fax: 412-268-7350
> Web: http://www.cs.cmu.edu/~prybski
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Recording video

Paul E. Rybski
In reply to this post by Paul E. Rybski
Hi,
        Just to clarify, it turns out that I was mistaken about the medibuntu
package of ffmpeg.  The computer that I was using today successfully to
make AVI files with OpenRAVE did NOT have the Medibuntu extensions
installed.  The other Ubuntu 8.04 machine that I tested it on does have
Medibuntu's ffmpeg installed:

$ dpkg -l | grep fmpeg
ii  ffmpeg  3:0.cvs20070307-5ubuntu7+medibuntu1.1
multimedia player, server and encoder - Medibuntu package

So, I've successfully tested it with on Ubuntu 8.04 with and without
Medibuntu's ffmpeg.

-Paul

Paul E. Rybski wrote:

> Hi Brennan,
> As a point of reference, I'm running Ubuntu 8.04 on an old NVIDIA card
> (nVidia Corporation NV28 [GeForce4 Ti 4800]) with the nvidia restricted
> drivers that are part of this distribution.  I just updated to Openrave
> 278 and successfully ran and captured a video of the hanoi example to an
> avi file.
>
> Given the errors that you're having, my first thought is that the
> version of FFMPEG that you're using might be causing problem.  FYI, I
> didn't have to change any sort of typo in openrave to get it to compile
> on my distro.  Also, my version of ffmpeg comes from the medibuntu
> distribution:  http://www.medibuntu.org/  I followed the instructions
> there to get a better working version of mplayer and ffmpeg was one of
> the packages that was updated.  You might want to try this for Dapper.
> Some additional useful instructions (mainly for Hardy Heron but I think
> they translate okay for Dapper... YMMV) are found here:
> http://ubuntuforums.org/showthread.php?t=766683&highlight=medibuntu
>
> Otherwise, you might also want to try downloading and installing the
> latest NVIDIA driver from their web page.  Mind you, this is a complete
> guess.  If possible, upgrading to 8.04 might be the most comprehensive
> solution if upgrading your media libraries doesn't fix the problem.
>
> As a side note, this may be an artifact of my ancient video card, but I
> had to disable the snazzy "Desktop Cube" effect in compiz in order for
> Openrave to actually display anything but black in its window.  I have
> yet to try this on a more modern machine with better video hardware to
> see if this is a common problem.
>
> -Paul
>
> Brennan Peter Sellner wrote:
>> Hi,
>>
>> I'm having some difficulty recording video using OpenRAVE's
>> Options->Record Video option.  First, in order to build with video
>> recording in Linux, I had to fix a typo in src/aviUtil.cpp.  Line 449 (as
>> of r275) should be checking 'defined(HAVE_FFMPEG_AVCODEC_H)', not
>> 'defined(DHAVE_FFMPEG_AVCODEC_H)' (note the leading 'D').  Also, I would
>> suggest adding a printout to the effect of 'ffmpeg support not compiled'
>> in the vicinity of aviUtil.cpp:636 to make it clear why the movie isn't
>> being saved in such an event.
>>
>> However, once I corrected this and rebuilt, OpenRAVE crashes after
>> selecting the output file (e.g. after the file selection dialog closes):
>>
>> [aviUtil.cpp:554] opening /home/brennan/cbw.avi, w:640 h:480x fps:30, codec: mpeg4
>> [qtcoinviewer.cpp:1808] Starting to capture /home/brennan/cbw.avi
>> openrave: gl.c:1875: cc_glglue_instance: Assertion `gi->versionstr && "could not call glGetString() -- no current GL context?"' failed.
>>
>> I've included a backtrace at the end of this email, if it's of use; it
>> looks like a GL issue within Coin.  I have all the libraries suggested by
>> the wiki installed on an Ubuntu 6.06 (Dapper Drake) box, although two
>> package names differed: libxvidcore4-dev (instead of libxvidcore-dev) and
>> libdc1394-13-dev (instead of libdc1394-dev).  My binary is built against
>> Qt 4.1.2 and libCoin 2.4.4.  I'm using an NVIDIA card with working
>> hardware acceleration; more details available upon request.
>>
>> This does not appear to be correlated with a particular scene or plugin:
>> it occurs with my scene and plugin loaded, with no plugin and
>> tridov.robot.xml, and with no plugin nor scene.
>>
>> Anything I can do to help debug this?
>>
>> Thanks,
>>
>> -Brennan
>>
>> ---------------------------------------------------
>>
>> #0  0xb7fdf410 in ?? ()
>> #1  0xb3a75ffc in ?? ()
>> #2  0x00000006 in ?? ()
>> #3  0xb3a7612c in ?? ()
>> #4  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
>> #5  0xb6a9a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
>> #6  0xb6a91f51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
>> #7  0xb7c95774 in cc_glglue_instance () from /usr/lib/libCoin.so.40
>> #8  0xb7c9580a in cc_glglue_instance_from_context_ptr () from /usr/lib/libCoin.so.40
>> #9  0xb7c97d8d in glxglue_context_create_offscreen () from /usr/lib/libCoin.so.40
>> #10 0xb7c8eff2 in cc_glglue_context_create_offscreen () from /usr/lib/libCoin.so.40
>> #11 0xb7c8f34e in cc_glglue_context_max_dimensions () from /usr/lib/libCoin.so.40
>> #12 0xb7d2319f in CoinOffscreenGLCanvas::getMaxTileSize () from /usr/lib/libCoin.so.40
>> #13 0xb7d2337a in CoinOffscreenGLCanvas::clampSize () from /usr/lib/libCoin.so.40
>> #14 0xb7d2356c in CoinOffscreenGLCanvas::setWantedSize () from /usr/lib/libCoin.so.40
>> #15 0xb7d1e057 in SoOffscreenRendererP::renderFromBase () from /usr/lib/libCoin.so.40
>> #16 0xb7d1edf6 in SoOffscreenRenderer::render () from /usr/lib/libCoin.so.40
>> #17 0x080e1d9b in QtCoinViewer::_RecordVideo (this=0x85b6670) at qtcoinviewer.cpp:2106
>> #18 0xb7e09a36 in SoSensor::trigger () from /usr/lib/libCoin.so.40
>> #19 0xb7e0c504 in SoTimerSensor::trigger () from /usr/lib/libCoin.so.40
>> #20 0xb7e0a2e0 in SoSensorManager::processTimerQueue () from /usr/lib/libCoin.so.40
>> #21 0x080f2ce3 in SoQtP::slot_timedOutSensor (this=0x8600aa8) at SoQt.cpp:431
>> #22 0x080f297d in SoQtP::qt_metacall (this=0x8600aa8, _c=InvokeMetaMethod, _id=0, _a=0x0) at moc_SoQtP.icc:68
>> #23 0xb69f22bd in QMetaObject::activate () from /usr/lib/libQtCore.so.4
>> #24 0xb69f26f6 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
>> #25 0xb6a0e0df in QTimer::timeout () from /usr/lib/libQtCore.so.4
>> #26 0xb69fa734 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
>> #27 0xb69f17e6 in QObject::event () from /usr/lib/libQtCore.so.4
>> #28 0xb74107c5 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
>> #29 0xb7411700 in QApplication::notify () from /usr/lib/libQtGui.so.4
>> #30 0xb6a052f0 in QEventDispatcherUNIX::activateTimers () from /usr/lib/libQtCore.so.4
>> #31 0xb6a0592b in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
>> #32 0xb74738a6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() () from /usr/lib/libQtGui.so.4
>> #33 0xb69e468a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
>> #34 0xb69e489d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
>> #35 0xb69e6fe7 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
>> #36 0xb7410565 in QApplication::exec () from /usr/lib/libQtGui.so.4
>> #37 0x080e137b in QtCoinViewer::main (this=0x85b6670) at qtcoinviewer.cpp:1369
>> #38 0x08065818 in MainOpenRAVEThread (p=0x0) at main.cpp:358
>> #39 0xb787f341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
>> #40 0xb6b394ee in clone () from /lib/tls/i686/cmov/libc.so.6
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Openrave-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/openrave-users
>>
>

--
Paul E. Rybski, Ph.D., Systems Scientist
The Robotics Institute, Carnegie Mellon University
Phone: 412-268-7417, Fax: 412-268-7350
Web: http://www.cs.cmu.edu/~prybski


Loading...