Is the h264 file you are using available online to test against? 

I have been using the h264 film trailers from here 
http://www.hd-trailers.net/movie/rogue-one-a-star-wars-story/ 
<http://www.hd-trailers.net/movie/rogue-one-a-star-wars-story/>

And they open and play without issue. Do you get the same issue with your 
software using one of these clips? 

You may need to post your function that opens a stream up to the point where 
you call avcodec_open2()...

Sincerely,
-Blake Senftner
Computer Stuff

> On Dec 21, 2016, at 7:24 AM, sea <[email protected]> wrote:
> 
> In transcoding project of LeiXiaoHua(demo of usage of filters), if I use 
> media file with h264 video stream as input file, the function  avcodec_open2 
> will return -1.  Media file with video stream in other format, such as mpeg4, 
> mjpeg return 0 (OK). Why ? Someone meets the same problem?
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to