Unmanic / unmanic

Unmanic - Library Optimiser
GNU General Public License v3.0
1.64k stars 82 forks source link

[Bug] File ending prematurely but job marked as Success #344

Open p4xel opened 2 years ago

p4xel commented 2 years ago

Description

I am using Unmanic to convert videos to H265 using Intel QS. On some random occasions the output file is truncated, sometimes even at ~50%, but the job log is shown as "Success" Most of the time when I run the job again it finished without error

Steps to Reproduce

Could not reproduce

Versions

Version: [0.2.2+22be742] OS: Synology DSM 7.0.1-42218 Update 3

Installation Method Used

Docker: josh5/unmanic:latest Assigned RAM: 4GB

Additional Information

Plugins:

Proposed workaround

Check output length (time or frames) and fail job if substantially smaller than input (could be implemented as a plugin similar to "Reject File if Larger than Original")

Josh5 commented 2 years ago

Could you try an older version of FFmpeg?

p4xel commented 2 years ago

I can spin up older Docker container, which version should I try?

Josh5 commented 2 years ago

I can spin up older Docker container, which version should I try?

Just install a different version of FFmpeg inside the container

SebastianMoyano commented 1 year ago

I'm also getting this error, some files get truncated and shown as success, did changing ffmpeg work? Is there a way to make the plugin fail in this case? Inside the logs I found this, File ended prematurely FFmpeg. I tried with the Video Encoder H265/HEVC - hevc_qsv (Intel) and the Video Encoder H265/HEVC - hevc_vaapi (INTEL/AMD) plugin, getting this same errors, which are shown as success in the GUI, here is a little more of the log given by the plugin. This only happens in some files, and the thing is I only know that there is a problem after watching and the video being cut randomly. `Stream mapping:

Stream #0:0 -> #0:0 (copy)

Stream #0:1 -> #0:1 (copy)

Stream #0:2 -> #0:2 (copy)

Stream #0:3 -> #0:3 (ass (ssa) -> subrip (native))

Stream #0:4 -> #0:4 (ass (ssa) -> subrip (native))

Stream #0:5 -> #0:5 (copy)

Stream #0:6 -> #0:6 (copy)

Stream #0:7 -> #0:7 (copy)

Stream #0:8 -> #0:8 (copy)

Stream #0:9 -> #0:9 (copy)

Stream #0:10 -> #0:10 (copy)

Press [q] to stop, [?] for help

frame= 1 fps=0.0 q=-1.0 size= 6400kB time=00:00:00.00 bitrate=N/A speed= 0x

[matroska,webm @ 0x5587b4b20180] File ended prematurely

frame= 3394 fps=0.0 q=-1.0 Lsize= 37886kB time=00:02:21.45 bitrate=2194.1kbits/s speed= 997x

video:26450kB audio:4708kB subtitle:10kB other streams:0kB global headers:6596kB muxing overhead: 21.554758%`

SebastianMoyano commented 1 year ago

Updated ffmpeg, but I'm still getting this error from time to time