[FFmpeg-user] Quicksync Ubuntu

Maxim Kozlov rogat1y at gmail.com
Mon Oct 12 19:20:26 CEST 2015


Can anybody explain what can be wrong?
when i start ffmpeg to convert one mpegts input to two 720p rtmp outputs in
one copy of ffmpeg - it converts maximum 22 fps.

$ ffmpeg -v verbose -rtbufsize 2G -fpsprobesize 150 -re -fflags +genpts -i
udp://
236.0.0.1:10001?fifo_size=33554432&buffer_size=33554432&overrun_nonfatal=1&reuse=1
-threads 1 -vcodec h264_qsv -pix_fmt nv12 -aspect 16:9 -s 1280x720
-profile:v main -preset:v veryfast -level:v 31 -b:v 4000k -r 25 -g 100
-minrate:v 4000k -maxrate:v 4000k -bufsize:v 4000k -map 0:v -map 0:a
-flags:a +global_header -flags:v +global_header -acodec libvo_aacenc -ac 2
-ab 128k -ar 44100 -fflags +genpts -f flv rtmp://wowza/live/nuc_720
-threads 1 -vcodec h264_qsv -pix_fmt nv12 -aspect 16:9 -s 1280x720
-profile:v main -preset:v veryfast -level:v 31 -b:v 4000k -r 25 -g 100
-minrate:v 4000k -maxrate:v 4000k -bufsize:v 4000k -map 0:v -map 0:a
-flags:a +global_header -flags:v +global_header -acodec libvo_aacenc -ac 2
-ab 128k -ar 44100 -fflags +genpts -f flv rtmp://wowza/live/nuc_7201

ffmpeg version N-75640-ged18c49 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --disable-shared --enable-static --enable-gpl
--enable-nonfree --enable-fontconfig --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-librtmp --enable-libvo-aacenc --enable-libx264
--enable-version3 --enable-ffplay --disable-doc --disable-ffserver
--enable-pthreads --enable-filters --enable-libvorbis --enable-libtheora
--enable-runtime-cpudetect --enable-libass --enable-bzlib --enable-zlib
--prefix=/opt/ffmpeg_qsv/ --enable-libmfx
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  9.100 /  6.  9.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 0x2239ba0] Invalid frame dimensions 0x0.
    Last message repeated 2 times
Input #0, mpegts, from 'udp://
236.0.0.1:10001?fifo_size=33554432&buffer_size=33554432&overrun_nonfatal=1&reuse=1
':
  Duration: N/A, start: 28.013789, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002),
yuv422p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 104857 kb/s, 25 fps, 25
tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz,
stereo, fltp, 319 kb/s
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Output #0, flv, to 'rtmp://wowza/live/nuc_720':
  Metadata:
    encoder         : Lavf57.2.100
    Stream #0:0: Video: h264 (h264_qsv) ([7][0][0][0] / 0x0007), nv12,
1280x720 [SAR 1:1 DAR 16:9], q=2-31, 4000 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.3.100 h264_qsv
    Stream #0:1: Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A), 44100
Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc57.3.100 libvo_aacenc
Output #1, flv, to 'rtmp://wowza/live/nuc_7201':
  Metadata:
    encoder         : Lavf57.2.100
    Stream #1:0: Video: h264 (h264_qsv) ([7][0][0][0] / 0x0007), nv12,
1280x720 [SAR 1:1 DAR 16:9], q=2-31, 4000 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.3.100 h264_qsv
    Stream #1:1: Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A), 44100
Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc57.3.100 libvo_aacenc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
  Stream #0:0 -> #1:0 (mpeg2video (native) -> h264 (h264_qsv))
  Stream #0:1 -> #1:1 (aac (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
[flv @ 0x255f7c0] Failed to update header with correct duration.95
bitrate=4433.0kbits/s
[flv @ 0x255f7c0] Failed to update header with correct filesize.
[flv @ 0x24ecde0] Failed to update header with correct duration.
[flv @ 0x24ecde0] Failed to update header with correct filesize.
frame=  220 fps= 22 q=-0.0 Lq=-0.0 size=    4927kB time=00:00:09.06
bitrate=4452.4kbits/s
video:9547kB audio:285kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Exiting normally, received signal 2.

But when i start 2 copies of ffmpeg:

$ ffmpeg -v verbose -rtbufsize 2G -fpsprobesize 150 -re -fflags +genpts -i
udp://
236.0.0.1:10001?fifo_size=33554432&buffer_size=33554432&overrun_nonfatal=1&reuse=1
-threads 1 -vcodec h264_qsv -pix_fmt nv12 -aspect 16:9 -s 1280x720
-profile:v main -preset:v veryfast -level:v 31 -b:v 4000k -r 25 -g 100
-minrate:v 4000k -maxrate:v 4000k -bufsize:v 4000k -map 0:v -map 0:a
-flags:a +global_header -flags:v +global_header -acodec libvo_aacenc -ac 2
-ab 128k -ar 44100 -fflags +genpts -f flv rtmp://wowza/live/nuc_720 &

$ ffmpeg -v verbose -rtbufsize 2G -fpsprobesize 150 -re -fflags +genpts -i
udp://
236.0.0.1:10001?fifo_size=33554432&buffer_size=33554432&overrun_nonfatal=1&reuse=1
-threads 1 -vcodec h264_qsv -pix_fmt nv12 -aspect 16:9 -s 1280x720
-profile:v main -preset:v veryfast -level:v 31 -b:v 4000k -r 25 -g 100
-minrate:v 4000k -maxrate:v 4000k -bufsize:v 4000k -map 0:v -map 0:a
-flags:a +global_header -flags:v +global_header -acodec libvo_aacenc -ac 2
-ab 128k -ar 44100 -fflags +genpts -f flv rtmp://wowza/live/nuc_7201 &

every copy of ffmpeg encodes 25 fps.

>> Please do not top-post here; if you do not know what it means, look it
up.
Okay.


More information about the ffmpeg-user mailing list