Skip to content

Conversation

@papr
Copy link
Contributor

@papr papr commented Jul 21, 2021

Exporting video can take a long time. Pupil Player writes the result incrementally to disk. Specifically, it writes the result directly to the final export location. While the export is ongoing, the video file is invalid but still available to the user. This can lead to users opening the video before it has finished exporting and then encountering playback issues.

This PR changes the video exports to include a .writing file name suffix during the export. This prevents other applications from recognizing the partially exported video file as complete. Once the export is done, the suffix is removed and other applications are able to recognize the file type as video.

@papr papr marked this pull request as ready for review July 27, 2021 08:44
@papr papr requested review from N-M-T and romanroibu July 27, 2021 08:44
Copy link
Contributor

@N-M-T N-M-T left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intended functionality works as expected on Windows 10. Clicking on the .writing file just gives you this:
image
I'd be surprised if anyone manages to break the export.

@papr papr merged commit 79855f3 into develop Jul 28, 2021
@papr papr deleted the in-progress-file-ext branch July 28, 2021 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants