Status of Hardware Accelerated Video Encoding under Linux?

Post Reply
snove
Posts: 4
Joined: Fri Sep 27, 2013 3:16 pm
languages_spoken: Italian
ODROIDs: All
Has thanked: 0
Been thanked: 0
Contact:

Status of Hardware Accelerated Video Encoding under Linux?

Post by snove »

Dear ODROID developers,
I'm working on a media server based on ARMs SoCs. It's main funcion would be to transcode H.264 to H.264 to reduce the bitrate on the run. I'm very familiar with Gstreamer and used some of FFMPEG.

Cause of "poor" hardware until now I didn't find any development board capable of realtime 1080p H.264 transcoding, but I think (in the paper) ODROID is powerful enough to handle at least 1 stream.

So I wonder: how the Gstreamer -> ODROID Hardware integration (NEON) is going?

Additional TAGS: NEON, OpenMAX, omx-gst, x264-arm.

Regards
Salvatore

User avatar
odroid
Site Admin
Posts: 37229
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1723 times
Been thanked: 1120 times
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by odroid »

ODROID uses the MFC (H/W Multi-function-codec in Samsung Exynos SoC) for video decoding/encoding in Android platform.
Recentely we could use it with XBMC for decoding purposer by help from many forum members in Ubuntu/Debian platform.

I think the NEON optimized codec is not enough to encode/decode the 1080p contents in real time.
Is it possible? NEON can encode 1080p video in at 30fps?

snove
Posts: 4
Joined: Fri Sep 27, 2013 3:16 pm
languages_spoken: Italian
ODROIDs: All
Has thanked: 0
Been thanked: 0
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by snove »

Yes, theoretically.
In other boards like Raspberrypi, Pandaboard, Beagleboard, Cubieboard etc etc... all the mukltimedia frameworks works with Neon and OpenMax integrationLayer opensource implementation (aka Bellagio). But no one of these works "out of the box".

I think NEON co-processor/dsp main's purpose is to handle multimedia conversion. And I know about several proprietary projects using NEON for H.264 "hardware" encoding.

@odroid: Can you give me some reference to get started in ODROID-MFC?

Regards

User avatar
odroid
Site Admin
Posts: 37229
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1723 times
Been thanked: 1120 times
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by odroid »

All the boards you pointed are using its own video processor on SoC not Neon.
Neon is used only for stream parser or audio decoding probably.

MFC device driver souce code can be found in our Kernel source.
MFC API is used in Android media framework and Ubuntu XBMC source code.
Search this forum first. There are tons of postings.

User avatar
Matt
Posts: 575
Joined: Tue Feb 26, 2013 4:57 pm
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power
Location: Charlottesville, VA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by Matt »

There are several thread around the forums that explain the process of compiling ffmpeg so that it can take full advantage of the NEON SIMD instructions (and so that it is more efficiently processed on the Cortex-A9 architecture).

As for the MFC: There is a gigantic thread on XBC, which is currently the only software that has been modified to take advantage of the hardware acceleration offered by the Samsung MFC. The code used in XBMC can be taken and ported for use by other multimedia software, but it hasn't been done, yet.
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)

snove
Posts: 4
Joined: Fri Sep 27, 2013 3:16 pm
languages_spoken: Italian
ODROIDs: All
Has thanked: 0
Been thanked: 0
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by snove »

Thank you very much :D

snove
Posts: 4
Joined: Fri Sep 27, 2013 3:16 pm
languages_spoken: Italian
ODROIDs: All
Has thanked: 0
Been thanked: 0
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by snove »

I think the best think would be to provide a Gstreamer module to decode/encode video streams. That would give acces to the core technology to all the developers.


Where you think the right place to launch the idea and look for help on coding this feture for ODROID?

Kindest regards

User avatar
Matt
Posts: 575
Joined: Tue Feb 26, 2013 4:57 pm
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power
Location: Charlottesville, VA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: Status of Hardware Accelerated Video Encoding under Linu

Post by Matt »

It has been mentioned that the code that has been contributed to XBMC could be fairly easy to port for use by other softare packages (like gstreamer). So far no one has taken up that project, though... at least I haven't heard of anyone doing any work on it, anyway. You can always take a look at the MFC-relevant sources in the XBMC project to see how the MFC is used.

So far only h.264 decode has been done. No one (again, that I know of) has tried to use the MFC to do any sort of encoding work.
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests