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 15th May 2007, 10:06   #1221  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
Thanks again for the explanation
WorBry is offline   Reply With Quote
Old 15th May 2007, 11:45   #1222  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by Kado View Post
@haruhiko_yamagata
Found an issue with the "allow multichannel audio processing" option. If you play a file with two audio streams (one 5.1 and other 2.0) and have the option disabled, when the 5.1 track is played no processing is made which is normal but when you change to the 2.0 track no audio processing occurs even though ffdshow is outputting audio properly. If you enable then disable the option during the 2.0 audio playback processing begins and continues as ffdshow is now aware of the type of audio track.
If you do the reverse it happens again: playing 2.0 audio with option disabled and sound processing ,switch to 5.1 audio and sound will processed with the option disabled which is not ok for stereo plugins.
This probably happens because i'm using haali media splitter which handles the streams, so ffdshow is not totally aware of the audio stream changes.
Thank you for report.
Please provide a sample file.
Quote:
P.S.=> Is it possible to add a function to load DirectX audio dsp's from within ffdshow like is done with the winamp plugins?
I'm not sure, as for now, I don't have much time.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 15th May 2007, 11:51   #1223  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Latest's (1167,1155) libavcodec mpeg4 encoder is crashing.
Rev 1148 is working ok.
Tested with Intel Dual Core SSSE3.
Quote:
30867cb9: 660f7f4c2420 movdqa [esp+20h], xmm1 <-- FAULT
Crash reason: Access Violation

Crash context:
An out-of-bounds memory access (access violation) occurred in module 'libavcodec'...

...reading address FFFFFFFF...

...while compressing frame 0 from 0b3a0020 to 0b1a0020 using codec "ffdshow Video Codec" (VideoSequenceCompressor.cpp:618)...

...while running thread "Processing" (thread.cpp:150).
_xxl is offline   Reply With Quote
Old 15th May 2007, 15:32   #1224  |  Link
Kado
Otaku
 
Kado's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 576
Quote:
Originally Posted by haruhiko_yamagata View Post
Thank you for report.
Please provide a sample file.
Sample here.

Quote:
Originally Posted by haruhiko_yamagata View Post
I'm not sure, as for now, I don't have much time.
Wakarimashita!
__________________
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 15th May 2007, 16:10   #1225  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,642
Quote:
Originally Posted by drevil_xxl View Post
Latest's (1167,1155) libavcodec mpeg4 encoder is crashing.
Rev 1148 is working ok.
Tested with Intel Dual Core SSSE3.
It works ok for me (on default settings) on an old Athlon (MMX/MMXext).

So it may be caused by the added SSE2/SSSE3 SIMD code of rev1155.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 15th May 2007, 16:14   #1226  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by Kado View Post
Sample here.
Thank you. I can reproduce the problem.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 15th May 2007, 16:16   #1227  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Rev 1155 doesn't have SSSE3 enabled.
Maybe some custom code is missing?
_xxl is offline   Reply With Quote
Old 15th May 2007, 18:31   #1228  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,642
Yes, but some SSE2 code was added/changed.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 15th May 2007, 19:07   #1229  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Sse2 ?

"movdqa"
Doesn't depend on data alignment:
"movdqu"
(/arch:SSE2)
The compiler generated SSE code uses the MOVDQA instruction which requires the data to be aligned on a 16-byte boundary, but it is not safe to assume that the last element of an array of struct "data" is aligned on a 16-byte boundary due to its odd size, and executing the code aborts with an access violation at the first movdqa instruction.
Is this access violation due to movdqa on misaligned memory address?

Last edited by _xxl; 15th May 2007 at 19:13.
_xxl is offline   Reply With Quote
Old 15th May 2007, 20:49   #1230  |  Link
wozio
Registered User
 
Join Date: Apr 2005
Location: Krakow, Poland
Posts: 141
deinterlace flag always set when HW deinterlacing set

I have noticed that when HW deinterlacing is checked then ffdshow sets video in connection media type as interlaced (AMINTERLACE_IsInterlaced flag always set in VIDEOINFOHEADER2) even when it is in fact progressive. I know that later every video frame is presented with progressive flag set but I don't think if it is correct. I checked coreavc and it sets interlaced flag only when video stream is truly interlaced.

In result VMR9 reports doubled output frame rate and achieved is half of that.

Is it possible to fix it? I want to predict output frame rate of the rendered video in my application and want to check it from connection media type, when ffdshow always sets interlaced flag I will end with incorrect result.
wozio is offline   Reply With Quote
Old 16th May 2007, 05:48   #1231  |  Link
zambelli
Doom9ing since 2001
 
zambelli's Avatar
 
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
Quote:
Originally Posted by wozio View Post
I have noticed that when HW deinterlacing is checked then ffdshow sets video in connection media type as interlaced (AMINTERLACE_IsInterlaced flag always set in VIDEOINFOHEADER2) even when it is in fact progressive.
I think libavcodec libs need to be enabled to pass that info to the Dshow filter layer. Any codec that supports interlaced video (MPEG-2, H.264, VC-1, etc.) would need to pass that info out, ideally per every frame, but at the least once for the sequence.
zambelli is offline   Reply With Quote
Old 16th May 2007, 06:57   #1232  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Quote:
Originally Posted by drevil_xxl View Post
Is this access violation due to movdqa on misaligned memory address?
If you posted the full virtualdub crash log it would be pretty easy to tell. I doubt whether it's the fault of the compiler, they don't generate SSE2 code unless it's really safe. More than likely this is caused by some hand written assembly which is assuming the stack pointer to be 16-byte aligned - this is done by gcc but not MSVC.
squid_80 is offline   Reply With Quote
Old 16th May 2007, 08:08   #1233  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Vd 1.6.1 crashinfo:
http://rapidshare.com/files/31573240/crashinfo.txt.html
_xxl is offline   Reply With Quote
Old 16th May 2007, 12:35   #1234  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by wozio View Post
I have noticed that when HW deinterlacing is checked then ffdshow sets video in connection media type as interlaced (AMINTERLACE_IsInterlaced flag always set in VIDEOINFOHEADER2) even when it is in fact progressive. I know that later every video frame is presented with progressive flag set but I don't think if it is correct. I checked coreavc and it sets interlaced flag only when video stream is truly interlaced.

In result VMR9 reports doubled output frame rate and achieved is half of that.

Is it possible to fix it? I want to predict output frame rate of the rendered video in my application and want to check it from connection media type, when ffdshow always sets interlaced flag I will end with incorrect result.
It's difficult. To set the flag properly, ffdshow has to decode a few frames or at least the "codec private".
In most cases, codec private should help, but it's not easy because I don't have the documentation about codec private.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 16th May 2007, 13:00   #1235  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Quote:
Originally Posted by drevil_xxl View Post
The assembly code causing the crash appears to be an fdct function, most likely it's the fdct_col_##cpu function found in ffmpeg/libavcodec/i386/fdct_mmx.c. You'd need to find where the function is being called from and make sure the int16_t array being passed as the 2nd parameter is declared as being 16-byte aligned.
squid_80 is offline   Reply With Quote
Old 16th May 2007, 13:48   #1236  |  Link
swordsman
Registered User
 
Join Date: May 2007
Posts: 14
drawOSD() issue

Thanks for great codec!!!!
I've found strange thing - for all versions after 1025
drawOSD function isn't working. At 1025 and below
all is Ok. Does that mean you changed header file or
it's simply broken?
swordsman is offline   Reply With Quote
Old 16th May 2007, 18:39   #1237  |  Link
multiblitz
Registered User
 
Join Date: Dec 2004
Posts: 39
Quote:
Originally Posted by haruhiko_yamagata View Post
Thank you. I'll look into it again.
That would be great actually. THX
multiblitz is offline   Reply With Quote
Old 16th May 2007, 21:39   #1238  |  Link
[Toff]
Registered User
 
Join Date: Oct 2001
Location: FRANCE
Posts: 320
I've just spent more than an hour trying to remotely diagnose some video file loading problems in one of my application to finally find the culprit here: ffdshow and its white list.
I was not aware of this "new" functionality, so I was starting to pull my hair seeing the video loading well in the good old mplayer2.exe and in graphedit.
The user was using a codec pack so he didn't even see any ffdshow configurations dialog.
IMHO the white list option should be disabled by default, and only the black list should be pre-filled with some application known to cause problems.
At the very least a warning window should popup telling what's going one and why it's not loading with an option to not show the warning again.
__________________
Regards [Toff]
[Toff] is offline   Reply With Quote
Old 16th May 2007, 23:54   #1239  |  Link
jidelite
Registered User
 
Join Date: Dec 2004
Location: Richmond, VA
Posts: 27
Quote:
Originally Posted by Leak View Post
Here's the aforementioned AviSynth patch update:

Download
Documentation
Patch (against rev. 1167)

Changes:

* Reset AviSynth only after deactivating the filter or when the image size or the script changes - that's about as low as I can go when it comes to resetting AviSynth

* Added a help webpage for the filter (see link above)

* One additional pulldown option ("Smooth timestamps") to smooth out alternating timestamps without duplicating fields - this should make adding/dropping frames work on 24 FPS movie material, probably even on hybrid material, but the output frame rate will then vary proportional to the input frame rate
Leak, Finally got a chance to try your latest patch and I must say, this time you did it !! I no longer get any stuttering on DVDs when my frame duration changes. I cannot thank you enough for all your hard work!


jidelite
jidelite is offline   Reply With Quote
Old 17th May 2007, 00:14   #1240  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by [Toff] View Post
I've just spent more than an hour trying to remotely diagnose some video file loading problems in one of my application to finally find the culprit here: ffdshow and its white list.
I was not aware of this "new" functionality, so I was starting to pull my hair seeing the video loading well in the good old mplayer2.exe and in graphedit.
The user was using a codec pack so he didn't even see any ffdshow configurations dialog.
IMHO the white list option should be disabled by default, and only the black list should be pre-filled with some application known to cause problems.
Codec packs may not show the installation dialog for the compatibility list. They should either show a dialog on installation or disable compatibility list.
Quote:
At the very least a warning window should popup telling what's going one and why it's not loading with an option to not show the warning again.
Yes, it's a good idea.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata 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 13:52.


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