Unmanic / unmanic

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

Unmanic deleted file after completed transcode video file - Lost video file. #439

Open nat-nz opened 11 months ago

nat-nz commented 11 months ago

Description

The issue is not universal across all video files; rather, it specifically affects certain files—namely, those captured in portage mode on cell phones with landscape-oriented video displays. However, the transcode log indicates the successful completion of the process.

Moreover, there is another log (unmanic.log) file that shows unmanic moving the transcoded file from the cache folder back to the original folder. This action involves

  1. Overwrite the original (source) video file with the transcoded video from the cache folder.
  2. Delete the source video file. AFTER OVERWRITE IT.
  3. Delete the cache folder.
  4. As a result, the video file is effectively deleted from the folder.

Completed Task Details

See the attached log file. Completed_Task_Details.txt

Below is umanic.log

2023-12-13T02:51:53:INFO:Unmanic.Foreman - [FORMATTED] - Processing item - /library/31024/2023/WN_31024_Hector_Tovar_5.MP4 2023-12-13T02:51:54:INFO:Unmanic.Unit-Worker-1 - [FORMATTED] - Picked up job - /library/31024/2023/WN_31024_Hector_Tovar_5.MP4 2023-12-13T02:53:59:INFO:Unmanic.Unit-Worker-1 - [FORMATTED] - Successfully ran worker process 'video_transcoder' on file '/library/31024/2023/WN_31024_Hector_Tovar_5.MP4' 2023-12-13T02:53:59:INFO:Unmanic.Unit-Worker-1 - [FORMATTED] - Successfully completed Worker processing on file '/library/31024/2023/WN_31024_Hector_Tovar_5.MP4' 2023-12-13T02:53:59:INFO:Unmanic.Unit-Worker-1 - [FORMATTED] - Moving final cache file from '/tmp/unmanic/unmanic_file_conversion-rjahh-1702435841/WN_31024_Hector_Tovar_5-rjahh-1702435841-WORKING-1-1.mp4' to '/tmp/unmanic/unmanic_file_conversion-rjahh-1702435841/WN_31024_Hector_Tovar_5-iobuj-1702436039.mp4' 2023-12-13T02:53:59:INFO:Unmanic.Unit-Worker-1 - [FORMATTED] - Finished job - /library/31024/2023/WN_31024_Hector_Tovar_5.MP4 2023-12-13T02:54:01:INFO:Unmanic.PostProcessor - [FORMATTED] - Post-processing task - /library/31024/2023/WN_31024_Hector_Tovar_5.MP4


2023-12-13T02:54:01:INFO:Unmanic.PostProcessor - [FORMATTED] - Move file triggered by (DEFAULT) /tmp/unmanic/unmanic_file_conversion-rjahh-1702435841/WN_31024_Hector_Tovar_5-iobuj-1702436039.mp4 --> /library/31024/2023/WN_31024_Hector_Tovar_5.mp4 2023-12-13T02:54:01:INFO:Unmanic.PostProcessor - [FORMATTED] - Removing source: /library/31024/2023/WN_31024_Hector_Tovar_5.MP4

2023-12-13T02:54:01:INFO:Unmanic.PostProcessor - [FORMATTED] - Removing task cache directory '/tmp/unmanic/unmanic_file_conversion-rjahh-1702435841'

The above shows it moves transcoded video to the original folder and then overwrites the source video file. After that, it deletes the source video file. Should it delete the source video first then move the transcoded video back to the original folder? Or Do not remove the source video file because, it already been overwrite by the default Move file triggered?

Versions

Unmanic version: 0.2.4~7339f8b

Installation Method Used

Docker