FFMPEG hardware encoding for CCTV Box

Post Reply
Suuvs
Posts: 4
Joined: Tue Jan 26, 2021 10:34 pm
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

FFMPEG hardware encoding for CCTV Box

Post by Suuvs »

Hi!

im using Motioneye on my N2 to record multiple cctv cameras and need some help setting up hardaware encoding of video since passthrough is getting annoying to deal with :S

Motioneye uses ffmpeg as the backend and it sees that i have h264/V4L2M2M and h264/OMX as options for hardware encoding but both of them do nothing. when i do ffmpeg -hwaccels it says i have vdpau,vaapi,drm and opencl as hardware acceleration methods but i cant see any way to make motioneye take advantage of any of them.

Im a bit of a noob so sorry if the solution is something easy that i missed :D

Thanks in advance for any help.

mad_ady
Posts: 9250
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 622 times
Contact:

Re: FFMPEG hardware encoding for CCTV Box

Post by mad_ady »

Unfortunatelly, there is no easy solution. ffmpeg does not (yet) support hardware encoding on Amlogic boards. They do have encoders, but are proprietary.
On the c2 I was able to use c2enc and c2cap to pipe encoded camera data to ffmpeg, but I had a 5-6s delay between video and audio.
You can get some inspiration from here: https://magazine.odroid.com/wp-content/ ... df#page=12
It might work on the N2, but not sure how easy it's to integrate with other projects.
These users thanked the author mad_ady for the post:
Suuvs (Wed Jan 27, 2021 7:56 pm)

Suuvs
Posts: 4
Joined: Tue Jan 26, 2021 10:34 pm
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: FFMPEG hardware encoding for CCTV Box

Post by Suuvs »

Aww thats too bad. ill be sure to look at your link. Ty for your help :)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: woodyl and 1 guest