shahidmusman
Posts: 1
Joined: Mon Oct 22, 2018 10:14 am

Realtime H.264 encoding on the RPI 3B

Mon Oct 22, 2018 10:18 am

I want to stream live video captured via my Raspberri Pi 3B+.

I was thinking of capturing video from the RPi's camera module (apparently the video captured by the camera module is already encoded in H264!), piping it into a gstreamer pipeline to convert it into a transport stream and forward it for whatever application I wanna use it for.

Is the Raspberry Pi 3B capable enough to handle all of that?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 20674
Joined: Sat Jul 30, 2011 7:41 pm

Re: Realtime H.264 encoding on the RPI 3B

Mon Oct 22, 2018 10:38 am

Yes, that should be fine.

Ther eis an inbuilt H264 encoder, the raspistill app can be used to stream H264 directly, or you can use a gstreamer pipeline and the v4l2 driver.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5793
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Realtime H.264 encoding on the RPI 3B

Mon Oct 22, 2018 10:45 am

jamesh wrote:
Mon Oct 22, 2018 10:38 am
Yes, that should be fine.

Ther eis an inbuilt H264 encoder, the raspistill app can be used to stream H264 directly, or you can use a gstreamer pipeline and the v4l2 driver.
typo: the raspivid app can be used to stream H264 directly.
apparently the video captured by the camera module is already encoded in H264
Not quite. The video captured by the camera module can be H264 encoded if required. It can also be delivered as raw pixel data (a variety of RGB or YUV formats), or MJPEG/JPEG, or at lower performance as PNG, BMP, TGA, PPM, or GIF. Choose a format suitable for your application.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Graphics, sound and multimedia”