MKV deleted without successful conversion
mjmellin opened this issue · comments
I have found an issue where ffmpeg fails to do the conversion. It fails over to handbrake. However, during the process handbrake crashes and the script believes the conversion completed. However, the MP4 was not created and the MKV is deleted. Should add a check if the MP4 actually exists.
10/25/16 09:36:32 Processing - E:\Video Files\Movies\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT.mkv
10/25/16 09:36:32 File 156 of 167 - 93.41%
10/25/16 09:36:33 ffmpeg completed
10/25/16 09:36:33 Plex library refreshed
10/25/16 09:36:33 EXCEPTION: New file is over 25% smaller (-12576MB). E:\Video Files\Movies\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT.mp4 deleted.
10/25/16 09:36:33 FAILOVER: Re-encoding E:\Video Files\Movies\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT.mkv with Handbrake.
10/25/16 09:51:07 Handbrake finished.
10/25/16 09:51:07 E:\Video Files\Movies\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT\Zootopia.2016.1080p.BluRay.x264.DTS-HD.MA7.1-iFT.mkv deleted.
Here is the crash
Log Name: Application
Source: Windows Error Reporting
Date: 10/25/2016 9:51:07 AM
Event ID: 1001
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: deepspace9
Description:
Fault bucket 120410669831, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: HandBrakeCLI.exe
P2: 0.0.0.0
P3: 56bcf887
P4: HandBrakeCLI.exe
P5: 0.0.0.0
P6: 56bcf887
P7: c0000005
P8: 000000000010a863
P9:
P10:
Attached files:
?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER867F.tmp.WERInternalMetadata.xml
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_HandBrakeCLI.exe_372f4be685e78be3b774a8b0646045e287a5f24d_3933a9e0_62bfd5f7
Analysis symbol:
Rechecking for solution: 0
Report Id: fe37c6ce-709e-4ff2-b39f-bf09cb52bc4c
Report Status: 0
Hashed bucket: 2b835bf7d5f95ae3ebb89458c69cfd71
Event Xml:
1001
4
0
0x80000000000000
30261
Application
deepspace9
120410669831
4
APPCRASH
Not available
0
HandBrakeCLI.exe
0.0.0.0
56bcf887
HandBrakeCLI.exe
0.0.0.0
56bcf887
c0000005
000000000010a863
?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER867F.tmp.WERInternalMetadata.xml
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_HandBrakeCLI.exe_372f4be685e78be3b774a8b0646045e287a5f24d_3933a9e0_62bfd5f7
0
fe37c6ce-709e-4ff2-b39f-bf09cb52bc4c
0
2b835bf7d5f95ae3ebb89458c69cfd71
v1.9-BETA includes error handling for Handbrake, as well as a check to make sure the new (.mp4) file exists before deleting the old file (.mkv).