Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export-in-progress file-name suffixes #2167

Merged
merged 4 commits into from
Jul 28, 2021
Merged

Export-in-progress file-name suffixes #2167

merged 4 commits into from
Jul 28, 2021

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 romanroibu and N-M-T 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.

3 participants