omxh264 video encode problems

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

omxh264 video encode problems

argusroot
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: omxh264 video encode problems

Digits Info
I have a RPi2 available for testing, I'll check with it if you can link to a sample file.

Regards,

Dave.

On 26/07/2016 9:50 PM, christian.isenberg wrote:
Hello everybody,

Since I could't find anything about this problem I had to create a new post.
So I'm using a RaspberryPi to generate h264 videos from a sequence of jpegs
that I get from a webcam.

*this is my current pipe:*
gst-launch-1.0 -e v4l2src do-timestamp=true device=/dev/video0 ! videorate
! image/jpeg,width=640,height=480,framerate=15/1 ! jpegparse ! jpegdec
! omxh264enc ! video/x-h264,framerate=15/1, speed-preset=medium 
! h264parse ! mp4mux ! filesink location= video.mp4

It is working like a charm, except that the videos can only be played with
chrome or VLC.
What I'm trying is to decode it again using gstreamer afterwards using the
following pipe:

*gst-launch-1.0 playbin uri=file://PATH_TO_FILE/video.mp4*

And it ends the execution before showing the first frame.

*Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
libva info: VA-API version 0.39.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Got context from element 'vaapidecode': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
Got context from element 'playsink': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "playbin0".
Execution ended after 0:00:00.000176603
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...*

I even tried to use qtmux instead of mp4mux, but the results are the same.
Does anyone had the same problem ?

Thanks so far





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/omxh264-video-encode-problems-tp4678844.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: omxh264 video encode problems

argusroot
Here is a sample video. Note that the beginning is slow because of the webcam. This is not a problem.

I've tried to play it on my desktop using vaapi h264 decoder but had no success. Only VLC and Chrome browser can open it successfully. 

Em ter, 26 de jul de 2016 às 11:27, Digits <[hidden email]> escreveu:
I have a RPi2 available for testing, I'll check with it if you can link to a sample file.

Regards,

Dave.

On 26/07/2016 9:50 PM, christian.isenberg wrote:
Hello everybody,

Since I could't find anything about this problem I had to create a new post.
So I'm using a RaspberryPi to generate h264 videos from a sequence of jpegs
that I get from a webcam.

*this is my current pipe:*
gst-launch-1.0 -e v4l2src do-timestamp=true device=/dev/video0 ! videorate
! image/jpeg,width=640,height=480,framerate=15/1 ! jpegparse ! jpegdec
! omxh264enc ! video/x-h264,framerate=15/1, speed-preset=medium 
! h264parse ! mp4mux ! filesink location= video.mp4

It is working like a charm, except that the videos can only be played with
chrome or VLC.
What I'm trying is to decode it again using gstreamer afterwards using the
following pipe:

*gst-launch-1.0 playbin uri=file://PATH_TO_FILE/video.mp4*

And it ends the execution before showing the first frame.

*Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
libva info: VA-API version 0.39.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Got context from element 'vaapidecode': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
Got context from element 'playsink': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "playbin0".
Execution ended after 0:00:00.000176603
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...*

I even tried to use qtmux instead of mp4mux, but the results are the same.
Does anyone had the same problem ?

Thanks so far





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/omxh264-video-encode-problems-tp4678844.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

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

Re: omxh264 video encode problems

Digits
It plays fine (after the initial stall) from the command line with playbin on my Mac - I will test it on my Raspberry tomorrow for you.

Regards,

Dave.

On 27/07/2016 12:12 AM, Christian Isenberg wrote:
Here is a sample video. Note that the beginning is slow because of the webcam. This is not a problem.

I've tried to play it on my desktop using vaapi h264 decoder but had no success. Only VLC and Chrome browser can open it successfully. 

Em ter, 26 de jul de 2016 às 11:27, Digits <[hidden email]> escreveu:
I have a RPi2 available for testing, I'll check with it if you can link to a sample file.

Regards,

Dave.

On 26/07/2016 9:50 PM, christian.isenberg wrote:
Hello everybody,

Since I could't find anything about this problem I had to create a new post.
So I'm using a RaspberryPi to generate h264 videos from a sequence of jpegs
that I get from a webcam.

*this is my current pipe:*
gst-launch-1.0 -e v4l2src do-timestamp=true device=/dev/video0 ! videorate
! image/jpeg,width=640,height=480,framerate=15/1 ! jpegparse ! jpegdec
! omxh264enc ! video/x-h264,framerate=15/1, speed-preset=medium 
! h264parse ! mp4mux ! filesink location= video.mp4

It is working like a charm, except that the videos can only be played with
chrome or VLC.
What I'm trying is to decode it again using gstreamer afterwards using the
following pipe:

*gst-launch-1.0 playbin uri=file://PATH_TO_FILE/video.mp4*

And it ends the execution before showing the first frame.

*Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
libva info: VA-API version 0.39.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Got context from element 'vaapidecode': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
Got context from element 'playsink': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "playbin0".
Execution ended after 0:00:00.000176603
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...*

I even tried to use qtmux instead of mp4mux, but the results are the same.
Does anyone had the same problem ?

Thanks so far





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/omxh264-video-encode-problems-tp4678844.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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


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


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

Re: omxh264 video encode problems

argusroot
Nice !
Did you use any different parameter for the playbin command line ?

Best regards,
Christian
Reply | Threaded
Open this post in threaded view
|

Re: omxh264 video encode problems

Digits
Hi Christian,

I used your launch line.  It does not play on my Pi either - the only strange thing I can see when playing on the Mac is the file being detected as Quicktime.

Regards,

Dave.

On 27/07/2016 1:51 AM, argusroot wrote:
Nice !
Did you use any different parameter for the playbin command line ?

Best regards,
Christian



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/omxh264-video-encode-problems-tp4678844p4678850.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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