Hi Vladimir,

A not obvious sample is the ffplay player, it decodes MPEG2-TS correctly and
displays it to the screen using the SDL library, so a lot of code (its
majority) is related to screen output and not to video decoding.

You can also check this two tutorials:
http://www.dranger.com/ffmpeg/
http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html (check also the
update)

Reading is made through the av_open_input_file().

Cheers

On 3/7/08, Vladimir Eremeev <[EMAIL PROTECTED]> wrote:
>
> Hi all.
> I am developing an application which would capture according to the user
> defined schedule the mpeg-2 transport stream from a DVB-S card and save
> its
> programs to disk in files, playable in video player.
>
> I have already developed a parser for the system information carried in
> the
> stream, so, I can determine which elementary PIDs carry needed video and
> audio
> streams.
>
> Now I would like to capture those packes and use FFmpeg's libraries to
> save
> them to disk.
>
> However, I am rather new to FFmpeg and almost lost in tons of its
> functions and
> data structures.
>
> Suppose I have two data buffers, containing audio and video data,
> extracted
> from the stream (I mean payload of transport packets).
>
> Could someone be so kind to provide me with samples of code, using libav*
> functions needed to store these buffers to a disk file, which would be
> playable
> with, say, Windows' MediaPlayer?
>
> Thanks a lot.
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>



-- 
Mahmoud M'HIRI
[EMAIL PROTECTED]
Phone: Under request
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to