Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th December 2007, 06:39   #1  |  Link
lazyn00b
Registered User
 
Join Date: Feb 2003
Location: USA
Posts: 152
VC-1 Encoder SDK - Professional released

http://www.microsoft.com/downloads/d...playlang=en&tm

"The Microsoft VC-1 Encoder SDK - Professional is designed to provide file-based and/or real-time encoding capability to general content creation toolsets or dedicated encoding software applications.

Optimizations and features include:

Can output VC-1 Elementary Streams for delivery in HD Optical Disc applications
Performance improvements over the Windows Media FSDK11 for the latest generation of processors from Intel and AMD
Perceptual quality improvements over the Windows Media FSDK11
Ability to control all advanced settings programmatically through the API (no registry key settings required)
Native Hardware Acceleration API support"


Does this mean someone can finally design a free GUI to encode HD DVD/Blu-Ray compatible VC-1 streams?

Last edited by lazyn00b; 28th December 2007 at 07:46. Reason: clarity
lazyn00b is offline   Reply With Quote
Old 28th December 2007, 06:54   #2  |  Link
mahsah
Registered User
 
Join Date: Jun 2006
Posts: 273
Woo, finally an ES encoder!
mahsah is offline   Reply With Quote
Old 28th December 2007, 08:36   #3  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,419
Well ... someone can compile RAW2ES and AVI2ASF (Visual Studio) for make test ... ???
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9
Sagittaire is offline   Reply With Quote
Old 28th December 2007, 09:15   #4  |  Link
crypto
@DVBPortal
 
crypto's Avatar
 
Join Date: Feb 2004
Posts: 434
Well, I tried, but the samples do not link:

fatal error C1900: Il mismatch between 'P1' version '20060201' and 'P2' version '20050411'
1>LINK : fatal error LNK1257: code generation failed

Edit: Seems to require SP1, I am currently downloading
Edit 2: That did the trick. SP1 update for Vista was also needed:

Here are the compiled VC-1 sample encoders: VC1ProSDK-samples.zip

Last edited by crypto; 28th December 2007 at 10:38.
crypto is offline   Reply With Quote
Old 28th December 2007, 14:15   #5  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
http://nic.dnsalias.com/AVS2ASF.zip

I've modified the AVI2ASF sample to include:
  • Avisynth (.avs) YV12 file support
  • Encoding to both .vc1 ES streams and .asf files

There's more information in the Readme.txt. Source included.

Cheers,
-Nic
Nic is offline   Reply With Quote
Old 28th December 2007, 14:23   #6  |  Link
crypto
@DVBPortal
 
crypto's Avatar
 
Join Date: Feb 2004
Posts: 434
Nic, damn you're fast. I was just adding compressed AVI support, but your mod is better.
crypto is offline   Reply With Quote
Old 28th December 2007, 15:00   #7  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,183
which splitter/decoder is required to play those files ?
Kurtnoise is offline   Reply With Quote
Old 28th December 2007, 15:05   #8  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
Very little seems to be able to play .vc1 files. VideoLan can't nor can anything I've currently got installed. However, Nero 8's Showtime with the HDDVD plugin would be able to play it.
Nic is offline   Reply With Quote
Old 28th December 2007, 15:08   #9  |  Link
crypto
@DVBPortal
 
crypto's Avatar
 
Join Date: Feb 2004
Posts: 434
Splitters for VC-1 ES files:
- Sonic HD Demuxer
- V9E Parser (included in the SDK)

Decoders:
- WMVideo Decoder DMO (WMP 11 or WMF 11)
- Sonic Cinemaster Video Decoder >= 4.1
- FFDShow
- Cyberlink VC-1 Decoder (PowerDVD)
crypto is offline   Reply With Quote
Old 28th December 2007, 16:07   #10  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,419
Well this VC1 encoder is not able to produce HDDVD compliant stream (no telecine for pulldown flags).
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9
Sagittaire is offline   Reply With Quote
Old 28th December 2007, 16:19   #11  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
It should be able to produce HDDVD compliant streams - what do you mean exactly by "no telecine for pulldown flags"? Maybe I can add whatever you need to the sample.

How are you checking compliance?

-Nic
Nic is offline   Reply With Quote
Old 28th December 2007, 16:20   #12  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
would be possible to include support for audio ? (wma std/pro)

so will have a command line application able to encode video AND/OR audio and outputting asf (only video), asf (audio and video), wma (only audio).. and what about WMV output ?

and remove the "press input" final...

thanks!

BHH

EDIT: -threads is broken
feeding audiodubbed avs will produce biiiig files (must ctrl+c...)
EDIT2: even feeding audidubbed and specifing -pr audio profile will not close the encoding
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8

Last edited by buzzqw; 28th December 2007 at 16:48.
buzzqw is offline   Reply With Quote
Old 28th December 2007, 16:21   #13  |  Link
lance79
Registered User
 
Join Date: Aug 2007
Posts: 64
Can output VC-1 Elementary Streams for delivery in HD Optical Disc applications

How do i get a HD compatible vc1 output from this?
I tried with a 1 minute sample.evo avs

DirectShowSource ("sample.evo",audio=false)
ConvertFPS(24000, 1001)
spline36resize(1280,720)
ConvertToYV12()

I used this command...

AVS2ASF -i sample.avs -o output.vc1 -framerate 23.976 -rate 8000 -ratecontrol 3 -profiletype 2 -bframes 2 -maxkeydist 6 -vbv 300000 -peakrate 28000

Encode took more then 10 minutes

Cinevision(Mui Generator) does not accept this stream, getting error...

No Sequence-Layer just before Entry-Point ??
lance79 is offline   Reply With Quote
Old 28th December 2007, 16:37   #14  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,419
Quote:
Originally Posted by Nic View Post
It should be able to produce HDDVD compliant streams - what do you mean exactly by "no telecine for pulldown flags"? Maybe I can add whatever you need to the sample.

How are you checking compliance?

-Nic
Well I have a special VC1 encoder (command line from pep) and you must add telecine flag for produce HDDVD NTSC compliant stream. These flags simulate 1080i30 interlaced stream with internal 1080p24 progressive stream.


Here command line for "HDDVD stream" without pulldown 3:2 flag

AVS2ASF.exe -i HDDVD.avs -o ElementryStream.vc1 -framerate 23.976 -ratecontrol 3 -rate 6000 -peakrate 20000 -vbv 1843200 -complexity 5 -profiletype 2 -bframes 1 -maxkeydist 14 -inloop 1 -motionsearchlevel 3 -mesearchmethod 2 -mbcost 1 -mvcost 1 -mvrange 4 -adaptiveGOP -videotype 0
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9

Last edited by Sagittaire; 28th December 2007 at 16:49.
Sagittaire is offline   Reply With Quote
Old 28th December 2007, 16:56   #15  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
http://nic.dnsalias.com/AVS2ASF.zip <-- new v0.2

@lance79: Please try the new version. Should solve that issue. (I was creating ES rather than ES_SH streams (ES_SH is needed for HDDVD compatability).

@buzzqw: Did you provide a .prx (Windows Media Profile) file for audio encoding? That should solve it. I'll try to make some and provide them in the .zip file for future versions. For -threads you also need to provide an -affinity switch to state the processor layout. Try -threads 2 -affinity 3 (or 1). Can't test here as I don't have a 2 processor machine handy.

@Sagittaire: Hmm quite specific. I can specify specifc TFF and RFF flags for every frame. Could that help?

-Nic
Nic is offline   Reply With Quote
Old 28th December 2007, 17:04   #16  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
when setting -threads 2 -affinity 3 (or 1)

got this error
Code:
Encoding in ASF mode

Failure in CVC1EncASF::set_advancedProps
error = -20
Failure in CVC1EncASF::Init
hr = 0
VC1 SDK Error = -20

Final error code: -20
Total elapsed time in seconds = 0.031000
and even if providing a prx audio file (namely d6_qvbr_75_audio.prx , taken from program files\windows media components\encoder\settings) the encoding will not conclude. fyi i am using nicac3source feeding 2 channel ac3

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 28th December 2007, 17:16   #17  |  Link
lance79
Registered User
 
Join Date: Aug 2007
Posts: 64
Thx Nic, gonna give it another try...
lance79 is offline   Reply With Quote
Old 28th December 2007, 17:28   #18  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
http://nic.dnsalias.com/AVS2ASF.zip <-- v0.3

AviSynth (2.56 at least) doesn't seem to report no more audio frames even if requesting a sample beyond the total number. Hence the audio would encode forever. Hopefully this quick fix to avs2asf should workaround the problem.

The threads issue I cannot debug now - but it should be using the maximum number of CPUs it can by default anyway.

-Nic
Nic is offline   Reply With Quote
Old 28th December 2007, 17:35   #19  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Audio is FIXED!!!

... about cpu.. not a big problem.. but just 1 core is used

thanks again!

dumb question: from asf to wmv.. it's just a matter of renaming file ?

EDIT: no 5.1 audio support...
Code:
Original Sample AVI2ASF code Copyright (C) Microsoft Corporation.
All rights reserved.
Avisynth, YV12 & Raw support added by Nic.


*************************************

Encoding in ASF mode

------------Start Analysis-----------
------------End Analysis------------

Average bit rate: 221.00, total bytes processed:  349068.00.
Total frames: 315.00, Coded frames: 315.00.

------------Start Encode-----------
Failure in CASFFileWriter::AddVideoStream
hr = c00d0806
Failure in CASFFileWriter::Init
hr = c00d0806
Failure in VC1Enc::InitFileWriter
hr = c00d0806
VC1 SDK Error = 0
Failure in CASFFileWriter::Destroy
hr = c00d002b
Failure in CVC1EncASF::DestroyFileReader
hr = c00d002b

Failure in Encode
hr = c00d0806
VC1 SDK Error = 0
Total elapsed time in seconds = 6.250000
BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8

Last edited by buzzqw; 28th December 2007 at 17:46.
buzzqw is offline   Reply With Quote
Old 28th December 2007, 17:43   #20  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
"but just 1 core is used" <--- Not much I can probably do to fix that even when I get on a dual core machine

Quote:
from asf to wmv.. it's just a matter of renaming file ?
Yup, and you can use .wmv (instead of .asf) as the file extension too with avs2asf to save time renaming later
Nic is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.