Home
last modified time | relevance | path

Searched refs:ofmt_ctx (Results 1 - 3 of 3) sorted by relevance

/third_party/ffmpeg/doc/examples/
H A Dremuxing.c49 AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; in main() local
86 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, out_filename); in main()
87 if (!ofmt_ctx) { in main()
100 ofmt = ofmt_ctx->oformat; in main()
116 out_stream = avformat_new_stream(ofmt_ctx, NULL); in main()
130 av_dump_format(ofmt_ctx, 0, out_filename, 1); in main()
133 ret = avio_open(&ofmt_ctx->pb, out_filename, AVIO_FLAG_WRITE); in main()
140 ret = avformat_write_header(ofmt_ctx, NULL); in main()
161 out_stream = ofmt_ctx->streams[pkt->stream_index]; in main()
167 log_packet(ofmt_ctx, pk in main()
[all...]
H A Dtranscoding.c40 static AVFormatContext *ofmt_ctx; variable
130 ofmt_ctx = NULL; in open_output_file()
131 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, filename); in open_output_file()
132 if (!ofmt_ctx) { in open_output_file()
139 out_stream = avformat_new_stream(ofmt_ctx, NULL); in open_output_file()
186 if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER) in open_output_file()
217 av_dump_format(ofmt_ctx, 0, filename, 1); in open_output_file()
219 if (!(ofmt_ctx->oformat->flags & AVFMT_NOFILE)) { in open_output_file()
220 ret = avio_open(&ofmt_ctx->pb, filename, AVIO_FLAG_WRITE); in open_output_file()
228 ret = avformat_write_header(ofmt_ctx, NUL in open_output_file()
[all...]
H A Dvaapi_transcode.c41 static AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; variable
129 ofmt_ctx->streams[0]->time_base); in encode_write()
130 ret = av_interleaved_write_frame(ofmt_ctx, enc_pkt); in encode_write()
192 if (!(ost = avformat_new_stream(ofmt_ctx, enc_codec))) { in dec_enc()
207 if ((ret = avformat_write_header(ofmt_ctx, NULL)) < 0) { in dec_enc()
261 if ((ret = (avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, argv[3]))) < 0) { in main()
272 ret = avio_open(&ofmt_ctx->pb, argv[3], AVIO_FLAG_WRITE); in main()
298 av_write_trailer(ofmt_ctx); in main()
302 avformat_close_input(&ofmt_ctx); in main()

Completed in 2 milliseconds