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 6th November 2007, 15:23   #2361  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by cyberscott View Post
Hi everyone, long time lurker, first time poster.
Thanks for all the hard work on ffdshow!

I have noticed that since the inclusion of 7.1 audio option, AC3 encoding no longer works via spdif using digital connection. It only outputs 2 channel PCM. This is regardless of of the speaker matrix chosen. Going back to builds prior to the 7.1 audio matrix addition, AC3 encoding works fine with digital out. Analog out works fine for the 7.1 matrix.
I can't reproduce. Which version do you use? What does the OSD or Info (dialog Info & CPU page) say?
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 6th November 2007, 19:45   #2362  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
New test build:
http://rapidshare.com/files/67886123...6_xxl.zip.html
mulipleLinesScript patch by haruhiko_yamagata used.
_xxl is offline   Reply With Quote
Old 6th November 2007, 20:44   #2363  |  Link
wozio
Registered User
 
Join Date: Apr 2005
Location: Krakow, Poland
Posts: 141
Quote:
Originally Posted by clsid View Post
The problem is making ffdshow able to recognize EAC3. It must be able to see the difference between normal AC3 audio and EAC3. It should do so based on the information given by the source filter in the graph. To be precise, ffdshow selects the decoder based on the FourCC/AudioTag. If someone can tell me which tag is used by EAC3, then maybe there is a small chance that I can make it work.
Here it is how haali connects to ffdshow using mkv with eac3:

Code:
- Connected to:

CLSID: {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
Filter: ffdshow Audio Decoder
Pin: In

- Connection media type:

Audio: Dolby AC3 48000Hz 6ch

AM_MEDIA_TYPE: 
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_DOLBY_AC3 {E06D802C-DB46-11CF-B4D1-00805F6CBBEA}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 0
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0000
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 0
nBlockAlign: 0
wBitsPerSample: 0
cbSize: 0 (extra bytes)

pbFormat:
0000: 00 00 06 00 80 bb 00 00 00 00 00 00 00 00 00 00 ....€»..........
0010: 00 00                                           ..

- Enumerated media type 0:

Set as the current media type

- Enumerated media type 1:

Audio: 0xeac3 48000Hz 6ch

AM_MEDIA_TYPE: 
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {0000EAC3-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 0
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0xeac3
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 0
nBlockAlign: 0
wBitsPerSample: 0
cbSize: 0 (extra bytes)

pbFormat:
0000: c3 ea 06 00 80 bb 00 00 00 00 00 00 00 00 00 00 Ăę..€»..........
0010: 00 00                                           ..
Both ffdshow and ac3filter connects to it but freezes on first frame. As far as I remember haali reports the same when splitting evo file.

Regards
Piotr Wozniak
wozio is offline   Reply With Quote
Old 6th November 2007, 21:52   #2364  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,643
Two media types instead of just one. Weird.

This is too complex for me. I won't be wasting my time on something that I probably can't get working.

Maybe Haruhiko or one of the other skilled people here can adapt ffdshow to recognize it.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 7th November 2007, 00:13   #2365  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by _xxl View Post
New test build:
http://rapidshare.com/files/67886123...6_xxl.zip.html
mulipleLinesScript patch by haruhiko_yamagata used.
Thank you.
I have written a patch to fix multiple lines AviSynth script problem.
Both upgrade and downgrade are supported without breaking the script. Export to registry, export to .ffpreset, save to .GRF in graphedit and ffavisynth.dll-ffdshow() options are supported. Please test.
Here's the patch.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 7th November 2007, 02:18   #2366  |  Link
cyberscott
Registered User
 
Join Date: Oct 2007
Posts: 92
Quote:
Originally Posted by haruhiko_yamagata View Post
I can't reproduce. Which version do you use? What does the OSD or Info (dialog Info & CPU page) say?
OSD says...Input description 48000 Hz stereo 160 kbps MP3 (mp3lib)

Output: 48000 Hz 8 channels 16 bit integer
Output Speakers: L,R,C,LFE, SL, SR, side left, side right

I've used both clsid and xxl builds 1578 and 1589 generic, icl10 builds, with the same lack of AC3 encoding. (for testing purposes, I'm currently using ffdshow_rev1589_20071031_clsid_sse_icl10.exe

With spdif enabled in the codec page, output set to AC3 encoding, ffdshow only outputs 2 channel pcm via my digital out. I've tried connecting using direct sound or wave out, no change. If I go back and use an earlier build such as 1530, ac3 encoding works fine via digital out. And of course, using analog out, it works fine.

I am using Windows xp pro with the latest updates. My sound card is the Auzen Prelude 7.1

cyberscott is offline   Reply With Quote
Old 7th November 2007, 08:53   #2367  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by cyberscott View Post
OSD says...Input description 48000 Hz stereo 160 kbps MP3 (mp3lib)

Output: 48000 Hz 8 channels 16 bit integer
Output Speakers: L,R,C,LFE, SL, SR, side left, side right

I've used both clsid and xxl builds 1578 and 1589 generic, icl10 builds, with the same lack of AC3 encoding. (for testing purposes, I'm currently using ffdshow_rev1589_20071031_clsid_sse_icl10.exe

With spdif enabled in the codec page, output set to AC3 encoding, ffdshow only outputs 2 channel pcm via my digital out. I've tried connecting using direct sound or wave out, no change. If I go back and use an earlier build such as 1530, ac3 encoding works fine via digital out. And of course, using analog out, it works fine.

I am using Windows xp pro with the latest updates. My sound card is the Auzen Prelude 7.1

As far as I know liba52 is not able to encode more than 5+1 channels in AC3 (I am not sure about that but I remember such limits in the code).
If you select 3/0/2 mixing it should work
I also brought a few corrections to AC3 encoding on revision 1595
albain is offline   Reply With Quote
Old 7th November 2007, 08:54   #2368  |  Link
wozio
Registered User
 
Join Date: Apr 2005
Location: Krakow, Poland
Posts: 141
Quote:
Originally Posted by clsid View Post
Two media types instead of just one. Weird.
Yes, weird. I will try ask haali about it. It should not be like that, normal AC3 should not be reported at all as far as I understand it.

Regards
Piotr Wozniak
wozio is offline   Reply With Quote
Old 7th November 2007, 09:53   #2369  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by cyberscott View Post
Output: 48000 Hz 8 channels 16 bit integer
Output Speakers: L,R,C,LFE, SL, SR, side left, side right
As albain pointed, AC3 can't encode 8 channels. Automatic down-mixing is desirable though.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 7th November 2007, 11:21   #2370  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Quote:
As far as I know liba52 is not able to encode more than 5+1 channels in AC3
I think that libavcodec ac3enc is used not liba52 to encode.
_xxl is offline   Reply With Quote
Old 7th November 2007, 12:25   #2371  |  Link
Kado
Otaku
 
Kado's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 576
I was thinking of translating ffdshow to Portuguese from Portugal but there's no English base file for me to start with, I've searched both the trunk and the installation folder but the files only say "English". Can some one provide something for me?
__________________
In the school, the three guys met. Their relation had been changed in the season, and turned into three love stories.
Kado is offline   Reply With Quote
Old 7th November 2007, 12:40   #2372  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,643
Translation tutorial:
http://forum.doom9.org/showthread.php?t=86030
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 7th November 2007, 12:58   #2373  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
@albain
Please read this thread.
Do you have any reason to use LPCM16 when AC3 output is enabled && Encode only multichannel stream is checked && nchannels<6?
PCM16/24/32 are more stable format for my system. I would be better if fail over format were configurable.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 7th November 2007, 13:01   #2374  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by Kado View Post
I was thinking of translating ffdshow to Portuguese from Portugal but there's no English base file for me to start with, I've searched both the trunk and the installation folder but the files only say "English". Can some one provide something for me?
Using regedit, navigate to HKEY_CURRENT_USER\Software\GNU and set the DWORD translateMode in each of the subkeys (ffdshow, ffdshow_audio, ffdshow_enc etc.) to 1.

Now switch your language to Portuguese (copy the file for the English "translation", ffdshow.1033.en, to ffdshow.2070.pt (I think that's the correct name) first if needed) then right click on any control to translate it's text.

You can edit the resulting file and add anything that's still missing afterwards.

Don't forget to switch translateMode back to 0 afterwards, as it'll prevent controls from being disabled and makes control groups look a bit weird...

EDIT: Yeah, basically what clsid said...
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 7th November 2007, 13:08   #2375  |  Link
Kado
Otaku
 
Kado's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 576
Thanks for the tips.
__________________
In the school, the three guys met. Their relation had been changed in the season, and turned into three love stories.
Kado is offline   Reply With Quote
Old 7th November 2007, 14:08   #2376  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by haruhiko_yamagata View Post
@albain
Please read this thread.
Do you have any reason to use LPCM16 when AC3 output is enabled && Encode only multichannel stream is checked && nchannels<6?
PCM16/24/32 are more stable format for my system. I would be better if fail over format were configurable.
I don't use this feature but I developped it from a feature request
From what I remember, the need was not to encode the stream in AC3 if this is a PCM non multichannel stream.
The argument was that AC3 is a compressed format and alters the quality of the source so it should be used only when necessary (i.e when the source is multichannel).
So the algorithm is the following : if "encode only multichannel stream" checked AND input channels < 6 then switch back to LPCM16

From what I understand, beta 3 and previous versions of ffdshow worked correctly but with the most recent versions of ffdshow there are some crash

Maybe this is due to the fact that there is a change of output format (AC3 to LPCM16) during the graph processing
albain is offline   Reply With Quote
Old 7th November 2007, 14:39   #2377  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by albain View Post
I don't use this feature but I developped it from a feature request
From what I remember, the need was not to encode the stream in AC3 if this is a PCM non multichannel stream.
The argument was that AC3 is a compressed format and alters the quality of the source so it should be used only when necessary (i.e when the source is multichannel).
So the algorithm is the following : if "encode only multichannel stream" checked AND input channels < 6 then switch back to LPCM16

From what I understand, beta 3 and previous versions of ffdshow worked correctly but with the most recent versions of ffdshow there are some crash

Maybe this is due to the fact that there is a change of output format (AC3 to LPCM16) during the graph processing
Thank you for explanation.
LPCM and PCM are differently accepted by the audio renderer.
The audio renderer does not accept LPCM at all.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 7th November 2007, 15:27   #2378  |  Link
wozio
Registered User
 
Join Date: Apr 2005
Location: Krakow, Poland
Posts: 141
EAC3 decoding

Regarding EAC3 decoding in ffdshow. As posted here there is problem with connecting to EAC3 media type since it is reported as plain AC3. I asked haali about this:

Quote:
Originally Posted by wozio
Why splitter enumerates AC3 as first media type on output pin? Shouldn't be only EAC3 since that kind of stream is in mkv? Could you please clarify it?
Quote:
Originally Posted by Haali
Existing eac3 decoders (sonic, etc.) don't use or support a special media type for eac3. The 0xeac3 waveformat that I use is purely for my enjoyment and is not used by any software afaik.
Quote:
Originally Posted by wozio
So how decoders know that stream is eac3? Now ffdshow or ac3filter connects as to ac3 and hangs.
Quote:
Originally Posted by Haali
I suppose they just check the bsid in frame headers and can decode each frame with either decoder.
Maybe this will help integrating EAC3 decoding into ffdshow.

I would really like to have EAC3 deocding in ffdshow...

Regards
Piotr Wozniak
wozio is offline   Reply With Quote
Old 7th November 2007, 15:36   #2379  |  Link
wozio
Registered User
 
Join Date: Apr 2005
Location: Krakow, Poland
Posts: 141
One more thing: since EAC3 should be backward compatible with AC3, so existing AC3 decoders are capable of decoding AC3 stream embeded in EAC3, then maybe it is good place to start just to ignore EAC3 samples and decode only AC3 ones...

Regards
Piotr Wozniak
wozio is offline   Reply With Quote
Old 7th November 2007, 15:46   #2380  |  Link
sysKin
Registered User
 
sysKin's Avatar
 
Join Date: Jun 2002
Location: Adelaide, Australia
Posts: 1,167
Heyhey,

I've been having an annoying issue with ffdshow for quite some time - it adds black borders to everything it displays. The borders are 6 pixels on right/left and 4 pixels on top/bottom, and are completely black (zero luma, I haven't checked chroma).

From what I can see the borders don't come from cropping the video but from *resizing* it down. This is particularly a problem with interlaced stuff.

Anyone knows what I can do about it? Is it known? Any workarounds?

Thanks
__________________
Visit #xvid or #x264 at irc.freenode.net
sysKin is offline   Reply With Quote
Reply

Tags
ffdshow, ffdshow tryouts, ffdshow-mt, ffplay, icl

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 21:51.


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