<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Nicholas,<div><br></div><div>Thanks for the tips.</div><div><br></div><div>The errors were coming from</div><div><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; "> g_object_set( </span><span style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135); ">m_GstPipeline</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; ">, </span><span style="font-family: Menlo; font-size: 11px; color: rgb(209, 47, 27); ">"uri"</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; ">, strFilename.c_str(), </span><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162); ">NULL</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; "> );</span><br><div><div>and</div><div><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; "> g_object_get (</span><span style="font-family: Menlo; font-size: 11px; color: rgb(120, 73, 42); ">G_OBJECT</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; "> (</span><span style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135); ">m_GstPipeline</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; ">), </span><span style="font-family: Menlo; font-size: 11px; color: rgb(209, 47, 27); ">"name"</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; ">, &name, </span><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162); ">NULL</span><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; ">);</span></div><div><span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px; "><br></span></div><div>I tried your suggestion of using the installer from <a href="http://gstreamer.freedesktop.org">gstreamer.freedesktop.org</a>.</div><div>Now the app uses the header and links with all the files from /Library/Frameworks/GStreamer.framework</div><div>It works much better. It gets through all the code from the previous message,</div><div>but now the problem is that it detects an audio stream, but <b>no video streams</b>.</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> // Open Uri</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: #3d1d81">g_object_set</span>( <span style="color: #4f8187">m_GstPipeline</span>, <span style="color: #d12f1b">"uri"</span>, strFilename.<span style="color: #3d1d81">c_str</span>(), <span style="color: #bb2ca2">NULL</span> ); // works now!</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "> </p><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: #703daa">gint</span> flags;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: #000000"> </span>/* Set flags to show Audio and Video but ignore Subtitles */</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: #3d1d81">g_object_get</span> (<span style="color: #4f8187">m_GstPipeline</span>, <span style="color: #d12f1b">"flags"</span>, &flags, <span style="color: #bb2ca2">NULL</span>);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(49, 89, 93); "><span style="color: #000000"> flags |= </span>GST_PLAY_FLAG_VIDEO<span style="color: #000000"> | </span>GST_PLAY_FLAG_AUDIO<span style="color: #000000">;</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(49, 89, 93); "><span style="color: #000000"> flags &= </span>~GST_PLAY_FLAG_TEXT<span style="color: #000000">;</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: #3d1d81">g_object_set</span> (<span style="color: #4f8187">m_GstPipeline</span>, <span style="color: #d12f1b">"flags"</span>, flags, <span style="color: #bb2ca2">NULL</span>);</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "> <br class="webkit-block-placeholder"></p><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: #000000"> </span>// Number of Video Streams</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(61, 29, 129); ">g_object_get</span><span style="color: rgb(0, 0, 0); ">( </span><font color="#4f8187">m_GstPipeline</font><span style="color: rgb(0, 0, 0); ">, </span><span style="color: rgb(209, 47, 27); ">"n-video"</span><span style="color: rgb(0, 0, 0); ">, &</span><font color="#4f8187">m_iNumVideoStreams</font><span style="color: rgb(0, 0, 0); ">, </span><span style="color: rgb(187, 44, 162); ">NULL</span><span style="color: rgb(0, 0, 0); "> ); // returns 0 video streams</span></div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span>// Number of Audio Streams</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(61, 29, 129); ">g_object_get</span><span style="color: rgb(0, 0, 0); ">( </span><font color="#4f8187">m_GstPipeline</font><span style="color: rgb(0, 0, 0); ">, </span><span style="color: rgb(209, 47, 27); ">"n-audio"</span><span style="color: rgb(0, 0, 0); ">, &</span><font color="#4f8187">m_iNumAudioStreams</font><span style="color: rgb(0, 0, 0); ">, </span><span style="color: rgb(187, 44, 162); ">NULL</span><span style="color: rgb(0, 0, 0); "> ); // returns 1 audio stream</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "><br></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; "><br></div><div>The file definitely has video (H-264 encoding). I am able to run gst-launch-1.0 -v playbin uri=file://…myVideo.mg4<br><br></div><div>When I use the macports gst-launch-1.0, I actually get a video player showing up using XQuartz, when I use the free desktop gst-launch-1.0 (in /Library/Frameworks/GStreamer.framework/Commands), it seems to play for the correct amount of time, but no video or audio shows up (but no errors either) (I made sure there were no macports references in he path).</div><div><br></div><div>It seems to be finding the plugins fine, but for some reason, the app is not detecting the video, and no errors are reported.</div><div><br></div><div>The 0.10 version of the app was using this to configure the pipeline:</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span>GstCaps* caps = gst_caps_new_simple( <span style="color: #d12f1b">"video/x-raw-rgb"</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"bpp"</span>, G_TYPE_INT, <span style="color: #272ad8">24</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"depth"</span>, G_TYPE_INT, <span style="color: #272ad8">24</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"endianness"</span>, G_TYPE_INT,<span style="color: #272ad8">4321</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"red_mask"</span>, G_TYPE_INT,<span style="color: #272ad8">0xff0000</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"green_mask"</span>, G_TYPE_INT,<span style="color: #272ad8">0x00ff00</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"blue_mask"</span>, G_TYPE_INT,<span style="color: #272ad8">0x0000ff</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #d12f1b">"alpha_mask"</span>, G_TYPE_INT,<span style="color: #272ad8">0x000000ff</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #bb2ca2">NULL</span> );</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(120, 73, 42); "><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, 29, 129); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span>gst_app_sink_set_caps<span style="color: #000000">( </span><span style="color: #78492a">GST_APP_SINK</span><span style="color: #000000">( </span><span style="color: #4f8187">m_GstVideoSink</span><span style="color: #000000"> ), caps );</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, 29, 129); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span>gst_caps_unref<span style="color: #000000">( caps );</span></div></div><div><span style="color: #000000"><br></span></div><div><br></div><div>I changed the caps to this according to the porting to 1.0 guide:</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(120, 73, 42); "><span style="color: rgb(0, 0, 0); "><span class="Apple-tab-span" style="white-space: pre; "> </span></span><span style="color: rgb(112, 61, 170); ">GstCaps</span><span style="color: rgb(0, 0, 0); ">* caps = </span><span style="color: rgb(61, 29, 129); ">gst_caps_new_simple</span><span style="color: rgb(0, 0, 0); ">( </span><span style="color: rgb(209, 47, 27); ">"video/x-raw"</span><span style="color: rgb(0, 0, 0); ">,</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(209, 47, 27); ">"format"</span>, <span style="color: rgb(120, 73, 42); ">G_TYPE_STRING</span>, <span style="color: rgb(209, 47, 27); ">"RGB"</span>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(0, 132, 0); ">// "bpp", G_TYPE_INT, 24,</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(0, 132, 0); ">// "depth", G_TYPE_INT, 24,</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(0, 132, 0); ">// "endianness", G_TYPE_INT,4321,</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: rgb(0, 0, 0); "> </span>// "red_mask", G_TYPE_INT,0xff0000,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: rgb(0, 0, 0); "> </span>// "green_mask", G_TYPE_INT,0x00ff00,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: rgb(0, 0, 0); "> </span>// "blue_mask", G_TYPE_INT,0x0000ff,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0); "><span style="color: rgb(0, 0, 0); "> </span>// "alpha_mask", G_TYPE_INT,0x000000ff,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; "> <span style="color: rgb(187, 44, 162); ">NULL</span> );</div></div><div><br></div><div>Could this be where the problem is? </div><div>The purpose of this app is to render the video to an OpenGL texture, so I would like GStreamer to provide RGB image buffers that I can transfer to OpenGL texture. </div><div><br></div><div>Thanks for the help!</div><div><br></div><div>-Henry</div><div><br></div><div>On Jan 28, 2014, at 9:20 PM, Nicolas Dufresne <<a href="mailto:nicolas.dufresne@collabora.com">nicolas.dufresne@collabora.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Le mardi 28 janvier 2014 ŕ 18:47 -0500, Henry Kaufman a écrit :<br><blockquote type="cite">(process:90553): GLib-CRITICAL **: gpointer<br>g_datalist_id_dup_data(GData **, GQuark, GDuplicateFunc, gpointer):<br>assertion 'key_id != 0' failed<br></blockquote><br>At this point, I'd make sure it's all has debug symbols, set env<br>G_DEBUG=fatal_criticals and run this inside a debugger to see where that<br>assertion pops. Would probably help understand and debug what is going<br>on.<br><br>Meanwhile you may have more luck using pre-built of GStreamer for OSX,<br><a href="http://gstreamer.freedesktop.org/data/pkg/osx/1.2.2/">http://gstreamer.freedesktop.org/data/pkg/osx/1.2.2/</a><br><br>cheers,<br>Nicolas<br>_______________________________________________<br>gstreamer-devel mailing list<br>gstreamer-devel@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br></blockquote></div><br></div></body></html>