Home
last modified time | relevance | path

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

/third_party/ffmpeg/doc/examples/
Dremuxing.c49 AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; in main() local
80 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, out_filename); in main()
81 if (!ofmt_ctx) { in main()
94 ofmt = ofmt_ctx->oformat; in main()
110 out_stream = avformat_new_stream(ofmt_ctx, NULL); in main()
124 av_dump_format(ofmt_ctx, 0, out_filename, 1); in main()
127 ret = avio_open(&ofmt_ctx->pb, out_filename, AVIO_FLAG_WRITE); in main()
134 ret = avformat_write_header(ofmt_ctx, NULL); in main()
155 out_stream = ofmt_ctx->streams[pkt.stream_index]; in main()
163 log_packet(ofmt_ctx, &pkt, "out"); in main()
[all …]
Dtranscoding.c39 static AVFormatContext *ofmt_ctx; variable
129 ofmt_ctx = NULL; in open_output_file()
130 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, filename); in open_output_file()
131 if (!ofmt_ctx) { in open_output_file()
138 out_stream = avformat_new_stream(ofmt_ctx, NULL); in open_output_file()
184 if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER) in open_output_file()
215 av_dump_format(ofmt_ctx, 0, filename, 1); in open_output_file()
217 if (!(ofmt_ctx->oformat->flags & AVFMT_NOFILE)) { in open_output_file()
218 ret = avio_open(&ofmt_ctx->pb, filename, AVIO_FLAG_WRITE); in open_output_file()
226 ret = avformat_write_header(ofmt_ctx, NULL); in open_output_file()
[all …]
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()