PDA

View Full Version : LGPL libavcodec for DGAVCDec


neuron2
5th December 2009, 19:44
In an effort to get DGAVCDec back in action I have built a fully LGPL version of libavcodec. I would appreciate testing. Just replace your libavcodec.dll with the one in this ZIP file. Please advise if you run into any issues.

http://neuron2.net/misc/lavc_lgpl.zip

Note that this is the same version of the lavc code previously used, so do not expect any PAFF decoding improvements (yet).

poisondeathray
5th December 2009, 20:03
Thanks; It says "couldn't load libavcodec.dll" when I try to start DGAVCIndex.exe

Brazil2
5th December 2009, 20:09
Thanks; It says "couldn't load libavcodec.dll" when I try to start DGAVCIndex.exe
Same here:
Error: Couldn't load f:\dgavcdec\libavcodec.dll

Dependency Walker says:
Error: The Side-by-Side configuration information in "f:\dgavcdec\LIBAVCODEC.DLL" contains errors.

neuron2
5th December 2009, 20:49
Weird. I'll look at it later this evening. Works fine for me. What OS are you using?

clsid
5th December 2009, 20:52
This means that the DLL needs the VC++ runtime. Or it does not really need it, but you forgot to disable manifest embedding in the project options.

Why not use GCC? That should give much better performance.

poisondeathray
5th December 2009, 20:55
What OS are you using?

The PC I tested it on has XP 32-bit as the OS

Brazil2
5th December 2009, 21:09
Windows XP 32 bits here too with VC++ 2005 and 2008 runtimes installed.

In Dependency Walker the original DLL loads KERNEL32.DLL and MSVCRT.DLL but the new one loads KERNEL32.DLL and MSVCR80.DLL.

ChaosKing
5th December 2009, 22:10
Windows 7 x64, no problems so far

LoRd_MuldeR
5th December 2009, 22:13
MSVCR80.DLL is the Microsoft Visual C++ 2005 runtime library.

If the binary wasn't statically linked to the runtime, then you will need this:
http://www.microsoft.com/downloads/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en

And if it works for you without that download, the runtime was already installed before, obviously :)
Quite possible that it ships with Window 7, but did not ship with Windows XP...

neuron2
5th December 2009, 23:29
OK, guys thanks. I think I'll take the advice about gcc, as it gives a 20% performance improvement as clsid alluded to.

Patience, we're coming back strong with this project.

I have an FFMPEG issue 1592 that needs resolving to absorb the latest libavcodec.

Blue_MiSfit
6th December 2009, 06:07
Great news! Hopefully this ends any question of license issues that have cropped up recently, and ends the unfortunate feud between two prominent board members :)

Cheers!

~MiSfit

canTsTop
6th December 2009, 15:41
I have an FFMPEG issue 1592 that needs resolving to absorb the latest libavcodec.
Is this the same sample you have issue? http://samples.mplayerhq.hu/V-codecs/h264/sony-hdr-cx6-avchd-interlaced-decoding-problem/sony-hdr-cx-6-avchd-1080i-9-seconds.mts
It has same dropped frames issue, but only if video is demuxed
If video converted without demuxing, output is good
ffmpeg -i sony-hdr-cx-6-avchd-1080i-9-seconds.mts -an -r 25 -vcodec ffvhuff sony.avi

neuron2
6th December 2009, 17:06
I don't know if it is the same, but it is a Sony sample.

Yes, it fails for me with the ES, which I uploaded for the FFMPEG guys.

It needs to be fixed because we need to support random access with ES.

SeeMoreDigital
6th December 2009, 19:37
The new version works fine for me in Windows 7 :)

edtee
8th December 2009, 10:11
Just to confirm... It works for me too, on Win7.

PS:Great to see you at this again. I'm not a big poster, but am a huge user/fan of your work. You rock and I've always appreciated your work.:thanks:

canTsTop
8th December 2009, 20:12
I don't know if it is the same, but it is a Sony sample.

Yes, it fails for me with the ES, which I uploaded for the FFMPEG guys.

It needs to be fixed because we need to support random access with ES.

i am not programmer.., but i thought that you only need from ffmpeg is h264 decoder, and ffmpeg decode correctly all my videos in TS format. And all my videos in ES have dropped frames issue with ffmpeg, even video (ES) that works good in DGAVCDec 1.09, fails in ffmpeg (dropped frames issue)
sorry if i make no sense :)

canTsTop
21st January 2010, 15:56
Yesterday ffmpeg added H264 DXVA2 implementation (http://git.ffmpeg.org/?p=ffmpeg;a=commit;h=6e3d7762f1d54dcaa783b67e370fb77ad73c8e79), is it possible to use DXVA2 decoder for DGAVCDec?

MuLTiTaSK
21st January 2010, 16:07
dxva2 (bit.ly/7ScmC2)

neuron2
21st January 2010, 16:08
Yesterday ffmpeg added H264 DXVA2 implementation (http://git.ffmpeg.org/?p=ffmpeg;a=commit;h=6e3d7762f1d54dcaa783b67e370fb77ad73c8e79), is it possible to use DXVA2 decoder for DGAVCDec? I'm not interested in working with ffmpeg due to my past unpleasant experiences.

Brazil2
21st January 2010, 16:29
MSVCR80.DLL is the Microsoft Visual C++ 2005 runtime library.

If the binary wasn't statically linked to the runtime, then you will need this:
http://www.microsoft.com/downloads/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
You don't really read what we are posting, do you ?
Windows XP 32 bits here too with VC++ 2005 and 2008 runtimes installed.