MC 2011 build 5002 wmv 9 encoding bug [FIXED ALMOST]

Bug report and feature request
User avatar
rhycos
Modest
Modest
Posts: 211
Joined: Wed May 07, 2008 4:41 am

MC 2011 build 5002 wmv 9 encoding bug [FIXED ALMOST]

Post by rhycos » Fri Jan 28, 2011 4:07 am

Latest build still suffers from wmv 9 encoding
Tried all the combination changing audio/video source setting without any result

Console output:

Code: Select all

MEncoder SVN-r32669(20101223-gcc4.4.0) (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0xc5d520
MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 8)  30.000 fps  1856.0 kbps (232.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:320x240  fps:30.000  ftime:=0.0333
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
Audio data will be piped out through pipe 6
Movie-Aspect is 1.46:1 - prescaling to correct movie aspect.

# ".\codecs\wmcodec.exe" -m 2 -o "E:\Temp\mediacoder\mctemp884ac274d88e789c84c.w
mv"  -vcodec "Windows Media Video 9" -vb 0 -vmode 0 -vq 50 -amode 0 -vbuffer 500
0 -abuffer 3000 -fpsnum 30 -fpsden 1 -vi 1808 -width 320 -height 240


# .\codecs\wmcodec.exe -m 2 -amode 0 -abuffer 3000 -acodec "Windows Media Audio
9.2" -aformat "96 kbps, 44 kHz, stereo (A/V) CBR" -srate 44100 -channels 2 -ai -
 -o "E:\Temp\mediacoder\mctemp884ac274d88e789c84c.wma"

Video codec: 3
Duration: 0
Output file: E:\Temp\mediacoder\mctemp884ac274d88e789c84c.wmv
Input Count: 0
Starting encoding...
E:\Temp\mediacoder\mctemp884ac274d88e789c84c.wma to be muxed into container as t
ype 1.
Error encoding video frame 0 (frame size: 115200, frame pos: 0)
E:\Temp\mediacoder\mctemp884ac274d88e789c84c.wmv to be muxed into container as t
ype 2.

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by stanley » Fri Jan 28, 2011 6:00 am

The wmv9 encoding highly depends on system configuration because system component is invoked to encode. So I need to reproduce it.
When things work together, things work.

User avatar
rhycos
Modest
Modest
Posts: 211
Joined: Wed May 07, 2008 4:41 am

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by rhycos » Fri Jan 28, 2011 6:15 pm

Yes, i have all the required windows components installed....
I have been encoding to wmv7, wmv8 and wmv9 with a very old build 0.7.0.4399
but with mc2011 it is not possible
hope it will be fixed

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by stanley » Sat Jan 29, 2011 6:12 am

Please try this update (only applicable to installed MC 2011).
When things work together, things work.

User avatar
rhycos
Modest
Modest
Posts: 211
Joined: Wed May 07, 2008 4:41 am

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by rhycos » Sat Jan 29, 2011 5:28 pm

Hi,
thanks for the update...
Now video and audio encoding works with the update but still..........
the problem is with the audio encoding format
i have selected audio format as wma 9 and the output audio is wma v8

Audio/Video transcoded details:

Code: Select all

MediaCoder Version 0.8.0 build 5003 (built on Jan 29 2011, 03:03:42)

MediaCoder is a freeware. You can freely redistribute it under its redistributio
n terms and conditions.
(C)2005-2010 Stanley Huang <stanleyhuangyc@gmail.com>. All Rights Reserved.

Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz (2730Mhz)
Cores: 2  L1: 32KB  L2: 3072KB  SIMD: MMX SSE SSE2 SSE3 SSSE3 SSSE4
North Bridge: 0x80862e30  South Bridge: 0x808627b8
MEncoder SVN-r32669(20101223-gcc4.4.0) (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0xc5d520
MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 8)  30.000 fps  1856.0 kbps (232.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:320x240  fps:30.000  ftime:=0.0333
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
Audio data will be piped out through pipe 6
Movie-Aspect is 1.46:1 - prescaling to correct movie aspect.

# ".\codecs\wmcodec.exe" -m 2 -o "E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.
wmv"  -vcodec "Windows Media Video 9" -vb 1000 -vmode 0 -vq 50 -amode 0 -vbuffer
 5000 -abuffer 3000 -fpsnum 30 -fpsden 1 -vi 1260 -width 320 -height 240


# .\codecs\wmcodec.exe -m 2 -amode 0 -abuffer 3000 -acodec "Windows Media Audio
9.2" -aformat "96 kbps, 44 kHz, stereo (A/V) CBR" -srate 44100 -channels 2 -ai -
 -o "E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wma"

E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wma to be muxed into container as
type 1.
Video codec: 3
Duration: 0
Output file: E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wmv
Input Count: 1
Starting encoding...
ac-tex damaged at 14 0]Video Frame: 736
Warning MVs not availabledeo Frame: 741
[mpeg1video @ 00ec9954]concealing 20 DC, 20 AC, 20 MV errors
Video Frame: 832
Broken frame at 0x14FB23
Video Frame: 851
Flushing video frames.

Video stream: 27648.000 kbit/s  (3456000 B/s)  size: 169920000 bytes  49.167 sec
s  1477 frames

Audio stream: 1411.200 kbit/s  (176400 B/s)  size: 8667648 bytes  49.136 secs
E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wmv to be muxed into container as
type 2.

# .\codecs\ffmpeg.exe -i "E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wma" -ac
odec copy -r 30/1 -s 320x240 -i "E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.w
mv" -vcodec copy -aspect 1.422 -y "E:\Temp\mediacoder\Alizee.wmv"

FFmpeg version SVN-r25456-Sherpya, Copyright (c) 2000-2010 the FFmpeg developers

  built on Oct 14 2010 16:46:15 with gcc 4.2.5 20090330 (prerelease) [Sherpya]
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.81. 0 / 52.81. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.51. 1 /  1.51. 1
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, asf, from 'E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wma':
  Metadata:
    title           :
    author          : MediaCoder
    copyright       :
    comment         : Encoded by MediaCoder
    WMFSDKVersion   : 11.0.5721.5275
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:49.03, start: 3.000000, bitrate: 99 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, 2 channels, s16, 96 kb/s
[wmv3 @ 01b46450] Extra data: 8 bits left, value: 0
[asf @ 01b50080] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000
/1) -> 30.00 (30/1)
Input #1, asf, from 'E:\Temp\mediacoder\mctemp1412ac274d88e789c84c.wmv':
  Metadata:
    title           :
    author          : MediaCoder
    copyright       :
    comment         : Encoded by MediaCoder
    WMFSDKVersion   : 11.0.5721.5275
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:49.57, start: 5.000000, bitrate: 1000 kb/s
    Stream #1.0(eng): Video: wmv3, yuv420p, 320x240, 1000 kb/s, 30 tbr, 1k tbn,
1k tbc
Output #0, asf, to 'E:\Temp\mediacoder\Alizee.wmv':
  Metadata:
    WM/EncodingSettings: Lavf52.81.0
    Stream #0.0(eng): Video: WMV3 / 0x33564D57, yuv420p, 320x240 [PAR 241:226 DA
R 482:339], q=2-31, 1000 kb/s, 1k tbn, 1k tbc
    Stream #0.1(eng): Audio: wmav2, 44100 Hz, 2 channels, 96 kb/s
Stream mapping:
  Stream #1.0 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 1472 fps=  0 q=-1.0 Lsize=    6879kB time=49.03 bitrate=1149.3kbits/s

video:5994kB audio:584kB global headers:0kB muxing overhead 4.586635%
Cannot load bitmap font: Arial
Cannot load bitmap font: Arial
Cannot load bitmap font: Arial
Transcoded File Details:
General
Complete name : E:\Temp\mediacoder\Alizee.wmv
Format : Windows Media
File size : 6.72 MiB
Duration : 49s 50ms
Overall bit rate : 1 149 Kbps
Maximum Overall bit rate : 1 096 Kbps
Encoded date : UTC 1970-01-01 00:00:00.000
WM/EncodingSettings : Lavf52.81.0

Video
ID : 1
Format : VC-1
Format profile : MP
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Duration : 49s 67ms
Bit rate : 999 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate : 30.000 fps
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.433
Stream size : 5.84 MiB (87%)

Audio
ID : 2
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio V8
Duration : 49s 50ms
Bit rate : 96.0 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 575 KiB (8%)
As far as i know though mediacoder encode the audio format to wma 9 while muxing the a/v the audio is mux as wma 8
strange!!!!

By the way mixer...
My winxp sp3 machine has wmp11 installed and ffdshow codec installed(...wmv filters are disabled in ffdshow)
And way too better for the old version 4399 to transcode to any version of wmv/wma

cheers

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by stanley » Sat Jan 29, 2011 7:03 pm

You may still need to set Audio Encoder to "windows media encoder" which by default is automatically chosen and ffmpeg may be chosen which only supports up to wma8.
When things work together, things work.

User avatar
rhycos
Modest
Modest
Posts: 211
Joined: Wed May 07, 2008 4:41 am

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by rhycos » Sat Jan 29, 2011 11:45 pm

You may still need to set Audio Encoder to "windows media encoder" which by default is automatically chosen
Yes, Audio encoder set to "windows media encoder"
And audio format is set to wma9
Still then after encoding video and audio the result audio format is in wma 8...
and ffmpeg may be chosen which only supports up to wma8
Yes again, that part is clear....

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: MC 2011 build 5002 wmv 9 encoding bug

Post by stanley » Mon Jan 31, 2011 3:13 am

I just figured out that the encoded audio stream is truly wma9 but when using ffmpeg to mux audio with video, ffmpeg rewrite the header as if it's wma8.
When things work together, things work.

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: MC 2011 build 5002 wmv 9 encoding bug [FIXED ALMOST]

Post by meRobs » Mon Jan 31, 2011 2:13 pm

rhycos: what are your video & Audio tab settings?
I tried various and all failed in build 5003.
For example:
Video tab: Encoder = WM Encoder, Format = WMV 9 and Source = Auto
Audio tab: Encoder = WM Encoder, Format = WMA9 and Source = Auto
Container = ASF
Muxer = Auto or Disabled.

I keep getting 2 lots of Error 9 !

I have XP SP3 with K-lite and Storm codecs, but only the default WMplayer 9 !!
Maybe I need WMplayer 11 on board ?
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: MC 2011 build 5002 wmv 9 encoding bug [FIXED ALMOST]

Post by meRobs » Mon Jan 31, 2011 3:20 pm

One further observation:
As with most builds, WMV8 is easily created via the FFmpeg encoder and MEncoder as source.
The audio is usually possible as PCM with FFmpeg as audio encoder.
This is also true with 5003.
Also possible, is WMA7 and WMA8 with FFmpeg as audio encoder, even, though the message "Not likely to be supported" pops up!
(but not WMA9, with FFmpeg -- nor WM Encoder in my setup).
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

Post Reply