[Ffmpeg-devel] problem of decoding mpeg4 ps stream with libavformat and libavcodec

Måns Rullgård mru
Mon Aug 21 08:01:02 CEST 2006

"??" <keweixiao at sohu.com> writes:

> Hi,
>     I had wrote a program to decode video stream received from
> network. But I found that MPEG2 PS/TS and MPEG4 TS stream could be
> demuxed and decoded successfully, only MPEG4 PS stream couldn't be
> played rightly. the function av_find_stream_info() can detecte the
> parameter nb_streams
> is 2,but the video parameter is wrong,for examp the picture width is
> 1,height is 71,bit_rate is 2400 etc. I use the functions
> av_open_input_stream() but av_open_input_file() to open the received
> data. can av_open_input_file() be used to open a received steam
> data?Is anyone else had come into contact with this problem? How can I
> use the ffmpeg to decode the mpeg4 PS stream? thanks!

Does your file work with ffmpeg and/or ffplay?  Does your PS file
contain a Program Stream Map?  If you don't know the answer, upload a
sample file that shows the problem.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list