[Libav-user] how to get extradata of MPEGTS using ffmpeg?

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Sep 18 14:27:41 CEST 2012


Licheng Niu <niulicheng at ...> writes:

> I am trying to decode TS file on android with 
> hardware decoder. And I use ffmpeg MPEGTS demuxer.
> To init hardware decoder, 

(Isn't libstagefright supposed to do that? Or do I 
misunderstand?)

> extradata (SPS, PPS or sth.) is needed to be set 
> for both audio and video decoders. But I can not 
> get extradata of TS file by ffmpeg demuxer.

I suspect only the (software) h264 decoder is able 
to read the extradata from the video stream.

Carl Eugen



More information about the Libav-user mailing list