[Libav-user] Input picture width is greater than stride error in encoding.

2016-10-23 Thread daggs
Greetings all, I'm trying to see what is the simplest way to grab video from screen, encode it into h264 and save it to file, so I took the decode_encode.c (from http://ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html) and added a grabbing part. when I'm trying to encode the first fra

Re: [Libav-user] setting raw alsa pkt size

2015-05-13 Thread daggs
fine that "same clock"? > > > but for audio I get a whopping 939834256 which > > > translates into 939 mb which is unacceptable for me. > > 939MB per hour? Or per day? > > This is the maximum alsa buffer size on your system. > > daggs: how do you measure tha

Re: [Libav-user] setting raw alsa pkt size

2015-05-13 Thread daggs
Greetings Carl, > Sent: Wednesday, May 13, 2015 at 11:50 AM > From: "Carl Eugen Hoyos" > To: libav-user@ffmpeg.org > Subject: Re: [Libav-user] setting raw alsa pkt size > > Carl Eugen Hoyos writes: > > > > but for audio I get a whopping 939834256 which > > > translates into 939 mb which is una

Re: [Libav-user] setting raw alsa pkt size

2015-05-13 Thread daggs
Greetings Carl, > Sent: Wednesday, May 13, 2015 at 11:46 AM > From: "Carl Eugen Hoyos" > To: libav-user@ffmpeg.org > Subject: Re: [Libav-user] setting raw alsa pkt size > > daggs writes: > > > as a design decision I've decided to split the grab >

[Libav-user] setting raw alsa pkt size

2015-05-13 Thread daggs
Greetings, I'm writing a program that needs to capture an X session on linux. as a design decision I've decided to split the grab and encode to two different threads. each input (e.g. video and audio) has it's own set of threads. the reason for that is not to overload the grabbing thread so I ca

Re: [Libav-user] invalid AVPacket size in av_read_frame usage.

2015-05-08 Thread daggs
Greetings Nicolas, > Sent: Tuesday, April 28, 2015 at 3:15 PM > From: daggs > To: "Nicolas George" > Cc: libav-user@ffmpeg.org > Subject: Re: [Libav-user] invalid AVPacket size in av_read_frame usage. > > Greetings Nicolas, > > > Sent: Monday, Apri

Re: [Libav-user] invalid AVPacket size in av_read_frame usage.

2015-04-28 Thread daggs
> > L'octidi 8 floréal, an CCXXIII, daggs a écrit : > > I'm using the x11grab module set to my desktop and grab the packets using > > av_read_frame call. > > 1228800 = 640 × 480 × 4, 640×480 is the default resolution for x11grab. You > are not configuring your

Re: [Libav-user] invalid AVPacket size in av_read_frame usage.

2015-04-27 Thread daggs
Greetings, > Sent: Monday, April 27, 2015 at 11:20 AM > From: "Carl Eugen Hoyos" > To: libav-user@ffmpeg.org > Subject: Re: [Libav-user] invalid AVPacket size in av_read_frame usage. > > daggs writes: > > > > > I'm writing a program that needs t

Re: [Libav-user] invalid AVPacket size in av_read_frame usage.

2015-04-27 Thread daggs
Greetings, > Sent: Monday, April 27, 2015 at 12:10 AM > From: "Carl Eugen Hoyos" > To: libav-user@ffmpeg.org > Subject: Re: [Libav-user] invalid AVPacket size in av_read_frame usage. > > daggs writes: > > > I'm writing a program that needs to sample t

[Libav-user] invalid AVPacket size in av_read_frame usage.

2015-04-26 Thread daggs
Greetings, I'm writing a program that needs to sample the screen in bgra format. the problem is what I try to read an av frame, I get this error: [rawvideo @ 0x1403aa0] Invalid buffer size, packet size 1228800 < expected frame_size 8294400 looking at the code I see that unless stated else,