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. |
8th May 2012, 13:15 | #10861 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Please stop spamming 3 different forums with your questions.
This is not a question related directly to LAV. Static code analyzers are 99% useless, they usually produce more false positives then useful info, so filtering through those is more annoying then useful. Especially cppcheck is really bad. Especially the constructor things, not everything needs to be initialized in the constructor if you're conscious when you use it, and such things are just not caught by static analyzers.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 8th May 2012 at 13:21. |
8th May 2012, 14:49 | #10862 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
Nev,
This is what the MPC-HC AVI-splitter gives on a file with speex-audio : Code:
MPC AVI Source::Audio 1 Media Type 0: -------------------------- Audio: 0xa109 32000Hz stereo 44kbps AM_MEDIA_TYPE: majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71} subtype: Unknown GUID Name {0000A109-0000-0010-8000-00AA00389B71} formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A} bFixedSizeSamples: 1 bTemporalCompression: 0 lSampleSize: 4207 cbFormat: 132 WAVEFORMATEX: wFormatTag: 0xa109 nChannels: 2 nSamplesPerSec: 32000 nAvgBytesPerSec: 5610 nBlockAlign: 561 wBitsPerSample: 10 cbSize: 114 (extra bytes) pbFormat: 0000: 09 a1 02 00 00 7d 00 00 ea 15 00 00 31 02 0a 00 .¡...}..ê...1... 0010: 72 00|01 00 53 70 65 65 78 20 20 20 73 70 65 65 r...Speex spee 0020: 78 2d 31 2e 30 00 00 00 00 00 00 00 00 00 00 00 x-1.0........... 0030: 01 00 00 00 50 00 00 00 00 7d 00 00 02 00 00 00 ....P....}...... 0040: 04 00 00 00 02 00 00 00 ff ff ff ff 80 02 00 00 ........ÿÿÿÿ€... 0050: 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 ................ 0060: 00 00 00 00 09 43 6f 64 65 63 20 68 6f 6d 65 70 .....Codec homep 0070: 61 67 65 20 77 77 77 2e 6f 70 65 6e 61 63 6d 2e age www.openacm. 0080: 6f 72 67 20 Here's another file (speex in MKV) with the Haali splitter : Code:
Haali Media Source::Audio Media Type 0: -------------------------- Audio: 0xa109 32000Hz stereo 30kbps AM_MEDIA_TYPE: majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71} subtype: Unknown GUID Name {0000A109-0000-0010-8000-00AA00389B71} formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A} bFixedSizeSamples: 0 bTemporalCompression: 0 lSampleSize: 1 cbFormat: 98 WAVEFORMATEX: wFormatTag: 0xa109 nChannels: 2 nSamplesPerSec: 32000 nAvgBytesPerSec: 3800 nBlockAlign: 4 wBitsPerSample: 16 cbSize: 80 (extra bytes) pbFormat: 0000: 09 a1 02 00 00 7d 00 00 d8 0e 00 00 04 00 10 00 .¡...}..Ø....... 0010: 50 00|53 70 65 65 78 20 20 20 31 2e 32 72 63 31 P.Speex 1.2rc1 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................ 0030: 00 00 50 00 00 00 00 7d 00 00 02 00 00 00 04 00 ..P....}........ 0040: 00 00 02 00 00 00 a0 73 00 00 80 02 00 00 00 00 ......*s..€..... 0050: 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0060: 00 00 If you need more info, just let me know. Last edited by Pat357; 8th May 2012 at 17:05. Reason: adding Haali |
8th May 2012, 15:06 | #10863 | Link | |
QuickSync Decoder author
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
|
Quote:
CppCheck is a simple tool but there are others which are better. A good practice is to raise compiler warnings to level 4 on a regular basis and prior to release set it to 'EnableAllWarning' and use static analysis (whatever you can afford). In gcc, raise warning level to -Wall. which is similar to level 4 in VS. This way new issues are quickly found as the code is always clean.
__________________
Eric Gur, Processor Application Engineer for Overclocking and CPU technologies Intel QuickSync Decoder author Intel Corp. |
|
8th May 2012, 15:41 | #10864 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Compiler Warnings are one thing, but static analysis can't keep up with some more advanced constructs.
Its a tool that can be used occasionally, but its nearly useless if you run it on code that you don't know and take the messages at face value. Although i would never use CppCheck for it.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 8th May 2012 at 15:45. |
8th May 2012, 15:45 | #10865 | Link | |
もこたんインしたお!
Join Date: Jan 2008
Location: Finland / Japan
Posts: 512
|
Quote:
Purely source-based analyzers such as cppcheck can of course only go as far...
__________________
[I'm human, no debug]
|
|
8th May 2012, 16:12 | #10866 | Link | |
Registered User
Join Date: Dec 2011
Posts: 1,812
|
Quote:
I don't have any HDMI experience, but simply using what works/looks right would have answered your questions too, I guess. Let us stop trying out nev's bright mood. |
|
8th May 2012, 16:34 | #10867 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Note for everyone doing their own LAV builds!
Yesterday i added libspeex to my build, which required me to add a new binary dependency on libspeex itself. At first it was included in the repository, but that was not a good idea, so i removed it again. To build LAVs ffmpeg now, at least with my build scripts, you'll need to install libspeex into your local MSYS/MinGW build environment. You can get the pre-compiled libraries here: http://files.1f0.de/mingw/ I'll most likely add 1-2 more libraries in the future, which i'll all place there. I may even produce my own build-env setup, as i'm not too happy with the current one anymore. Edit: I reverted those changes until i can provide a proper complete build env, too much trouble otherwise.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 8th May 2012 at 20:12. |
8th May 2012, 16:38 | #10868 | Link |
Registered User
Join Date: May 2004
Posts: 5,351
|
A build env setup would ROCK. I like to maintain my own custom installer to update J River's private copy of LAV so having the build env auto setup would be nice. Do we just drop these in and we're good? Thanks!
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED |
8th May 2012, 16:49 | #10869 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Just unpack them in the folders as outlined on the downloads page, and it should work.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
8th May 2012, 17:08 | #10871 | Link |
Registered User
Join Date: May 2004
Posts: 5,351
|
You changed the install script on me? Cause I can't get the files to register now. I guess you must be including something new that I don't have in my install script modification.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED |
8th May 2012, 17:12 | #10872 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
Actually that was my fault, the libspeex package i uploaded was for dynamic linking, not static linking.
You need to remove the libspeex.dll.a from the "lib" dir where you just unpacked it to (just the ones with dll in them, not libspeex.a), otherwise you'll also need to put the libspeex-1.dll into the LAV folder. I posted corrected library zips, just when you already unpacked it, it won't remove the old files
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
8th May 2012, 18:29 | #10875 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
Nev,
The few samples I have with speex-audio played all fine with lav-splitter + lav-audio. I hope the info from MPC-AVI splitter and Haali splitter I posted contain some usefull info for you to make speex-audio work with other splitters too. If you need more info or samples, just ask. |
8th May 2012, 18:31 | #10876 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
I added support for other AVI Splitters, but for some reason the first few seconds of audio are corrupted with other AVI splitters.
Maybe the file i tried is weird, but it works with LAV, so i dunno. Not that i care much, use LAV or go away.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
8th May 2012, 19:46 | #10877 | Link |
Registered User
Join Date: Jun 2006
Posts: 452
|
I took the binary package from http://henry.fushizen.eu/builds/LAV%...ang=en/sort=na (latest 589c957bf655) to test the speex-decoder, but LAV-audio doesn't want to connect to the splitter anymore ..?
see http://www.mediafire.com/conv/34bd1f...917395056g.jpg There must be something wrong with his compilation... Last edited by Pat357; 8th May 2012 at 19:59. |
8th May 2012, 20:09 | #10878 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
|
If you want to test the decoder in combination with LAV Splitter, i posted a build yesterday for that, which i know is working.
The change to also support other splitters was not available in the public Git until right now. Recent versions require an additional library to make compilation work again, so its possible some people that do "automated" builds have it messed up right now. Maybe i should change my mind and move the speex library back into the Git repository. Edit: And i did. I'll try to go back to keeping the libs out of my sources once i have a better plan for a build env. To keep everything clean i purged two commits from history, so sorry about breaking some checkouts. :P
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 8th May 2012 at 20:14. |
9th May 2012, 03:43 | #10879 | Link |
Moderator
Join Date: Oct 2002
Location: Seattle
Posts: 1,584
|
Intel QuickSync (Lucid Virtu) + madVR = no video
I am trying to get madVR to work along with the LAV video decoder using Intel QuickSync decoding, running in MPC-HC with Lucid Virtu. It works great with EVR Custom Pres, but with madVR there is no video. Graphstudio exhibits the same behavior - opens a video window, plays audio, but no video.
I have a SandyBridge 2500K, and I am using a discrete ATI Radeon 6450 because I cannot get the integrated Intel HD Graphics to display colors well on my HDTV. If I remove the ATI card (so Lucid Virtu is not being used), playback works as expected (but poor color saturation). if I use DXVA Copy-back on the ATI card, (and disable Lucid Virtu), playback also works. I know this is perhaps an odd combination, but I would prefer QuickSync decoding, due to its better efficiency. (It can play Crowd.Run without skipping frames, the ATI card cannot. The fanless ATI card also runs hot while decoding Blu-ray resolutions).
__________________
This information is provided "AS IS" with no warranties, grants no rights, and reflects my personal opinion. |
Tags |
decoders, directshow, filters, splitter |
Thread Tools | Search this Thread |
Display Modes | |
|
|