Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OK, first time in 13 years I need to work with WMV and so far no success. These are Windows 7 ScreenRecorder files, no audio. I need to cut and crop them. So far I haven't found software capable of this. Avidemux crashes, ffmpeg does something (trying to recode) but the output is no use.
Any hints how to recode these files to MPEG-4 or any other standard format are most appreciated.
VLC does not display anything, just sits. Will try it from CLI when I get home.
MPV can play it. Maybe it can convert it into something useful, will try.
you might need a codec pack. In the debian world it would be w32codecs or w64codecs, depending on 32bit or 64bit OS. Although that is interesting that mpv can play it.
*** I just noticed that I do not have those codecs install, so ??? However, I do have mpv. this worked for me do do a conversion.
It's been a while since I heard anyone talk about needing w32/64codecs. Modern ffmpeg versions should have all needed support for wmv formats (though it doesn't encode wmv3):
Code:
$ ffmpeg -codecs | grep -i wmv
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
<snip>
DEV.L. wmv1 Windows Media Video 7
DEV.L. wmv2 Windows Media Video 8
D.V.L. wmv3 Windows Media Video 9 (decoders: wmv3 wmv3_crystalhd wmv3_vdpau )
D.V.L. wmv3image Windows Media Video 9 Image
mplayer test.wmv
.........
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV1] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in /home/teckk/
SUB: Could not determine file format
Cannot load subtitles 'test.js'.
Opening video filter: [eq brightness=10]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.26.100 (internal)
Selected video codec: [ffwmv1] vfm: ffmpeg (FFmpeg WMV1/WMV7)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, floatle, 32.0 kbit/1.56% (ratio: 4000->256000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
I could not just simply change containers
Code:
ffmpeg -i test.wmv -c:a copy -c:v copy testout.mp4
...........
[mp4 @ 0x55b9048697c0] Could not find tag for codec wmv1 in stream #0, codec not currently supported in container
I was was able change codecs and containers at the same time
OK, ffmpeg starts recoding but has errors. I think the Screenrecorder application used to produce these files is outputting less than perfect files. I believe now that is the reason players and editors fail. Is there any known application to fix WMV files?
Below is the output requested. The problem is the files are broken, ffmpeg does not crash, but produces broken output, too. All editors I've tried so far crash. Some players have apparently more error tolerance and can play these files. There seem to be some WMV repair utilities but of course you need Windows for that. Giving up.
Is uses rgb24 instead of yuv420p.
Did a little more research. This codec of Microsoft's will only play on a 32 bit machine. No, not kidding. Do a search on mss2 in .wmv files.
Some players have apparently more error tolerance and can play these files.
you could play the files, then make another desktop recording of that, this time with linux. it's a hassle, but shouldn't be more resource intensive than transcoding...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.