69 codec_ctx = stream->
codec;
111 in_stream = ifmt_ctx->
streams[i];
112 dec_ctx = in_stream->
codec;
113 enc_ctx = out_stream->
codec;
200 if (!outputs || !inputs || !filter_graph) {
208 if (!buffersrc || !buffersink) {
215 "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
222 args,
NULL, filter_graph);
245 if (!buffersrc || !buffersink) {
255 "time_base=%d/%d:sample_rate=%d:sample_fmt=%s:channel_layout=0x%"PRIx64,
260 args,
NULL, filter_graph);
312 if (!outputs->
name || !inputs->
name) {
318 &inputs, &outputs,
NULL)) < 0)
338 const char *filter_spec;
355 filter_spec =
"null";
357 filter_spec =
"anull";
375 got_frame = &got_frame_local;
382 ret = enc_func(ofmt_ctx->
streams[stream_index]->
codec, &enc_pkt,
383 filt_frame, got_frame);
466 int main(
int argc,
char **argv)
472 unsigned int stream_index;
513 ret = dec_func(ifmt_ctx->
streams[stream_index]->
codec, frame,
514 &got_frame, &packet);