[FFmpeg-trac] #11209(ffmpeg:new): File protocol not to spec

FFmpeg trac at avcodec.org
Thu Sep 26 15:17:31 EEST 2024


#11209: File protocol not to spec
---------------------------------------+----------------------------------
             Reporter:  Oliver Dawes   |                     Type:  defect
               Status:  new            |                 Priority:  minor
            Component:  ffmpeg         |                  Version:  6.1.1
             Keywords:  file protocol  |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  0              |
---------------------------------------+----------------------------------
 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.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11209>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list