![]() H264_vaapi can also be used with netcam_decoder if the camera supports it. I'm using that along with movie_codec mp4. Movie_extpipe ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h -framerate %fps -vaapi_device /dev/dri/renderD128 -i pipe:0 -vf 'format=nv12,hwupload' -c:v h264_vaapi %f.mp4 This lead me to search for other options and found users using movie_extpipe for HW accelerated encoding, So I checked ffmpeg.c of motion and didn't find h264_vaapi. So even h264_omx is not being used in the media_codec. It seems that h264_omx automatically reverts to default - Motion-Project/motion#1012 ffmpeg_set_codec_preferred: Preferred codec h264_omx has been blacklisted: Codec causes lock up on your FFMpeg version I noted that h264_omx is still blacklisted from the logs, netcam_rtsp_handler_reconnect: Normal resolution: Reconnecting with camera.īut ffmpeg works fine for h264_vaapi, When tested with,įfmpeg -vaapi_device /dev/dri/renderD128 -i big_buck_bunny_720p_1mb.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4 event_ffmpeg_newfile: Error opening context for movie output.Ĭurl: (7) Failed to connect to 127.0.0.1 port 8765: Connection refused ffmpeg_set_codec: Could not open codec Invalid argument mlp_retry: Retrying until successful connection with camera motion_init: Motion continues using width and height from config file(s) motion_init: Could not fetch initial image from camera netcam_rtsp_open_context: Normal resolution: Unable to find stream info: Success motion_startup: Using log type (ALL) log level (WRN) motion_startup: Using default log type (ALL) ![]() Also the only encoding option available with h264omx is to set the video bit rate (e.g. The output from h264omx is inferior to that of libx264. a one hour video takes less than one hour to encode. config_camera: Processing camera config file nf h264omx uses the GPU (video card) rather than the CPU and so is very fast. config_camera: Processing camera config file nf conf_load: Processing thread 0 - config file /etc/motioneye/nf `which motion` -n -c /etc/motioneye/nf -d 5
0 Comments
Leave a Reply. |