Got the solution to my problem quite a while back. Posting it now as I
have time. Hope it helps someone else. Like Carl said, it'd be best for
a person to build the ffmpeg libraries by themselves.
I was using the 32bit dev builds from Zeranoe, and linking to the .lib
files caused the compiler
Sorry, the correct code (with the necessary typedefs) is as such:
#include Windows.h
#include libavformat/avformat.h
#include libavcodec/avcodec.h
#include libswscale/swscale.h
typedef SwsContext* (__cdecl *__sws_getContext)(int srcW, int srcH, enum
AVPixelFormat srcFormat, int dstW, int dstH,
Navin nkipe@... writes:
Am using the latest ffmpeg-win32-dev and I've tried with a wmv, many mp4
(from youtube, h264 (high) (avc1/0x31637661), yuv420p 1280x720,
1139kb/s, 24fps) files and avi too, but they're all crashing with
Unhandled exception, Access violation writing location
Carl Eugen ... writes:
...compile FFmpeg with msvc.
This sounds interesting. Where can I find msvc sample project?
Malik Cisse
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
use migw in linux
1- in a virtual machine run linux
2- install mingw
3- install yasm
4- compile yasm , x264 and ffmpeg with migw
On Wed, Nov 21, 2012 at 4:03 PM, Malik Cissé m...@enciris.com wrote:
Carl Eugen ... writes:
...compile FFmpeg with msvc.
This sounds interesting. Where can I find
Been trying these techniques, but I keep getting crashes. Help please?:
avpicture_fill((AVPicture*) frame2, frame2_buffer,
PIX_FMT_RGB24, width2, height2);
//printf(data = %d, %d, %d, %d
\n,frame2-data[0],frame2-data[1],frame2-data[2],frame2-data[3]);
//printf(linesize
Have you looked at the tutorial concerning ffmpeg wit sdl, and/or the ffplay
sourcecode? Other things to check out would be the motion jpeg encoder - afaik
jpg images are in rgb space.
R
Navin nk...@tatapowersed.com wrote:
Been trying these techniques, but I keep getting crashes. Help
-user-boun...@ffmpeg.org] On
Behalf Of Navin
Sent: 20 November 2012 09:49
To: libav-user@ffmpeg.org
Subject: Re: [Libav-user] get RGB values from ffmpeg frame
Been trying these techniques, but I keep getting crashes. Help please?:
avpicture_fill((AVPicture*) frame2, frame2_buffer
Malik Cissé mc@... writes:
You don't need RGB for bitmap. AFAIK BMP pictures
can also embed YUV4:2:0
I didn't know bmp supports yuv.
Do you have a sample or a source that confirms this?
Carl Eugen
___
Libav-user mailing list
Libav-user@ffmpeg.org
Navin nkipe@... writes:
I have been through many websites, but they either use
img_convert (which doesn't work) or sws_scale, which
crashes when I try to use it with RGB.
I may miss something, but I guess this is the important
problem you should work on (see doc/examples).
Possibly
René J.V. Bertin rjvbertin@... writes:
afaik jpg images are in rgb space.
No.
(Lossless jpg supports rgb and FFmpeg supports reading
and writing lossless jpg but this is a very unusual
feature and nearly all non-FFmpeg software will not
support the images.)
Carl Eugen
Hey thanks everyone! Still trying/struggling with the code sent by Malik
because avcodec_decode_video is deprecated.
Thought I'd post the entire code here for anyone who could help or for
anyone who needs such code in future. This is the corrected version of
ffmpeg's tutorial02, with SDL added
: 20 November 2012 12:09
To: libav-user@ffmpeg.org
Subject: Re: [Libav-user] get RGB values from ffmpeg frame
Hey thanks everyone! Still trying/struggling with the code sent by Malik
because avcodec_decode_video is deprecated.
Thought I'd post the entire code here for anyone who could help
Actually, Malik; the idea was not to use the ffmpeg.exe. I wanted the
bitmap/RGB values to be stored in memory (a datastructure) in my program
and then I'd pass the pointer of the datastructure to a client program
which is running at the same time. The client program would then take
the info
...@ffmpeg.org [mailto:libav-user-boun...@ffmpeg.org] On
Behalf Of Navin
Sent: 20 November 2012 12:39
To: libav-user@ffmpeg.org
Subject: Re: [Libav-user] get RGB values from ffmpeg frame
Actually, Malik; the idea was not to use the ffmpeg.exe. I wanted the
bitmap/RGB values to be stored in memory
@Everyone: I had seen the doc/examples code and every other possible
source of information but there seems to be some problem causing the
crashes when I use RGB. Even for the below Tutorial01 code of ffmpeg for
example.
Am using the latest ffmpeg-win32-dev and I've tried with a wmv, many mp4
Hi! Glad to be part of this mailing list.
What I wanted to create, was a program which would receive a streaming
video, and when it decodes a frame of the video into either a bitmap
format or just pure RGB (perhaps stored in a char array), it would
notify another program that it has received a
17 matches
Mail list logo