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

JULIAN GARDNER joolzg at btinternet.com
Mon Aug 17 23:25:00 CEST 2015


im not using libav-crap

 Joolz 


     On Monday, 17 August 2015, 23:18, Lou <lou at lrcd.com> wrote:
   
 

 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
libraries.

See http://ffmpeg.org/contact.html
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


 
  


More information about the ffmpeg-user mailing list