twdragon
-
Posts
7 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by twdragon
-
-
Цитата
But i dont understand how i can integrate this acceleration with baresip.
I using Ubuntu 18.04.6 LTS with kernel Linux NanoPi-Duo2 3.4.39-h3, because only on this kernel 3.4 works Video OUT on Nano PI Duo 2.
Can i integrate hardware acceleration Cedrus to baresip , when compiling baresip?
No, you should rewrite the baresip decoder source to access and activate cedrus264 in the FFMPEG API as a hardware decoding accelerator.
-
17.02.2022 в 15:10, ning сказал:
why not go LibreELEC, and check their code, to understand how to enable accelerated video decoding?
Can someone try to compile the kernel to have working both camera and HW encoder?
-
19.10.2021 в 09:42, woodfe сказал:
I was following this posts:
and:
https://wvthoog.nl/nanopi-ov5640-camera/
1. decompile dtb to dts
2. modify dts: 1) add reversed-memory, 2) disable cedrus, add cedar_ve
3. compile dts to dtb, reboot
4. /dev/cedar_ve appear
5. run ffmpeg
Tried to do, no success, will dig into https://github.com/orangepi-xunlong/linux-orangepi/commit/58e01f39aa375f551e009c8206a57073c040347a to obtain possibly proper CSI kernel bindings
-
Thanks for your answer. I will try again to enable
-
-
Hello everyone!
I tried to enable cedrus264 encoder/decoder on my old OrangePI Lite 2 (revision 1 if I am right).
I used stulluk's repository as the base to patch the last FFMpeg revision and to add cedrus264 encoder using the new FFMpeg API. The result is built and tested. Unfortunately, I have had no success: the encoder says:
ffmpeg -f video4linux2 -input_format mjpeg -video_size 1280x720 -i /dev/video1 -c:v cedrus264 -pix_fmt nv12 -f mp4 video.mp4 ffmpeg version N-103904-gb2538ce578 Copyright (c) 2000-2021 the FFmpeg developers built with clang version 12.0.1 (https://github.com/llvm/llvm-project.git fed41342a82f5a3a9201819a82bf7a48313e296b) configuration: --enable-gpl --enable-nonfree --enable-shared --enable-frei0r --enable-gcrypt --enable-gmp --enable-gnutls --enable-ladspa --enable-libass --enable-libcaca --enable-libdc1394 --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-opengl --enable-libdrm --enable-vdpau --enable-version3 --enable-libspeex --enable-libxvid --enable-libvpx --prefix=/util/ffmpeg --extra-cflags='-O3 -mllvm -polly -I/util/include -I/util/ffmpeg/include' --extra-ldflags='-L/util/lib -L/util/ffmpeg/lib' --enable-encoder=cedrus264 --cc=clang --cxx=clang++ libavutil 57. 7.100 / 57. 7.100 libavcodec 59. 9.101 / 59. 9.101 libavformat 59. 5.100 / 59. 5.100 libavdevice 59. 0.101 / 59. 0.101 libavfilter 8. 10.100 / 8. 10.100 libswscale 6. 1.100 / 6. 1.100 libswresample 4. 0.100 / 4. 0.100 libpostproc 56. 0.100 / 56. 0.100 Input #0, video4linux2,v4l2, from '/dev/video1': Duration: N/A, start: 17593.181597, bitrate: N/A Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1000k tbn Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (cedrus264)) Press [q] to stop, [?] for help [swscaler @ 0x17450b90] [swscaler @ 0x1745e680] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x17450b90] [swscaler @ 0x17496ea0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x17450b90] [swscaler @ 0x174ce7f0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x17450b90] [swscaler @ 0x17506140] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x17450b90] [swscaler @ 0x1753da90] deprecated pixel format used, make sure you did set range correctly [cedrus264 @ 0x17440360] VE Open error. Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
It seems the encoder is not enabled in the Armbian kernel 5.10.60-sunxi64 because the device descriptor is not available.
However, I will be glad to see the code reviews, test results and any other feedback. Sorry, but I am not so familiar with FFMpeg API to send pull requests.
Please visit the FFMPEG fork repository here, the default branch is cedrus264:
Last revision FFMPEG cedrus264 patched: review and test request
in Beginners
Posted
It seemed the API version conflict problem, you should examine the functions baresip calls from the FFMPEG API or the parts of FFMPEG it exploits. I am not familiar with baresip code, so sadly I cannot help you here...