-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Preserving mtimes not working #120
Comments
I'm unable to reproduce this on my end. When I run |
It could be, but it's a completely stock ubuntu 24.04 VM so I don't really see what would cause this Using r128gain on the same file with the preserve mtime switch for that works perfectly fine and doesn't change the mtime |
Same issue here, using Windows 10 with rsgain 3.5.2 on .opus files. Not a VM. My config file looks like this: [Global] And my command line prompt is: rsgain.exe easy -m 5 -p "C:[full path to ini]" "E:[full path to music folder]" I also tested it with the following addition for Opus to write R128 tags in the config file but it still doesn't preserve date modified tags: [Opus] |
@Sammala What kind of drive is E:? Is this maybe a network share? |
It's a local SSD with NTFS formatting. When I get home I'll copy some test files to my C: drive and try again. |
Thanks. I was just asking because in Picard we experienced the timestamp update on SMB shares not always working as expected, and thought like this could be related and be something similar in rsgain. But with a local drive and NTFS this seems to be something else. |
I tested it on the C: drive just now and the bug still happens. I also did it single-threaded just to see if it would make a difference, but the same thing still happens. Running it in custom mode with the command Is there anything you would like me to try? Edit: This seems to only happen with Opus files. I've tried mp3 and flac and they both preserve the date modified time just fine. |
I have done some investigation, and discovered the root cause of this bug. It only affects Opus files, because it is related to the timing of the Opus header gain writing function and the function that checks the file's modification time. The bug is not caused by using a VM or differences in filesystems. Thanks to everyone here for the reporting and debugging help. I'm going to push a commit with a fix, and make a new release. |
I'm on the latest version (3.5.1) on a fresh Ubuntu 24.04 vm.
No matter what I do it seems that --preserve-mtimes just wont function.
I've tried using it both with easy and custom by using -p with rsgain custom, and setting PreserveMtimes=true in a .ini file for rsgain easy.
Not entirely sure what logs I could provide, but here's the output of a rsgain custom with stat before and after.
As can be seen here the only timestamp that doesn't change is
Birth
, while the important oneModify
is changed.The text was updated successfully, but these errors were encountered: