nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
206 stars 14 forks source link

Source files with different extensions create duplicate entries #54

Closed nschlia closed 4 years ago

nschlia commented 4 years ago

If files have the same name, but a different extension, this creates duplicate output names:

Source:

America - A Horse With No Name-05.flac
America - A Horse With No Name-05.mp4
America - A Horse With No Name-05.mp3

Mount:

America - A Horse With No Name-05.webm
America - A Horse With No Name-05.webm
America - A Horse With No Name-05.webm

This is a problem, it is not clear which source file is used when opening such an entry.

The output files must have a unique name.

Problem:

The best solution would be to use the full source name with extension, e.g.

America - A Horse With No Name-05.flac.webm
America - A Horse With No Name-05.mp4.webm
America - A Horse With No Name-05.mp3.webm

This makes sure no duplicate entries are created. But this means that all output filenames change with this fix.