Hello everybody!
I use NanoPi Neo Air with Allwinner H3
I've installed cedrus264 encoder and tried to use it for webcam streaming with ffmpeg.
I used htop to control cpu load and found, that ffmpeg uses too much memory! Is it normal for hardware encoding?
oron@nanopiair:~/FFmpeg-Cedrus-master$ sudo ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -pix_fmt nv12 -r 25 -c:v cedrus264 -f mpegts udp://192.168.10.236:1234
ffmpeg version 2.3.git Copyright (c) 2000-2014 the FFmpeg developers
built on Feb 9 2017 11:10:38 with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2
libavutil 54. 6.100 / 54. 6.100
libavcodec 56. 0.101 / 56. 0.101
libavformat 56. 2.100 / 56. 2.100
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 0.102 / 5. 0.102
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 7107.486161, bitrate: 147456 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
[VDPAU SUNXI] VE version 0x1680 opened.
Output #0, mpegts, to 'udp://192.168.10.236:1234':
Metadata:
encoder : Lavf56.2.100
Stream #0:0: Video: h264 (cedrus264), nv12, 640x480, q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.0.101 cedrus264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
frame= 5698 fps= 25 q=30.0 Lsize= 46445kB time=00:03:47.92 bitrate=1669.3kbits/s dup=5 drop=123
Htop results: