[FFmpeg-trac] #7816(undetermined:new): FFmpeg doesn't work when using an encoded URL
FFmpeg
trac at avcodec.org
Thu Mar 28 17:02:03 EET 2019
#7816: FFmpeg doesn't work when using an encoded URL
-------------------------------------+-------------------------------------
Reporter: boris- | Type: defect
petrov |
Status: new | Priority: important
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
When using an encoded URL (at least with the FTP protocol, it's probably
the same with HTTP and others), FFmpeg complains.
How to reproduce:
{{{
% ffprobe -of json -show_entries format=stream=codec_type
"ftp://ffmpeg:ffmpeg%2B%2F2018@ftp.pbteu.com/ExportHD.mpg"
ffprobe version 4.1.git Copyright (c) 2007-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181127
configuration: --extra-libs='-lm -lpthread'
--prefix=/home/boris/ffmpeg_build --pkg-config-flags=--static --extra-
cflags='-I/home/boris/ffmpeg_build/include -I/opt/cuda/include/' --extra-
ldflags='-L/home/boris/ffmpeg_build/lib -L/opt/cuda/lib64/'
--bindir=/home/boris/bin --enable-version3 --enable-pic --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype --enable-
libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
--enable-openssl --enable-libsmbclient
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 46.100 / 58. 46.100
libavformat 58. 26.100 / 58. 26.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
{
[ftp @ 0x555a056c5240] FTP authentication failed
[ftp @ 0x555a056c5240] FTP open failed
ftp://ffmpeg:ffmpeg%2B%2F2018@ftp.pbteu.com/ExportHD.mpg: Permission
denied
}
}}}
You can see I've passed a username and a password (which is URL encoded as
it contains a "/" character which is otherwise not possible to be sent).
The password is "ffmpeg+/2018". A `curl` command works just fine with the
same URL:
{{{
% curl "ftp://ffmpeg:ffmpeg%2B%2F2018@ftp.pbteu.com/ExportHD.mpg"
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7816>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list