[FFmpeg-user] mjpeg_qsv

Jon Cook jon.cook at cubicmotion.com
Wed Nov 27 10:58:26 EET 2019


Hi,

Thanks for your reply. The full output, with debug log level, is below.

Regards,
Jon


ffmpeg.exe -loglevel debug -y -i C:/Users/jcook/Desktop/sample.avi -c:v
mjpeg_qsv output.mp4

ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-i' ... matched as input url with argument
'C:/Users/jcook/Desktop/sample.avi'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'mjpeg_qsv'.
Reading option 'output.mp4' ... matched as output url.
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 url C:/Users/jcook/Desktop/sample.avi.
Successfully parsed a group of options.
Opening an input file: C:/Users/jcook/Desktop/sample.avi.
[NULL @ 000001e05d5da880] Opening 'C:/Users/jcook/Desktop/sample.avi' for
reading
[file @ 000001e05d5db980] Setting default whitelist 'file,crypto'
[avi @ 000001e05d5da880] Format avi probed with size=2048 and score=100
[avi @ 000001e05d5e3d80] use odml:1
st:1 removing common factor 36 from timebase
[avi @ 000001e05d5da880] Before avformat_find_stream_info() pos: 4108 bytes
read:142280 seeks:5 nb_streams:2
[mpeg4 @ 000001e05d5ecac0] Format yuv420p chosen by get_format().
[avi @ 000001e05d5da880] All info found
[avi @ 000001e05d5da880] After avformat_find_stream_info() pos: 16409 bytes
read:142280 seeks:5 frames:21
Input #0, avi, from 'C:/Users/jcook/Desktop/sample.avi':
  Metadata:
    encoder         : MEncoder SVN-r33148-4.0.1
  Duration: 00:00:05.56, start: 0.000000, bitrate: 540 kb/s
    Stream #0:0, 1, 1/25: Video: mpeg4 (Simple Profile), 1 reference frame
(XVID / 0x44495658), yuv420p(left), 320x240 [SAR 1:1 DAR 4:3], 0/1, 425
kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1, 20, 32/1225: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz,
stereo, fltp, 100 kb/s
Successfully opened the file.
Parsing a group of options: output url output.mp4.
Applying option c:v (codec name) with argument mjpeg_qsv.
Successfully parsed a group of options.
Opening an output file: output.mp4.
[file @ 000001e05da7b0c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 12 logical cores
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (mjpeg_qsv))
  Stream #0:1 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if
it occurs once at the start per stream)
[graph_1_in_0_1 @ 000001e05d674080] Setting 'time_base' to value '1/44100'
[graph_1_in_0_1 @ 000001e05d674080] Setting 'sample_rate' to value '44100'
[graph_1_in_0_1 @ 000001e05d674080] Setting 'sample_fmt' to value 'fltp'
[graph_1_in_0_1 @ 000001e05d674080] Setting 'channel_layout' to value '0x3'
[graph_1_in_0_1 @ 000001e05d674080] tb:1/44100 samplefmt:fltp
samplerate:44100 chlayout:0x3
[format_out_0_1 @ 000001e05d68be00] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 000001e05d68be00] Setting 'sample_rates' to value
'96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[AVFilterGraph @ 000001e05d690bc0] query_formats: 4 queried, 9 merged, 0
already done, 0 delayed
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if
it occurs once at the start per stream)
    Last message repeated 20 times
[mpeg4 @ 000001e05d614880] Format yuv420p chosen by get_format().
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if
it occurs once at the start per stream)
    Last message repeated 28 times
[graph 0 input from stream 0:0 @ 000001e05dbeef00] Setting 'video_size' to
value '320x240'
[graph 0 input from stream 0:0 @ 000001e05dbeef00] Setting 'pix_fmt' to
value '0'
[graph 0 input from stream 0:0 @ 000001e05dbeef00] Setting 'time_base' to
value '1/25'
[graph 0 input from stream 0:0 @ 000001e05dbeef00] Setting 'pixel_aspect'
to value '1/1'
[graph 0 input from stream 0:0 @ 000001e05dbeef00] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 000001e05dbeef00] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 0:0 @ 000001e05dbeef00] w:320 h:240
pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 000001e05d67af40] Setting 'pix_fmts' to value 'nv12|qsv'
[auto_scaler_0 @ 000001e05dfeee80] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 000001e05dfeee80] w:iw h:ih flags:'bicubic' interl:0
[format @ 000001e05d67af40] auto-inserting filter 'auto_scaler_0' between
the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 000001e05d690c80] query_formats: 4 queried, 2 merged, 1
already done, 0 delayed
[auto_scaler_0 @ 000001e05dfeee80] w:320 h:240 fmt:yuv420p sar:1/1 -> w:320
h:240 fmt:nv12 sar:1/1 flags:0x4
[mjpeg_qsv @ 000001e05d609440] Initialized an internal MFX session using
hardware accelerated implementation
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0, 0, 1/12800: Video: mjpeg (mjpeg_qsv), 1 reference frame
(mp4v / 0x7634706D), nv12(left), 320x240 [SAR 1:1 DAR 4:3], 0/1, q=2-31,
200 kb/s, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 mjpeg_qsv
    Stream #0:1, 0, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, delay 1024, 128 kb/s
    Metadata:
      encoder         : Lavc58.54.100 aac
Clipping frame in rate conversion by 0.000008
[mjpeg_qsv @ 000001e05d609440] Error submitting the frame for encoding.
Video encoding failed
[AVIOContext @ 000001e05da7b180] Statistics: 0 seeks, 1 writeouts
[aac @ 000001e05d6135c0] Qavg: 709.099
[aac @ 000001e05d6135c0] 2 frames left in the queue on closing
[AVIOContext @ 000001e05d5e3c40] Statistics: 175048 bytes read, 5 seeks
Conversion failed!

On Tue, 26 Nov 2019 at 17:06, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> Am Di., 26. Nov. 2019 um 14:55 Uhr schrieb Jon Cook <
> jon.cook at cubicmotion.com>:
>
> > I'm having a problem trying to encode using mjpeg_qsv. The
> > command I'm using is:
> >
> >   ffmpeg.exe -y -i sample.avi -c:v mjpeg_qsv output.mp4
>
> Complete, uncut console output missing.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list