[FFmpeg-user] Are there any examples, using ffmpeg libs, of encoding a file where the data comes from memory

Lou lou at lrcd.com
Mon Aug 17 23:17:53 CEST 2015

On Mon, Aug 17, 2015, at 02:10 AM, JULIAN GARDNER wrote:
> What i am trying to do is to take a full TS, and have a thread read in
> this stream and pass off X number of programs to different encoding
> threads.
> My current code base uses this
>         avio_open2( &inputSource->fmt_ctx->pb, inputSource->src_filename, AVIO_FLAG_READ, &inputSource->fmt_ctx->interrupt_callback, &d);
>         /* open input file, and allocate format context */
>         if (avformat_open_input(&inputSource->fmt_ctx, inputSource->src_filename, NULL, NULL) < 0) {
>             fprintf(stderr, "%s:Could not open source file %s\n", inputSource->name, inputSource->src_filename);
>             ret = 1;
>             goto end;
>         }

Once again, ffmpeg-user is for questions regarding the FFmpeg cli tools.
Your question belongs on libav-user; the mailing list for the FFmpeg

See http://ffmpeg.org/contact.html

More information about the ffmpeg-user mailing list