annotate libmpcodecs/vf_lavc.c @ 27828:57c2cdc4d307

synced with r27852
author ptt
date Thu, 30 Oct 2008 15:02:44 +0000
parents 63630c09e237
children 0f1b5b68af32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
1 #include <stdio.h>
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
2 #include <stdlib.h>
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
3 #include <string.h>
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
4 #include <inttypes.h>
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
5
17012
6ff3379a0862 Unify include path handling, -I.. is in CFLAGS.
diego
parents: 15843
diff changeset
6 #include "config.h"
6ff3379a0862 Unify include path handling, -I.. is in CFLAGS.
diego
parents: 15843
diff changeset
7 #include "mp_msg.h"
6ff3379a0862 Unify include path handling, -I.. is in CFLAGS.
diego
parents: 15843
diff changeset
8 #include "help_mp.h"
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
9
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
10 #include "img_format.h"
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
11 #include "mp_image.h"
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
12 #include "vf.h"
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
13 #include "libavcodec/avcodec.h"
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
14
25962
afa125da85cf typo fix: inited --> initialized
diego
parents: 25221
diff changeset
15 extern int avcodec_initialized;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
16
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
17 struct vf_priv_s {
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
18 unsigned char* outbuf;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
19 int outbuf_size;
7852
e4f87bbf682c - using avcodec_alloc_context()
arpi
parents: 7368
diff changeset
20 AVCodecContext* context;
8413
2670aec42989 AVVideoFrame -> AVFrame
michael
parents: 8340
diff changeset
21 AVFrame* pic;
7852
e4f87bbf682c - using avcodec_alloc_context()
arpi
parents: 7368
diff changeset
22 AVCodec* codec;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
23 vo_mpegpes_t pes;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
24 };
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
25
7852
e4f87bbf682c - using avcodec_alloc_context()
arpi
parents: 7368
diff changeset
26 #define lavc_venc_context (*vf->priv->context)
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
27
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
28 //===========================================================================//
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
29
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
30 static int config(struct vf_instance_s* vf,
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
31 int width, int height, int d_width, int d_height,
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
32 unsigned int flags, unsigned int outfmt){
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
33 if(vf_next_query_format(vf,IMGFMT_MPEGPES)<=0) return 0;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
34
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
35 lavc_venc_context.width = width;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
36 lavc_venc_context.height = height;
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
37
15843
77a5b8ef3314 restored framerate autodetection based on height
nicodvb
parents: 15349
diff changeset
38 if(!lavc_venc_context.time_base.num || !lavc_venc_context.time_base.den){
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
39 // guess FPS:
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
40 switch(height){
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
41 case 240:
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
42 case 480:
15307
58bd9c33864c LIBAVCODEC_BUILD >= 4754
michael
parents: 11419
diff changeset
43 lavc_venc_context.time_base= (AVRational){1001,30000};
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
44 break;
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
45 case 576:
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
46 case 288:
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
47 default:
15307
58bd9c33864c LIBAVCODEC_BUILD >= 4754
michael
parents: 11419
diff changeset
48 lavc_venc_context.time_base= (AVRational){1,25};
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
49 break;
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
50 // lavc_venc_context.frame_rate=vo_fps*FRAME_RATE_BASE; // same as src
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
51 }
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
52 }
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
53
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
54 if(vf->priv->outbuf) free(vf->priv->outbuf);
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
55
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
56 vf->priv->outbuf_size=10000+width*height; // must be enough!
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
57 vf->priv->outbuf = malloc(vf->priv->outbuf_size);
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
58
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
59 if (avcodec_open(&lavc_venc_context, vf->priv->codec) != 0) {
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
60 mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_CantOpenCodec);
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
61 return 0;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
62 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
63
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
64 if (lavc_venc_context.codec->encode == NULL) {
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
65 mp_msg(MSGT_MENCODER,MSGL_ERR,"avcodec init failed (ctx->codec->encode == NULL)!\n");
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
66 return 0;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
67 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
68
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
69 return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES);
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
70 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
71
17906
20aca9baf5d8 passing pts through the filter layer (lets see if pts or cola comes out at the end)
michael
parents: 17523
diff changeset
72 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
73 mp_image_t* dmpi;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
74 int out_size;
8413
2670aec42989 AVVideoFrame -> AVFrame
michael
parents: 8340
diff changeset
75 AVFrame *pic= vf->priv->pic;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
76
8339
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
77 pic->data[0]=mpi->planes[0];
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
78 pic->data[1]=mpi->planes[1];
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
79 pic->data[2]=mpi->planes[2];
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
80 pic->linesize[0]=mpi->stride[0];
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
81 pic->linesize[1]=mpi->stride[1];
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
82 pic->linesize[2]=mpi->stride[2];
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
83
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
84 out_size = avcodec_encode_video(&lavc_venc_context,
8339
ff0bddb59e81 support for lavc build 4641
michael
parents: 7852
diff changeset
85 vf->priv->outbuf, vf->priv->outbuf_size, pic);
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
86
7368
a894e99c1e51 changing return type of put_image void->int
arpi
parents: 7127
diff changeset
87 if(out_size<=0) return 1;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
88
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
89 dmpi=vf_get_image(vf->next,IMGFMT_MPEGPES,
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
90 MP_IMGTYPE_EXPORT, 0,
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
91 mpi->w, mpi->h);
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
92
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
93 vf->priv->pes.data=vf->priv->outbuf;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
94 vf->priv->pes.size=out_size;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
95 vf->priv->pes.id=0x1E0;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
96 vf->priv->pes.timestamp=-1; // dunno
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
97
7127
1e47c2e7aa8e mostly compiler warning fixes, some small bugfix
arpi
parents: 7004
diff changeset
98 dmpi->planes[0]=(unsigned char*)&vf->priv->pes;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
99
17906
20aca9baf5d8 passing pts through the filter layer (lets see if pts or cola comes out at the end)
michael
parents: 17523
diff changeset
100 return vf_next_put_image(vf,dmpi, MP_NOPTS_VALUE);
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
101 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
102
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
103 //===========================================================================//
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
104
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
105 static int query_format(struct vf_instance_s* vf, unsigned int fmt){
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
106 switch(fmt){
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
107 case IMGFMT_YV12:
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
108 case IMGFMT_I420:
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
109 case IMGFMT_IYUV:
26754
63630c09e237 cosmetics: Remove pointless parentheses from return calls.
diego
parents: 26069
diff changeset
110 return vf_next_query_format(vf, IMGFMT_MPEGPES) & (~(VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_ACCEPT_STRIDE));
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
111 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
112 return 0;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
113 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
114
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
115 static int open(vf_instance_t *vf, char* args){
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
116 int p_quality=0;
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
117 float p_fps=0;
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
118
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
119 vf->config=config;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
120 vf->put_image=put_image;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
121 vf->query_format=query_format;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
122 vf->priv=malloc(sizeof(struct vf_priv_s));
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
123 memset(vf->priv,0,sizeof(struct vf_priv_s));
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
124
25962
afa125da85cf typo fix: inited --> initialized
diego
parents: 25221
diff changeset
125 if (!avcodec_initialized){
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
126 avcodec_init();
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
127 avcodec_register_all();
25962
afa125da85cf typo fix: inited --> initialized
diego
parents: 25221
diff changeset
128 avcodec_initialized=1;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
129 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
130
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
131 vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name("mpeg1video");
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
132 if (!vf->priv->codec) {
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
133 mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, "mpeg1video");
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
134 return 0;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
135 }
7852
e4f87bbf682c - using avcodec_alloc_context()
arpi
parents: 7368
diff changeset
136
e4f87bbf682c - using avcodec_alloc_context()
arpi
parents: 7368
diff changeset
137 vf->priv->context=avcodec_alloc_context();
8413
2670aec42989 AVVideoFrame -> AVFrame
michael
parents: 8340
diff changeset
138 vf->priv->pic = avcodec_alloc_frame();
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
139
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
140 // TODO: parse args ->
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
141 if(args) sscanf(args, "%d:%f", &p_quality, &p_fps);
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
142
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
143 if(p_quality<32){
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
144 // fixed qscale
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
145 lavc_venc_context.flags = CODEC_FLAG_QSCALE;
11257
837bca3ae69f constant qscale was broken due to libavcodec changes, fix taken from ve_lavc.c
ranma
parents: 11000
diff changeset
146 lavc_venc_context.global_quality =
837bca3ae69f constant qscale was broken due to libavcodec changes, fix taken from ve_lavc.c
ranma
parents: 11000
diff changeset
147 vf->priv->pic->quality = (int)(FF_QP2LAMBDA * ((p_quality<1) ? 1 : p_quality) + 0.5);
6019
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
148 } else {
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
149 // fixed bitrate (in kbits)
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
150 lavc_venc_context.bit_rate = 1000*p_quality;
5c3b0b165f3a FPS autodetection, accept args: quality:fps
arpi
parents: 5876
diff changeset
151 }
15307
58bd9c33864c LIBAVCODEC_BUILD >= 4754
michael
parents: 11419
diff changeset
152 lavc_venc_context.time_base.num = 1000*1001;
17906
20aca9baf5d8 passing pts through the filter layer (lets see if pts or cola comes out at the end)
michael
parents: 17523
diff changeset
153 lavc_venc_context.time_base.den = (p_fps<1.0) ? 1000*1001*25 : (p_fps * lavc_venc_context.time_base.num);
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
154 lavc_venc_context.gop_size = 0; // I-only
15349
d73a6d42a27f set pix_fmt
michael
parents: 15307
diff changeset
155 lavc_venc_context.pix_fmt= PIX_FMT_YUV420P;
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
156
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
157 return 1;
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
158 }
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
159
25221
00fff9a3b735 Make all vf_info_t structs const
reimar
parents: 23373
diff changeset
160 const vf_info_t vf_info_lavc = {
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
161 "realtime mpeg1 encoding with libavcodec",
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
162 "lavc",
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
163 "A'rpi",
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
164 "",
9593
e9a2af584986 Add the new -vf option wich is the same as vop in reverse order.
albeu
parents: 9577
diff changeset
165 open,
e9a2af584986 Add the new -vf option wich is the same as vop in reverse order.
albeu
parents: 9577
diff changeset
166 NULL
5873
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
167 };
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
168
74cbaabeaa33 realtime yv12->mpeg1 with libavcodec qscale=1
arpi
parents:
diff changeset
169 //===========================================================================//