tag:blogger.com,1999:blog-1801476278712273225.post4937089882158559665..comments2023-08-21T05:30:45.605-03:00Comments on The Samurai Code: Binary packages for Webcamoid 5.0.0b2hipersayan_xhttp://www.blogger.com/profile/04819141995596683913noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1801476278712273225.post-80283704406006640572014-01-24T00:26:46.370-03:002014-01-24T00:26:46.370-03:00These lines keep's my attention:
Stream #0:0:...These lines keep's my attention:<br /><br />Stream #0:0: Video: mjpeg, 640x480, -2147483 kb/s, 1000k tbn<br />[alsa @ 0x82d5000] cannot open audio device hw:0 (Device or resource busy)<br /><br />However, this is extending too much can you fill a report with all back traces and relevant information in the <a href="https://github.com/hipersayanX/Webcamoid/issues" rel="nofollow">issues page</a>?<br />hipersayan_xhttps://www.blogger.com/profile/04819141995596683913noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-595404573624993112014-01-23T13:32:03.481-03:002014-01-23T13:32:03.481-03:00stanza commented out..
Input #0, video4linux2,v4l...stanza commented out..<br /><br />Input #0, video4linux2,v4l2, from '/dev/video0':<br /> Duration: N/A, bitrate: N/A<br /> Stream #0:0: Video: mjpeg, 640x480, -2147483 kb/s, 1000k tbn<br />Input #0, video4linux2,v4l2, from '/dev/video0':<br /> Duration: N/A, bitrate: N/A<br /> Stream #0:0: Video: mjpeg, 640x480, -2147483 kb/s, 1000k tbn<br />Input #0, video4linux2,v4l2, from '/dev/video0':<br /> Duration: N/A, bitrate: N/A<br /> Stream #0:0: Video: mjpeg, 640x480, -2147483 kb/s, 1000k tbn<br />[alsa @ 0x82d5000] cannot open audio device hw:0 (Device or resource busy)<br />[alsa @ 0x82cda80] cannot open audio device hw:0 (Device or resource busy)<br />[alsa @ 0x82cda80] cannot open audio device hw:0 (Device or resource busy)<br />Input #0, video4linux2,v4l2, from '/dev/video0':<br /> Duration: N/A, bitrate: N/A<br /> Stream #0:0: Video: mjpeg, 640x480, -2147483 kb/s, 1000k tbn<br /><br />Program received signal SIGFPE, Arithmetic exception.<br />0xb337fdeb in ?? () from /usr/lib/libavutil.so.52<br />(gdb) bt<br />#0 0xb337fdeb in ?? () from /usr/lib/libavutil.so.52<br />#1 0xb335e58c in av_rescale_rnd () from /usr/lib/libavutil.so.52<br />#2 0xb335e66f in av_rescale_q () from /usr/lib/libavutil.so.52<br />#3 0xb464480b in ?? () from /usr/lib/libavdevice.so.55<br />#4 0xb44ca867 in ?? () from /usr/lib/libavformat.so.55<br />#5 0xb44cd28e in ?? () from /usr/lib/libavformat.so.55<br />#6 0xb44cdf0a in av_read_frame () from /usr/lib/libavformat.so.55<br />#7 0xb4689431 in MultiSrcElement::readPackets() () from /usr/lib/Qb/libMultiSrc.so<br />#8 0xb468c60c in ?? () from /usr/lib/Qb/libMultiSrc.so<br />#9 0xb7315c22 in QMetaObject::activate (sender=0x819b778, m=0xb74694b8 , local_signal_index=<br /> 0, argv=0x0) at kernel/qobject.cpp:3548<br />#10 0xb73673a5 in QTimer::timeout (this=0x819b778) at .moc/release-shared/moc_qtimer.cpp:148<br />#11 0xb731cd16 in QTimer::timerEvent (this=0x819b778, e=0xbfffea70) at kernel/qtimer.cpp:280<br />#12 0xb73139f4 in QObject::event (this=0x819b778, e=0xbfffea70) at kernel/qobject.cpp:1165<br />#13 0xb75b9bac in QApplicationPrivate::notify_helper (this=0x8050980, receiver=0x819b778, e=0xbfffea70)<br /> at kernel/qapplication.cpp:4562<br />#14 0xb75be5cc in QApplication::notify (this=0xbfffea70, receiver=0x819b778, e=0xbfffea70)<br /> at kernel/qapplication.cpp:3944<br />#15 0xb72fd8ce in QCoreApplication::notifyInternal (this=0xbfffed48, receiver=0x819b778, event=0xbfffea70)<br /> at kernel/qcoreapplication.cpp:946<br />#16 0xb7332247 in sendEvent (event=, receiver=) at kernel/qcoreapplication.h:231<br />#17 QTimerInfoList::activateTimers (this=0x8053034) at kernel/qeventdispatcher_unix.cpp:637<br />#18 0xb732f218 in timerSourceDispatch (source=0x8053000) at kernel/qeventdispatcher_glib.cpp:186<br />#19 timerSourceDispatch (source=0x8053000) at kernel/qeventdispatcher_glib.cpp:180<br />#20 0xb66828b3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0<br />#21 0xb6682c50 in ?? () from /usr/lib/libglib-2.0.so.0<br />#22 0xb6682d31 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0<br />#23 0xb732f891 in QEventDispatcherGlib::processEvents (this=0x8050090, flags=...) at kernel/qeventdispatcher_glib.cpp:424<br />#24 0xb766b4aa in QGuiEventDispatcherGlib::processEvents (this=0x8050090, flags=...)<br /> at kernel/qguieventdispatcher_glib.cpp:204<br />#25 0xb72fc39c in QEventLoop::processEvents (this=this@entry=0xbfffecd8, flags=...) at kernel/qeventloop.cpp:149<br />#26 0xb72fc691 in QEventLoop::exec (this=0xbfffecd8, flags=...) at kernel/qeventloop.cpp:204<br />#27 0xb730194a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218<br />#28 0xb75b7a24 in QApplication::exec () at kernel/qapplication.cpp:3823<br />#29 0x08048e4f in main ()<br />Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-42184163959126425752014-01-22T23:44:19.754-03:002014-01-22T23:44:19.754-03:00Ok, let's take a more drastic approach, change...Ok, let's take a more drastic approach, change <a href="https://github.com/hipersayanX/Webcamoid/blob/master/Qb/Plugins/MultiSrc/src/multisrcelement.cpp#L179" rel="nofollow">this</a> line to:<br /><br />/*if (avformat_find_stream_info(this->m_inputContext.data(), NULL) < 0)<br />{<br /> this->m_inputContext.clear();<br /> emit this->error(QString("Cann't retrieve information from \"%1\" stream.").arg(this->location()));<br /><br /> return false;<br />}*/<br /><br />and recompile.<br />hipersayan_xhttps://www.blogger.com/profile/04819141995596683913noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-71298401642528111682014-01-22T21:40:28.903-03:002014-01-22T21:40:28.903-03:00[made changes to mediatools.cpp]
Program received...[made changes to mediatools.cpp]<br /><br />Program received signal SIGFPE, Arithmetic exception.<br />0xb337fdeb in ?? () from /usr/lib/libavutil.so.52<br />(gdb) bt<br />#0 0xb337fdeb in ?? () from /usr/lib/libavutil.so.52<br />#1 0xb335e58c in av_rescale_rnd () from /usr/lib/libavutil.so.52<br />#2 0xb335e66f in av_rescale_q () from /usr/lib/libavutil.so.52<br />#3 0xb464480b in ?? () from /usr/lib/libavdevice.so.55<br />#4 0xb44ca867 in ?? () from /usr/lib/libavformat.so.55<br />#5 0xb44cd28e in ?? () from /usr/lib/libavformat.so.55<br />#6 0xb44d1015 in avformat_find_stream_info () from /usr/lib/libavformat.so.55<br />#7 0xb4687bac in MultiSrcElement::init() () from /usr/lib/Qb/libMultiSrc.so<br />#8 0xb7f9d42a in QbElement::setState(QbElement::ElementState) () from /usr/lib/libQb.so.5<br />#9 0xb468663a in MultiSrcElement::setState(QbElement::ElementState) () from /usr/lib/Qb/libMultiSrc.so<br />#10 0xb4686d89 in MultiSrcElement::defaultStream(QString) () from /usr/lib/Qb/libMultiSrc.so<br />#11 0xb468c7cf in ?? () from /usr/lib/Qb/libMultiSrc.so<br />#12 0xb730628d in QMetaMethod::invoke (this=0xbfffd824, object=0x819b5d0, connectionType=Qt::DirectConnection, <br /> returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...)<br /> at kernel/qmetaobject.cpp:1664<br />#13 0xb7308909 in QMetaObject::invokeMethod (obj=0x819b5d0, member=0xb7f823f1 "defaultStream", type=<br /> Qt::DirectConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=<br /> ..., val9=...) at kernel/qmetaobject.cpp:1179<br />#14 0xb7f7032b in MediaTools::setDevice(QString) () from /usr/lib/libWebcamoid.so.5<br />#15 0xb7f6685f in MainWidget::on_btnStartStop_clicked() () from /usr/lib/libWebcamoid.so.5<br /> .<br /> .<br /> .<br />Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-42262175529841642142014-01-22T13:53:21.417-03:002014-01-22T13:53:21.417-03:00These links relates this problem with pulseaudio, ...<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713856" rel="nofollow">These</a> <a href="http://www.archivum.info/ubuntu-bugs@lists.ubuntu.com/2013-12/18661/%28Bug-1264886%29-%28NEW%29-Pulseaudio-provokes-SIGFPE-in-libavutil.html" rel="nofollow">links</a> relates this problem with pulseaudio, so maybe changing <a href="https://github.com/hipersayanX/Webcamoid/blob/master/src/mediatools.cpp#L125" rel="nofollow">these lines</a> to:<br /><br />"AudioOutput objectName='audioOutput' audioSystem='alsa',"<br />"AudioInput objectName='mic' audioSystem='alsa' !"<br /><br />could solve the problem.<br />hipersayan_xhttps://www.blogger.com/profile/04819141995596683913noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-785282892320879372014-01-22T12:04:15.289-03:002014-01-22T12:04:15.289-03:00(stating the obvious) perhaps a wrong or missing p...(stating the obvious) perhaps a wrong or missing parameter in webcamoid being passed along?Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-42765554849013754942014-01-22T01:58:35.476-03:002014-01-22T01:58:35.476-03:00mmm... that's odd, Webcamoid shares much of it...mmm... that's odd, Webcamoid shares much of its code with ffplay and ffmpeg, so this error must not happen. since the error is inside the avformat_find_stream_info() function I have no idea how to solve this right now.hipersayan_xhttps://www.blogger.com/profile/04819141995596683913noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-45933547906554780582014-01-21T13:01:12.368-03:002014-01-21T13:01:12.368-03:00$ ffplay -f video4linux2 -framerate 15 /dev/video0...$ ffplay -f video4linux2 -framerate 15 /dev/video0<br />ffplay version 2.1.2 Copyright (c) 2003-2013 the FFmpeg developers<br /> built on Jan 13 2014 21:00:22 with gcc 4.7 (SUSE Linux)<br /> configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls<br /> libavutil 52. 48.101 / 52. 48.101<br /> libavcodec 55. 39.101 / 55. 39.101<br /> libavformat 55. 19.104 / 55. 19.104<br /> libavdevice 55. 5.100 / 55. 5.100<br /> libavfilter 3. 90.100 / 3. 90.100<br /> libavresample 1. 1. 0 / 1. 1. 0<br /> libswscale 2. 5.101 / 2. 5.101<br /> libswresample 0. 17.104 / 0. 17.104<br /> libpostproc 52. 3.100 / 52. 3.100<br />[video4linux2,v4l2 @ 0xaf0006c0] The driver does not allow to change time per frame<br />Input #0, video4linux2,v4l2, from '/dev/video0':B sq= 0B f=0/0 <br /> Duration: N/A, start: 132583.744762, bitrate: N/A<br /> Stream #0:0: Video: mjpeg, yuvj422p(pc), 640x480, -2147483 kb/s, 31.25 tbr, 1000k tbn, 1000k tbc<br />[swscaler @ 0xb2da6f80] deprecated pixel format used, make sure you did set range correctly<br />132591.07 M-V: -0.005 fd= 0 aq= 0KB vq= 268KB sq= 0B f=0/0<br /><br />(.. no errors and moving video ..)Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-2612797610917987052014-01-21T12:59:17.859-03:002014-01-21T12:59:17.859-03:00funny thing, i am using suse here.
$ cat /etc/os...funny thing, i am using suse here. <br /><br />$ cat /etc/os-release<br />NAME=openSUSE<br />VERSION="12.3 (Dartmouth)"<br />VERSION_ID="12.3"<br />PRETTY_NAME="openSUSE 12.3 (Dartmouth) (i586)"<br />ID=opensuse<br />ANSI_COLOR="0;32"<br />CPE_NAME="cpe:/o:opensuse:opensuse:12.3"<br />Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-50901832444303192152014-01-21T12:55:36.400-03:002014-01-21T12:55:36.400-03:00the ffplay test works fine with the webcam that cr...the ffplay test works fine with the webcam that crashes webcamoid.Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-55733826626164727202014-01-21T00:47:54.621-03:002014-01-21T00:47:54.621-03:00Hi, lrelease path can be changed with the QMAKE_LR...Hi, <strong>lrelease</strong> path can be changed with the <strong>QMAKE_LRELEASE</strong> variable, <a href="https://github.com/hipersayanX/Webcamoid/blob/master/ports/rpm/webcamoid.spec#L114" rel="nofollow">see here</a>.<br />About the SIGFPE error, seems to be an error inside your FFmpeg libraries and not in Webcamoid. Anyway, let's assume that <em>/dev/video0</em> is your non working webcam, does this command works for you?:<br /><br />ffplay -f video4linux2 -framerate 15 /dev/video0<br />hipersayan_xhttps://www.blogger.com/profile/04819141995596683913noreply@blogger.comtag:blogger.com,1999:blog-1801476278712273225.post-18943447001439566972014-01-20T22:55:40.952-03:002014-01-20T22:55:40.952-03:00i've built webcamoid from source (v5) and it i...i've built webcamoid from source (v5) and it insists on there being /usr/bin/lrelease-qt4 when my current Qt4 install has only /usr/bin/lrelease .. i fixed this with a symlink but why is this command name hardcoded instead of discovered?<br />webcamoid is working fine with the webcam supplied with my Public Lab Desktop Spectrometry Kit ( http://www.publiclab.org/wiki/dsk ).<br />i have a Creative Webcam Live!, too, but webcamoid crashes when i try to use it:<br />[Thread debugging using libthread_db enabled]<br />Using host libthread_db library "/lib/libthread_db.so.1".<br />[New Thread 0xb214eb40 (LWP 2542)]<br /><br />Program received signal SIGFPE, Arithmetic exception.<br />0xb337fdeb in ?? () from /usr/lib/libavutil.so.52<br /><br />the stack trace looks like this:<br />(gdb) bt<br />#0 0xb337fdeb in ?? () from /usr/lib/libavutil.so.52<br />#1 0xb335e58c in av_rescale_rnd () from /usr/lib/libavutil.so.52<br />#2 0xb335e66f in av_rescale_q () from /usr/lib/libavutil.so.52<br />#3 0xb464480b in ?? () from /usr/lib/libavdevice.so.55<br />#4 0xb44ca867 in ?? () from /usr/lib/libavformat.so.55<br />#5 0xb44cd28e in ?? () from /usr/lib/libavformat.so.55<br />#6 0xb44d1015 in avformat_find_stream_info () from /usr/lib/libavformat.so.55<br />#7 0xb4687bac in MultiSrcElement::init() () from /usr/lib/Qb/libMultiSrc.so<br />#8 0xb7f9d42a in QbElement::setState(QbElement::ElementState) () from /usr/lib/libQb.so.5<br />#9 0xb468663a in MultiSrcElement::setState(QbElement::ElementState) () from /usr/lib/Qb/libMultiSrc.so<br />#10 0xb4686d89 in MultiSrcElement::defaultStream(QString) () from /usr/lib/Qb/libMultiSrc.so<br />#11 0xb468c7cf in ?? () from /usr/lib/Qb/libMultiSrc.so<br />#12 0xb730628d in QMetaMethod::invoke (this=0xbfffd824, object=0x819b548, connectionType=Qt::DirectConnection, <br /> returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...)<br /> at kernel/qmetaobject.cpp:1664<br />#13 0xb7308909 in QMetaObject::invokeMethod (obj=0x819b548, member=0xb7f823f1 "defaultStream", type=<br /> Qt::DirectConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=<br /> ..., val9=...) at kernel/qmetaobject.cpp:1179<br />#14 0xb7f7032b in MediaTools::setDevice(QString) () from /usr/lib/libWebcamoid.so.5<br />#15 0xb7f6685f in MainWidget::on_btnStartStop_clicked() () from /usr/lib/libWebcamoid.so.5<br />#16 0xb7f7f494 in ?? () from /usr/lib/libWebcamoid.so.5<br />#17 0xb7f7f5ac in MainWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libWebcamoid.so.5<br />#18 0xb7304535 in metacall (argv=0xbfffdef8, idx=42, cl=QMetaObject::InvokeMetaMethod, object=0x0)<br /> at kernel/qmetaobject.cpp:245<br /> .<br /> .<br /> .<br />Anonymoushttps://www.blogger.com/profile/03450534203318489841noreply@blogger.com