Hi,
I am using OV5640 with iMX8M on Linux OS.
I tried to record video and found some issues.
1. there is no HW encoder:
It will cause the performance issue.
I dump encoder with following command.
#gst-inspect-1.0 | grep enc
y4menc: y4menc: YUV4MPEG video encoder
webp: webpenc: WEBP image encoder
adpcmenc: adpcmenc: ADPCM encoder
wavenc: wavenc: WAV audio muxer
alaw: alawenc: A Law audio encoder
sbc: sbcenc: Bluetooth SBC audio encoder
mulaw: mulawenc: Mu Law audio encoder
png: pngenc: PNG image encoder
speex: speexenc: Speex audio encoder
removesilence: removesilence: RemoveSilence
pnm: pnmenc: PNM image encoder
subenc: srtenc: Srt encoder
subenc: webvttenc: WebVTT encoder
bz2: bz2enc: BZ2 encoder
audiovisualizers: spectrascope: Frequency spectrum scope
encoding: encodebin: Encoder Bin
flac: flacenc: FLAC audio encoder
coretracers: latency (GstTracerFactory)
siren: sirenenc: Siren Encoder element
vorbis: vorbisenc: Vorbis audio encoder
jpeg: jpegenc: JPEG image encoder
theora: theoraenc: Theora video encoder
dtls: dtlsenc: DTLS Encoder
dtls: dtlssrtpenc: DTLS-SRTP Encoder
I can't see any hw encoder, like h264 or h263.
2. I found the record task will switch out.
it will cause the record is not continuous. (you can check the attached video)
is there any suggestion to solve this problem?
Thanks,
Jimmy
Hi Jimmy
one can try suggestions provided on
https://community.nxp.com/thread/476358?commentID=1029609#comment-1029609
or ffmpeg to do the software encode
root@imx8mqevk:~# /usr/bin/time -f "Elapsed time %E CPU used %P" nice -10
ffmpeg -y -f rawvideo -r:v 24 -video_size 1920x1080 -pixel_format yuv420p -i
Kimono1_1920x1080_24.yuv -c:v libx264 -preset ultrafast -crf 32 encoded.mkv
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
The i.MX8MQ processor does not have any HW encoder so your finding makes sense.
Please make sure to look at the i.MX8MQ block diagram to learn about the available features:
i.MX 8M Applications Processor | Arm® Cortex®-A53, Cortex-M4 | 4K display resolution |NXP
Regards,
Gary