Lines Matching defs:mux
12 AVFormatContext *mux;
136 ret = avformat_alloc_output_context2(&st->mux, NULL, fmt, dev);
142 if (!(st->mux->oformat->flags & AVFMT_NOFILE)) {
143 ret = avio_open2(&st->mux->pb, st->mux->url, AVIO_FLAG_WRITE,
146 av_log(st->mux, AV_LOG_ERROR, "Failed to init output: %s\n",
153 streams[i].mux = streams[0].mux;
158 if (!(st->stream = avformat_new_stream(st->mux, NULL))) {
191 if ((ret = avformat_write_header(st->mux, NULL)) < 0) {
192 av_log(st->mux, AV_LOG_ERROR, "Failed to init output: %s\n",
201 ret = av_write_uncoded_frame_query(st->mux, st->stream->index);
203 av_log(st->mux, AV_LOG_ERROR,
241 ret = av_interleaved_write_uncoded_frame(st->mux,
246 av_log(st->mux, AV_LOG_ERROR,
257 av_write_trailer(st->mux);
266 if (st->mux) {
267 if (st->mux->pb)
268 avio_closep(&st->mux->pb);
269 avformat_free_context(st->mux);