Good morning,

I wanted to try the FFmpeg QSV based encoders so I setup what is written here: https://trac.ffmpeg.org/wiki/HWAccelIntro#IntelQSV for Linux systems.

I'm running Manjaro Linux 16.06-pre3 on an Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz processor.



This is what ffmpeg gives me:


--- show supported qsv encoders ---

ffmpeg -encoders | grep _qsv

ffmpeg version N-79989-g51a1c1c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.1.1 (GCC) 20160501
configuration: --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-libmfx --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libssh --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-openal --enable-opencl --enable-opengl --enable-x11grab
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 41.102 / 57. 41.102
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
V..... h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264) V..... hevc_qsv HEVC (Intel Quick Sync Video acceleration) (codec hevc) V..... mpeg2_qsv MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)


--- my input ---

ffmpeg -loglevel debug -i 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4' -c:v hevc_qsv -profile:v main -y 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4' ffmpeg version N-79989-g51a1c1c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.1.1 (GCC) 20160501
configuration: --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-libmfx --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libssh --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-openal --enable-opencl --enable-opengl --enable-x11grab
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 41.102 / 57. 41.102
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'hevc_qsv'. Reading option '-profile:v' ... matched as option 'profile' (set profile) with argument 'main'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4.
Successfully parsed a group of options.
Opening an input file: LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4.
[file @ 0x1ad4680] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] Unknown dref type 0x08206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] Before avformat_find_stream_info() pos: 32366760 bytes read:48936 seeks:1
[h264 @ 0x1ad5520] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x1ad5520] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x1ad5520] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x1ad5520] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ad3ea0] After avformat_find_stream_info() pos: 87402 bytes read:136290 seeks:2 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.36.100
  Duration: 00:01:00.06, start: 0.000000, bitrate: 4311 kb/s
Stream #0:0(und), 1, 1/90000: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], 0/1, 4309 kb/s, 29.97 fps, 29.97 tbr, 90k tbn (default)
    Metadata:
      handler_name    : VideoHandler
Successfully opened the file.
Parsing a group of options: output file LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4.
Applying option c:v (codec name) with argument hevc_qsv.
Applying option profile:v (set profile) with argument main.
Successfully parsed a group of options.
Opening an output file: LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4.
[file @ 0x1adb040] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0x1adc1e0] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x1adc1e0] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x1adc1e0] Setting 'time_base' to value '1/90000' [graph 0 input from stream 0:0 @ 0x1adc1e0] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0x1adc1e0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x1adc1e0] Setting 'frame_rate' to value '30000/1001' [graph 0 input from stream 0:0 @ 0x1adc1e0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 sws_param:flags=2
[format @ 0x1adc5a0] compat: called with args=[nv12|qsv]
[format @ 0x1adc5a0] Setting 'pix_fmts' to value 'nv12|qsv'
[auto-inserted scaler 0 @ 0x1b04fa0] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x1b04fa0] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x1adc5a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0x1adb0e0] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0x1b04fa0] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:nv12 sar:1/1 flags:0x4
[h264 @ 0x1b6fd00] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x1b6fd00] nal_unit_type: 8, nal_ref_idc: 3
^C^C^CReceived > 3 system signals, hard exiting

and here we get what I wrote in the mail subject, ffmpeg get stuck, he doesn't write any information to the file and when I hard quit ffmpeg the resulting output file is empty (0 byte)

ffprobe -loglevel debug -i 'LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4' ffprobe version N-79989-g51a1c1c Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 6.1.1 (GCC) 20160501
configuration: --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-libmfx --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libcdio --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libssh --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-openal --enable-opencl --enable-opengl --enable-x11grab
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 41.102 / 57. 41.102
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[file @ 0x1e38d40] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e38640] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e38640] moov atom not found
[AVIOContext @ 0x1e40fe0] Statistics: 0 bytes read, 0 seeks
LE GARE STRANE!? - GTA 5 ONLINE | xDegsta.HEVC.mp4: Invalid data found when processing input



What can i do ?

Thanks for your help.










_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to