<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <span class="Apple-style-span" style="border-collapse: separate;
      color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; font-size: medium;"><span
        class="Apple-style-span" style="border-collapse: collapse;
        font-family: Verdana,Geneva,Helvetica,Arial,sans-serif;
        font-size: 13px;"><span>Matt, I have tried finishing the
          pipeline to account for audio and video just as you have
          suggested already and I get the same error.<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>Tim, I am<span class="Apple-converted-space">&nbsp;</span><b
            class="highlight" style="background-color: rgb(255, 255,
            102);">not</b><span class="Apple-converted-space">&nbsp;</span>exactly
          sure how to post a bug about gst-plugins-ugly on bugzilla, but
          below this is the standard output, and the error output of my
          pipeline if you want to add the bug to bugzilla yourself.<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>Thanks,<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>William<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>Output:<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <br>
        <span>Setting pipeline to PAUSED ...<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>Pipeline is PREROLLING ...<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:sink:
          caps = video/x-theora, width=(int)720, height=(int)400,
          framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:src:
          caps = video/x-raw-yuv, format=(fourcc)I420,
          framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1,
          width=(int)720, height=(int)400<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src:
          caps = video/x-raw-yuv, format=(fourcc)I420,
          framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1,
          width=(int)720, height=(int)400<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink:
          caps = video/x-raw-yuv, format=(fourcc)I420,
          framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1,
          width=(int)720, height=(int)400<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>ERROR: from element
          /GstPipeline:pipeline0/GstX264Enc:x264enc0: Could<span
            class="Apple-converted-space">&nbsp;</span><b class="highlight"
            style="background-color: rgb(255, 255, 102);">not</b><span
            class="Apple-converted-space">&nbsp;</span>encode stream.<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src:
          caps = video/x-h264, width=(int)720, height=(int)400,
          framerate=(fraction)25/1, stream-format=(string)avc<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>Additional debug info:<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>..\..\..\..\..\Source\gst-plugins-ugly\ext\x264\gstx264enc.c(737):
          gst_x264_enc_header_buf ():
          /GstPipeline:pipeline0/GstX264Enc:x264enc0:<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>Unexpected x264 header.<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>Setting pipeline to NULL ...<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink:
          caps = video/x-raw-yuv, format=(fourcc)I420,
          framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1,
          width=(int)720, height=(int)400<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps =
          NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:src:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:sink:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstOggDemux:oggdemux0.GstOggPad:serial_0dcdfd30:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>/GstPipeline:pipeline0/GstOggDemux:oggdemux0.GstOggPad:serial_6c22f681:
          caps = NULL<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>Freeing pipeline ...<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>Error Output:<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>** (gst-launch-0.10:1208): CRITICAL **: file
          ..\..\..\Source\gstreamer\gst\gstinfo.c: line 470: assertion
          `category != NULL' failed<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>** (gst-launch-0.10:1208): CRITICAL **: file
          ..\..\..\Source\gstreamer\gst\gstinfo.c: line 470: assertion
          `category != NULL' failed<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>** (gst-launch-0.10:1208): CRITICAL **: file
          ..\..\..\Source\gstreamer\gst\gstinfo.c: line 470: assertion
          `category != NULL' failed<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>** (gst-launch-0.10:1208): CRITICAL **: file
          ..\..\..\Source\gstreamer\gst\gstinfo.c: line 470: assertion
          `category != NULL' failed<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>0:00:00.182018000 &nbsp;1208 &nbsp; 016C2E20 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;using SAR=1/1<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.184018000 &nbsp;1208 &nbsp; 016C2E20 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;using cpu capabilities: MMX2
          SSE2Fast SSSE3 Cache64<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.209021000 &nbsp;1208 &nbsp; 016C2E20 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;profile Main, level 3.0<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.209021000 &nbsp;1208 &nbsp; 016C2E20 WARN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc
          gstx264enc.c:737:gst_x264_enc_header_buf:&lt;x264enc0&gt;&nbsp;error:
          Unexpected x264 header.<span class="Apple-converted-space">&nbsp;</span></span><br>
        <span>ERROR: pipeline doesn't want to preroll.<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <span>0:00:00.221022000 &nbsp;1208 &nbsp; 006F07D8 LOG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          &nbsp;x264enc .:0::&lt;x264enc0&gt;&nbsp;frame= &nbsp; 0 QP=10.00 NAL=3
          Slice:I Poc:0 &nbsp; I:1125 P:0 &nbsp; &nbsp;SKIP:0 &nbsp; &nbsp;size=783 bytes<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.222022000 &nbsp;1208 &nbsp; 006F07D8 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;frame I:1 &nbsp; &nbsp; Avg QP:10.00
          &nbsp;size: &nbsp; 783<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.222022000 &nbsp;1208 &nbsp; 006F07D8 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;mb I &nbsp;I16..4: 99.9% &nbsp;0.0% &nbsp;0.1%<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.222022000 &nbsp;1208 &nbsp; 006F07D8 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;coded y,uvDC,uvAC intra: 0.0%
          0.0% 0.0%<span class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.222022000 &nbsp;1208 &nbsp; 006F07D8 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;i16 v,h,dc,p: 96% &nbsp;0% &nbsp;4% &nbsp;0%<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.222022000 &nbsp;1208 &nbsp; 006F07D8 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:
          &nbsp;0% &nbsp;0% 100% &nbsp;0% &nbsp;0% &nbsp;0% &nbsp;0% &nbsp;0% &nbsp;0%<span
            class="Apple-converted-space">&nbsp;</span></span><br>
        <br>
        <span>0:00:00.223022000 &nbsp;1208 &nbsp; 006F07D8 INFO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
          x264enc .:0::&lt;x264enc0&gt;&nbsp;kb/s:156.60<span
            class="Apple-converted-space">&nbsp;</span></span><br>
      </span></span><br>
    <br>
    <br>
    On 6/7/2011 1:56 PM, Matt Veenstra wrote:
    <blockquote
      cite="mid:BANLkTim8S7M8VEf1UkRqOSR2BqXmBBWzwg@mail.gmail.com"
      type="cite">
      <pre wrap="">Try putting in a "queue" after "theoradec".  All of my pipelines do
that.  Not sure if this is a requirement and would cause this error or
not.

If your source has audio you might need to deal with this stream as
well.  I forget the details when not using "gnolin".  So something
like this...
gst-launch filesrc location="c:\\video(low_res).ogg" ! oggdemux name="demux"
.demux ! theoradec ! ffmpegcolorspace ! x264enc ! qtmux name="mux" !
filesink location="c:\\video(blah).mp4
.demux ! vorbisdec ! audioconvert ! faac ! .mux

Cheers,
Matt

On Tue, Jun 7, 2011 at 11:42 AM, William Metcalf <a class="moz-txt-link-rfc2396E" href="mailto:wmetcalf@niftytv.com">&lt;wmetcalf@niftytv.com&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Running with videoparse did not solve the problem.&nbsp; When I run it with the
-v option, I get the following output.

C:\Users\wmetcalf&gt;gst-launch -v filesrc location="c:\\video(low_res).ogg" !
oggdemux ! theoradec ! ffmpegcolorspace ! x264enc ! qtmux ! filesink
location="c:\\video(blah).mp4
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:sink: caps =
video/x-theora, width=(int)720, height=(int)400, framerate=(fraction)25/1,
pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1,
pixel-aspect-ratio=(fraction)1/1, width=(int)720, height=(int)400
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1,
pixel-aspect-ratio=(fraction)1/1, width=(int)720, height=(int)400
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps =
video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1,
pixel-aspect-ratio=(fraction)1/1, width=(int)720, height=(int)400
ERROR: from element /GstPipeline:pipeline0/GstX264Enc:x264enc0: Could not
encode stream.
Additional debug info:
..\..\..\..\..\Source\gst-plugins-ugly\ext\x264\gstx264enc.c(737):
gst_x264_enc_header_buf (): /GstPipeline:pipeline0/GstX264Enc:x264enc0:
Unexpected x264 header.
ERROR: pipeline doesn't want to preroll.
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = video/x-h264,
width=(int)720, height=(int)400, framerate=(fraction)25/1,
stream-format=(string)avc
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps =
video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1,
pixel-aspect-ratio=(fraction)1/1, width=(int)720, height=(int)400
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstOggDemux:oggdemux0.GstOggPad:serial_0dcdfd30: caps
= NULL
/GstPipeline:pipeline0/GstOggDemux:oggdemux0.GstOggPad:serial_6c22f681: caps
= NULL
Freeing pipeline ...


It seems to me like the caps are correct to my understanding.&nbsp; The sink of
the decoder is theora, and it outputs raw.&nbsp; FFMPCS takes in raw and ouputs
raw, and x264enc takes in raw and outputs h264.&nbsp; Can you see something else
that is wrong or is my understanding incorrect?

Thank you,
William

On 6/7/2011 1:31 PM, sudarshan bisht wrote:

You can try using videoparse before x264enc. And use -v option with
gst-launch to get some caps related logs.


On Tue, Jun 7, 2011 at 6:33 PM, William Metcalf <a class="moz-txt-link-rfc2396E" href="mailto:wmetcalf@niftytv.com">&lt;wmetcalf@niftytv.com&gt;</a>
wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
I have a pipeline I am using to convert an .ogg file to an .mp4. &nbsp;I am
currently using ffenc_mpeg4 to encode the video, and this encoder sets the
video format as .mp4v. &nbsp;I need my video to be encoded as AVC so I am trying
to use x264enc instead. &nbsp;However every time I try to use x264enc, I get the
error "failed to encode stream". &nbsp;Below is a sample pipeline I am using in
my converter. &nbsp;Can any one tell my why x264enc is failing to encode the
stream? &nbsp;Thank you in advance.

gst-launch filesrc location="c:\\video(low_res).ogg" ! oggdemux !
theoradec ! ffmpegcolorspace ! x264enc ! qtmux ! filesink
location="c:\\video(blah).mp4
_______________________________________________
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>
        <pre wrap="">


--
Regards,

Sudarshan Bisht

_______________________________________________
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>


_______________________________________________
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>
      <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>