Closed adielfernandez closed 8 years ago
no idea of what might be going on but you can enable gstreamer debug traces by defining the environment variable GST_DEBUG, like:
export GST_DEBUG=2
make run
or however you are running your app
usually you have to go to 4 to actually see anything meaningful but it's super verbose so you'll need to redirect the output to a file to later go through it to find the problem
Ok, trying to compile via command line to get the extra debug info but running into this error:
Compiling Bulk_Recorder for Release HOST_OS=Darwin /Users/AdielsMac/Documents/Creative_Work/AVC/ofx_v0.9.1/libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk:164: * cannot find addon source file ../../../libs/openFrameworks/video/ofGstUtils.h. Stop. make: * [Release] Error 2
The file IS there in the correct location and it builds fine from within XCode. Not sure why it's not finding it now. Do I need to update some header search paths somewhere?
it should work but you don't need to compile from the command line to test this. just run the compiled aplicaiton from the command line
Wow, you were right. GSTDEBUG=4 is just a flood. I brought it down to level 3 and found a few errors that might shed some light on some issues(?). Aside from tons of "unhandled messages from ____" logs, these stood out:
0:00:00.273187000 [333m 860[00m 0x7fe2cb07c280 [32;01mFIXME [00m [00;04m default gstutils.c:3766:gchar *gst_pad_create_stream_id_internal(GstPad *, GstElement *, const gchar *):<fakesrc0:src>[00m Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.435724000 [333m 860[00m 0x7fe2c89d8b20 [32;01mFIXME [00m [00m videodecoder gstvideodecoder.c:1057:GstFlowReturn gst_video_decoder_drain_out(GstVideoDecoder *, gboolean):<vtdechw0>[00m Sub-class should implement drain()
0:00:00.435926000 [333m 860[00m 0x7fe2c89d8b20 [32;01mFIXME [00m [00m videodecoder gstvideodecoder.c:1057:GstFlowReturn gst_video_decoder_drain_out(GstVideoDecoder *, gboolean):<vtdechw0>[00m Sub-class should implement drain()
0:00:00.448488000 [333m 860[00m 0x7fe2c89d8b20 [33;01mWARN [00m [00m vtdec vtdec.c:530:gst_vtdec_create_session:<vtdechw0>[00m error: VTDecompressionSessionCreate returned -12913
[ error ] ofGstUtils: gstHandleMessage(): embedded video playback halted for plugin, module vtdechw0 reported: GStreamer encountered a general resource error.
DEBUG level 4 is pretty dense so I'm trying to go through it to see if there's anything else that could be a flag. Below is a link to some errors that popped out at me but I'm continuing to look through things.
A lot of the errors look the same as issue #14 so maybe (hopefully) they're the same? Will post those errors to that issue shortly.
Issue here is the same as issue #14 so check there for resolution if you're getting the "playback halted for plugin, module vtdechw0, general resource error" problem.
Hey Arturo,
I'm pulling an rtsp feed from a FLIR TCX thermal camera by creating a custom pipeline with the following calls:
Sometimes this works fine but many times it does not and I get some obscure errors that I just can't get to the bottom of:
When I can, power cycling my computer, the IP camera I'm trying to access AND my router will make things work, but after a while it goes back to the above error.
Not sure if this helps but I uncommented a line from ofGstUtils.cpp to get more detailed error logging and got this:
Any ideas?