Searched refs:ofmt_ctx (Results 1 – 3 of 3) sorted by relevance
/third_party/ffmpeg/doc/examples/ |
D | remuxing.c | 49 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 …]
|
D | transcoding.c | 39 static AVFormatContext *ofmt_ctx; variable 120 ofmt_ctx = NULL; in open_output_file() 121 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, filename); in open_output_file() 122 if (!ofmt_ctx) { in open_output_file() 129 out_stream = avformat_new_stream(ofmt_ctx, NULL); in open_output_file() 175 if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER) in open_output_file() 206 av_dump_format(ofmt_ctx, 0, filename, 1); in open_output_file() 208 if (!(ofmt_ctx->oformat->flags & AVFMT_NOFILE)) { in open_output_file() 209 ret = avio_open(&ofmt_ctx->pb, filename, AVIO_FLAG_WRITE); in open_output_file() 217 ret = avformat_write_header(ofmt_ctx, NULL); in open_output_file() [all …]
|
D | vaapi_transcode.c | 41 static AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; variable 132 ofmt_ctx->streams[0]->time_base); in encode_write() 133 ret = av_interleaved_write_frame(ofmt_ctx, &enc_pkt); in encode_write() 195 if (!(ost = avformat_new_stream(ofmt_ctx, enc_codec))) { in dec_enc() 210 if ((ret = avformat_write_header(ofmt_ctx, NULL)) < 0) { in dec_enc() 258 if ((ret = (avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, argv[3]))) < 0) { in main() 269 ret = avio_open(&ofmt_ctx->pb, argv[3], AVIO_FLAG_WRITE); in main() 297 av_write_trailer(ofmt_ctx); in main() 301 avformat_close_input(&ofmt_ctx); in main()
|