[Libav-user] Parsing TS 188 bytes header

Talgorn François-Xavier fxtalgorn at yahoo.fr
Tue Aug 4 20:05:54 CEST 2015


Hi,

In avcodec library, the AVPacket structure seems to provide your needs.

https://www.ffmpeg.org/doxygen/2.5/structAVPacket.html

To parse each packet you'll need to:
- Register codecs
- Open file
- Read frame (AVFrame structure)
- Read packet
- Extract what you need.

Plenty of examples in the FFMPEG sources.

Good luck.

Fixta.

Le 4 août 2015 à 13:42, Self User <selfuser at gmail.com> a écrit :

> Hi all,
> 
>  
> I am using c++ code under redgat/ubuntu.
> 
>  
> My goaI is to parse each TS packet (each 188 bytes) and for each extract its field values.
> 
>  
> What lib function should I use ?
> 
>  
> Can you give an example for this kind of parsing?
> 
> 
> 
> Thanks
> 
> 
> 
> LibUser
> 
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150804/3c566d6a/attachment.html>


More information about the Libav-user mailing list