[FFmpeg-user] bananapi cedrus h264 hardware encoder yields 0-byte size file

cedric.dewijs at telfort.nl cedric.dewijs at telfort.nl
Fri May 18 10:05:15 EEST 2018


Hi all,
I'm trying to hardware encode a h264 file on my bananapi with an allwinner A20 SOC. I get a .h264 file that has a size of 0 bytes.
I use the following source:
https://github.com/danielkucera/FFmpeg/tree/cedrus264 
configured in the following way: 
./configure --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2 
running with the following command line: 
cedric at bananapi:~/FFmpeg$ ./ffmpeg -fflags +igndts -f v4l2 -input_format mjpeg -s 1280x720 -i /dev/video0 -pix_fmt nv12 -c:v cedrus264 output.h264
ffmpeg version N-86245-gcd67ff8 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2
  libavutil      55. 63.100 / 55. 63.100
  libavcodec     57. 96.101 / 57. 96.101
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 90.100 /  6. 90.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 66666.522955, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
File 'output.h264' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
[swscaler @ 0x2ea8010] deprecated pixel format used, make sure you did set range correctly
[VDPAU SUNXI] VE version 0x0000 opened.
Output #0, h264, to 'output.h264':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0: Video: h264 (cedrus264), nv12, 1280x720, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.96.101 cedrus264
More than 1000 frames duplicated
Cheers,
Cedric


More information about the ffmpeg-user mailing list