Search found 14 matches

by myle00
Sat Nov 05, 2011 11:47 pm
Forum: Developement with FFmpeg
Topic: Opening dshow with avformat_open_input?
Replies: 4
Views: 19977

Re: Opening dshow with avformat_open_input?

Agggghhhhh. Never mind, this worked:

Code: Select all

avformat_open_input(&m_pFormatCtx, "video=Laptop Integrated Webcam", a, NULL)
It was the double quotes.
by myle00
Sat Nov 05, 2011 11:42 pm
Forum: Developement with FFmpeg
Topic: Opening dshow with avformat_open_input?
Replies: 4
Views: 19977

Opening dshow with avformat_open_input?

Hi, I'm trying to open a dshow device using avformat_open_input and I'm having trouble figuring out where to put what, avformat_open_input always returns error -5, EIO. The device works fine in ffplay.exe Here's the example code: av_register_all(); avdevice_register_all(); AVInputFormat * a= av_find...
by myle00
Sat Nov 05, 2011 12:56 pm
Forum: Usage
Topic: yuv422 not defaulting to yuv420 anymore
Replies: 2
Views: 6343

Re: yuv422 not defaulting to yuv420 anymore

You have to manually select the yuv420p pixel format; -pix_fmt you420p.
by myle00
Thu Oct 20, 2011 1:06 pm
Forum: Developement with FFmpeg
Topic: Entry point av_malloc could not be located, 2010 msvc++
Replies: 3
Views: 3958

Re: Entry point av_malloc could not be located, 2010 msvc++

Try instead of xxx.dll.a to use xxx.lib (I don't know if that will make a difference). Also, your code is rather large. Try to make a test case of just av_malloc so that is it's easier to debug. I'd then try to remove all the macros and try to compile with minimal includes/macros. Also, are you sure...
by myle00
Sun Aug 28, 2011 1:01 pm
Forum: Usage
Topic: How to compile ffmpeg based application to dll for x64 targe
Replies: 1
Views: 2130

Re: How to compile ffmpeg based application to dll for x64 t

Is all that you need to be able to do the following: decode h264 (or any other format) -> encode into raw video file? Because if it is, I have recently written x86/x64 dlls (mostly done, just waiting for some patches to ffmpeg to come through) based on ffmpeg that do that and I can post the source i...
by myle00
Wed Jul 27, 2011 4:20 am
Forum: Usage
Topic: Hello All: H.264 Encodes Too Dark
Replies: 8
Views: 8762

Re: Hello All: H.264 Encodes Too Dark

I'm not sure why the first one with profile isn't working. But for the second you're missing the vcodec param before vpre. Try again with -vcodec libx264 before the -vpre command and see what happens.

Matt
by myle00
Wed Jul 27, 2011 2:23 am
Forum: Usage
Topic: Hello All: H.264 Encodes Too Dark
Replies: 8
Views: 8762

Re: Hello All: H.264 Encodes Too Dark

I know that profile is deprecated but it still works for me using the most recent exe from the builds page. Have you tried to put in the exact command (only modifying filenames)? Can you post the exact command you put in? Anyway, since profile is deprecated, why not use presets. You have to put the ...
by myle00
Tue Jul 26, 2011 8:56 pm
Forum: Usage
Topic: Hello All: H.264 Encodes Too Dark
Replies: 8
Views: 8762

Re: Hello All: H.264 Encodes Too Dark

Just a comment, I tried winff initially but then moved on to the ffmpeg command line because the WinFF ffmpeg version was pretty old. So you might want to give it a try to see since this might been fixed in the current versions. You can get ffmpeg exes on the builds page in this website. You should ...
by myle00
Mon Jul 18, 2011 5:23 am
Forum: Developement with FFmpeg
Topic: Getting Access violation in VC++ 2010 Express
Replies: 2
Views: 4334

Re: Getting Access violation in VC++ 2010 Express

What other avformat.h functions crashes your program? I'm pretty sure you don't need to call avcodec init because register all registers all. Also, you should use avformat_open_input instead of av_open_input_file which is deprecated. I guess a more obvious issue might be the forward slash, C:/test.m...
by myle00
Sun Jul 03, 2011 9:13 pm
Forum: Developement with FFmpeg
Topic: Decoding frame loss and pixelation
Replies: 1
Views: 4225

Re: Decoding frame loss and pixelation

I found the following in the description of avcodec_decode_video2 Decode the video frame of size avpkt->size from avpkt->data into picture. Some decoders may support multiple frames in a single AVPacket, such decoders would then just decode the first frame. If only the first frame is returned, but m...