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("lin
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 wrote:
>Been trying these techniques, but I keep getting crashes. Help please?:
>
> avpictur
Hi Navin,
You don't need RGB for bitmap. AFAIK BMP pictures can also embed YUV4:2:0
Here is a h264 decoding code that works fine. It may help you extracting the
right parts.
//#include "stdafx.h"
#include "stdio.h"
#include "stdlib.h"
#include "avcodec/avcodec.h"
static int FindStartCode (un
Malik Cissé 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
http:
Navin 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 unrelated:
In
René J.V. Bertin 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
__
Malik Cissé writes:
> My question:
> The decoding goes very fast and CPU usage is low.
> Can I guaranty same performance on similar CPU’s?
I may misunderstand the question, but decoding
is a deterministic process (if that is what you
want to know).
General system load and other factors that ar
Carl Eugen Hoyos writes:
Malik Cissé writes:
>SIMD (mmx) optimizations are hopefully used on CPUs that support it, hardware
>decoding is only >used if you explicitly requested it.
This is what I wanted to know.
How can I force hw decoding? Is there any good example code for this?
Thanks, Malik
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 t
Malik Cissé writes:
> How can I force hw decoding?
This depends on which hardware decoder you want to use,
at least the following APIs are "supported" (please
understand that in this case, this does not mean you
can use them without any additional effort, it just
means that some code necessa
Hi Navin,
Here is an example with SDL and avcodec_decode_video2 (which is not deprecated).
int main(int argc, char **argv)
{
AVCodec *codec;
AVCodecContext *c= NULL;
int got_picture, len;
AVFrame *picture;
int out_size_y;
int out_size_cr;
AVPacket pkt;
Hi Navin,
Also YUV4:2:0 in BMP does not seem feasible (sorry for my previous statement).
One think you can do too is use ffmpeg in a system call in your code.
This is very versatile (you need to replace 422 by 420 though)
char ffmpegString[256];//should be plenty
char fmt[] = "bmp"; //bmp,
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 fr
Navin,
> Macros and datatypes like LT_SUCCESS, MAX_FR_SZ, metaD_t, LtHandle,
> ASF_IDX_SZ etc. seem new. Am a bit puzzled.
The code is taken from a proprietary stuff and I did not want to disclose
everything but the main idea is there.
-Original Message-
From: libav-user-boun...@ffmpeg
Carl Eugen, Thanks for the info. This is what I wanted to know.
-Original Message-
From: libav-user-boun...@ffmpeg.org [mailto:libav-user-boun...@ffmpeg.org] On
Behalf Of Carl Eugen Hoyos
Sent: 20 November 2012 11:12
To: libav-user@ffmpeg.org
Subject: Re: [Libav-user] ffmpeg H.264 decodin
hi all,
I am new to libav, i am trying to transcode a video using libav by taking
help from example code decoding_encoding.c given with ffmpeg source code. I
am trying to transcode a video in mp4 container to a different codec
CODEC_ID_MPEG1VIDEO but everytime program exits throwing
[mpeg1video
hi all,
I am new to libav, i am trying to transcode a video using libav by taking
help from example code decoding_encoding.c given with ffmpeg source code. I
am trying to transcode a video in mp4 container to a different codec
CODEC_ID_MPEG1VIDEO but everytime program exits throwing
*[mpeg1video
Hi
I am trying to simulate the situation where some percentage of I P B frames
are getting dropped or corrupted. I want to observe effect on video quality.
Is there any way to create this situation just by some trick as an user of
ffmpeg?
If not can anyone give me some hints how should I proceed
Bivas Bhattacharya writes:
> I am trying to simulate the situation where some percentage
> of I P B frames are getting dropped or corrupted. I want to
> observe effect on video quality.
>
> Is there any way to create this situation just by some trick
> as an user of ffmpeg?
>
> If not can an
@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
(f
Hi List!
I have FFMPEG 1.0 installed in my ArchLinux box, I try to write simple
audio+video transcoder example using existings doc/examples/muxing.c and
doc/examples/demuxing.c ones and I have trouble: I can't listen sound in
resulting file.
Source example with command line to compile: http://pas
21 matches
Mail list logo