Lines Matching refs:stream
65 const AVStream *stream;
79 fprintf(stderr, "Could not open find stream info (error '%s')\n",
85 /* Make sure that there is only one stream in the input file. */
87 fprintf(stderr, "Expected one audio input stream, but found %d\n",
93 stream = (*input_format_context)->streams[0];
95 /* Find a decoder for the audio stream. */
96 if (!(input_codec = avcodec_find_decoder(stream->codecpar->codec_id))) {
110 /* Initialize the stream parameters with demuxer information. */
111 error = avcodec_parameters_to_context(avctx, stream->codecpar);
118 /* Open the decoder for the audio stream to use it later. */
128 avctx->pkt_timebase = stream->time_base;
153 AVStream *stream = NULL;
193 /* Create a new audio stream in the output file container. */
194 if (!(stream = avformat_new_stream(*output_format_context, NULL))) {
195 fprintf(stderr, "Could not create new stream\n");
215 stream->time_base.den = input_codec_context->sample_rate;
216 stream->time_base.num = 1;
223 /* Open the encoder for the audio stream to use it later. */
230 error = avcodec_parameters_from_context(stream->codecpar, avctx);
232 fprintf(stderr, "Could not initialize stream parameters\n");
398 * The input audio stream decoder is used to do this. */
686 * The output audio stream encoder is used to do this. */