jrudess / streamdvr

DVR for streaming entertainment
GNU General Public License v3.0
67 stars 16 forks source link

Race condition with post-processing and cycle/file-size lookup #119

Closed jrudess closed 5 years ago

jrudess commented 5 years ago

This issue doesn't cause any functional problems, but should be cleaned up so that the filesize lookup code does not execute during post-process conversion.

 [20181214_125828] TWITCH   [DEBUG] arumba07 running: /home/user/repos/streamdvr-async/scripts/m3u8_youtubedl.sh https://www.twitch.tv/arumba07 0 socks5://127.0.0.1:1080
 [20181214_125828] TWITCH   [INFO]  arumba07 converting to mp4: /home/userrepos/streamdvr-async/scripts/postprocess_ffmpeg.sh /home/user/repos/streamdvr/capturing/arumba07_20181214_114838.ts /home/user/repos/streamdvr/captured/TWITCH/arumba07/arumba07_20181214_114838.mp4 mp4
 [20181214_125830] TWITCH   [DEBUG] arumba07 is already capturing
 [20181214_125906] TWITCH   [ERROR] Error: ENOENT: no such file or directory, stat '/home/user/repos/streamdvr/capturing/arumba07_20181214_114838.mp4'
 [20181214_125927] TWITCH   [INFO]  arumba07 done converting arumba07_20181214_114838.mp4