[Libav-user] libavformat doesnt recognize h264 stream in mpegts, but vlc does

Lukas Diduch lukas.diduch at nist.gov
Fri Oct 21 20:49:04 CEST 2011

On Fri, Oct 21, 2011 at 11:46:50AM -0400, Andrey Utkin wrote:
> Hi all, can anybody help me with teaching ffmpeg/libavformat to recognize h264 video in this mpegts dump?
> vlc plays it well, but: avprobe (libav fork) shows http://pastebin.com/HUvstLQi , ffprobe shows http://pastebin.com/JQqHaGa9 .

Seems like avformat/avcodec has trouble of recognizing what the stream is about
in the first place, because the stream (at the beginning of the file) is
corrupt. Did you try to force the format and codec in your code or the tool's
command line ?

Lukas Diduch

> The dump is: ftp://golosimperii.org/tmp/dump.ts
> The dump is done from 6 MiB/s stream.
> Of course, it is not necessary to download it all to test, you can download as many you think is reasonable - that's mpegts.
> --
> Andrey Utkin

More information about the Libav-user mailing list