<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Writing to myself. Problem resolved.
Wrong timebase. <br>
Thanks.<br>
<br>
W dniu 13.02.2018 o 13:56, Marcin Woźniak pisze:<br>
</div>
<blockquote cite="mid:5A82E068.1010100@intermania.pl" type="cite">I
am using HiSilicon 3516A board, there is no V4L device but other
approach using /dev/venc ioctl calls and MPP API.
<br>
I am able to open the encoder, read raw H264 packets but no go,
looks like read_packet is called about 10 times slower than it
should.
<br>
If i move the code to outside of ffmpeg and open it as:
<br>
dump_stream | ffmpeg -i - vcodec copy out.h264 //it works at good
speed.
<br>
<br>
Why libav is not calling read_packet as fast as it should?
<br>
Marcin
<br>
<br>
<br>
<br>
--------------------------------------------------------------------
<br>
what board are you using? if there is already v4l2 support in the
kernel
<br>
it should be a matter of just calling the ffmpeg with the right
encoding
<br>
parameters
<br>
below an example to encode an NV12 YUV format:
<br>
<br>
$ ffmpeg -f rawvideo -pix_fmt nv12 -s:v 1280:720 -r 25 -i
<br>
~/Videos/raw/freeway.yuv -c:v h264_v4l2m2m out/out.h264.mp4
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</blockquote>
<br>
</body>
</html>