clyang
Posts: 4
Joined: Sun Aug 26, 2012 3:12 pm

MS VC-1 key can't play file with codec id WMV3 (solved)

Sun Aug 26, 2012 3:15 pm

I just received MS VC-1 key from Raspberry Pi. But I found that it can only play the WMV file with Codec ID: WVC1 and WMV3 is not working at all. According to Wikipedia, WMV3 is also a part of VC-1, any idea of this issue?

Here is the non-working WMV information:
ID : 1
Format : VC-1
Format profile : MP@HL
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Description of the codec : Windows Media Video 9 - Professional
Duration : 38mn 14s
Bit rate mode : Constant
Bit rate : 4 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 59.940 fps
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.072
Stream size : 1.07 GiB (95%)

Working WMV information:
ID : 2
Format : VC-1
Format profile : Advanced@L2
Codec ID : WVC1
Codec ID/Hint : Microsoft
Description of the codec : VC-1 - VC-1 Advanced Profile
Duration : 1h 48mn
Bit rate mode : Constant
Bit rate : 4 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.145
Stream size : 3.03 GiB (98%)

itsonlyme
Posts: 131
Joined: Sun Feb 12, 2012 12:43 pm

Re: MS VC-1 key can't play file with codec id WMV3

Sun Aug 26, 2012 3:33 pm

Identical problem here

csgabe
Posts: 23
Joined: Thu May 17, 2012 2:45 pm

Re: MS VC-1 key can't play file with codec id WMV3

Sun Aug 26, 2012 5:11 pm

Same problem here. Here is a sample:
http://i.minus.com/1346086712/X1kgyh6Nt ... -_W640.wmv
Info about file:

Code: Select all

General
Complete name                            : E:\movies\1\JoeNall10_3DH-_W640.wmv
Format                                   : Windows Media
File size                                : 29.5 MiB
Duration                                 : 2mn 30s
Overall bit rate                         : 1 644 Kbps
Maximum Overall bit rate                 : 1 633 Kbps
Encoded date                             : UTC 2010-05-25 02:39:39.000
Writing application                      : Flip4Mac WMV Export Component for QuickTime (Mac) 2211

Video
ID                                       : 2
Format                                   : VC-1
Format profile                           : MP
Codec ID                                 : WMV3
Codec ID/Info                            : Windows Media Video 9
Codec ID/Hint                            : WMV3
Description of the codec                 : Windows Media Video V9 - 640 x 360, 29.97 fps, 1272 kbps (CBR)
Duration                                 : 2mn 30s
Bit rate                                 : 1 569 Kbps
Width                                    : 640 pixels
Height                                   : 360 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 29.970 fps
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.227
Stream size                              : 28.2 MiB (95%)
Language                                 : English (US)

Audio
ID                                       : 1
Format                                   : WMA
Format version                           : Version 2
Codec ID                                 : 161
Codec ID/Info                            : Windows Media Audio
Description of the codec                 : Windows Media Audio V9 Standard - 64 kbps, 44 kHz, 16 bit, Stereo (CBR)
Duration                                 : 2mn 30s
Bit rate mode                            : Constant
Bit rate                                 : 64.0 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Bit depth                                : 16 bits
Stream size                              : 1.15 MiB (4%)
Language                                 : English (US)

See above that format is VC-1. I bought VC-1 format. I can't see anywhere posted that is for only VC-1 Advanced Profile.
Please implement VC-1 Simple & Main profile too.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5658
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: MS VC-1 key can't play file with codec id WMV3

Sun Aug 26, 2012 5:33 pm

I'm investigating. Ideally I need to speak to someone on the codec team who can confirm this, but being a Sunday now and a bank holiday tomorrow I may not get a prompt answer.

Currently it doesn't play as omxplayer (and xbmc) only understand CODEC_ID_VC1 and reject these as not supported. These files report CODEC_ID_WMV3.
I've tried the hack of pretending they are CODEC_ID_VC1 but that is not sufficient.

I'm still investigating.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5658
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: MS VC-1 key can't play file with codec id WMV3

Sun Aug 26, 2012 7:17 pm

An update. I've found some documentation. We support:

VC-1 (aka WMV9 Advanced Profile) with fourcc WVC1
WMV9 (aka WMV9 Simple and Main Profiles) with fourcc WMV3

WMV7 (fourcc WMV1) and WMV8 (fourcc WMV2) are not supported by the video decoder.

VC1 payload data does not include start codes.
WMV9 payload data does include start codes, and therefore payload data requires emulation prevention.

So, the good news is, I *think* the hardware supports WMV3.
The bad news, omxplayer/xbmc needs to do some different mangling to support WMV3.
I'll see if I can work out what needs to be done.

clyang
Posts: 4
Joined: Sun Aug 26, 2012 3:12 pm

Re: MS VC-1 key can't play file with codec id WMV3

Sun Aug 26, 2012 10:15 pm

Hi dom,
Thank you for the prompt support. Hopefully this issue can be sorted out soon.

vovidzan
Posts: 1
Joined: Mon Aug 27, 2012 1:27 pm

Re: MS VC-1 key can't play file with codec id WMV3

Mon Aug 27, 2012 1:34 pm

CODEC_ID_WMV3 is commented out in xbmc and omxplayer (OMXVideo.cpp). Not sure what the reasons are, but can someone uncomment it, recompile and see what happens.

RedPenguin
Posts: 3
Joined: Mon Aug 27, 2012 9:30 pm

Re: MS VC-1 key can't play file with codec id WMV3

Mon Aug 27, 2012 9:33 pm

WMV7 (fourcc WMV1) and WMV8 (fourcc WMV2) are not supported by the video decoder.

Is this strictly with the purchases VC-1 key or an actual hardware limitation?

I ask because one online CCTV News feed says WMV1 but lucky another one says WMV3 so I guess that eventually should play.

But thanks again for adding extra codecs, makes the RPi one nice media box.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: MS VC-1 key can't play file with codec id WMV3

Mon Aug 27, 2012 10:21 pm

So does that mean wmv9 / wmv9 pro will work with VC-1 hardware enabled codec??

Richard S.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5658
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: MS VC-1 key can't play file with codec id WMV3

Tue Aug 28, 2012 5:43 pm

Good news. VC1 simple/main profile (aka WMV3) is now working. The fixes are in omxplayer source. Hopefully the prebuilt versions will be updated soon.

We play the JoeNall10_3DH-_W640.wmv and SIA302.wmv files now.

clyang
Posts: 4
Joined: Sun Aug 26, 2012 3:12 pm

Re: MS VC-1 key can't play file with codec id WMV3

Tue Aug 28, 2012 10:11 pm

dom wrote:Good news. VC1 simple/main profile (aka WMV3) is now working. The fixes are in omxplayer source. Hopefully the prebuilt versions will be updated soon.

We play the JoeNall10_3DH-_W640.wmv and SIA302.wmv files now.
It works!! I just patched the codes and rebuilt it on my Raspbmc manually, all WMV3 files are know working smoothly. Thanks for your prompt help!

csgabe
Posts: 23
Joined: Thu May 17, 2012 2:45 pm

Re: MS VC-1 key can't play file with codec id WMV3

Wed Aug 29, 2012 11:26 am

Yes, it works now. Thank you & thanks to omxplayer developer.
The latest version omxplayer for raspbian can be downloaded from:
http://omxplayer.sconde.net/

nitramsnave
Posts: 1
Joined: Tue Aug 28, 2012 10:25 am

Re: MS VC-1 key can't play file with codec id WMV3

Wed Aug 29, 2012 1:30 pm

clyang wrote:
dom wrote:Good news. VC1 simple/main profile (aka WMV3) is now working. The fixes are in omxplayer source. Hopefully the prebuilt versions will be updated soon.

We play the JoeNall10_3DH-_W640.wmv and SIA302.wmv files now.
It works!! I just patched the codes and rebuilt it on my Raspbmc manually, all WMV3 files are know working smoothly. Thanks for your prompt help!
How do you patch and rebuild manually? :-)

clyang
Posts: 4
Joined: Sun Aug 26, 2012 3:12 pm

Re: MS VC-1 key can't play file with codec id WMV3

Wed Aug 29, 2012 3:23 pm

nitramsnave wrote:
clyang wrote:
dom wrote:Good news. VC1 simple/main profile (aka WMV3) is now working. The fixes are in omxplayer source. Hopefully the prebuilt versions will be updated soon.

We play the JoeNall10_3DH-_W640.wmv and SIA302.wmv files now.
It works!! I just patched the codes and rebuilt it on my Raspbmc manually, all WMV3 files are know working smoothly. Thanks for your prompt help!
How do you patch and rebuild manually? :-)
Set up the building environment by following this wiki: http://www.raspbmc.com/wiki/technical/build-filesystem/

Download and build XBMC for Raspbmc: http://www.raspbmc.com/wiki/technical/building-xbmc/

Before you build the code, patches the codes by yourself. https://github.com/huceke/omxplayer/com ... 432871a5d8

Then, you can build the new XBMC for Raspbmc.

btw, if it's too complicate to you and you want to use my build. Please PM me :)
(Use at your own risk)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5658
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: MS VC-1 key can't play file with codec id WMV3

Wed Aug 29, 2012 3:27 pm

This xbmc tree is the latest, and has the VC-1/WMV3 patch in place.
https://github.com/huceke/xbmc/tree/raspberrypi

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5658
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: MS VC-1 key can't play file with codec id WMV3

Wed Aug 29, 2012 10:45 pm

omxplayer is updated in raspbian repo.
sudo apt-get update && sudo apt-get upgrade
should get it.

calvinweber
Posts: 1
Joined: Fri Aug 31, 2012 1:26 pm

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Fri Aug 31, 2012 1:30 pm

Just ran an Update/Upgrade it had no omxplayer updates... but there was 40 or so Lib file updates which is what i am expecting was probably patched... i am at work so i will test later tonight

Thanks Dom You the Man!

radioactive73
Posts: 4
Joined: Sat Sep 01, 2012 3:31 am

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Sun Sep 02, 2012 6:11 am

Has anyone tried playing WMV3 streams? I can't seem to get this to work, the sample posted by csgabe works fine, so I know the codec is properly licensed and omxplayer is updated, but streams don't want to work for me, I just get a 'have a nice day ;)' message.

This is all that shows up in the log:

Code: Select all

00:00:00 T:0   DEBUG: DllBcm: Using omx system library
00:00:00 T:0   DEBUG: DllOMX: Using omx system library
00:00:00 T:0   DEBUG: DllAvFormat: Using libavformat system library
00:00:00 T:0   DEBUG: DllAvUtilBase: Using libavutil system library
00:00:00 T:0   DEBUG: DllAvCodec: Using libavcodec system library
00:00:00 T:0   DEBUG: DllAvFormat: Using libavformat system library
00:00:00 T:0   ERROR: COMXPlayer::OpenFile - avformat_open_input mms://media.sonoma.edu/pinball.wmv
This is the sample stream that I can't get working:
[url]mms://media.sonoma.edu/pinball.wmv[/url]

The format info I gathered is:

Code: Select all

root@raspberrypi:~# ./identify.sh mms://media.sonoma.edu/pinball.wmv
ID_AUDIO_ID=1
ID_VIDEO_ID=2
ID_CLIP_INFO_NAME0=title
ID_CLIP_INFO_VALUE0=Pinball\ WM\ 9\ Series
ID_CLIP_INFO_NAME1=author
ID_CLIP_INFO_VALUE1=Microsoft\ Corporation
ID_CLIP_INFO_NAME2=copyright
ID_CLIP_INFO_VALUE2=Copyright\ \(C\)\ Microsoft\ Corporation.\ All\ rights\ reserved.
ID_CLIP_INFO_N=3
ID_FILENAME=mms://media.sonoma.edu/pinball.wmv
ID_DEMUXER=asf
ID_VIDEO_FORMAT=[b]WMV3[/b]
ID_VIDEO_BITRATE=235000
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=176
ID_VIDEO_FPS=1000.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=353
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=3.00
ID_LENGTH=21.83
ID_SEEKABLE=0
ID_CHAPTERS=0
ID_VIDEO_CODEC=ffwmv3
ID_AUDIO_BITRATE=64040
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_AUDIO_CODEC=ffwmav2
ID_EXIT=EOF
Any help would be greatly appreciated, I want to use the R-Pi as a webcast receiver for events and such, etc. Unfortunately I don't have control over the current relay server that I can use, so WMV3 is the only format I can get the feed in, and I don't have enough bandwidth to broadcast directly in another format.

vinloren
Posts: 36
Joined: Sun Aug 05, 2012 2:08 pm

Re: MS VC-1 key can't play file with codec id WMV3

Tue Sep 04, 2012 9:06 am

Hi Clyang,

I'm having the same problem stated below on my raspbmc, I am afraid not to be able to build an update xbmc version myself (I never tried this before..) so if you could let me download your build via dropbox or whatever, I appreciate..

Thanks and kind regards
Vincenzo
nitramsnave wrote:
clyang wrote:
dom wrote:Good news. VC1 simple/main profile (aka WMV3) is now working. The fixes are in omxplayer source. Hopefully the prebuilt versions will be updated soon.

We play the JoeNall10_3DH-_W640.wmv and SIA302.wmv files now.
It works!! I just patched the codes and rebuilt it on my Raspbmc manually, all WMV3 files are know working smoothly. Thanks for your prompt help!
How do you patch and rebuild manually? :-)
Set up the building environment by following this wiki: http://www.raspbmc.com/wiki/technical/build-filesystem/

Download and build XBMC for Raspbmc: http://www.raspbmc.com/wiki/technical/building-xbmc/

Before you build the code, patches the codes by yourself. https://github.com/huceke/omxplayer/com ... 432871a5d8

Then, you can build the new XBMC for Raspbmc.

btw, if it's too complicate to you and you want to use my build. Please PM me :)
(Use at your own risk)[/quote]

csgabe
Posts: 23
Joined: Thu May 17, 2012 2:45 pm

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Wed Sep 05, 2012 6:27 pm

@radioactive73
"ID_VIDEO_CODEC=ffwmv3" is the problem, it should be just wmv3.

vinloren
Posts: 36
Joined: Sun Aug 05, 2012 2:08 pm

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Wed Sep 05, 2012 11:16 pm

Thanks for the reply but where have I to intervene to modify / set that parameter?

radioactive73
Posts: 4
Joined: Sat Sep 01, 2012 3:31 am

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Thu Sep 06, 2012 2:15 am

csgabe wrote:@radioactive73
"ID_VIDEO_CODEC=ffwmv3" is the problem, it should be just wmv3.
Whoops, I forgot to mention that the identify script uses mPlayer so it doesn't use the correct codec, I just wanted to show that the stream was in fact wmv3. When I actually try running the stream I'm using omxplayer. Good catch though. If I could get Openmax working in mPlayer for the R-Pi then that would also solve my problem, and actually be preferable.

mayburyds
Posts: 17
Joined: Wed Sep 05, 2012 7:06 pm

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Thu Sep 06, 2012 11:42 am

Hi, just started using RPI with Raspbmc installed but can't play VC-1 video with codec id WMV3. I have purchased the VC-1 codec.

Created Raspbmc on 4gb SD card
Booted RPI successfully and it started XBMC
Updated the /boot/config.txt file with the codec serial number
Updated the OMXplayer

Accessed video on remote PC on the LAN and it starts playing with sound but no video.

Haven't tried "apt-get update && sudo apt-get upgrade" as when I did that previously the RPI just kept looping at boot and I had to reimage the SD card.

Any ideas?

Cheers.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5658
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Thu Sep 06, 2012 12:12 pm

mayburyds wrote: Haven't tried "apt-get update && sudo apt-get upgrade" as when I did that previously the RPI just kept looping at boot and I had to reimage the SD card.
apt-get update && sudo apt-get upgrade
may well be the solution though...

mayburyds
Posts: 17
Joined: Wed Sep 05, 2012 7:06 pm

Re: MS VC-1 key can't play file with codec id WMV3 (solved)

Thu Sep 06, 2012 12:50 pm

Dom,

Thanks for the quick reply.

Ran the update / upgrade then tried a video with no success.

Rebooted RPI but I'm back in the "boot log display, "Raspberry" logo display then the " Relax, XBMC will resume shortly..." message display" loop.

One thing that is showing on the log display is -

[FAIL] Mounting local filesystems....failed.

Cheers.

Return to “General discussion”