h.264 encoding using x264 and file writing to local disk

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

h.264 encoding using x264 and file writing to local disk

faisal
Hi experts,

As I am new to gstreamer, so some very basic level quireies are here.

At the moment I want to make a small application whose input is a YUV I420 stream from a local disk. Application then encode it to h.264 and then write back to local file system. For this I have installed gst-plugins-ugly for x264enc which is successfully installed in my system, my application can make all the elements successfully.

But I am receiving the following error while I launch my application.
/***/
pipeline: filesrc location=akiyo_qcif.yuv blocksize=38016 ! videoparser width=176 height=144 framerate=(fraction)15/1 format=(fourcc)I420 ! x264enc ! filesink location=test.264
Now playing: akiyo_qcif.yuv
Running...
Error: Internal data flow error.
Returned, stopping playback
Deleting pipeline
/***/

please find the attached file for code reference.

Thanks in advance.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

testPlayer.c (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: h.264 encoding using x264 and file writing to local disk

Sudarshan Bisht
Is there any plugin named "videoparser " ? Or is it a plugin written by you ? There is h264parse also which can be used here. 
 

On Sun, May 1, 2011 at 1:05 AM, Faisal Mehmood <[hidden email]> wrote:
Hi experts,

As I am new to gstreamer, so some very basic level quireies are here.

At the moment I want to make a small application whose input is a YUV I420 stream from a local disk. Application then encode it to h.264 and then write back to local file system. For this I have installed gst-plugins-ugly for x264enc which is successfully installed in my system, my application can make all the elements successfully.

But I am receiving the following error while I launch my application.
/***/
pipeline: filesrc location=akiyo_qcif.yuv blocksize=38016 ! videoparser width=176 height=144 framerate=(fraction)15/1 format=(fourcc)I420 ! x264enc ! filesink location=test.264
Now playing: akiyo_qcif.yuv
Running...
Error: Internal data flow error.
Returned, stopping playback
Deleting pipeline
/***/

please find the attached file for code reference.

Thanks in advance.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: h.264 encoding using x264 and file writing to local disk

faisal
thanks for your response.

in fact I was trying different things to solve this issue. The attached file is different . But I get the same error. I think I dont need to use h264parser because my input file is raw YUV sequence. I am using the following string as input to gst_parse_launch.

filesrc location=akiyo_qcif.yuv blocksize=38016 ! video/x-raw-yuv, width=176, height=144, framerate=(fraction)15/1, format=(fourcc)I420 ! x264enc ! filesink location=test.264

thanks

On Sun, May 1, 2011 at 2:14 AM, sudarshan bisht <[hidden email]> wrote:
Is there any plugin named "videoparser " ? Or is it a plugin written by you ? There is h264parse also which can be used here. 
 

On Sun, May 1, 2011 at 1:05 AM, Faisal Mehmood <[hidden email]> wrote:
Hi experts,

As I am new to gstreamer, so some very basic level quireies are here.

At the moment I want to make a small application whose input is a YUV I420 stream from a local disk. Application then encode it to h.264 and then write back to local file system. For this I have installed gst-plugins-ugly for x264enc which is successfully installed in my system, my application can make all the elements successfully.

But I am receiving the following error while I launch my application.
/***/
pipeline: filesrc location=akiyo_qcif.yuv blocksize=38016 ! videoparser width=176 height=144 framerate=(fraction)15/1 format=(fourcc)I420 ! x264enc ! filesink location=test.264
Now playing: akiyo_qcif.yuv
Running...
Error: Internal data flow error.
Returned, stopping playback
Deleting pipeline
/***/

please find the attached file for code reference.

Thanks in advance.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

testPlayer.c (8K) Download Attachment