Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


Can't convert from wmv to flv

Discussions about problems encountered using ffmpeg.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

Can't convert from wmv to flv

Postby Penyo » Thu Aug 02, 2012 10:33 am

When I tried to convert two videos I see next errors:

Code: Select all
Metadata:
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 1
  Duration: 00:02:28.78, start: 0.000000, bitrate: 653 kb/s
    Stream #0:0(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 980x938,
300 kb/s, 32.25 tbr, 1k tbn, 1k tbc
    Stream #0:1(eng): Audio: wmalossless (c[1][0][0] / 0x0163), 44100 Hz, stereo
, s16, 1152 kb/s
[libvpx @ 01f78620] v1.1.0
[wmv3 @ 0034ce40] Extra data: 8 bits left, value: 0
[flv @ 01f77f40] video codec not compatible with flv
Output #0, flv, to 'C:\Users\MyUser\Desktop\2.flv':
  Metadata:
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 1
  Duration: 00:02:28.78, start: 0.000000, bitrate: 653 kb/s
    Stream #0:0(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 980x938,
300 kb/s, 32.25 tbr, 1k tbn, 1k tbc
    Stream #0:1(eng): Audio: wmalossless (c[1][0][0] / 0x0163), 44100 Hz, stereo
, s16, 1152 kb/s
[libvpx @ 01f78620] v1.1.0
[wmv3 @ 0034ce40] Extra data: 8 bits left, value: 0
[flv @ 01f77f40] video codec not compatible with flv
Output #0, flv, to 'C:\Users\MyUser\Desktop\2.flv':
  Metadata:
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 1
    encoder         : Lavf54.22.100
    Stream #0:0(eng): Video: vp8, yuv420p, 980x938, q=-1--1, 200 kb/s, 90k tbn,
32.25 tbc
    Stream #0:1(eng): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16
Stream mapping:
  Stream #0:0 -> #0:0 (wmv3 -> libvpx)
  Stream #0:1 -> #0:1 (wmalossless -> libmp3lame)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted


for first video and
Code: Select all
[asf @ 003cc420] Could not find codec parameters for stream 0 (Video: none (MSS2
 / 0x3253534D), 698x400, 150 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, asf, from 'C:\Users\MyUser\Desktop\1.wmv':
  Metadata:
    WMFSDKVersion   : 11.0.6002.18049
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:05:15.50, start: 0.000000, bitrate: 118 kb/s
    Stream #0:0(eng): Video: none (MSS2 / 0x3253534D), 698x400, 150 kb/s, 4 tbr,
 1k tbn, 1k tbc
    Stream #0:1(eng): Audio: wmavoice ([10][0][0][0] / 0x000A), 22050 Hz, mono,
flt, 20 kb/s
[buffer @ 041994a0] Unable to parse option value "-1" as pixel format
[graph 0 input from stream 0:0 @ 041e04a0] Error parsing options string: video_s
ize=698x400:pix_fmt=-1:time_base=1/1000:pixel_aspect=0/1:sws_param=flags=2:frame
_rate=4/1
Error opening filters!


for second.
Heres my command:
Code: Select all
ffmpeg -i "C:\Users\MyUser\Desktop\1.wmv"-sameq -vcodec libx264 -ar 22050 -f flv -y "C:\Users\MyUser\Desktop\2.flv"


Can you help me?
Thanks!
Penyo
 
Posts: 4
Joined: Thu Aug 02, 2012 10:31 am

Re: Can't convert from wmv to flv

Postby Penyo » Thu Aug 02, 2012 10:51 am

This is errors when I tried to convert from cmd.
When I convert from my app and see in log-file errors are:

Code: Select all
FFmpeg version SVN-r18639, Copyright (c) 2000-2009 Fabrice Bellard, et al.    configuration: --enable-memalign-hack --enable-postproc --enable-gpl --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --enable-avisynth --enable-pthreads    libavutil     50. 3. 0 / 50. 3. 0    libavcodec    52.27. 0 / 52.27. 0    libavformat   52.32. 0 / 52.32. 0    libavdevice   52. 2. 0 / 52. 2. 0    libswscale     0. 7. 1 /  0. 7. 1    libpostproc   51. 2. 0 / 51. 2. 0    built on Apr 21 2009 13:44:38, gcc: 4.2.4 (TDM-1 for MinGW)  [wmv3 @ 0x173ca70]Extra data: 8 bits left, value: 0    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 500.00 (500/1)  Input #0, asf, from 'C:\Users\MyUser\Desktop\1.wmv':    Duration: 00:02:26.85, start: 3.000000, bitrate: 662 kb/s      Stream #0.0: Video: wmv3, yuv420p, 980x938, 300 kb/s, 500 tbr, 1k tbn, 1k tbc      Stream #0.1: Audio: 0x0163, 44100 Hz, stereo, s16, 1152 kb/s  [libx264 @ 0x17c0180]width or height not divisible by 16 (980x938), compression will suffer.  [libx264 @ 0x17c0180]MB rate (1829000) > level limit (983040)  [libx264 @ 0x17c0180]using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT  [libx264 @ 0x17c0180]profile Baseline, level 5.1  [wmv3 @ 0x173ca70]Extra data: 8 bits left, value: 0  Output #0, flv, to 'C:\Users\MyUser\Desktop\2.flv':      Stream #0.0: Video: libx264, yuv420p, 980x938, q=2-31, 200 kb/s, 90k tbn, 500 tbc      Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, s16, 64 kb/s  Stream mapping:    Stream #0.0 -> #0.0    Stream #0.1 -> #0.1  Unsupported codec (id=86057) for input stream #0.1 

and

Code: Select all

ffmpeg version N-43060-ga85b4a5 Copyright (c) 2000-2012 the FFmpeg developers    built on Jul 30 2012 13:14:08 with gcc 4.7.1 (GCC)    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib    libavutil      51. 66.100 / 51. 66.100    libavcodec     54. 45.100 / 54. 45.100    libavformat    54. 22.100 / 54. 22.100    libavdevice    54.  2.100 / 54.  2.100    libavfilter     3.  5.101 /  3.  5.101    libswscale      2.  1.100 /  2.  1.100    libswresample   0. 15.100 /  0. 15.100    libpostproc    52.  0.100 / 52.  0.100  [asf @ 003dd840] Could not find codec parameters for stream 0 (Video: none (MSS2 / 0x3253534D), 698x400, 150 kb/s): unknown codec  Consider increasing the value for the 'analyzeduration' and 'probesize' options  Guessed Channel Layout for  Input Stream #0.1 : mono  Input #0, asf, from 'C:\Users\MyUser\Desktop\1.wmv':    Metadata:      WMFSDKVersion   : 11.0.6002.18049      WMFSDKNeeded    : 0.0.0.0000      IsVBR           : 0    Duration: 00:05:15.50, start: 0.000000, bitrate: 118 kb/s      Stream #0:0(eng): Video: none (MSS2 / 0x3253534D), 698x400, 150 kb/s, 4 tbr, 1k tbn, 1k tbc      Stream #0:1(eng): Audio: wmavoice ([10][0][0][0] / 0x000A), 22050 Hz, mono, flt, 20 kb/s  [buffer @ 02a1bf20] Unable to parse option value "-1" as pixel format  [graph 0 input from stream 0:0 @ 02a1be80] Error parsing options string: video_size=698x400:pix_fmt=-1:time_base=1/1000:pixel_aspect=0/1:sws_param=flags=2:frame_rate=4/1  Error opening filters! 
Penyo
 
Posts: 4
Joined: Thu Aug 02, 2012 10:31 am

Re: Can't convert from wmv to flv

Postby burek » Thu Aug 02, 2012 10:54 am

Hi,

Please don't cut the outputs, because you have cut off the crucial things we need to check. Always paste COMPLETE UNCUT output, if you want us to be able to help you.

Btw, SVN was abandoned a long time ago by FFmpeg developers, so I'm pretty sure your FFmpeg is just too old. Try updating to latest git source.
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: Can't convert from wmv to flv

Postby Penyo » Thu Aug 02, 2012 11:18 am

I use last version of FFmpeg.

This is full console:
Code: Select all
C:\Users\PRusev\Desktop>ffmpeg -i "C:\Users\PRusev\Desktop\1.wmv" -sameq -vcodec
 libx264 -ar 22050 -f flv -y "C:\Users\PRusev\Desktop\2.flv"
ffmpeg version N-43060-ga85b4a5 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 30 2012 13:14:08 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e
nable-zlib
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 45.100 / 54. 45.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.101 /  3.  5.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[asf @ 020cc420] Could not find codec parameters for stream 0 (Video: none (MSS2
 / 0x3253534D), 698x400, 150 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, asf, from 'C:\Users\PRusev\Desktop\1.wmv':
  Metadata:
    WMFSDKVersion   : 11.0.6002.18049
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:05:15.50, start: 0.000000, bitrate: 118 kb/s
    Stream #0:0(eng): Video: none (MSS2 / 0x3253534D), 698x400, 150 kb/s, 4 tbr,
 1k tbn, 1k tbc
    Stream #0:1(eng): Audio: wmavoice ([10][0][0][0] / 0x000A), 22050 Hz, mono,
flt, 20 kb/s
[buffer @ 040394a0] Unable to parse option value "-1" as pixel format
[graph 0 input from stream 0:0 @ 04080660] Error parsing options string: video_s
ize=698x400:pix_fmt=-1:time_base=1/1000:pixel_aspect=0/1:sws_param=flags=2:frame
_rate=4/1
Error opening filters!


but second video now works. I tried few times and in the beginning ffmpeg didn't converted, but now convert this video.. That's strange...
Penyo
 
Posts: 4
Joined: Thu Aug 02, 2012 10:31 am

Re: Can't convert from wmv to flv

Postby burek » Thu Aug 02, 2012 6:07 pm

Something is wrong with your ffmpeg.. "Error opening filters" message shouldn't be there at all. That means you have some privilege problems or linking issues or something. Anyway, if it works, then ok :)
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: Can't convert from wmv to flv

Postby Penyo » Fri Aug 03, 2012 5:28 am

Works with first video, second can't convert again... :)
Penyo
 
Posts: 4
Joined: Thu Aug 02, 2012 10:31 am

Re: Can't convert from wmv to flv

Postby burek » Fri Aug 03, 2012 9:02 am

Try using static FFmpeg. You can find several variants on the download page: http://ffmpeg.org/download.html
Or try compiling your FFmpeg from latest git source. You have some tutorials here: http://ffmpeg.org/trac/ffmpeg/wiki
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia


Return to ffmpeg

Who is online

Users browsing this forum: No registered users and 2 guests