Opened 6 years ago

Closed 5 years ago

#2935 closed defect (worksforme)

.nsv at the end of the URL hangs ffmpeg.

Reported by: kasper93 Owned by:
Priority: minor Component: undetermined
Version: git-master Keywords: http
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
FFmpeg is trying to read .nsv form URL forever, without timeout or anything. Problem is with URLs like this one http://antywawamp3-01.eurozet.pl:8600/;stream.nsv
it's common to found stream link with ;stream.nsv at the end. FFmpeg works fine with http://antywawamp3-01.eurozet.pl:8600/. So either URL should be trim after ';' by ffmpeg. And one more thing is that FFmpeg shouldn't hang when it gets wrong .nsv stream.

How to reproduce:

% ffmpeg -i http://antywawamp3-01.eurozet.pl:8600/;stream.nsv
ffmpeg version N-55966-gfdd1aaf Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep  2 2013 18:04:07 with gcc 4.7.3 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.100 / 55. 31.100
  libavformat    55. 15.100 / 55. 15.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100

Change History (4)

comment:1 Changed 6 years ago by kasper93

  • Summary changed from .nsv at the end of the URL hang ffmpeg. to .nsv at the end of the URL hangs ffmpeg.

comment:2 Changed 6 years ago by cehoyos

  • Keywords http added; nsv removed

Does not hang here:

$ ffmpeg -i "http://antywawamp3-01.eurozet.pl:8600/;stream.nsv"
ffmpeg version N-55970-g92b7e7b Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep  3 2013 09:44:52 with gcc 4.7 (SUSE Linux)
  configuration: --disable-indev=jack
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.100 / 55. 31.100
  libavformat    55. 15.100 / 55. 15.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
http://antywawamp3-01.eurozet.pl:8600/;stream.nsv: Operation not permitted

comment:3 Changed 6 years ago by kasper93

I tested it on windows and my friend is also able to reproduce hang on linux.

$ ./ffmpeg -i "http://antywawamp3-01.eurozet.pl:8600/;stream.nsv"
ffmpeg version N-55961-gcdd5df8 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep  2 2013 05:46:44 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared-disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype-enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.100 / 55. 31.100
  libavformat    55. 15.100 / 55. 15.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Last edited 6 years ago by kasper93 (previous) (diff)

comment:4 Changed 5 years ago by michael

  • Resolution set to worksforme
  • Status changed from new to closed

it takes a while before it errors out but it does not hang

Note: See TracTickets for help on using tickets.