Opened 13 years ago

Closed 12 years ago

#1230 closed enhancement (fixed)

Support Windows Media Screen Codec 2

Reported by: Mike Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: mss2
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Saved a wmv movie from a website, want to use it as h.264 mp4 file. Regardless of commandline options (-analyzeduration included), I am not able to convert. Leaving off the output file, all output looks good until it says it needs at least one output file to proceed. Once that is given, message "swScaler: Unknown format is not supported as input pixel format - Cannot get resampling context" is given. Tried outputting to different formats, all same result. Running on Red Hat 5.4 64-bit server as root and even chmod 777'd the input file, no change. Running ffmpeg 0.6.5. Tried yum install *ffmpeg* and yum update *ffmpeg* to make sure I had all dependencies at the latest rev. Same message every time. Output below, input video attached. For the record, the input videos plays perfectly on every media player I've tried.

"ffmpeg -v 9 -loglevel 99 -i" output:
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers

built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

[NULL @ 0x15bff8b0]Probed with size=2048 and score=100
[asf @ 0x15bff8b0]gpos mismatch our pos=24, end=242
[asf @ 0x15bff8b0]gpos mismatch our pos=24, end=2142
[asf @ 0x15bff8b0]gpos mismatch our pos=46, end=4574
[asf @ 0x15bff8b0]max_analyze_duration reached

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 2.00 (2/1)
Input #0, asf, from 'phleb-4-18-12.wmv':

Metadata:

title : Phlebotomy Forum-Legal Considerations in Phlebotomy
author :
copyright :
comment : Microsoft Office LiveMeeting 2005 Replay. Recorded on Wednesday, November 9, 2011 11:01:34 AM GMT-06:00
WM/Year : 2011
WMFSDKVersion : 10.00.00.4007
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0

Duration: 01:06:38.04, start: 5.000000, bitrate: 28 kb/s

Chapter #0.0: start 5.000000, end 87.750000
Metadata:

title : Legal Considerations in Phlebotomy

Chapter #0.1: start 87.750000, end 105.750000
Metadata:

title : Disclosures:

Chapter #0.2: start 105.750000, end 170.750000
Metadata:

title : Agenda

Chapter #0.3: start 170.750000, end 291.250000
Metadata:

title : The High Price of Malpractice Claims

Chapter #0.4: start 291.250000, end 380.250000
Metadata:

title : Malpractice = Medical Negligence

Chapter #0.5: start 380.250000, end 409.750000
Metadata:

title : Duty

Chapter #0.6: start 409.750000, end 578.250000
Metadata:

title : Standards in Phlebotomy

Chapter #0.7: start 578.250000, end 650.750000
Metadata:

title : Causation

Chapter #0.8: start 650.750000, end 736.250000
Metadata:

title : Failure to License Not Cause

Chapter #0.9: start 736.250000, end 826.250000
Metadata:

title : Causation Not Established

Chapter #0.10: start 826.250000, end 1000.250000
Metadata:

title : Injury

Chapter #0.11: start 1000.250000, end 1083.250000
Metadata:

title : Fear

Chapter #0.12: start 1083.250000, end 1194.250000
Metadata:

title : Distress

Chapter #0.13: start 1194.250000, end 1225.250000
Metadata:

title : Compensable Harm

Chapter #0.14: start 1225.250000, end 1305.750000
Metadata:

title : Types of Damages

Chapter #0.15: start 1305.750000, end 1370.750000
Metadata:

title : Wanton Disregard

Chapter #0.16: start 1370.750000, end 1384.250000
Metadata:

title : Source of Errors

Chapter #0.17: start 1384.250000, end 1472.250000
Metadata:

title : Procedural Errors

Chapter #0.18: start 1472.250000, end 1526.250000
Metadata:

title : Decisional Errors

Chapter #0.19: start 1526.250000, end 1553.750000
Metadata:

title : Administrative Errors

Chapter #0.20: start 1553.750000, end 1583.250000
Metadata:

title : Wilkerson v. Laboratory Corp. of America (2005)

Chapter #0.21: start 1583.250000, end 1629.750000
Metadata:

title : Wilkerson v. LabCorp, contâd

Chapter #0.22: start 1629.750000, end 1631.750000
Metadata:

title : Baptist Healthcare Systems, Inc. v. Golda Miller, et al (2005)

Chapter #0.23: start 1631.750000, end 1667.750000
Metadata:

title : Wilkerson v. LabCorp, contâd

Chapter #0.24: start 1667.750000, end 1699.750000
Metadata:

title : Baptist Healthcare Systems, Inc. v. Golda Miller, et al (2005)

Chapter #0.25: start 1699.750000, end 1733.250000
Metadata:

title : Baptist Healthcare Systems, Inc. v. Golda Miller, et al

Chapter #0.26: start 1733.250000, end 1760.250000
Metadata:

title : Fairshter v. American National Red Cross (2004)

Chapter #0.27: start 1760.250000, end 1796.750000
Metadata:

title : Fairshter v. American National Red Cross (2004)

Chapter #0.28: start 1796.750000, end 1861.250000
Metadata:

title : Fairshter v. American National Red Cross (2004)

Chapter #0.29: start 1861.250000, end 1958.250000
Metadata:

title : Pietrunti v. Island Diagnostic Laboratories (1998)

Chapter #0.30: start 1958.250000, end 1959.250000
Metadata:

title : No Negligence

Chapter #0.31: start 1959.250000, end 1988.750000
Metadata:

title : Pietrunti v. Island Diagnostic Laboratories (1998)

Chapter #0.32: start 1988.750000, end 1994.750000
Metadata:

title : No Negligence

Chapter #0.33: start 1994.750000, end 2011.250000
Metadata:

title : Pietrunti v. Island Diagnostic Laboratories (1998)

Chapter #0.34: start 2011.250000, end 2029.750000
Metadata:

title : Mislabels

Chapter #0.35: start 2029.750000, end 2125.750000
Metadata:

title : Mislabels

Chapter #0.36: start 2125.750000, end 2192.750000
Metadata:

title : You Be The Judge

Chapter #0.37: start 2192.750000, end 2250.750000
Metadata:

title : You Be the Judge

Chapter #0.38: start 2250.750000, end 2307.250000
Metadata:

title : You Be the Judge

Chapter #0.39: start 2307.250000, end 2349.750000
Metadata:

title : You Be the Judge

Chapter #0.40: start 2349.750000, end 2395.250000
Metadata:

title : You Be the Judge

Chapter #0.41: start 2395.250000, end 2397.750000
Metadata:

title : Needlestick Injuries

Chapter #0.42: start 2397.750000, end 2460.750000
Metadata:

title : Needlestick Injuries

Chapter #0.43: start 2460.750000, end 2463.250000
Metadata:

title : Minimizing Risks

Chapter #0.44: start 2463.250000, end 2541.250000
Metadata:

title : Minimizing Risks

Chapter #0.45: start 2541.250000, end 2623.250000
Metadata:

title : Training

Chapter #0.46: start 2623.250000, end 2696.250000
Metadata:

title : Training

Chapter #0.47: start 2696.250000, end 2738.250000
Metadata:

title : Training

Chapter #0.48: start 2738.250000, end 2883.250000
Metadata:

title : Proper Supervision

Chapter #0.49: start 2883.250000, end 2883.250000
Metadata:

title : Proper Supervision

Chapter #0.50: start 2883.250000, end 2884.250000
Metadata:

title : Proper Supervision

Chapter #0.51: start 2884.250000, end 2918.250000
Metadata:

title : Proper Supervision

Chapter #0.52: start 2918.250000, end 2945.250000
Metadata:

title : Proper Supervision

Chapter #0.53: start 2945.250000, end 2951.750000
Metadata:

title : Documentation

Chapter #0.54: start 2951.750000, end 3066.750000
Metadata:

title : Why is documentation so important?

Chapter #0.55: start 3066.750000, end 3101.250000
Metadata:

title : Slide 52

Chapter #0.56: start 3101.250000, end 3173.750000
Metadata:

title : Proper Documentation

Chapter #0.57: start 3173.750000, end 3197.750000
Metadata:

title : Slide 54

Chapter #0.58: start 3197.750000, end 3314.750000
Metadata:

title : Slide 55

Chapter #0.59: start 3314.750000, end 3340.250000
Metadata:

title : Summary

Chapter #0.60: start 3340.250000, end 3655.750000
Metadata:

title : Slide 57

Chapter #0.61: start 3655.750000, end 4003.048000
Metadata:

title : Thank you!

Stream #0.0, 18, 1/1000: Audio: wmav2, 16000 Hz, 1 channels, s16, 16 kb/s
Stream #0.1, 2, 1/1000: Video: MSS2 / 0x3253534D, 704x528, 1/1000, 2 tbr, 1k tbn, 1k tbc
Stream #0.2, 0, 1/1000: Data: 0x0000

File 'output.mp4' already exists. Overwrite ? [y/N] y
swScaler: Unknown format is not supported as input pixel format
Cannot get resampling context

Attachments (1)

smaller-sample-file.wmv (2.4 MB ) - added by Mike 13 years ago.

Change History (6)

by Mike, 13 years ago

Attachment: smaller-sample-file.wmv added

comment:1 by Mike, 13 years ago

My apologies, this is my first bug on here, and i don't think I'm doing this right, but the modify button doesn't let me edit my post. At any rate, the original input file was about 13 megs, but the attach page only lets me go up to 2.5, so I dd'd a 2.5 meg copy (now attached). I did re-run my testing to see if the smaller file size would change anything, and it did not.

comment:2 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavcodec
Keywords: mss2 added
Priority: normalwish
Reproduced by developer: set
Status: newopen
Summary: wmv -> mp4 "swScaler: Unknown format is not supported as input pixel format - Cannot get resampling context"Support Windows Media Screen Codec 2
Type: defectenhancement
Version: unspecifiedgit-master
$ ffmpeg -i smaller-sample-file.wmv
ffmpeg version N-39961-gdddd06d Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 18 2012 22:40:59 with gcc 4.3.2
  configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --extra-ldflags=-lm --enable-libmp3lame
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 70.100 /  2. 70.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[asf @ 0x8ee9380] Could not find codec parameters (Video: none (MSS2 / 0x3253534D), 704x528, 260 kb/s)
Input #0, asf, from 'smaller-sample-file.wmv':
  Metadata:
    title           : Phlebotomy Forum-Legal Considerations in Phlebotomy
    comment         : Microsoft Office LiveMeeting 2005 Replay.  Recorded on Wednesday, November 9, 2011 11:01:34 AM GMT-06:00
    WM/Year         : 2011
    WMFSDKVersion   : 10.00.00.4007
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 01:06:38.04, start: 0.000000, bitrate: 5 kb/s
    Chapter #0.0: start 5.000000, end 87.750000
    Metadata:
      title           : Legal Considerations in Phlebotomy
    Chapter #0.1: start 87.750000, end 105.750000
    Metadata:
      title           : Disclosures:
    Chapter #0.2: start 105.750000, end 170.750000
    Metadata:
      title           : Agenda
    Chapter #0.3: start 170.750000, end 291.250000
    Metadata:
      title           : The High Price of Malpractice Claims
    Chapter #0.4: start 291.250000, end 380.250000
    Metadata:
      title           : Malpractice = Medical Negligence
    Chapter #0.5: start 380.250000, end 409.750000
    Metadata:
      title           : Duty
    Chapter #0.6: start 409.750000, end 578.250000
    Metadata:
      title           : Standards in Phlebotomy
    Chapter #0.7: start 578.250000, end 650.750000
    Metadata:
      title           : Causation
    Chapter #0.8: start 650.750000, end 736.250000
    Metadata:
      title           : Failure to License Not Cause
    Chapter #0.9: start 736.250000, end 826.250000
    Metadata:
      title           : Causation Not Established
    Chapter #0.10: start 826.250000, end 1000.250000
    Metadata:
      title           : Injury
    Chapter #0.11: start 1000.250000, end 1083.250000
    Metadata:
      title           : Fear
    Chapter #0.12: start 1083.250000, end 1194.250000
    Metadata:
      title           : Distress
    Chapter #0.13: start 1194.250000, end 1225.250000
    Metadata:
      title           : Compensable Harm
    Chapter #0.14: start 1225.250000, end 1305.750000
    Metadata:
      title           : Types of Damages
    Chapter #0.15: start 1305.750000, end 1370.750000
    Metadata:
      title           : Wanton Disregard
    Chapter #0.16: start 1370.750000, end 1384.250000
    Metadata:
      title           : Source of Errors
    Chapter #0.17: start 1384.250000, end 1472.250000
    Metadata:
      title           : Procedural Errors
    Chapter #0.18: start 1472.250000, end 1526.250000
    Metadata:
      title           : Decisional Errors
    Chapter #0.19: start 1526.250000, end 1553.750000
    Metadata:
      title           : Administrative Errors
    Chapter #0.20: start 1553.750000, end 1583.250000
    Metadata:
      title           : Wilkerson v.  Laboratory Corp. of America (2005)
    Chapter #0.21: start 1583.250000, end 1629.750000
    Metadata:
      title           : Wilkerson v. LabCorp, cont’d
    Chapter #0.22: start 1629.750000, end 1631.750000
    Metadata:
      title           : Baptist Healthcare Systems, Inc. v. Golda Miller, et al (2005)
    Chapter #0.23: start 1631.750000, end 1667.750000
    Metadata:
      title           : Wilkerson v. LabCorp, cont’d
    Chapter #0.24: start 1667.750000, end 1699.750000
    Metadata:
      title           : Baptist Healthcare Systems, Inc. v. Golda Miller, et al (2005)
    Chapter #0.25: start 1699.750000, end 1733.250000
    Metadata:
      title           : Baptist Healthcare Systems, Inc. v. Golda Miller, et al
    Chapter #0.26: start 1733.250000, end 1760.250000
    Metadata:
      title           : Fairshter v. American National Red Cross (2004)
    Chapter #0.27: start 1760.250000, end 1796.750000
    Metadata:
      title           : Fairshter v. American National Red Cross (2004)
    Chapter #0.28: start 1796.750000, end 1861.250000
    Metadata:
      title           : Fairshter v. American National Red Cross (2004)
    Chapter #0.29: start 1861.250000, end 1958.250000
    Metadata:
      title           : Pietrunti v. Island Diagnostic Laboratories (1998)
    Chapter #0.30: start 1958.250000, end 1959.250000
    Metadata:
      title           : No Negligence
    Chapter #0.31: start 1959.250000, end 1988.750000
    Metadata:
      title           : Pietrunti v. Island Diagnostic Laboratories (1998)
    Chapter #0.32: start 1988.750000, end 1994.750000
    Metadata:
      title           : No Negligence
    Chapter #0.33: start 1994.750000, end 2011.250000
    Metadata:
      title           : Pietrunti v. Island Diagnostic Laboratories (1998)
    Chapter #0.34: start 2011.250000, end 2029.750000
    Metadata:
      title           : Mislabels
    Chapter #0.35: start 2029.750000, end 2125.750000
    Metadata:
      title           : Mislabels
    Chapter #0.36: start 2125.750000, end 2192.750000
    Metadata:
      title           : You Be The Judge
    Chapter #0.37: start 2192.750000, end 2250.750000
    Metadata:
      title           : You Be the Judge
    Chapter #0.38: start 2250.750000, end 2307.250000
    Metadata:
      title           : You Be the Judge
    Chapter #0.39: start 2307.250000, end 2349.750000
    Metadata:
      title           : You Be the Judge
    Chapter #0.40: start 2349.750000, end 2395.250000
    Metadata:
      title           : You Be the Judge
    Chapter #0.41: start 2395.250000, end 2397.750000
    Metadata:
      title           : Needlestick Injuries
    Chapter #0.42: start 2397.750000, end 2460.750000
    Metadata:
      title           : Needlestick Injuries
    Chapter #0.43: start 2460.750000, end 2463.250000
    Metadata:
      title           : Minimizing Risks
    Chapter #0.44: start 2463.250000, end 2541.250000
    Metadata:
      title           : Minimizing Risks
    Chapter #0.45: start 2541.250000, end 2623.250000
    Metadata:
      title           : Training
    Chapter #0.46: start 2623.250000, end 2696.250000
    Metadata:
      title           : Training
    Chapter #0.47: start 2696.250000, end 2738.250000
    Metadata:
      title           : Training
    Chapter #0.48: start 2738.250000, end 2883.250000
    Metadata:
      title           : Proper Supervision
    Chapter #0.49: start 2883.250000, end 2884.250000
    Metadata:
      title           : Proper Supervision
    Chapter #0.50: start 2883.250000, end 2884.250000
    Metadata:
      title           : Proper Supervision
    Chapter #0.51: start 2884.250000, end 2918.250000
    Metadata:
      title           : Proper Supervision
    Chapter #0.52: start 2918.250000, end 2945.250000
    Metadata:
      title           : Proper Supervision
    Chapter #0.53: start 2945.250000, end 2951.750000
    Metadata:
      title           : Documentation
    Chapter #0.54: start 2951.750000, end 3066.750000
    Metadata:
      title           : Why is documentation so important?
    Chapter #0.55: start 3066.750000, end 3101.250000
    Metadata:
      title           : Slide 52
    Chapter #0.56: start 3101.250000, end 3173.750000
    Metadata:
      title           : Proper Documentation
    Chapter #0.57: start 3173.750000, end 3197.750000
    Metadata:
      title           : Slide 54
    Chapter #0.58: start 3197.750000, end 3314.750000
    Metadata:
      title           : Slide 55
    Chapter #0.59: start 3314.750000, end 3340.250000
    Metadata:
      title           : Summary
    Chapter #0.60: start 3340.250000, end 3655.750000
    Metadata:
      title           : Slide 57
    Chapter #0.61: start 3655.750000, end 3998.048000
    Metadata:
      title           : Thank you!
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 16000 Hz, 1 channels, s16, 16 kb/s
    Stream #0:1: Video: none (MSS2 / 0x3253534D), 704x528, 260 kb/s, 2 tbr, 1k tbn, 1k tbc
    Stream #0:2: Data: none
At least one output file must be specified

comment:3 by compn, 13 years ago

you can use mencoder with binary codec to convert your file to h264 codec.
it is part of mplayer project.

comment:4 by PR, 12 years ago

What is 'mencoder' and how to use it in console?
Thanks!

comment:5 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

Implemented by Alberto Delmás and Kostya Shishkov.

Note: See TracTickets for help on using tickets.