<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Running with videoparse did not solve the problem. When I run it
with the -v option, I get the following output.<br>
<br>
C:\Users\wmetcalf>gst-launch -v filesrc
location="c:\\video(low_res).ogg" ! oggdemux ! theoradec !
ffmpegcolorspace ! x264enc ! qtmux ! filesink
location="c:\\video(blah).mp4<br>
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
/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<br>
/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<br>
/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<br>
/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<br>
ERROR: from element /GstPipeline:pipeline0/GstX264Enc:x264enc0:
Could not encode stream.<br>
Additional debug info:<br>
..\..\..\..\..\Source\gst-plugins-ugly\ext\x264\gstx264enc.c(737):
gst_x264_enc_header_buf ():
/GstPipeline:pipeline0/GstX264Enc:x264enc0:<br>
Unexpected x264 header.<br>
ERROR: pipeline doesn't want to preroll.<br>
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps =
video/x-h264, width=(int)720, height=(int)400,
framerate=(fraction)25/1, stream-format=(string)avc<br>
/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<br>
Setting pipeline to NULL ...<br>
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = NULL<br>
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = NULL<br>
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = NULL<br>
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps =
NULL<br>
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps =
NULL<br>
/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:src: caps =
NULL<br>
/GstPipeline:pipeline0/GstTheoraDec:theoradec0.GstPad:sink: caps =
NULL<br>
/GstPipeline:pipeline0/GstOggDemux:oggdemux0.GstOggPad:serial_0dcdfd30:
caps = NULL<br>
/GstPipeline:pipeline0/GstOggDemux:oggdemux0.GstOggPad:serial_6c22f681:
caps = NULL<br>
Freeing pipeline ...<br>
<br>
<br>
It seems to me like the caps are correct to my understanding. The
sink of the decoder is theora, and it outputs raw. FFMPCS takes in
raw and ouputs raw, and x264enc takes in raw and outputs h264. Can
you see something else that is wrong or is my understanding
incorrect?<br>
<br>
Thank you,<br>
William<br>
<br>
On 6/7/2011 1:31 PM, sudarshan bisht wrote:
<blockquote
cite="mid:BANLkTimM7psFS8NYx2J7qL9isdGQaXfPuw@mail.gmail.com"
type="cite">You can try using videoparse before x264enc. And use
-v option with gst-launch to get some caps related logs.
<div><br>
</div>
<div><br>
<br>
<div class="gmail_quote">On Tue, Jun 7, 2011 at 6:33 PM, William
Metcalf <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:wmetcalf@niftytv.com">wmetcalf@niftytv.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">I have a pipeline I am using to convert
an .ogg file to an .mp4. I am currently using ffenc_mpeg4
to encode the video, and this encoder sets the video format
as .mp4v. I need my video to be encoded as AVC so I am
trying to use x264enc instead. However every time I try to
use x264enc, I get the error "failed to encode stream".
Below is a sample pipeline I am using in my converter. Can
any one tell my why x264enc is failing to encode the stream?
Thank you in advance.<br>
<br>
gst-launch filesrc location="c:\\video(low_res).ogg" !
oggdemux ! theoradec ! ffmpegcolorspace ! x264enc ! qtmux !
filesink location="c:\\video(blah).mp4<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:gstreamer-devel@lists.freedesktop.org"
target="_blank">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>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Regards,<br>
<br>
Sudarshan Bisht<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>