[FFmpeg-trac] #5384(undetermined:new): Command line tools fail to open file with ':' char in filename
FFmpeg
trac at avcodec.org
Sun Mar 27 23:53:50 CEST 2016
#5384: Command line tools fail to open file with ':' char in filename
-------------------------------------+-------------------------------------
Reporter: | Type: defect
ahthovaikied | Priority: minor
Status: new | Version: git-
Component: | master
undetermined | Blocked By:
Keywords: | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
ffmpeg of ffprobe can fail to open file if a ':' char is in the filename.
For example :
passing 'a.png' works
passing 'a:.png' does not work
but passing './a:.png' does work
{{{
$ wget https://ffmpeg.org/img/ffmpeg3d_white_20.png -O a.png
$ ./ffprobe a.png
ffprobe version N-79145-ge259dc8 Copyright (c) 2007-2016 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --pkg-config-flags=--static --enable-gpl --enable-
version3 --enable-nonfree --disable-runtime-cpudetect --disable-ffserver
--disable-encoder=vorbis --disable-encoder=aac --enable-x11grab --enable-
libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid --disable-debug --cpu=corei7
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 31.100 / 57. 31.100
libavformat 57. 29.101 / 57. 29.101
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 40.102 / 6. 40.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, png_pipe, from 'a.png':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, ya8(pc), 20x20 [SAR 72:72 DAR 1:1], 25 tbr,
25 tbn, 25 tbc
$ mv a.png a:.png
$ ./ffprobe a:.png
ffprobe version N-79145-ge259dc8 Copyright (c) 2007-2016 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --pkg-config-flags=--static --enable-gpl --enable-
version3 --enable-nonfree --disable-runtime-cpudetect --disable-ffserver
--disable-encoder=vorbis --disable-encoder=aac --enable-x11grab --enable-
libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid --disable-debug --cpu=corei7
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 31.100 / 57. 31.100
libavformat 57. 29.101 / 57. 29.101
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 40.102 / 6. 40.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
a:.png: Protocol not found
$ ./ffprobe ./a:.png
ffprobe version N-79145-ge259dc8 Copyright (c) 2007-2016 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --pkg-config-flags=--static --enable-gpl --enable-
version3 --enable-nonfree --disable-runtime-cpudetect --disable-ffserver
--disable-encoder=vorbis --disable-encoder=aac --enable-x11grab --enable-
libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid --disable-debug --cpu=corei7
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 31.100 / 57. 31.100
libavformat 57. 29.101 / 57. 29.101
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 40.102 / 6. 40.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, png_pipe, from './a:.png':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, ya8(pc), 20x20 [SAR 72:72 DAR 1:1], 25 tbr,
25 tbn, 25 tbc
}}}
I presume it tries to parse the filename as an URL, but that behavior
seems wrong.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5384>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list