Opened 11 years ago

Closed 11 years ago

#2480 closed defect (duplicate)

libavformat can't handle mms streaming from http URLs

Reported by: gjdfgh Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The following URL works fine with mplayer and VLC, but not ffplay:

http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf

However, using mmsh as protocol instead make it work:

mmsh://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf

It looks like libavformat is missing some logic to recognize that a http URL is actually mms.

The following is even "harder", as in that it doesn't work with mplayer or ffplay, and only VLC:

http://wm.microsoft.com/ms/evnet/Vista_Diagnostics_s_ch9.wmv

This is bad, because you can't just tell users they should try "mmsh" instead of "http" if "http" happens not to work.

ffplay dump:

$ ffplay http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf
ffplay version 1.0.6 Copyright (c) 2003-2013 the FFmpeg developers
  built on Mar 25 2013 16:52:47 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --enable-libfdk-aac --disable-altivec --disab  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf: Invalid data found when processing input

Change History (2)

comment:1 by gjdfgh, 11 years ago

This is bad, because you can't just tell users they should try "mmsh" instead of "http" if "http" happens not to work.

PS: the fact that links are often playlists containing http URLs makes it even worse. Then users have to download the playlist and change the protocol prefix manually to mmsh.

comment:2 by Carl Eugen Hoyos, 11 years ago

Component: avformatundetermined
Resolution: duplicate
Status: newclosed

Duplicate of ticket #2001

Note: See TracTickets for help on using tickets.