Comments (7)
ok so apparently FileInfo DOES lock files until disposed
so got a step further but it still doesnt seem to tag as expected
i get this output now:
========================================
Found 1 regions
#0 : 4->74659580(71,2 MB) IsBufferable = True
------------ REGION 0
------ ZONE id3 @74659580
Allocating 0 B
newTagSize : 0 B
DONE
Found 1 regions
#0 : 4->74659580(71,2 MB) IsBufferable = True
------------ REGION 0
Buffering 71,2 MB
------ ZONE bext@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE cue @74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE disp.0@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE iXML@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE LIST.adtl@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE LIST.INFO@74659580
Allocating 0 B
newTagSize : 0 B
------ ZONE smpl@74659580
Allocating 0 B
newTagSize : 0 B
DONE
from atldotnet.
ok it actually works as expected now so the culprit was FileInfo!
thank you very much for a great library and for your time! <3
from atldotnet.
"fun" sidenote is that apparently FileInfo does release filelocks on flac files before disposing of the fileinfo object (since it worked fine with all flac files from the beginning)
from atldotnet.
Could you upload the wav file here or provide a link to it?
from atldotnet.
i cannot upload wav files here but an example can be grabbed from here:
https://mega.nz/file/1YNUjCYJ#-8e0SeiuRM4aOEARYTSZi7LZY-6vpD-2LmWTTXUGk2o
it happens with all my wave files
from atldotnet.
I have no issue when tagging the WAV file you provided.
Have you tried enabling the ATL logger by calling new ConsoleLogger()
?
from atldotnet.
great news! then i just need to sort out what my local issue is
i cant seem to find any logging options in atl itself
in the debug window i do see this exception: Exception thrown: 'System.IO.IOException' in System.Private.CoreLib.dll
however it doesnt get caught in my try/catch and not 100% sure its related
edit: i found this code snippet in the docs (must have scrolled past it before) Receiving ATL logs in your app
and i am seeing these log items come through
The process cannot access the file 'D:\tmp\mental\Alien Mental - Asio.wav' because it is being used by another process.
followed by
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at ATL.AudioData.AudioDataManager.UpdateTagInFile(TagData theTag, TagType tagType, ProgressManager writeProgress)
the only way i am "touching" the files before are with Directory.GetFiles() and FileInfo
could they be locking the file?
from atldotnet.
Related Issues (20)
- Strings in ID3v2.4 tags too long? HOT 15
- Unable to set PublishingDate for flac files HOT 5
- Some Required Header Information Shown as Additional Fields HOT 20
- Parse Metadata from partial `m4a`/`m4b` HOT 2
- Not reflecting chapter title changes made with MP3Tag anymore HOT 6
- Loading a (possibly corrupt) AIF file puts ATL in an endless loop HOT 6
- The BPM field won't be extracted if the value contains a BOM HOT 4
- MP3 Title contains extra character starting in 5.04 HOT 5
- Cannot CopyMetadataTo HOT 15
- Add support ENCODEDBY HOT 9
- get image HOT 1
- Ambisonic bwav files cannot be written and don't throw an exception HOT 5
- wav file duration is not determined HOT 2
- OptimFROG blind tags HOT 6
- long .ogg file loading HOT 3
- more understandable name HOT 6
- Chinese encoding exception HOT 6
- Reading MP3 files whose ID3v2 tags contain multiple PRIV frames HOT 14
- Doesn't work with .mp4 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atldotnet.