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 > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th July 2011, 15:03   #21  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Codepage bug fixed
Midzuki is offline   Reply With Quote
Old 17th July 2011, 17:04   #22  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Fixed the "alternative" timestamp calculation mode. Still this mode is experimental and the default mode seems to work better for me.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 18th July 2011 at 00:09.
LoRd_MuldeR is offline   Reply With Quote
Old 17th July 2011, 20:14   #23  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Can somebody send me a sample WMA file that is DRM protected or at least run some tests for me with such file?

I added a check for DRM protected files, because such files cannot be processed (for obvious reasons). However I cannot test it without an example file.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 18th July 2011 at 12:59.
LoRd_MuldeR is offline   Reply With Quote
Old 18th July 2011, 12:58   #24  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Improved "alternative" timestamp calculation mode (option "-x"). Should be a viable alternative now.

More info at:
http://mulder.googlecode.com/svn/tru...wav/Readme.txt
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 18th July 2011 at 21:18.
LoRd_MuldeR is offline   Reply With Quote
Old 18th July 2011, 13:08   #25  |  Link
Brazil2
Registered User
 
Join Date: Jul 2008
Posts: 532
Quote:
Originally Posted by LoRd_MuldeR View Post
Can somebody send me a sample WMA file that is DRM protected or at least run some tests for me with such file?

I added a check for DRM protected files, because such files cannot be processed (for obvious reasons). However I cannot test it without an example file.
http://samples.mplayerhq.hu/A-codecs..._Your_Name.wma

http://samples.mplayerhq.hu/A-codecs...ypt/track0.wma

http://samples.mplayerhq.hu/A-codecs...ed_napster.wma

Last edited by Brazil2; 18th July 2011 at 13:12.
Brazil2 is offline   Reply With Quote
Old 18th July 2011, 13:12   #26  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 18th July 2011, 18:30   #27  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
@LoRd_MuldeR thanks a lot...now its OK...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 18th July 2011, 20:54   #28  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
can you add multichannel support? also if the source is 24bit then a 24bit pcm wav is better...

from a file like this i get stereo audio (downmixed)...

Quote:
General
Complete name : sample.wmv
Format : Windows Media
File size : 40.0 MiB
Duration : 1mn 0s
Overall bit rate mode : Variable
Overall bit rate : 5 519 Kbps
Maximum Overall bit rate : 17.7 Mbps
Encoded date : UTC 2009-11-25 16:58:08.171

Video
ID : 2
Format : VC-1
Format profile : AP@L3
Codec ID : WVC1
Codec ID/Hint : Microsoft
Description of the codec : Windows Media Video 9 Advanced Profile
Duration : 1mn 0s
Bit rate mode : Variable
Bit rate : 4 671 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.211
Stream size : 33.8 MiB (85%)
Language : English (US)

Audio
ID : 1
Format : WMA
Format profile : Pro
Codec ID : 162
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 10 Professional - 768 kbps, 48 kHz, 5.1 channel 24 bit 1-pass CBR
Duration : 1mn 0s
Bit rate mode : Constant
Bit rate : 768 Kbps
Channel(s) : 6 channels
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.56 MiB (14%)
Language : English (US)


--------------------------------------------------------------------


Input file: sample.wmv

Output file: sample.wav

Opening input file... OK
Analyzing input file... OK

[Audio Properties]
wFormatTag: 1
nChannels: 2
nSamplesPerSec: 48000
wBitsPerSample: 16
fDuration: 1:00.8
nMaxSampleSize: 77420

Opening output file... OK

Inconsistent timestamps: Expected 0.00000000 next, but got 0.15600000.
There is a "gap" of 0.15600000 seconds, padding 29952 zero bytes!
[100.0%] 1:00.3 of 1:00.3 completed, please wait...
Warning: Sync correction inserted 29952 zero bytes, skipped 0 bytes.

All done.
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 18th July 2011, 21:18   #29  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Hmm, actually my tool should be prepared for multi-channel audio and higher bit-depths. It dumps the audio data as received.

What you see below "[Audio Properties]" is exactly what the WMReader object reports for the audio stream. So it obviously does the down-mix automatically.
I don't know if there is a way to convince the WMReader object to output the "native" audio without downmixing. But I will look into this. Tomorrow...

For the moment, here is a small update that will detect and print out some Codec information.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 19th July 2011 at 12:26.
LoRd_MuldeR is offline   Reply With Quote
Old 18th July 2011, 22:18   #30  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
About multichannel output:

There are other tool (dshow2wav.exe) here : http://forum.doom9.org/showthread.ph...87#post1209087

And the WMA 5.1ch. in WMV only decodes to stereo? thread
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 19th July 2011, 01:40   #31  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Okay, here is a new test version

It gave me some headache, but I think I found a way to read out the "native" sampling rate and channel count of the WMA stream.
Also I will now try to set the output format accordingly. As a result, we can now get multi-channel output as well as 24-Bit.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 19th July 2011 at 12:25.
LoRd_MuldeR is offline   Reply With Quote
Old 19th July 2011, 02:10   #32  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Again, thanks for the good job

BTW, where the is zambelli?
Midzuki is offline   Reply With Quote
Old 19th July 2011, 12:25   #33  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
This version contains a massive clean-up of the recent changes to allow 24-bit and multi-channel output.

Also I added an option to force the "default" output format. Use this, if more than 16-Bit/Stereo output is not desired.

[UPDATE] Added MSVC 9.0 build that should work on Win2k + added Win2k channel workaround [/UPDATE]
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th July 2011 at 23:47. Reason: Win2k-compatible binary added
LoRd_MuldeR is offline   Reply With Quote
Old 19th July 2011, 16:39   #34  |  Link
Brazil2
Registered User
 
Join Date: Jul 2008
Posts: 532
Great work, channels are ok, 24 bits resolution is ok, one thing isn't working though: it always downsample to a maximum of 48 kHz from a 96 kHz or 192 kHz file.
Sample: http://samples.mplayerhq.hu/A-codecs...litchannel.wma

BTW the attached file is a VS2008 build which should run on Windows 2000 (not tested on Windows 2000 though but it's working fine on XP).

Last edited by LoRd_MuldeR; 20th July 2011 at 19:28. Reason: Removed attachment, as that version is outdated now (and I included a Win2k build in latest version). Sorry.
Brazil2 is offline   Reply With Quote
Old 19th July 2011, 17:00   #35  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Brazil2 View Post
Great work, channels are ok, 24 bits resolution is ok, one thing isn't working though: it always downsample to a maximum of 48 kHz from a 96 kHz or 192 kHz file.
Sample: http://samples.mplayerhq.hu/A-codecs...litchannel.wma
Hmm, that one is reported as 48 KHz by the IWMReader/IWMProfile interface, so the output format is set "correctly", I think.

Also MediaInfo reports:
Code:
Audio
ID                               : 1
Format                           : WMA
Format profile                   : Pro
Codec ID                         : 162
Codec ID/Info                    : Windows Media Audio
Description of the codec         : Windows Media Audio 9 Professional - 192 kbps, 48 kHz, 5.1 channel 24 bit 2-pass VBR
Duration                         : 1mn 13s
Bit rate mode                    : Variable
Bit rate                         : 192 Kbps
Channel(s)                       : 6 channels
Sampling rate                    : 48.0 KHz
And Foobar2000 as well as Winamp agree

Also I think more than 48 KHz output is rarely supported by consumer-grade hardware audio interfaces, let alone all the "on board" audio chips...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 19th July 2011 at 17:08.
LoRd_MuldeR is offline   Reply With Quote
Old 19th July 2011, 17:17   #36  |  Link
Brazil2
Registered User
 
Join Date: Jul 2008
Posts: 532
My mistake, it seems I got confused by the filename from all of these samples I've grabbed, sorry.
And everything is working fine with a 96 kHz file, at least it does with this sample:
http://samples.mplayerhq.hu/A-codecs...56000_1_20.wma

And please, don't forget to approve my VS2008 build from my previous post
Brazil2 is offline   Reply With Quote
Old 19th July 2011, 19:23   #37  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
@LoRd_MuldeR thanks a lot...all is OK now...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 20th July 2011, 19:08   #38  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Thanks, work fine for me also.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 21st July 2011, 23:52   #39  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Fixed a bug that could cause the tool to crash, when the ASF file had a very long Title or Codec Info.

You live and learn: wcscpy_s() doesn't gracefully truncate the string when the buffer is too small, but invokes Watson crash reporting instead.

"...which causes the application to crash and asks the user if they want to load the crash dump to Microsoft for analysis."
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 23rd July 2011 at 23:46.
LoRd_MuldeR is offline   Reply With Quote
Old 22nd July 2011, 00:08   #40  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
As I said before, Nic had already created a WMA2WAV.EXE ( for adding a .WAV header to WMA files ). Do you still resist renaming your most useful WMA-decompressor ?
Midzuki 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 15:21.


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