Displaying 11 results from an estimated 11 matches for "video_x".
2005 Oct 05
1
Simple encodig sample...
...#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "theora/theora.h"
#define STREAM_EOP 1 // End-of-page
#define STREAM_EOD 2 // End-of-data
#define STREAM_EOS 3 // End-of-stream
#define SPIN "|/-\\"
int video_x = 0;
int video_y = 0;
int frame_x = 352;
int frame_y = 288;
int frame_x_offset = 0;
int frame_y_offset = 0;
int video_hzn = 25;
int video_hzd = 1;
int video_an = 1;
int video_ad = 1;
int video_r = 320000;
int video_q = 16;
int frame_co...
2004 Aug 06
0
No subject
if(state==-1){
/* initialize the double frame buffer */
yuvframe[0]=malloc(video_x*video_y*3/2);
yuvframe[1]=malloc(video_x*video_y*3/2);
/* clear initial frame as it may be larger than actual video data */
/* fill Y plane with 0x10 and UV planes with 0X80, for black data */
memset(yuvframe[0],0x10,video_x*video_y);
memset(yuvframe[0]+video_x*video_y,0x80,video_x*video_y/2);
mem...
2004 Nov 20
0
ffmpeg2theora start and end time support
...e_ctx; /* for image resampling/resizing */
ReSampleContext *audio_resample_ctx;
ogg_uint32_t aspect_numerator;
ogg_uint32_t aspect_denominator;
double frame_aspect;
int video_quality;
/* cropping */
int frame_topBand;
int frame_bottomBand;
int frame_leftBand;
int frame_rightBand;
int video_x;
int video_y;
int frame_x_offset;
int frame_y_offset;
int start_time; /* In seconds */
int end_time; /* In seconds */
}
*ff2theora;
/**
* Allocate and initialise an AVFrame.
*/
AVFrame *alloc_picture (int pix_fmt, int width, int height){
AVFrame *picture;
uint8_t *picture_buf;
int size...
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...rintf (stderr, "\nDuplicating frame at %.1f: sync off by %.3f frames\n",
+ v_pts_out, framesync);
+ framesync = 1;
+ }
+ else
+ framesync = 0.0;
+
//now output_resized
- if(theoraframes_add_video(&info, output_resized->data[0],
- this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){
- //this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){
- ret = -1;
- fprintf (stderr,"No theora frames available\n");
- break;
+ for (j = 0; j < 1 + framesync ; j++)
+ {...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...tf (stderr, "\nDuplicating frame at %.1f: sync off by %.2f frames\n",
+ v_pts_out, framesync);
+ frameadjust = 1;
+ }
+ else
+ frameadjust = 0;
+
//now output_resized
- if(theoraframes_add_video(&info, output_resized->data[0],
- this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){
- //this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){
- ret = -1;
- fprintf (stderr,"No theora frames available\n");
- break;
+ for (j = 0; j < 1 + frameadjust ; j++)
+...
2004 Sep 25
6
Directshow filters 0.64.7878
Updated again... theora works and seeks properly (not to keyframe) in WMP 9
and 10.
You can encode from a bunch of onew input types like RGB32, RGB24, IYUV etc.
And fixed a bug that was stopping the filters being used in a activeX
control in an IE browser.
www.illiminable.com/ogg/
Enjoy,
Zen.
2004 Sep 25
6
Directshow filters 0.64.7878
Updated again... theora works and seeks properly (not to keyframe) in WMP 9
and 10.
You can encode from a bunch of onew input types like RGB32, RGB24, IYUV etc.
And fixed a bug that was stopping the filters being used in a activeX
control in an IE browser.
www.illiminable.com/ogg/
Enjoy,
Zen.
2004 Sep 25
6
Directshow filters 0.64.7878
Updated again... theora works and seeks properly (not to keyframe) in WMP 9
and 10.
You can encode from a bunch of onew input types like RGB32, RGB24, IYUV etc.
And fixed a bug that was stopping the filters being used in a activeX
control in an IE browser.
www.illiminable.com/ogg/
Enjoy,
Zen.
2004 Sep 25
6
Directshow filters 0.64.7878
Updated again... theora works and seeks properly (not to keyframe) in WMP 9
and 10.
You can encode from a bunch of onew input types like RGB32, RGB24, IYUV etc.
And fixed a bug that was stopping the filters being used in a activeX
control in an IE browser.
www.illiminable.com/ogg/
Enjoy,
Zen.
2005 Sep 07
1
encoder settings
...es, then I send them over TCP/IP to the client
application. Since I want to achieve as small latency as possible I don't
want to buffer the stream and here is the problem...
Right now the encoder works with following settings:
bitrate = 80
video_r = 80;
videostream->ti.width = video_x;
videostream->ti.height = video_y;
videostream->ti.frame_width = frame_x;
videostream->ti.frame_height = frame_y;
videostream->ti.offset_x = frame_x_offset;
videostream->ti.offset_y = frame_y_offset;
videostream->ti.fps_numerator = refreshrate * 1000000;...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...s_init ();
+ theoraframes_init (&info);
/* main decoding loop */
do{
@@ -491,7 +491,7 @@
}
first=0;
//now output_resized
- if(theoraframes_add_video(output_resized->data[0],
+ if(theoraframes_add_video(&info, output_resized->data[0],
this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){
//this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){
ret = -1;
@@ -529,7 +529,7 @@
resampled=audio_buf;
}
}
- if (theoraframes_add_audio(resampled,
+ if (theoraframe...