Sorry, this could be me misunderstanding how things should work but something seems odd when tracks were transcoded in previous sessions.
[martin@zen ~]$ ls -l /export/cdrip/flactrack/Music/Electric\ Light\ Orchestra/Out\ of\ the\ Blue/Electric\ Light\ Orchestra\ -\ Out\ of\ the\ Blue.flac.tracks/01.\ Electric\ Light\ Orchestra\ -\ Turn\ to\ Stone\ \[03-46.893\].flac
-rwxr--r--. 1 martin martin 0 Mar 12 17:31 '/export/cdrip/flactrack/Music/Electric Light Orchestra/Out of the Blue/Electric Light Orchestra - Out of the Blue.flac.tracks/01. Electric Light Orchestra - Turn to Stone [03-46.893].flac'
This file has previously been transcoded . There's a cache entry for it and a row in the sqlite db with finished = 2.
[martin@zen ~]$ ls -l /var/cache/ffmpegfs/export/cdrip/flactrack/export/cdrip/flac/Music/Electric\ Light\ Orchestra/Out\ of\ the\ Blue/Electric\ Light\ Orchestra\ -\ Out\ of\ the\ Blue.flac.tracks/01.\ Electric\ Light\ Orchestra\ -\ Turn\ to\ Stone\ \[03-46.893\].flac.cache.flac
-rw-r--r--. 1 martin martin 27992970 Mar 20 09:33 '/var/cache/ffmpegfs/export/cdrip/flactrack/export/cdrip/flac/Music/Electric Light Orchestra/Out of the Blue/Electric Light Orchestra - Out of the Blue.flac.tracks/01. Electric Light Orchestra - Turn to Stone [03-46.893].flac.cache.flac'
If I access it then it's not really zero bytes.
[martin@zen ~]$ strings /export/cdrip/flactrack/Music/Electric\ Light\ Orchestra/Out\ of\ the\ Blue/Electric\ Light\ Orchestra\ -\ Out\ of\ the\ Blue.flac.tracks/01.\ Electric\ Light\ Orchestra\ -\ Turn\ to\ Stone\ \[03-46.893\].flac | wc
385202 407282 2172444
I can see it being read from the cache in the log file. E.g:
2022-03-20 09:33:05 TRACE : [/var/cache/ffmpegfs//export/cdrip/flactrack//export/cdrip/flac/Music/Electric Light Orchestra/Out of the Blue/Electric Light Orchestra - Out of the Blue.flac.tracks/01. Electric Light Orchestra - Turn to Stone [03-46.893].flac.cache.flac] Closing cache file.
It's still zero bytes via getattr:
[martin@zen ~]$ ls -l /export/cdrip/flactrack/Music/Electric\ Light\ Orchestra/Out\ of\ the\ Blue/Electric\ Light\ Orchestra\ -\ Out\ of\ the\ Blue.flac.tracks/01.\ Electric\ Light\ Orchestra\ -\ Turn\ to\ Stone\ \[03-46.893\].flac
-rwxr--r--. 1 martin martin 0 Mar 12 17:31 '/export/cdrip/flactrack/Music/Electric Light Orchestra/Out of the Blue/Electric Light Orchestra - Out of the Blue.flac.tracks/01. Electric Light Orchestra - Turn to Stone [03-46.893].flac'
If I try to play it in VLC then it doesn't work. I'm assuming that's because it's still seeing the file as zero byte size.
If I run up ffmpegfs on a dev machine and the files are transcoded in the same session then getattr returns the correct size immediately afterwards.
Sorry, this could be me misunderstanding how things should work but something seems odd when tracks were transcoded in previous sessions.
This file has previously been transcoded . There's a cache entry for it and a row in the sqlite db with finished = 2.
If I access it then it's not really zero bytes.
I can see it being read from the cache in the log file. E.g:
It's still zero bytes via getattr:
If I try to play it in VLC then it doesn't work. I'm assuming that's because it's still seeing the file as zero byte size.
If I run up ffmpegfs on a dev machine and the files are transcoded in the same session then getattr returns the correct size immediately afterwards.