Re: [Libav-user] Hardware encoder ARM input as device input

2018-03-02 Thread Marcin Woźniak
Writing to myself. Problem resolved. Wrong timebase. Thanks. W dniu 13.02.2018 o 13:56, Marcin Woźniak pisze: I am using HiSilicon 3516A board, there is no V4L device but other approach using /dev/venc ioctl calls and MPP API. I am able to open the encoder, read raw H264 packets but no go,

Re: [Libav-user] Hardware encoder ARM input as device input

2018-02-13 Thread Marcin Woźniak
I am using HiSilicon 3516A board, there is no V4L device but other approach using /dev/venc ioctl calls and MPP API. 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. If i move the code to outside of ffmpeg and

Re: [Libav-user] Hardware encoder ARM input as device input

2018-02-05 Thread Marcin Woźniak
Finnaly i was able to set up timing data in h264 stream. Trying to save this as -f test.h264 produces good file, trying to mux it drops FPS to tenth of original (25 fps becomes 2.5 fps and bitrate from 1024 kb/s to little more than 100 kbs). PTS of every NAL unit is different exactly by 4