On 02/02/2018 06:50 AM, wm4 wrote:
On Thu, 1 Feb 2018 07:48:27 +0100
Marcin Woźniak <marcin.wozn...@intermania.pl> wrote:
Hello,
I try to implement an HiSilicon H264 encoder direct input as ffmpeg
libavdevice source (someking like V4L linux for cameras with H264 source
driver).
I successfully recieve H264 packets with NAL units and set correct PTS
according to source packet.
Not sure what you're trying to do, but an encoder in libavdevice
seems to make little sense. Also there's already a v4l encoder wrapper
in libavcodec. If the ARM thing uses v4l, did you try that one?
what board are you using? if there is already v4l2 support in the kernel
it should be a matter of just calling the ffmpeg with the right encoding
parameters
below an example to encode an NV12 YUV format:
$ ffmpeg -f rawvideo -pix_fmt nv12 -s:v 1280:720 -r 25 -i
~/Videos/raw/freeway.yuv -c:v h264_v4l2m2m out/out.h264.mp4
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel