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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th January 2010, 11:34   #10561  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 583
Quote:
Originally Posted by tal.aloni View Post
should be fixed in rev. 3241
Thank you.
MatLz is offline   Reply With Quote
Old 30th January 2010, 12:32   #10562  |  Link
AiDz0r
⃪ ͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤͤ ͤͤ
 
AiDz0r's Avatar
 
Join Date: Nov 2009
Location: Australia
Posts: 54
Hi guys, I'm on Windows 7 64-bit at the moment, and now I need some help using/installing FFDSHOW Video Encoder for "Sony Vegas Pro 9", I'm having trouble encoding with it, I have downloaded two different version which are the latest version thats "ffdshow_rev3200_20100112_clsid_icl10" and "ffdshow_rev3222_20100123_clsid_x64", when ever I try encoding no matter what encoding type I do, if its a H.263 or a Mpeg-4/Xvid my Sony Vegas crashes when ever it begins encoding, also would I get any junk or broken registry on my Windows 7 because its fresh and don't want to ruin it. Here's my log when it crashes;
Quote:
Extra Information
File: C:\Users\...\AppData\Local\Sony\Vegas Pro\9.0\dx_video_grovel_x64.log
File: C:\Users\...\AppData\Local\Sony\Vegas Pro\9.0\dx_grovel_x64.log
File: C:\Users\...\AppData\Local\Sony\Vegas Pro\9.0\vst_grovel.log

Problem Description
Application Name: Vegas Pro
Application Version: Version 9.0c (Build 895) 64-bit
Problem: Unmanaged Exception (0xc0000005)
Fault Module: C:\Program Files\ffdshow\ffdshow.ax
Fault Address: 0x000000002BC5DFCB
Fault Offset: 0x000000000019DFCB

Fault Process Details
Process Path: C:\Program Files\Sony\Vegas Pro 9.0\vegas90.exe
Process Version: Version 9.0c (Build 895) 64-bit
Process Description: Vegas Pro
Process Image Date: 2009-10-25 (Sun Oct 25) 23:34:26
AiDz0r is offline   Reply With Quote
Old 30th January 2010, 14:01   #10563  |  Link
tetsuo55
MPC-HC Project Manager
 
Join Date: Mar 2007
Posts: 2,317
Quote:
Originally Posted by CiNcH View Post
But this is only MPEG-2 Bitstream which only works for some nVIDIA GPU's, right? Think most GPU's still only do MPEG-2 MC and iDCT.
Yes, but the same is true for all DXVA options in MPC-HC and FFdshow, bistreaming only.
__________________
MPC-HC, an open source project everyone can improve. Want to help? Test Nightly Builds, submit patches or bugs and chat on IRC
tetsuo55 is offline   Reply With Quote
Old 30th January 2010, 15:21   #10564  |  Link
HeadlessCow
Registered User
 
Join Date: Nov 2002
Posts: 131
These earlier betas have three post-processing modes. The third is called Full post-processing. tal.aloni removed it from the newer builds because it was super slow, but the technique came from an article by a guy at Intel that said it should have been waaaaaaaay more than fast enough. I wanted to see if the difference was because he was testing with an Intel embedded GPU and those of us that tested the ffdshow build all have ATI or nVidia.
HeadlessCow is offline   Reply With Quote
Old 30th January 2010, 16:22   #10565  |  Link
onomatopellan
Registered User
 
Join Date: Jan 2010
Posts: 47
Quote:
Originally Posted by albain View Post
Thanks, I didn't test your sample but if you say that it works on XP this confirms my thoughts : on XP directshow consults filters for uncompressed formats, not on vista/7

Here is a test build to confirm this

Please tell me if this solves the problem
Thanks albain but it doesn't work.
The problem continues in Windows 7 with most of my files. I only can see the subs in Graphstudio reconnecting the subtitles pin.

I also tried updating the ATI drivers (HD3450 in the PC and mobility HD4530 in the laptop) but no luck.
onomatopellan is offline   Reply With Quote
Old 30th January 2010, 17:49   #10566  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Yes, I have spent some time on it this afternoon with no luck

Actually the connection to the text pin is done (with MPC) and the subtitles are received and parsed by the subtitles reader of ffdshow

... but they are not displayed

I'll continue to work on this, maybe Tal will have an idea

The only difference in the logs between ffdshow video and ffdshow dxva is a ReconnectOutput call in ffdshow video.

NAILED IT : the imgfilters are not initialized when the subtitles are loaded

Last edited by albain; 30th January 2010 at 18:14.
albain is offline   Reply With Quote
Old 30th January 2010, 18:21   #10567  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
This is fixed in revision 3246 (embedded subtitles in DXVA)
albain is offline   Reply With Quote
Old 30th January 2010, 18:26   #10568  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
I discovered that enabling overlay can make seeking a bit unstable,
it seems that the DXVA API call to GetBuffer() might wait infinitely for a locked buffer to be unlocked. I tried to figure out why, but so far I couldn't.

maybe albain will have an idea. (right back at you, buddy )

Tal

edit:
this may have something with the fact that we're voilating the API when we're requesting the uncompressed buffer address after the allowed time.

Last edited by tal.aloni; 30th January 2010 at 18:52.
tal.aloni is offline   Reply With Quote
Old 30th January 2010, 19:02   #10569  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by tal.aloni View Post
I discovered that enabling overlay can make seeking a bit unstable,
it seems that the DXVA API call to GetBuffer() might wait infinitely for a locked buffer to be unlocked. I tried to figure out why, but so far I couldn't.

maybe albain will have an idea. (right back at you, buddy )

Tal

edit:
this may have something with the fact that we're voilating the API when we're requesting the uncompressed buffer address after the allowed time.
I had this problem when working on multithreading

I had deadlocks that were caused by
1/ either the m_csCodecs_and_imgFilters lock
2/ or the fact that all the buffers are allocated and waiting to be delivered BUT there is a new compressed buffer coming and no more available buffers (GetDeliveryBuffer is locked)

The solution, when a seeking occur, in the NewSegment method (which is called) freeing all the buffers
Easier to tell than to do because some buffers are being processed, some others are being copied

I'll have a look at it tomorrow
albain is offline   Reply With Quote
Old 30th January 2010, 19:28   #10570  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
albain,
thanks, however, this seems to be occuring with DXVA 1.0 only.
it might be somehow connected to the fact that under windows 7 I get immidiate garbled seeking, and in XP it's usually prettier.

EDIT:
calling Sleep(1) befire calling GetBuffer seems to help more than a bit.
I'll test and commit if this is effective.

Last edited by tal.aloni; 30th January 2010 at 20:54.
tal.aloni is offline   Reply With Quote
Old 30th January 2010, 21:25   #10571  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by tal.aloni View Post
albain,
thanks, however, this seems to be occuring with DXVA 1.0 only.
it might be somehow connected to the fact that under windows 7 I get immidiate garbled seeking, and in XP it's usually prettier.

EDIT:
calling Sleep(1) befire calling GetBuffer seems to help more than a bit.
I'll test and commit if this is effective.
If this doesn't work you can put a shared CCritsec dxvaLockBuffer
1/ NewSegment or brefore GetDeliveryBuffer (don't know which one causes the deadlock) : autolock(dxvaLockBuffer)

2/ Before calling GetBuffer : autolock(dxvaLockBuffer)
albain is offline   Reply With Quote
Old 30th January 2010, 22:35   #10572  |  Link
onomatopellan
Registered User
 
Join Date: Jan 2010
Posts: 47
Quote:
Originally Posted by albain View Post
This is fixed in revision 3246 (embedded subtitles in DXVA)
YES!! All my files works now. Thanks a lot!
onomatopellan is offline   Reply With Quote
Old 30th January 2010, 22:48   #10573  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
I managed to resolve the deadlock issue in rev. 3248

instead of deadlocking on skip, if the renderer is not ready after 50ms, the frame will not be post processed.
for now, this may create a tiny delay for subtitles (40ms on average, I'm not compensating yet), but it's way better than deadlocking.

Tal
tal.aloni is offline   Reply With Quote
Old 30th January 2010, 23:17   #10574  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Glad you fixed it
albain is offline   Reply With Quote
Old 31st January 2010, 00:15   #10575  |  Link
Casshern
Registered User
 
Join Date: Apr 2007
Posts: 220
Quote:
Originally Posted by tal.aloni View Post
should be fixed in rev. 3241
Hi there is also a long standing bug with 48000 khz, 24 bit, lpcm mono sound. This is found on a lot Criterion BluRay disks. It is played back through ffdshow in slow motion. It is roughly half the speed, as if ffdshow produces only half the samples per second - maybe ffdshow internally still thinks its stereo even though it correctly displays: 48000 khz mono 24 bit as input. If you need a sample - tell me exactly how (what tools) and what you need.

Last edited by Casshern; 31st January 2010 at 00:25.
Casshern is offline   Reply With Quote
Old 31st January 2010, 04:18   #10576  |  Link
iron2000
Questioning User
 
Join Date: Jan 2005
Posts: 166
I artifacting I had with ffdshow DXVA is similar to thuan's.
The picture explodes on seek and the picture slows and desyncs, theres lag on switching in and out of full screen.

DXVA for MPCHC isn't perfect as well.
Its slow to keep up when seeking(no artifact but desyncs for quite a period).
Sometimes its gets slow and affects the switching in and out of full screen.

So far for me its better to use the CPU to decode video.
DXVA gives me the impression that using GPU to decode is much slower.
(I'm don't know a lot about video decoding so I may have the wrong impression.)
__________________
8 Pro x64 | i5-3470 | 8GB ram | GT430 | Xonar DX | MPC-HC x86
iron2000 is offline   Reply With Quote
Old 31st January 2010, 09:25   #10577  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
Quote:
Originally Posted by Casshern View Post
Hi there is also a long standing bug with 48000 khz, 24 bit, lpcm mono sound
I'm pretty sure it has more to do with libavcodec (ffmpeg) than with ffdshow, in any way, to post a sample you'll need eac3to and mkvtoolnix,
use: eac3to "C:\00001.m2ts" --demux
to demux all of the tracks to the current directory, and then use mkvmerge (part of mkvtoolnix) to put the audio track inside mkv / mka, you can split it to several parts with predefined size. just upload a single part.
tal.aloni is offline   Reply With Quote
Old 31st January 2010, 14:26   #10578  |  Link
Casshern
Registered User
 
Join Date: Apr 2007
Posts: 220
Quote:
Originally Posted by tal.aloni View Post
I'm pretty sure it has more to do with libavcodec (ffmpeg) than with ffdshow, in any way, to post a sample you'll need eac3to and mkvtoolnix,
use: eac3to "C:\00001.m2ts" --demux
to demux all of the tracks to the current directory, and then use mkvmerge (part of mkvtoolnix) to put the audio track inside mkv / mka, you can split it to several parts with predefined size. just upload a single part.

eac3to created a file with the ending ".pcm". The GUI for MKVtoolnix 3.1.0.0 does not seem to recognize this as a valid format. Could you give me the correct commandline to process the pcm file?
Casshern is offline   Reply With Quote
Old 31st January 2010, 14:29   #10579  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
Quote:
Originally Posted by clsid View Post
I have a suggestion to make ffdshow DXVA a bit more robust ...
you are right to point out that when some applications would try to use the DXVA decoder (avsp for instance), it would lead to problems.
and you are also right to point out that the DXVA decoder should be used only by video players.

I would not want to limit usage (keep in mind that some players have their own preferred list), but I wouldn't object turning on the white list by default. (one with a short list of popular players)
tal.aloni is offline   Reply With Quote
Old 31st January 2010, 14:37   #10580  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
Quote:
Originally Posted by Casshern View Post
eac3to created a file with the ending ".pcm".
interesting, I thought it was a compressed format.

you can use eac3to "C:\00001.m2ts" to view the list of streams,
identify the PCM track number, and then use eac3to "C:\00001.m2ts" 4:C:\1.flac
to encode it to flac (lossless), when 4 represents the number of the pcm track. mkvtoolnix will accept flac.

(I'm not sure the problem would persist with a flac though, but it's worth trying)

alternative suggestion: maybe TSMuxer can cut the the m2ts with the PCM
tal.aloni is offline   Reply With Quote
Reply

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


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:19.


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