jlesage / docker-handbrake

Docker container for HandBrake
MIT License
855 stars 97 forks source link

Automatic Conversion failing/crashing? #60

Closed shaboigan closed 5 years ago

shaboigan commented 5 years ago

I'm not sure if its just me but when I drop a 20GBish file into the watch folder for processing handbrake does its thing but seems to fail about 2% into the conversion, but weirdly only on the reporting/logs side, I can watch the file size grow and the CPU usage high until it finishes the job and everything returns to normal, but the file never gets moved out of the temp location and handbrake doesn't report it as a successful or failed conversion, and if I move the source file out of the watch folder handbrake doesn't see it go as it normally does and I am unable to convert anything else unless I restart the container.

jlesage commented 5 years ago

Can you provide the container's log?

Also, log/hb/conversion.log (located under the folder you mapped to /config) contains the Handbrake conversion log.

Wdavery commented 5 years ago

Having the same issue here. My automated system is getting very congested. It seems to "finish" the current job and then die completely. Just sits there idle until a restart.

Wdavery commented 5 years ago

`------- CONVERSION OUTPUT Wed May 1 11:50:34 UTC 2019 ------- [11:50:34] hb_display_init: attempting VA driver 'iHD' libva info: VA-API version 1.4.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_1_4 libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed libva info: va_openDriver() returns 1 [11:50:34] hb_display_init: attempting VA driver 'i965' libva info: VA-API version 1.4.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'i965' libva info: Trying to open /opt/intel/mediasdk/lib64/i965_drv_video.so libva info: Found init function vaDriverInit_1_4 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 [11:50:34] hb_init: starting libhb thread [11:50:34] thread 7f65837cdb10 started ("libhb") HandBrake 1.2.2 (2019042600) - Linux x86_64 - https://handbrake.fr 8 CPUs detected Opening /watch/Series/Bones.S08E01.The.Future.in.the.Past.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-EPSiLON/834196824074430ca20c01dcaaab7889.mkv... [11:50:34] CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz [11:50:34] - Intel microarchitecture Ivy Bridge [11:50:34] - logical processor count: 8 [11:50:34] Intel Quick Sync Video support: yes [11:50:34] - Intel Media SDK hardware: API 1.28 (minimum: 1.3) [11:50:34] - H.264 encoder: yes [11:50:34] - preferred implementation: hardware (any) via D3D11 [11:50:34] - capabilities (hardware): vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice [11:50:34] - H.265 encoder: no [11:50:34] hb_scan: path=/watch/Series/Bones.S08E01.The.Future.in.the.Past.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-EPSiLON/834196824074430ca20c01dcaaab7889.mkv, title_index=1 udfread ERROR: ECMA 167 Volume Recognition failed disc.c:323: failed opening UDF image /watch/Series/Bones.S08E01.The.Future.in.the.Past.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-EPSiLON/834196824074430ca20c01dcaaab7889.mkv disc.c:424: error opening file BDMV/index.bdmv disc.c:424: error opening file BDMV/BACKUP/index.bdmv [11:50:34] bd: not a bd - trying as a stream/file instead libdvdnav: Using dvdnav version 6.0.0 libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO [11:50:34] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/watch/Series/Bones.S08E01.The.Future.in.the.Past.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-EPSiLON/834196824074430ca20c01dcaaab7889.mkv': Metadata: encoder : libebml v1.3.5 + libmatroska v1.4.8 creation_time : 2017-12-10T14:15:51.000000Z Duration: 00:43:47.10, start: 0.000000, bitrate: 28059 kb/s Chapter #0:0: start 0.000000, end 36.578000 Metadata: title : Chapter 1 Chapter #0:1: start 36.578000, end 279.863000 Metadata: title : Chapter 2 Chapter #0:2: start 279.863000, end 453.995000 Metadata: title : Chapter 3 Chapter #0:3: start 453.995000, end 610.276000 Metadata: title : Chapter 4 Chapter #0:4: start 610.276000, end 803.469000 Metadata: title : Chapter 5 Chapter #0:5: start 803.469000, end 1033.241000 Metadata: title : Chapter 6 Chapter #0:6: start 1033.241000, end 1296.837000 Metadata: title : Chapter 7 Chapter #0:7: start 1296.837000, end 1515.389000 Metadata: title : Chapter 8 Chapter #0:8: start 1515.389000, end 1724.932000 Metadata: title : Chapter 9 Chapter #0:9: start 1724.932000, end 2058.223000 Metadata: title : Chapter 10 Chapter #0:10: start 2058.223000, end 2419.917000 Metadata: title : Chapter 11 Chapter #0:11: start 2419.917000, end 2627.104000 Metadata: title : Chapter 12 Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: title : MPEG-4 AVC Video / 24407 kbps / 1080p / 23.976 fps / 16:9 / High Profile 4.1 BPS : 24085162 BPS-eng : 24085162 DURATION : 00:43:47.083000000 DURATION-eng : 00:43:47.083000000 NUMBER_OF_FRAMES: 62987 NUMBER_OF_FRAMES-eng: 62987 NUMBER_OF_BYTES : 7909215149 NUMBER_OF_BYTES-eng: 7909215149 _STATISTICS_WRITING_APP: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_APP-eng: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_DATE_UTC: 2017-12-10 14:15:51 _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-10 14:15:51 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default) Metadata: title : DTS-HD Master Audio / 5.1 / 48 kHz / 3529 kbps / 24-bit BPS : 3529084 BPS-eng : 3529084 DURATION : 00:43:47.094000000 DURATION-eng : 00:43:47.094000000 NUMBER_OF_FRAMES: 246290 NUMBER_OF_FRAMES-eng: 246290 NUMBER_OF_BYTES : 1158904668 NUMBER_OF_BYTES-eng: 1158904668 _STATISTICS_WRITING_APP: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_APP-eng: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_DATE_UTC: 2017-12-10 14:15:51 _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-10 14:15:51 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s Metadata: title : Commentary by Cast, Crew or Special Guest #1 BPS : 224000 BPS-eng : 224000 DURATION : 00:43:47.104000000 DURATION-eng : 00:43:47.104000000 NUMBER_OF_FRAMES: 82097 NUMBER_OF_FRAMES-eng: 82097 NUMBER_OF_BYTES : 73558912 NUMBER_OF_BYTES-eng: 73558912 _STATISTICS_WRITING_APP: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_APP-eng: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_DATE_UTC: 2017-12-10 14:15:51 _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-10 14:15:51 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080 Metadata: title : SDH BPS : 78767 BPS-eng : 78767 DURATION : 00:43:41.619000000 DURATION-eng : 00:43:41.619000000 NUMBER_OF_FRAMES: 1590 NUMBER_OF_FRAMES-eng: 1590 NUMBER_OF_BYTES : 25812436 NUMBER_OF_BYTES-eng: 25812436 _STATISTICS_WRITING_APP: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_APP-eng: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_DATE_UTC: 2017-12-10 14:15:51 _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-10 14:15:51 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle, 1920x1080 Metadata: BPS : 70616 BPS-eng : 70616 DURATION : 00:43:44.580000000 DURATION-eng : 00:43:44.580000000 NUMBER_OF_FRAMES: 1346 NUMBER_OF_FRAMES-eng: 1346 NUMBER_OF_BYTES : 23167185 NUMBER_OF_BYTES-eng: 23167185 _STATISTICS_WRITING_APP: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_APP-eng: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_DATE_UTC: 2017-12-10 14:15:51 _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-10 14:15:51 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:5(fre): Subtitle: hdmv_pgs_subtitle, 1920x1080 Metadata: BPS : 67752 BPS-eng : 67752 DURATION : 00:43:44.580000000 DURATION-eng : 00:43:44.580000000 NUMBER_OF_FRAMES: 1356 NUMBER_OF_FRAMES-eng: 1356 NUMBER_OF_BYTES : 22227834 NUMBER_OF_BYTES-eng: 22227834 _STATISTICS_WRITING_APP: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_APP-eng: mkvmerge v18.0.0 ('Apricity') 64-bit _STATISTICS_WRITING_DATE_UTC: 2017-12-10 14:15:51 _STATISTICS_WRITING_DATE_UTC-eng: 2017-12-10 14:15:51 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES [11:50:34] scan: decoding previews for title 1 [11:50:34] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch) [11:50:34] scan: audio 0x2: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)

Scanning title 1 of 1, preview 2, 20.00 % Scanning title 1 of 1, preview 4, 40.00 % Scanning title 1 of 1, preview 5, 50.00 % Scanning title 1 of 1, preview 7, 70.00 % Scanning title 1 of 1, preview 8, 80.00 % Scanning title 1 of 1, preview 10, 100.00 %[11:50:35] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1 [11:50:35] scan: supported video decoders: avcodec qsv [11:50:35] libhb: scan thread found 1 valid title(s)

encoded 62987 frames in 2162.32s (29.13 fps), 2277.13 kb/s, Avg QP:24.63 [12:29:52] mux: track 0, 62987 frames, 748028854 bytes, 2277.86 kbps, fifo 2048 [12:29:52] mux: track 1, 123147 frames, 252205057 bytes, 768.00 kbps, fifo 4096 [12:29:52] libhb: work result = 0`

Wdavery commented 5 years ago

Rolled back to the previous version and this issue disappeared.

jlesage commented 5 years ago

Which version exactly is working?

Wdavery commented 5 years ago

1.16.0

jlesage commented 5 years ago

Please try the latest version, which should fix this issue.