Opened 12 years ago

Last modified 12 years ago

#2001 open enhancement

ffmpeg can't handle mms streaming using http:// prefix

Reported by: gjdfgh Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: mms http
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

This works and shows a video:

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

while

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

does not.

Note that the actual stream works nice with ffmpeg:

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

this works and shows a video.

Change History (6)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: mms added
Priority: normalwish
Resolution: duplicate
Status: newclosed
Type: defectenhancement

This seems related to ticket #998.

comment:2 by gjdfgh, 12 years ago

Resolution: duplicate
Status: closedreopened

No, that's something completely different.

Ticket #998 talks about adding the "mms://" prefix. That would be no problem, as "mms://" is not yet taken.

This ticket talks about adding MMS support to "http://", which is more complicated, because "http://" is already taken by the http protocol.

comment:3 by Carl Eugen Hoyos, 12 years ago

Please add complete, uncut console output to make this a valid ticket.

comment:4 by Carl Eugen Hoyos, 12 years ago

Resolution: needs_more_info
Status: reopenedclosed

Please reopen if you can add the missing information.

comment:5 by gjdfgh, 12 years ago

Resolution: needs_more_info
Status: closedreopened
$ ffmpeg -i http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf out.asf
ffmpeg version 1.0.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 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 --disable-altivec --disable-armv5te --disable  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

Changing to mssh makes it work:

$ ffmpeg -i mmsh://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf out.asf
ffmpeg version 1.0.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 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 --disable-altivec --disable-armv5te --disable  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
[asf @ 0x8091a60] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, asf, from 'mmsh://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf':
  Metadata:
    WMFSDKVersion   : 10.00.00.3646
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: N/A, start: 839911.317000, bitrate: 618 kb/s
    Stream #0:0(fre): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x216, 377 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1(fre): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 64 kb/s
    Stream #0:2(fre): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x180, 176 kb/s, 25 tbr, 1k tbn, 1k tbc
Output #0, asf, to 'out.asf':
  Metadata:
    WMFSDKVersion   : 10.00.00.3646
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    WM/EncodingSettings: Lavf54.29.104
    Stream #0:0(fre): Video: msmpeg4v3 (MP43 / 0x3334504D), yuv420p, 384x216, q=2-31, 200 kb/s, 1k tbn, 25 tbc
    Stream #0:1(fre): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (wmv3 -> msmpeg4)
  Stream #0:1 -> #0:1 (wmav2 -> wmav2)
Press [q] to stop, [?] for help
frame=   79 fps=0.0 q=4.0 size=     204kB time=00:00:03.16 bitrate= 528.7kbits/sframe=   89 fps= 75 q=4.3 size=     229kB time=00:00:03.56 bitrate= 526.8kbits/sframe=  109 fps= 47 q=4.8 Lsize=     313kB time=00:00:04.36 bitrate= 588.9kbits/s dup=7 drop=0    
video:232kB audio:67kB subtitle:0 global headers:0kB muxing overhead 4.907578%
Received signal 2: terminating.

However, mplayer handles http:// just fine:

$ mplayer1 http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf 
Failed to read /etc/mplayer/mplayer.conf.local: No such file or directory
Warning unknown option include at line 177
Warning unknown option screenshot-template at line 20
Warning unknown option screenshot-filetype at line 21
Warning unknown option screenshot-jpeg-quality at line 22
MPlayer 1.1-4.7 (C) 2000-2012 MPlayer Team
Unknown key 'Shift+Right'
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf.
Resolving direct.francetv.fr for AF_INET...
Connecting to server direct.francetv.fr[80.154.79.231]: 80...

STREAM_ASF, URL: http://direct.francetv.fr/regions/evt/medit-nice-direct.wsx?MSWMExt=.asf
Resolving direct.francetv.fr for AF_INET...
Connecting to server direct.francetv.fr[80.154.79.230]: 80...
Resolving direct.francetv.fr for AF_INET...
Connecting to server direct.francetv.fr[80.154.79.230]: 80...

Cache size set to 785 KBytes
Cache fill: 19.04% (152875 bytes)   

ASF file format detected.
[asfheader] Video stream found, -vid 2
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 3
VIDEO:  [WMV3]  384x216  24bpp  1000.000 fps  377.0 kbps (46.0 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32 
Decoder is capable of YUV output (flags 0x1b)
Movie-Aspect is undefined - no prescaling applied.
VO: [gl] 384x216 => 384x216 Planar YV12 
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.23.100 (internal)
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8005->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:839977.9 V:839978.4 A-V: -0.460 ct: -0.132  34/ 34  1%  1%  1.2% 0 0 21% 

btw., this is exactly what I posted first, except I didn't paste the output, which can be trivially obtained by just trying to reproduce the problem.

comment:6 by Carl Eugen Hoyos, 12 years ago

Keywords: http added
Reproduced by developer: set
Status: reopenedopen
Note: See TracTickets for help on using tickets.