<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 06/05/2013 09:29 PM, Oly wrote:<br>
    </div>
    <blockquote
cite="mid:CAPZowhzOpZ7trjEv=Jpruz40pzX+2wX2C4Gr=k_uZ79_sGA32A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Thanksvfor the suggestions Stefan, i have been playing
              around with caps and pads but not getting very far,
              thought I would post the older working but incorrectly
              versions here.<br>
              <br>
              <a moz-do-not-send="true"
                href="http://pastebin.com/Wm3QqV5m">http://pastebin.com/Wm3QqV5m</a><br>
              <a moz-do-not-send="true"
                href="http://pastebin.com/5jC02KRp">http://pastebin.com/5jC02KRp</a><br>
              <br>
            </div>
            first is the write raw data file the second is the read, my
            understanding is i need to create a caps and pad it to the
            pipeline, then the read should play it correctly.<br>
          </div>
        </div>
      </div>
    </blockquote>
    You can use -v on gst-launch to see the caps that it when decoding:<br>
     gst-launch-1.0 2 -v filesrc location=/path/to/file.wav ! wavparse !
    fakesink<br>
    Setting pipeline to PAUSED ...<br>
    Pipeline is PREROLLING ...<br>
    /GstPipeline:pipeline0/GstWavParse:wavparse0.GstPad:src: caps =
    audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
    channels=(int)2, channel-mask=(bitmask)0x0000000000000003,
    rate=(int)44100<br>
    /GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps =
    audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
    channels=(int)2, channel-mask=(bitmask)0x0000000000000003,
    rate=(int)44100<br>
    <br>
    <blockquote
cite="mid:CAPZowhzOpZ7trjEv=Jpruz40pzX+2wX2C4Gr=k_uZ79_sGA32A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <br>
          </div>
          there is also extra debug code in this that generates the dot
          files and displays them, the code is written using gstremer
          1.0 framework with python.<br>
          <br>
        </div>
        I am looking to make some working examples out of my programs
        for others to use, because there is a lack of examples on the
        newer 1.0 series so would be nice to make some available, with
        this in mind if i am doing anything very wrong in my pipelines
        please let me know so i dont parse on bad examples.<br>
        <br>
        <br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Sat, Jun 1, 2013 at 6:54 PM, Stefan
          Sauer <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="im">
                <div>On 05/30/2013 11:56 PM, Oly wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>
                      <div>
                        <div>
                          <div>I have bee experimenting with gstreamer,
                            mainly looking at ways to speed up audio
                            mixing.<br>
                            <br>
                          </div>
                          I have created this pipeline filesrc >
                          wavparse > filesink which creates a file
                          now i am trying to play the file using filesrc
                          > audioparse > alsasink.<br>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              the first pipeline creates a raw audio file without and
              metadata. Thus you need to check the negotiated caps (e.g.
              signed-16bit, 1 channel, 48khz) and use a caps filter on
              the 2nd pipeline after filesrc to add the format info
              again. <br>
              <div class="im">
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>
                      <div>
                        <div> <br>
                        </div>
                        The problem is the ouput sound is a beep and not
                        the original sound, if i parse the first pipline
                        to alsasink it plays fine however, what am i
                        missing ?<br>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              if you give some more context we might be able to suggest
              you alternative approaches.<br>
              <br>
              Stefan<br>
              <blockquote type="cite">
                <div class="im">
                  <div dir="ltr">
                    <div>
                      <div><br>
                      </div>
                      Basically i am looking at playing, seeking and
                      mixing audio together with as little delay as
                      possible, so any suggestions on pipelines for this
                      would also be appreciated, but i would like to
                      understand what may be the cause with the second
                      program playing a different noise.<br>
                      <br>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <br>
                </div>
                <pre>_______________________________________________
gstreamer-devel mailing list
<a moz-do-not-send="true" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a moz-do-not-send="true" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            gstreamer-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
              target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>