diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index e3c5dac67..869256e5a 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -150,7 +150,11 @@ VideoStore::VideoStore( Error("Could not allocate in frame"); return; } - video_out_codec = avcodec_find_encoder(AV_CODEC_ID_H264); + video_out_codec = avcodec_find_encoder_by_name("h264_omx"); + if ( ! video_out_codec ) { + Debug(1, "Didn't find omx"); + video_out_codec = avcodec_find_encoder(AV_CODEC_ID_H264); + } if (!video_out_codec) { Fatal("Could not find codec for H264"); }