Opened 4 months ago
Last modified 4 months ago
#11209 new defect
File protocol not to spec
Reported by: | Oliver Dawes | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | ffmpeg |
Version: | 6.1.1 | Keywords: | file protocol |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
FFmpeg's file: protocol does not follow the spec with respect to the number of forward slashes after the sheme (see https://en.wikipedia.org/wiki/File_URI_scheme). FFmpeg appears to expect no forward slash after the "file:" whereas the file: protocol is supposed to have one, two or three slashes after the "file:" string, three being the most "correct".
How to reproduce:
This works even though it is not a valid file url:
ffmpeg.exe -f lavfi -i smptebars -t 30 file:C:/Users/username/Desktop/smpte.mp4
This doesn't work despite being a valid file url:
ffmpeg.exe -f lavfi -i smptebars -t 30 file:///C:/Users/username/Desktop/smpte.mp4
This makes ingesting file urls produces by other software slightly tricky.
" This doesn't work despite being a valid file url:"
Stop drag and dropping files from firefox :)