docker-handbrake icon indicating copy to clipboard operation
docker-handbrake copied to clipboard

Can't get watch folder to work

Open johnvick opened this issue 2 years ago • 20 comments

I am trying to get QSV 265 working via watch folder. It works if I do the conversion manually confirmed by intel_gpu_top so the hardware is up to the job (Pentium Gold and does HW transcoding with Jellyfin). My Portainer setup is as in the picture.

Untitled-2

The process stops after a second and leaves a zero byte file in the output folder.

The log: [14:42:23] Starting Task: Encoding Pass [14:42:23] Skipping vfr filter [14:42:23] Skipping crop/scale filter [14:42:23] job configuration: [14:42:23] * source [14:42:23] + /watch/Test 264 d.mkv [14:42:23] + title 1, chapter(s) 1 to 2 [14:42:23] + container: matroska,webm [14:42:23] + data rate: 9993 kbps [14:42:23] * destination [14:42:23] + /output/.VQOGGY/Test 264 d.MKV [14:42:23] + container: Matroska (libavformat) [14:42:23] + chapter markers [14:42:23] * video track [14:42:23] + decoder: h264_qsv 8-bit (yuv420p) [14:42:23] + Output geometry [14:42:23] + storage dimensions: 1920 x 1080 [14:42:23] + pixel aspect ratio: 1 : 1 [14:42:23] + display dimensions: 1920 x 1080 [14:42:23] + encoder: H.265 (Intel Media SDK) [14:42:23] + preset: speed [14:42:23] + profile: auto [14:42:23] + level: auto [14:42:23] + quality: 22.00 (ICQ) [14:42:23] + color profile: 1-1-1 [14:42:23] * audio track 1 [14:42:23] + decoder: English (E-AC3) (2.0 ch) (224 kbps) (track 1, id 0x1) [14:42:23] + bitrate: 224 kbps, samplerate: 48000 Hz [14:42:23] + mixdown: Stereo [14:42:23] + encoder: AAC (libfdk_aac) [14:42:23] + bitrate: 160 kbps, samplerate: 48000 Hz [14:42:23] sync: expecting 67592 video frames [14:42:23] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.12.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_12 libva info: va_openDriver() returns 0 [14:42:23] encqsvInit: using encode-only path [14:42:23] encqsvInit: H.265/HEVC Main profile @ level (null) [14:42:23] encqsvInit: TargetUsage 7 AsyncDepth 4 [14:42:23] encqsvInit: GopRefDist 3 GopPicSize 25 NumRefFrame 2 [14:42:23] encqsvInit: BFramesMax 2 BRefType off [14:42:23] encqsvInit: RateControlMethod ICQ ICQQuality 22

Any clues as to why this isn't working?

johnvick avatar Feb 27 '22 01:02 johnvick

What do you mean exactly by "it works if I do the conversion manually" ? Do you mean conversion done by the UI ?

jlesage avatar Mar 07 '22 03:03 jlesage

Yes that's what I was meaning.

johnvick avatar Mar 07 '22 03:03 johnvick

Do you have the full conversion log ? It should start with ------- CONVERSION OUTPUT <date> -------.

jlesage avatar Mar 07 '22 03:03 jlesage

------- CONVERSION OUTPUT Mon Mar 7 16:41:09 NZDT 2022 ------- [16:41:09] Compile-time hardening features are enabled [16:41:09] hb_display_init: attempting VA driver 'iHD' libva info: VA-API version 1.12.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_12 libva info: va_openDriver() returns 0 Cannot load libnvidia-encode.so.1 Cannot load libnvidia-encode.so.1 Cannot load libnvidia-encode.so.1 Cannot load libnvidia-encode.so.1 [16:41:09] hb_init: starting libhb thread [16:41:09] thread 7fe08857eb20 started ("libhb") HandBrake 1.4.2 (2021100400) - Linux x86_64 - https://handbrake.fr 4 CPUs detected Opening /watch/Test 264 i.mkv... [16:41:09] CPU: Intel(R) Pentium(R) Gold G5400 CPU @ 3.70GHz [16:41:09] - Intel microarchitecture Kaby Lake [16:41:09] - logical processor count: 4 [16:41:09] Intel Quick Sync Video support: yes [16:41:09] - Intel Media SDK hardware: API 1.35 (minimum: 1.3) [16:41:09] - Decode support: h264 hevc (8bit: yes, 10bit: yes) [16:41:09] - H.264 encoder: yes [16:41:09] - preferred implementation: hardware (any) via ANY [16:41:09] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice [16:41:09] - H.265 encoder: yes (8bit: yes, 10bit: yes) [16:41:09] - preferred implementation: hardware (any) via ANY [16:41:09] - capabilities (hardware): bpyramid icq vsinfo opt1 [16:41:09] hb_scan: path=/watch/Test 264 i.mkv, title_index=1 [16:41:09] thread 7fe08855bb20 started ("scan") udfread ERROR: ECMA 167 Volume Recognition failed disc.c:333: failed opening UDF image /watch/Test 264 i.mkv disc.c:437: error opening file BDMV/index.bdmv disc.c:437: error opening file BDMV/BACKUP/index.bdmv bluray.c:2646: nav_get_title_list(/watch/Test 264 i.mkv/) failed [16:41:09] bd: not a bd - trying as a stream/file instead libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav: vm: vm: failed to read VIDEO_TS.IFO [16:41:09] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/watch/Test 264 i.mkv': Metadata: encoder : libebml v1.4.2 + libmatroska v1.6.4 Duration: 00:45:03.68, start: 0.000000, bitrate: 9993 kb/s Chapters: Chapter #0:0: start 88.000000, end 2668.000000 Metadata: title : Intro Chapter #0:1: start 2668.000000, end 2703.680000 Metadata: title : Credits Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc Metadata: BPS : 9766685 DURATION : 00:45:03.640000000 NUMBER_OF_FRAMES: 67591 NUMBER_OF_BYTES : 3300700270 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: eac3, 48000 Hz, stereo, fltp, 224 kb/s Metadata: BPS : 224000 DURATION : 00:45:03.680000000 NUMBER_OF_FRAMES: 84490 NUMBER_OF_BYTES : 75703040 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Subtitle: subrip Metadata: BPS : 106 DURATION : 00:44:04.560000000 NUMBER_OF_FRAMES: 853 NUMBER_OF_BYTES : 35052 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3(eng): Subtitle: subrip (hearing impaired) Metadata: title : SDH BPS : 111 DURATION : 00:45:01.720000000 NUMBER_OF_FRAMES: 943 NUMBER_OF_BYTES : 37717 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES [16:41:09] Found ffmpeg 2 chapters, container=matroska,webm [16:41:09] Added chapter 1, name='Intro', dur=240120000, (00:44:28) [16:41:09] Added chapter 2, name='Credits', dur=3211200, (00:00:36) [16:41:09] scan: decoding previews for title 1 [16:41:09] scan: preview 1 [16:41:09] fifo_close: trashing 0 buffer(s) [16:41:09] scan: audio 0x1: eac3, rate=48000Hz, bitrate=224000 English (E-AC3) (2.0 ch) (224 kbps) [16:41:09] scan: preview 2

Scanning title 1 of 1, preview 2, 20.00 %[16:41:09] scan: preview 3 [16:41:09] scan: preview 4

Scanning title 1 of 1, preview 4, 40.00 %[16:41:09] scan: preview 5 [16:41:09] scan: preview 6

Scanning title 1 of 1, preview 6, 60.00 %[16:41:09] scan: preview 7 [16:41:10] scan: preview 8

Scanning title 1 of 1, preview 8, 80.00 %[16:41:10] scan: preview 9 [16:41:10] scan: preview 10

Scanning title 1 of 1, preview 10, 100.00 %[16:41:10] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1 [16:41:10] scan: supported video decoders: avcodec qsv [16:41:10] Freed 1 buffers of size 1024 [16:41:10] Freed 1 buffers of size 2048 [16:41:10] Freed 1 buffers of size 4096 [16:41:10] Freed 1 buffers of size 8192 [16:41:10] Freed 1 buffers of size 16384 [16:41:10] Freed 1 buffers of size 32768 [16:41:10] Freed 1 buffers of size 65536 [16:41:10] Freed 1 buffers of size 131072 [16:41:10] Freed 1 buffers of size 262144 [16:41:10] Freed 2 buffers of size 4194304 [16:41:10] Allocated 8911872 bytes of buffers on this pass and Freed 8911872 bytes, 0 bytes leaked [16:41:10] thread 7fe08855bb20 exited ("scan") [16:41:10] thread 7fe08855bb20 joined ("scan") [16:41:10] libhb: scan thread found 1 valid title(s)

  • Using preset: H.265 QSV 1080p
  • title 1:
    • stream: /watch/Test 264 i.mkv
    • duration: 00:45:03
    • size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
    • autocrop: 0/0/0/0
    • chapters:
      • 1: duration 00:44:28
      • 2: duration 00:00:36
    • audio tracks:
      • 1, English (E-AC3) (2.0 ch) (224 kbps) (iso639-2: eng)
    • subtitle tracks:
      • 1, English [UTF-8]
      • 2, English [UTF-8] [16:41:10] thread 7fe08855bb20 started ("work") [16:41:10] Starting work at: Mon Mar 7 16:41:10 2022

[16:41:10] 1 job(s) to process [16:41:10] json job: { "Audio": { "AudioList": [ { "Bitrate": 160, "CompressionLevel": -1.0, "DRC": 0.0, "DitherMethod": "auto", "Encoder": "fdk_aac", "Gain": 0.0, "Mixdown": "stereo", "NormalizeMixLevel": false, "PresetEncoder": "fdk_aac", "Quality": -3.0, "Samplerate": 0, "Track": 0 } ], "CopyMask": [ "copy:aac" ], "FallbackEncoder": "none" }, "Destination": { "AlignAVStart": false, "ChapterList": [ { "Duration": { "Hours": 0, "Minutes": 44, "Seconds": 28, "Ticks": 240120000 }, "Name": "Intro" }, { "Duration": { "Hours": 0, "Minutes": 0, "Seconds": 36, "Ticks": 3211200 }, "Name": "Credits" } ], "ChapterMarkers": true, "File": "/output/.m7jNfW/Test 264 i.MP4", "InlineParameterSets": false, "Mp4Options": { "IpodAtom": false, "Mp4Optimize": false }, "Mux": "m4v" }, "Filters": { "FilterList": [ { "ID": 6, "Settings": { "mode": 0 } }, { "ID": 13, "Settings": { "crop-bottom": 0, "crop-left": 0, "crop-right": 0, "crop-top": 0, "height": 1080, "width": 1920 } } ] }, "Metadata": {}, "PAR": { "Den": 1, "Num": 1 }, "SequenceID": 0, "Source": { "Angle": 0, "Path": "/watch/Test 264 i.mkv", "Range": { "End": 2, "Start": 1, "Type": "chapter" }, "Title": 1 }, "Subtitle": { "Search": { "Burn": true, "Default": false, "Enable": false, "Forced": false }, "SubtitleList": [] }, "Video": { "ColorInputFormat": 0, "ColorMatrix": 1, "ColorOutputFormat": 0, "ColorPrimaries": 1, "ColorRange": 1, "ColorTransfer": 1, "Encoder": "qsv_h265", "Level": "auto", "Options": "", "Preset": "speed", "Profile": "auto", "QSV": { "AdapterIndex": 0, "AsyncDepth": 0, "Decode": true }, "Quality": 22.0, "Tune": "", "Turbo": false, "TwoPass": false } } [16:41:10] Starting Task: Encoding Pass [16:41:10] Skipping vfr filter [16:41:10] Skipping crop/scale filter [16:41:10] job configuration: [16:41:10] * source [16:41:10] + /watch/Test 264 i.mkv [16:41:10] + title 1, chapter(s) 1 to 2 [16:41:10] + container: matroska,webm [16:41:10] + data rate: 9993 kbps [16:41:10] * destination [16:41:10] + /output/.m7jNfW/Test 264 i.MP4 [16:41:10] + container: MPEG-4 (libavformat) [16:41:10] + chapter markers [16:41:10] * video track [16:41:10] + decoder: h264_qsv 8-bit (yuv420p) [16:41:10] + Output geometry [16:41:10] + storage dimensions: 1920 x 1080 [16:41:10] + pixel aspect ratio: 1 : 1 [16:41:10] + display dimensions: 1920 x 1080 [16:41:10] + encoder: H.265 (Intel Media SDK) [16:41:10] + preset: speed [16:41:10] + profile: auto [16:41:10] + level: auto [16:41:10] + quality: 22.00 (ICQ) [16:41:10] + color profile: 1-1-1 [16:41:10] * audio track 1 [16:41:10] + decoder: English (E-AC3) (2.0 ch) (224 kbps) (track 1, id 0x1) [16:41:10] + bitrate: 224 kbps, samplerate: 48000 Hz [16:41:10] + mixdown: Stereo [16:41:10] + encoder: AAC (libfdk_aac) [16:41:10] + bitrate: 160 kbps, samplerate: 48000 Hz [16:41:10] sync: expecting 67592 video frames [16:41:10] thread 7fe085fe1b20 started ("Audio Synchronization") [16:41:10] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.12.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_12 libva info: va_openDriver() returns 0 [16:41:10] encqsvInit: using encode-only path [16:41:10] encqsvInit: H.265/HEVC Main profile @ level (null) [16:41:10] encqsvInit: TargetUsage 7 AsyncDepth 4 [16:41:10] encqsvInit: GopRefDist 3 GopPicSize 25 NumRefFrame 2 [16:41:10] encqsvInit: BFramesMax 2 BRefType off [16:41:10] encqsvInit: RateControlMethod ICQ ICQQuality 22 [16:41:10] Writing Metadata to output file... [16:41:10] thread 7fe085ea7b20 started ("Muxer") [16:41:10] thread 7fe085e84b20 started ("Reader") [16:41:10] ffmpeg_read starting chapter 1 at 0 [16:41:10] thread 7fe085e61b20 started ("Audio decoder (libavcodec)") [16:41:10] thread 7fe085e3eb20 started ("Video decoder (libavcodec)") [16:41:10] thread 7fe085e1bb20 started ("Video Synchronization") [16:41:10] thread 7fe085df8b20 started ("AVCodec Audio encoder (libavcodec)") [16:41:10] thread 7fe085dd5b20 started ("Quick Sync Video encoder (Intel Media SDK)") [16:41:10] thread 7fe085db2b20 started ("Muxer")

johnvick avatar Mar 07 '22 03:03 johnvick

And the container's log ?

docker logs <container name>

jlesage avatar Mar 07 '22 03:03 jlesage

Thanks for looking into this. Here's the log:

The scheme stores pixel data offscreen on the VNC viewer side for faster retrieval. It should work with any VNC viewer. Try it by running:

x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion. More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

[autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Watch folder '/watch' processing terminated. [services.d] starting statusmonitor... [services.d] starting app... [statusmonitor] no file to monitor: disabling service... [app] starting HandBrake... [services.d] done. 07/03/2022 16:36:09 Got connection from client 127.0.0.1 07/03/2022 16:36:09 other clients: 07/03/2022 16:36:09 Got 'ws' WebSockets handshake 07/03/2022 16:36:09 Got protocol: binary 07/03/2022 16:36:09 - webSocketsHandshake: using binary/raw encoding 07/03/2022 16:36:09 - WebSockets client version hybi-13 07/03/2022 16:36:09 Disabled X server key autorepeat. 07/03/2022 16:36:09 to force back on run: 'xset r on' (3 times) 07/03/2022 16:36:09 incr accepted_client=1 for 127.0.0.1:45794 sock=10 07/03/2022 16:36:09 Client Protocol Version 3.8 07/03/2022 16:36:09 Protocol version sent 3.8, using 3.8 07/03/2022 16:36:09 rfbProcessClientSecurityType: executing handler for type 1 07/03/2022 16:36:09 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8 07/03/2022 16:36:09 Pixel format for client 127.0.0.1: 07/03/2022 16:36:09 32 bpp, depth 24, little endian 07/03/2022 16:36:09 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0 07/03/2022 16:36:09 no translation needed 07/03/2022 16:36:09 Enabling NewFBSize protocol extension for client 127.0.0.1 07/03/2022 16:36:09 Enabling full-color cursor updates for client 127.0.0.1 07/03/2022 16:36:09 Using image quality level 6 for client 127.0.0.1 07/03/2022 16:36:09 Using JPEG subsampling 0, Q79 for client 127.0.0.1 07/03/2022 16:36:09 Using compression level 9 for client 127.0.0.1 07/03/2022 16:36:09 Enabling LastRect protocol extension for client 127.0.0.1 07/03/2022 16:36:09 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC) 07/03/2022 16:36:09 Using tight encoding for client 127.0.0.1 07/03/2022 16:36:10 client_set_net: 127.0.0.1 0.0002 07/03/2022 16:36:10 created xdamage object: 0x200040 07/03/2022 16:36:11 copy_tiles: allocating first_line at size 61 07/03/2022 16:36:19 created selwin: 0x200041 07/03/2022 16:36:19 called initialize_xfixes() 07/03/2022 16:37:01 client 1 network rate 1204.9 KB/sec (45272.1 eff KB/sec) 07/03/2022 16:37:01 client 1 latency: 0.7 ms 07/03/2022 16:37:01 dt1: 0.0040, dt2: 0.0057 dt3: 0.0007 bytes: 11218 07/03/2022 16:37:01 link_rate: LR_LAN - 1 ms, 1204 KB/s [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264.mkv.filepart'... [autovideoconverter] Skipping '/watch/Test 264.mkv.filepart': currently being copied. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264.mkv.filepart'... [autovideoconverter] Skipping '/watch/Test 264.mkv.filepart': currently being copied. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264.mkv.filepart'... [autovideoconverter] Skipping '/watch/Test 264.mkv.filepart': currently being copied. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264.mkv.filepart'... [autovideoconverter] Skipping '/watch/Test 264.mkv.filepart': currently being copied. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264.mkv.filepart'... find: ‘/watch/Test 264.mkv.filepart’: No such file or directory [autovideoconverter] Skipping '/watch/Test 264.mkv.filepart': currently being copied. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264.mkv'... [autovideoconverter] Starting conversion of '/watch/Test 264.mkv' (bb435629f321a40beeec614a56fa79a6) using preset 'Hardware/H.265 QSV 1080p'... [autovideoconverter] 1 title(s) to process. [autovideoconverter] Conversion ended successfully. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Skipping video '/watch/Test 264 h.mkv' (df0293998cb69f0b640cb33bf08a6c8e): already processed successfully. [autovideoconverter] Watch folder '/watch' processing terminated. [autovideoconverter] Change detected in watch folder '/watch'. [autovideoconverter] Processing watch folder '/watch'... [autovideoconverter] Waiting 5 seconds before processing '/watch/Test 264 i.mkv'... [autovideoconverter] Starting conversion of '/watch/Test 264 i.mkv' (6bb6bdde4bfcff1c0487690bf4218355) using preset 'Hardware/H.265 QSV 1080p'... [autovideoconverter] 1 title(s) to process. 07/03/2022 16:41:11 idle keyboard: turning X autorepeat back on. [autovideoconverter] Conversion ended successfully. [autovideoconverter] Watch folder '/watch' processing terminated.

johnvick avatar Mar 07 '22 03:03 johnvick

Hey @jlesage any update on this? It's the only thing I even use a docker image for in the first place not having the watch folder working is a huge issue.It's gotta be an issue with intel quick sync though and it's not the lowpower one. Dropping a file into the watch folder manually works, but having it downloaded to the watch folder will just create the 0 byte file... without any special error output.

heldiho53 avatar May 22 '22 23:05 heldiho53

Spent hours trying to get this going and I think I have narrowed it down to this entry in the conversion log:

"Invalid preset "General/Very Fast 1080p30" Valid presets are: General/ Very Fast 1080p30 Small H.264 video (up to 1080p30) and AAC stereo audio, in an MP4 container."

Same happens with other presets.

Excerpt from my Portainer stack:

  • AUTOMATED_CONVERSION_PRESET="General/Very Fast 1080p30"

So I may have a config error but can't work it out.

Any help appreciated.

Edit - this is on a Tiger Lake CPU device, not the same one as at the top of this thread.

johnvick avatar Jul 11 '22 04:07 johnvick

@heldiho53

Dropping a file into the watch folder manually works, but having it downloaded to the watch folder will just create the 0 byte file... without any special error output.

Is the conversion starting before the file is fully downloaded ?

jlesage avatar Jul 11 '22 16:07 jlesage

@johnvick, if you run docker inspect <container name>, does the environment variable has the correct value ?

jlesage avatar Jul 11 '22 16:07 jlesage

Selection from Portainer stack: environment: - USER_ID=1000 - GROUP_ID=1000 - TZ=Pacific/Auckland - AUTOMATED_CONVERSION_FORMAT=MKV - "AUTOMATED_CONVERSION_PRESET=Hardware/H.265 QSV 1080p JV" - Selection from Docker inspect: "Env": [ "AUTOMATED_CONVERSION_FORMAT=MKV", "AUTOMATED_CONVERSION_PRESET=Hardware/H.265 QSV 1080p JV", "AUTOMATED_CONVERSION_KEEP_SOURCE=1",

The preset is modified stock with lowpower=0

Manually starting the job works but auto convert leaves a 0 byte file and nothing in the log - in the case of downloads, the downloads arriving in the watch folder via syncthing.

Copying a file locally starts the auto convert but not every time, I think this has to do with the file.

Thanks for your input, would love to get this working.

Edit: Forgot to mention the relative success has only been since changing:

AUTOMATED_CONVERSION_PRESET="Hardware/H.265 QSV 1080p JV" to "AUTOMATED_CONVERSION_PRESET=Hardware/H.265 QSV 1080p JV"

As was suggested in another thread here yesterday.

Second edit:

Received file by syncthing at 4:45 PM 0 byte file in output folder at 4:48 PM I'll put log in next message.

johnvick avatar Jul 12 '22 03:07 johnvick

`[16:48:40] CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz [16:48:40] - Intel microarchitecture Tiger Lake [16:48:40] - logical processor count: 4 [16:48:40] Intel Quick Sync Video support: yes [16:48:40] - Intel Media SDK hardware: API 1.35 (minimum: 1.3) [16:48:40] - Decode support: h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes) [16:48:40] - H.264 encoder: yes [16:48:40] - preferred implementation: hardware (any) via ANY [16:48:40] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice [16:48:40] - H.265 encoder: yes (8bit: yes, 10bit: yes) [16:48:40] - preferred implementation: hardware (any) via ANY [16:48:40] - capabilities (hardware): lowpower bpyramid icq vsinfo opt1 [16:48:40] hb_scan: path=/watch/new episode/new episode.mkv, title_index=1 [16:48:40] thread 7fd5c8460b38 started ("scan") udfread ERROR: ECMA 167 Volume Recognition failed disc.c:333: failed opening UDF image /watch/new episode/new episode.mkv disc.c:437: error opening file BDMV/index.bdmv disc.c:437: error opening file BDMV/BACKUP/index.bdmv bluray.c:2646: nav_get_title_list(/watch/new episode/new episode.mkv/) failed [16:48:40] bd: not a bd - trying as a stream/file instead libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav: vm: vm: failed to read VIDEO_TS.IFO [16:48:40] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/watch/new episode/new episode.mkv': Metadata: encoder : libebml v1.4.2 + libmatroska v1.6.4 Duration: 00:36:42.59, start: 0.000000, bitrate: 5227 kb/s Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 256 kb/s (default) Stream #0:2(eng): Subtitle: subrip Metadata: title : English [SDH] Stream #0:3(spa): Subtitle: subrip Metadata: title : Spanish [SDH] [16:48:40] Found ffmpeg 0 chapters, container=matroska,webm [16:48:40] scan: decoding previews for title 1 [16:48:40] scan: preview 1 [16:48:40] fifo_close: trashing 0 buffer(s) [16:48:40] scan: audio 0x1: eac3, rate=48000Hz, bitrate=256000 English (E-AC3) (5.1 ch) (256 kbps) [16:48:40] scan: preview 2 [16:48:40] scan: preview 3 [16:48:40] scan: preview 4 [16:48:40] scan: preview 5 [16:48:40] scan: preview 6

Scanning title 1 of 1, preview 6, 60.00 %[16:48:40] scan: preview 7 [16:48:40] scan: preview 8 [16:48:40] scan: preview 9 [16:48:40] scan: preview 10 [16:48:41] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 22/22/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left [16:48:41] scan: supported video decoders: avcodec qsv [16:48:41] Freed 1 buffers of size 1024 [16:48:41] Freed 1 buffers of size 2048 [16:48:41] Freed 1 buffers of size 8192 [16:48:41] Freed 1 buffers of size 16384 [16:48:41] Freed 1 buffers of size 32768 [16:48:41] Freed 1 buffers of size 65536 [16:48:41] Freed 1 buffers of size 131072 [16:48:41] Freed 1 buffers of size 262144 [16:48:41] Freed 2 buffers of size 4194304 [16:48:41] Allocated 8907776 bytes of buffers on this pass and Freed 8907776 bytes, 0 bytes leaked [16:48:41] thread 7fd5c8460b38 exited ("scan")

Scanning title 1 of 1, preview 10, 100.00 %[16:48:41] thread 7fd5c8460b38 joined ("scan") [16:48:41] libhb: scan thread found 1 valid title(s)

  • Using preset: H.265 QSV 1080p JV
  • title 1:
    • stream: /watch/new episode/new episode.mkv
    • duration: 00:36:42
    • size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
    • autocrop: 22/22/0/0
    • chapters:
      • 1: duration 00:36:42
    • audio tracks:
      • 1, English (E-AC3) (5.1 ch) (256 kbps) (iso639-2: eng)
    • subtitle tracks:
      • 1, English [UTF-8]
      • 2, español [UTF-8] [16:48:41] thread 7fd5c8460b38 started ("work") [16:48:41] Starting work at: Tue Jul 12 16:48:41 2022

[16:48:41] 1 job(s) to process [16:48:41] json job: { "Audio": { "AudioList": [ { "Bitrate": 160, "CompressionLevel": -1.0, "DRC": 0.0, "DitherMethod": "auto", "Encoder": "fdk_aac", "Gain": 0.0, "Mixdown": "stereo", "NormalizeMixLevel": false, "PresetEncoder": "fdk_aac", "Quality": -3.0, "Samplerate": 0, "Track": 0 } ], "CopyMask": [ "copy:aac" ], "FallbackEncoder": "none" }, "Destination": { "AlignAVStart": false, "ChapterList": [ { "Duration": { "Hours": 0, "Minutes": 36, "Seconds": 42, "Ticks": 198233280 }, "Name": "" } ], "ChapterMarkers": false, "File": "/output/.P7IjbB/new episode.MKV", "InlineParameterSets": false, "Mp4Options": { "IpodAtom": false, "Mp4Optimize": false }, "Mux": "mkv" }, "Filters": { "FilterList": [ { "ID": 6, "Settings": { "mode": 1 } }, { "ID": 13, "Settings": { "crop-bottom": 0, "crop-left": 0, "crop-right": 0, "crop-top": 0, "height": 1080, "width": 1920 } } ] }, "Metadata": {}, "PAR": { "Den": 1, "Num": 1 }, "SequenceID": 0, "Source": { "Angle": 0, "Path": "/watch/new episode/new episode.mkv", "Range": { "End": 1, "Start": 1, "Type": "chapter" }, "Title": 1 }, "Subtitle": { "Search": { "Burn": true, "Default": false, "Enable": false, "Forced": false }, "SubtitleList": [] }, "Video": { "Bitrate": 2300, "ChromaLocation": 1, "ColorInputFormat": 0, "ColorMatrix": 1, "ColorOutputFormat": 0, "ColorPrimaries": 1, "ColorRange": 0, "ColorTransfer": 1, "Encoder": "qsv_h265", "Level": "auto", "Options": "lowpower=0", "Preset": "speed", "Profile": "auto", "QSV": { "AdapterIndex": 0, "AsyncDepth": 0, "Decode": true }, "Tune": "", "Turbo": false, "TwoPass": false } } [16:48:41] Starting Task: Encoding Pass [16:48:41] Skipping crop/scale filter [16:48:41] job configuration: [16:48:41] * source [16:48:41] + /watch/new episode/new episode.mkv [16:48:41] + title 1, chapter(s) 1 to 1 [16:48:41] + container: matroska,webm [16:48:41] + data rate: 5227 kbps [16:48:41] * destination [16:48:41] + /output/.P7IjbB/new episode.MKV [16:48:41] + container: Matroska (libavformat) [16:48:41] * video track [16:48:41] + decoder: h264_qsv 8-bit (yuv420p) [16:48:41] + filter [16:48:41] + Framerate Shaper (mode=1) [16:48:41] + frame rate: 23.976 fps -> constant 23.976 fps [16:48:41] + Output geometry [16:48:41] + storage dimensions: 1920 x 1080 [16:48:41] + pixel aspect ratio: 1 : 1 [16:48:41] + display dimensions: 1920 x 1080 [16:48:41] + encoder: H.265 (Intel Media SDK) [16:48:41] + preset: speed [16:48:41] + options: lowpower=0 [16:48:41] + profile: auto [16:48:41] + level: auto [16:48:41] + bitrate: 2300 kbps, pass: 0 [16:48:41] + color profile: 1-1-1 [16:48:41] + chroma location: left [16:48:41] * audio track 1 [16:48:41] + decoder: English (E-AC3) (5.1 ch) (256 kbps) (track 1, id 0x1) [16:48:41] + bitrate: 256 kbps, samplerate: 48000 Hz [16:48:41] + mixdown: Stereo [16:48:41] + encoder: AAC (libfdk_aac) [16:48:41] + bitrate: 160 kbps, samplerate: 48000 Hz [16:48:41] sync: expecting 52809 video frames [16:48:41] thread 7fd5c83dcb38 started ("Audio Synchronization") [16:48:41] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.14.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_14 libva info: va_openDriver() returns 0 [16:48:41] encqsvInit: using encode-only path [16:48:41] encqsvInit: H.265/HEVC Main profile @ level 4.0 [16:48:41] encqsvInit: TargetUsage 7 AsyncDepth 6 [16:48:41] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 2 [16:48:41] encqsvInit: BFramesMax 2 BRefType off [16:48:41] encqsvInit: RateControlMethod VBR TargetKbps 2300 MaxKbps 2300 BufferSizeInKB 575 InitialDelayInKB 287 BRCParamMultiplier 1 [16:48:41] Writing Metadata to output file... [16:48:41] thread 7fd5c7fb9b38 started ("Muxer") [16:48:41] thread 7fd5c7f70b38 started ("Reader") [16:48:41] ffmpeg_read starting chapter 1 at 0 [16:48:41] thread 7fd5c7d57b38 started ("Audio decoder (libavcodec)") [16:48:41] thread 7fd5c7d34b38 started ("Video decoder (libavcodec)") [16:48:41] thread 7fd5c7d11b38 started ("Video Synchronization") [16:48:41] thread 7fd5c7ceeb38 started ("AVCodec Audio encoder (libavcodec)") [16:48:41] thread 7fd5c7ccbb38 started ("Quick Sync Video encoder (Intel Media SDK)") [16:48:41] thread 7fd5c7ca8b38 started ("Muxer") [16:48:41] thread 7fd5c7c85b38 started ("Framerate Shaper") `

johnvick avatar Jul 12 '22 05:07 johnvick

If you still have issues with this here a few things:

If you change a stock preset handbrake does create a new category. For Hardware for example the category will be My Hardware/yourpreset and not Hardware/yourpreset. Also lowpower=0 in VideoOptionExtra doesn't work in the newest version. Remove lowpower=0 I just tested it.

heldiho53 avatar Mar 19 '23 16:03 heldiho53

Thanks for this, I'll test it when back from holiday next weekend.

johnvick avatar Mar 19 '23 20:03 johnvick

Thanks for this, I'll test it when back from holiday next weekend.

Skip it. Doesn't work reliably. Have to test more. Man this is finicky.

EDIT: Seems to be working fine but only as root.

heldiho53 avatar Mar 21 '23 10:03 heldiho53

The conversion.log should dump all valid preset names. Make sure you set the correct one in environment variable.

Also lowpower=0 in VideoOptionExtra doesn't work in the newest version. Remove lowpower=0 I just tested it.

I've seen reports were lowpower=0 is still needed. But not in all cases.

Skip it. Doesn't work reliably. Have to test more. Man this is finicky.

What doesn't work exactly ?

EDIT: Seems to be working fine but only as root.

That points to a permission issue.

jlesage avatar Mar 21 '23 11:03 jlesage

That points to a permission issue.

Yeah that's true I forgot to do sudo chmod a+wr /dev/dri/* I only changed the group to video and added my user. That now works without root.

heldiho53 avatar Mar 21 '23 13:03 heldiho53

Revisiting this - I am using Intel Tiger Lake i7. QSV 265 works when started manually but does not work with watch folder with my slightly modified profile. 265 CPU encoding works with watch folder.

The relevant lines from my Docker compose:

  • AUTOMATED_CONVERSION_PRESET=JV/H.265 QSV 1080p JV
  • AUTOMATED_CONVERSION_PRESET=JV/265 CPU

root or regular user - no difference lowpower on or off - no difference

Anyone get watch folder and QSV working? What's the secret? A secondary question is how can I enable 10 bit QSV 265?

johnvick avatar Mar 31 '23 03:03 johnvick

When you say it works when started manually, you mean when using the GUI ? Did you check at the conversion.log log file to make sure the correct preset is used ?

jlesage avatar Mar 31 '23 12:03 jlesage

Yes manual via GUI - successful QSV encoding.

I try watch folder: brief flash on the screen indicating encoding starting, then it stops. Zero byte file is output and entry added to the successful_conversions log. Log below.

`------- CONVERSION OUTPUT Sat Apr 1 07:01:36 NZDT 2023 ------- [07:01:36] Compile-time hardening features are enabled [07:01:36] hb_display_init: attempting VA driver 'iHD' libva info: VA-API version 1.17.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_17 libva info: va_openDriver() returns 0 [07:01:36] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.17.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_17 libva info: va_openDriver() returns 0 [07:01:36] qsv: is available on this system Cannot load libnvidia-encode.so.1 [07:01:36] hb_init: starting libhb thread [07:01:36] thread 7f6710c12b38 started ("libhb") HandBrake 1.6.1 (2023030600) - Linux x86_64 - https://handbrake.fr 8 CPUs detected Opening /watch/video.mkv... [07:01:36] CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz [07:01:36] - Intel microarchitecture Tiger Lake [07:01:36] - logical processor count: 8 [07:01:36] Intel Quick Sync Video support: yes [07:01:36] Intel Quick Sync Video integrated adapter with index 0 [07:01:36] Impl mfxhw64 library path: /opt/intel/mediasdk/lib/libmfxhw64.so.1.35 [07:01:36] - Intel Media SDK hardware: API 1.35 (minimum: 1.3) [07:01:36] - Decode support: h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes) [07:01:36] - H.264 encoder: yes [07:01:36] - preferred implementation: hardware (any) via ANY [07:01:36] - capabilities (hardware): lowpower breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice [07:01:36] - H.265 encoder: yes (8bit: yes, 10bit: yes) [07:01:36] - preferred implementation: hardware (any) via ANY [07:01:36] - capabilities (hardware): lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1 [07:01:36] - AV1 encoder: no [07:01:36] hb_scan: path=/watch/video.mkv, title_index=1 [07:01:36] thread 7f6710befb38 started ("scan") udfread ERROR: ECMA 167 Volume Recognition failed disc.c:333: failed opening UDF image /watch/video.mkv disc.c:437: error opening file BDMV/index.bdmv disc.c:437: error opening file BDMV/BACKUP/index.bdmv [07:01:36] bd: not a bd - trying as a stream/file instead libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav: vm: vm: failed to read VIDEO_TS.IFO [07:01:36] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/watch/video.mkv': Metadata: encoder : libebml v1.4.4 + libmatroska v1.7.1 creation_time : 2023-03-30T16:06:04.000000Z Duration: 00:46:09.52, start: 0.000000, bitrate: 3716 kb/s Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default) Metadata: BPS : 3586520 DURATION : 00:46:09.440000000 NUMBER_OF_FRAMES: 69236 NUMBER_OF_BYTES : 1241581549 _STATISTICS_WRITING_APP: mkvmerge v75.0.0 ('Goliath') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-03-30 16:06:04 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Metadata: BPS : 127762 DURATION : 00:46:09.514000000 NUMBER_OF_FRAMES: 129821 NUMBER_OF_BYTES : 44229936 _STATISTICS_WRITING_APP: mkvmerge v75.0.0 ('Goliath') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-03-30 16:06:04 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Subtitle: subrip Metadata: title : SDH BPS : 84 DURATION : 00:46:02.400000000 NUMBER_OF_FRAMES: 554 NUMBER_OF_BYTES : 29263 _STATISTICS_WRITING_APP: mkvmerge v75.0.0 ('Goliath') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-03-30 16:06:04 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES [07:01:36] Found ffmpeg 0 chapters, container=matroska,webm [07:01:36] scan: decoding previews for title 1 [07:01:36] scan: preview 1 [07:01:36] fifo_close: trashing 0 buffer(s) [07:01:36] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (AAC LC) (2.0 ch) [07:01:36] scan: preview 2 [07:01:37] scan: preview 3 [07:01:37] scan: preview 4 [07:01:37] scan: preview 5 [07:01:37] scan: preview 6 [07:01:37] scan: preview 7 [07:01:37] scan: preview 8

Scanning title 1 of 1, preview 8, 80.00 %[07:01:37] scan: preview 9 [07:01:37] scan: preview 10 [07:01:37] crop: [0] 21/20/0/0 [07:01:37] crop: [1] 21/21/0/0 [07:01:37] crop: [2] 21/21/0/0 [07:01:37] crop: [3] 21/21/0/0 [07:01:37] crop: [4] 21/21/0/0 [07:01:37] crop: [5] 21/21/0/0 [07:01:37] crop: [6] 21/21/0/0 [07:01:37] crop: [7] 21/21/0/0 [07:01:37] crop: [8] 21/21/0/0 [07:01:37] crop: [9] 22/22/38/34 [07:01:37] crop: less_than_median_frame_count: 0, [07:01:37] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 22/22/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left [07:01:37] scan: supported video decoders: avcodec qsv [07:01:37] Freed 1 buffers of size 1024 [07:01:37] Freed 1 buffers of size 2048 [07:01:37] Freed 1 buffers of size 4096 [07:01:37] Freed 1 buffers of size 8192 [07:01:37] Freed 1 buffers of size 16384 [07:01:37] Freed 1 buffers of size 32768 [07:01:37] Freed 1 buffers of size 65536 [07:01:37] Freed 1 buffers of size 131072 [07:01:37] Freed 1 buffers of size 262144 [07:01:37] Freed 1 buffers of size 524288 [07:01:37] Freed 2 buffers of size 4194304 [07:01:37] Allocated 9436160 bytes of buffers on this pass and Freed 9436160 bytes, 0 bytes leaked [07:01:37] thread 7f6710befb38 exited ("scan") [07:01:37] thread 7f6710befb38 joined ("scan") [07:01:37] libhb: scan thread found 1 valid title(s)

  • Using preset: H.265 QSV 1080p JV
  • title 1:
    • stream: /watch/video.mkv
    • duration: 00:46:09
    • size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
    • autocrop: 22/22/0/0
    • chapters:
      • 1: duration 00:46:09
    • audio tracks:
      • 1, English (AAC LC) (2.0 ch) (iso639-2: eng)
    • subtitle tracks:
      • 1, English [UTF-8] [07:01:37] thread 7f67108e2b38 started ("work") [07:01:37] Starting work at: Sat Apr 1 07:01:37 2023

[07:01:37] 1 job(s) to process [07:01:37] json job: { "Audio": { "AudioList": [ { "Bitrate": 160, "CompressionLevel": -1.0, "DRC": 0.0, "DitherMethod": "auto", "Encoder": "fdk_aac", "Gain": 0.0, "Mixdown": "stereo", "NormalizeMixLevel": false, "PresetEncoder": "fdk_aac", "Quality": -3.0, "Samplerate": 0, "Track": 0 } ], "CopyMask": [ "copy:aac" ], "FallbackEncoder": "none" }, "Destination": { "AlignAVStart": false, "ChapterList": [ { "Duration": { "Hours": 0, "Minutes": 46, "Seconds": 9, "Ticks": 249256800 }, "Name": "" } ], "ChapterMarkers": false, "File": "/output/.itdVAP/video.MKV", "InlineParameterSets": false, "Mp4Options": { "IpodAtom": false, "Mp4Optimize": false }, "Mux": "mkv" }, "Filters": { "FilterList": [ { "ID": 7, "Settings": { "mode": 1 } }, { "ID": 14, "Settings": { "crop-bottom": 22, "crop-left": 0, "crop-right": 0, "crop-top": 22, "height": 1036, "width": 1920 } } ] }, "Metadata": {}, "PAR": { "Den": 1, "Num": 1 }, "SequenceID": 0, "Source": { "Angle": 0, "Path": "/watch/video.mkv", "Range": { "End": 1, "Start": 1, "Type": "chapter" }, "Title": 1 }, "Subtitle": { "Search": { "Burn": true, "Default": false, "Enable": false, "Forced": false }, "SubtitleList": [] }, "Video": { "Bitrate": 2500, "ChromaLocation": 1, "ColorInputFormat": 0, "ColorMatrix": 1, "ColorOutputFormat": 0, "ColorPrimaries": 1, "ColorRange": 1, "ColorTransfer": 1, "Encoder": "qsv_h265", "HardwareDecode": 0, "Level": "auto", "Options": "lowpower=0", "Preset": "balanced", "Profile": "auto", "QSV": { "AdapterIndex": 0, "AsyncDepth": 0, "Decode": true }, "Tune": "", "Turbo": false, "TwoPass": false } } [07:01:37] Starting Task: Encoding Pass [07:01:37] job configuration: [07:01:37] * source [07:01:37] + /watch/video.mkv [07:01:37] + title 1, chapter(s) 1 to 1 [07:01:37] + container: matroska,webm [07:01:37] + data rate: 3716 kbps [07:01:37] * destination [07:01:37] + /output/.itdVAP/video.MKV [07:01:37] + container: Matroska (libavformat) [07:01:37] * video track [07:01:37] + decoder: h264_qsv 8-bit (yuv420p) [07:01:37] + filters [07:01:37] + Framerate Shaper (mode=1) [07:01:37] + frame rate: 25.000 fps -> constant 25.000 fps [07:01:37] + AVFilter (crop='x=0:y=22:w=1920:h=1036',zscale='width=1920:height=1036:filter=lanczos',format='pix_fmts=yuv420p',format='pix_fmts=nv12') [07:01:37] + crop: x=0, y=22, w=1920, h=1036 [07:01:37] + zscale: width=1920, height=1036, filter=lanczos [07:01:37] + format: pix_fmts=yuv420p [07:01:37] + format: pix_fmts=nv12 [07:01:37] + Crop and Scale (width=1920:height=1036:crop-top=22:crop-bottom=22:crop-left=0:crop-right=0) [07:01:37] + source: 1920 * 1080, crop (22/22/0/0): 1920 * 1036, scale: 1920 * 1036 [07:01:37] + Format (format=nv12) [07:01:37] + Output geometry [07:01:37] + storage dimensions: 1920 x 1036 [07:01:37] + pixel aspect ratio: 1 : 1 [07:01:37] + display dimensions: 1920 x 1036 [07:01:37] + encoder: H.265 (Intel Media SDK) [07:01:37] + preset: balanced [07:01:37] + options: lowpower=0 [07:01:37] + profile: auto [07:01:37] + level: auto [07:01:37] + bitrate: 2500 kbps, pass: 0 [07:01:37] + color profile: 1-1-1 [07:01:37] + chroma location: left [07:01:37] * audio track 1 [07:01:37] + decoder: English (AAC LC) (2.0 ch) (track 1, id 0x1) [07:01:37] + samplerate: 48000 Hz [07:01:37] + mixdown: Stereo [07:01:37] + encoder: AAC (libfdk_aac) [07:01:37] + bitrate: 160 kbps, samplerate: 48000 Hz [07:01:37] sync: expecting 69238 video frames [07:01:37] thread 7f671022db38 started ("Audio Synchronization") [07:01:37] hb_display_init: using VA driver 'iHD' libva info: VA-API version 1.17.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_17 libva info: va_openDriver() returns 0 [07:01:37] encqsvInit: using encode-only path [07:01:37] encqsvInit: H.265/HEVC Main profile @ level 4.0 [07:01:37] encqsvInit: TargetUsage 4 AsyncDepth 6 [07:01:37] encqsvInit: GopRefDist 8 GopPicSize 32 NumRefFrame 4 IdrInterval 0 [07:01:37] encqsvInit: BFramesMax 7 BRefType pyramid [07:01:37] encqsvInit: RateControlMethod VBR TargetKbps 2500 MaxKbps 2500 BufferSizeInKB 625 InitialDelayInKB 312 BRCParamMultiplier 1 [07:01:37] Writing Metadata to output file... [07:01:37] thread 7f670fd93b38 started ("Muxer") [07:01:37] thread 7f670fd70b38 started ("Reader") [07:01:37] thread 7f670fd4db38 started ("Audio decoder (libavcodec)") [07:01:37] thread 7f670fd2ab38 started ("Video decoder (libavcodec)") [07:01:37] thread 7f670fcdfb38 started ("Video Synchronization") [07:01:37] thread 7f670fc91b38 started ("AVCodec Audio encoder (libavcodec)") [07:01:37] ffmpeg_read starting chapter 1 at 7200 [07:01:37] thread 7f670fc6eb38 started ("Quick Sync Video encoder (Intel Media SDK)") [07:01:37] thread 7f670fc4bb38 started ("Muxer") [07:01:37] thread 7f670fc17b38 started ("Framerate Shaper") [07:01:37] thread 7f670fbe3b38 started ("AVFilter") `

johnvick avatar Mar 31 '23 18:03 johnvick