<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello<br>
<br>
I am trying to play the audio and the video from a mp4 file. If I run
the following line:<br>
<br>
gst-launch -vvvvv --gst-debug-level=2 playbin
uri=<a class="moz-txt-link-freetext" href="file:///">file:///</a><path_to_mp4_file><br>
<br>
Then it plays the file's audio. I'm not putting the video anywhere, so
I can't see if it is playing or not, but I assume it is based on the
debug output. <br>
<br>
If I do the following line:<br>
<br>
gst-launch -vvv --gst-debug-level=2 filesrc
location=<path_to_mp4_file> ! decodebin2 name=decoder decoder. !
audioconvert ! audioresample ! osssink decoder. ! ffmpegcolorspace !
xvimagesink<br>
<br>
It hangs at:<br>
<br>
Setting pipeline to PAUSED ..<br>
/GstPipeline:pipeline0/GstDecodeBin2:decoder/GstTypeFindElement:typefind.GstPad:src:
caps = audio/x-m4a<br>
Pipeline is PREROLLING ...<br>
<audio debug output snipped><br>
<br>
I need to open this file in C code, and grab access to the buffers. I
was planning on using appsink to do it, but any time I pass in a video
sink to the pipeline, it just hangs, never playing the audio, or moving
forward. As I said, I need access to the video buffer, so either I
need a way to grab it from the pipeline created from gst_parse_launch,
or I was thinking that if I set up the pipeline myself, I could use a
handoff signal on the last video sink, or mayber use the appsink
methods. <br>
<br>
I have a feeling that I am missing something simple, and was hoping
someone could point that out. <br>
<br>
Thanks,<br>
Rodney<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.2 (Unix)">
<meta name="AUTHOR" content="Rodney Dowdall">
<meta name="CREATED" content="20100531;22163400">
<meta name="CHANGEDBY" content="Rodney Dowdall">
<meta name="CHANGED" content="20100531;22324000">
<style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
                A:link { so-language: zxx }
        -</style><br>
<p><font face="Arial, sans-serif"><font style="font-size: 10pt;"
size="2"><b>Rodney
Dowdall<br>
</b></font></font><font face="Arial, sans-serif"><font
style="font-size: 10pt;" size="2"><b>Crank
Software Inc.<br>
</b></font></font><font color="#b4d023"><font face="Arial, sans-serif"><font
style="font-size: 10pt;" size="2"><span lang="en-US"><b>Office</b></span></font></font></font><font
face="Arial, sans-serif"><font style="font-size: 10pt;" size="2"><span
lang="en-US">:
613-595-1999<br>
</span></font></font><font color="#b4d023"><font
face="Arial, sans-serif"><font style="font-size: 10pt;" size="2"><span
lang="en-US"><b>Online</b></span></font></font></font><font
face="Arial, sans-serif"><font style="font-size: 10pt;" size="2"><span
lang="en-US">:
</span></font></font><font color="#0000ff"><font
face="Calibri, sans-serif"><font style="font-size: 10pt;" size="2"><span
lang="en-US"><a href="http://www.cranksoftware.com/">www.cranksoftware.com</a><br>
</span></font></font></font><font color="#b4d023"><font
face="Arial, sans-serif"><font style="font-size: 10pt;" size="2"><span
lang="en-US"><b>Check
out</b></span></font></font></font><font face="Arial, sans-serif"><font
style="font-size: 10pt;" size="2"><span lang="en-US">:
</span></font></font><a href="http://cranksoftware.com/blog/"><font
color="#0000ff"><font face="Calibri, sans-serif"><font
style="font-size: 10pt;" size="2"><span lang="en-US">Crank
Software’s Blog</span></font></font></font></a></p>
<p style="margin-bottom: 0cm;"><br>
</p>
</div>
</body>
</html>