You should register network at the beginning after av_register_all() I think.
Dnia 28 kwietnia 2014 17:51 Assaf kave napisaĆ(a):
Hi there, I am developing video player based on your FFmpeg libraries, I am
trying to decode NAL units streamed from IP camera, but I get "Invalid data
found when processing input" on the first SPS and the return code from
"avcodec_decode_video2" is -1094995529.Only if I concatante SPS,PPS IDR or
SPS,PPS IDR I get decoded frame.My first SPS looks like this:00 00 00 01 67 64
00 28 ad 00 ce 50 28 0b fe 5c 04 40 00 03 84 00 00 af c8 38 00 00 03 01 7d 78
40 00 03 b9 ac a8 bd f8 c0 00 00 0b eb c2 00 00 1d cd 65 45 ef c1 b4 11 08 94
b0 00 The avcodec initlization : av_register_all();
video_dec_codec_ = avcodec_find_decoder(AV_CODEC_ID_H264); video_dec_ctx_ =
avcodec_alloc_context3(video_dec_codec_);
avcodec_open2(video_dec_ctx_, video_dec_codec_, NULL) ;
frame_ = av_frame_alloc();
av_init_packet(&pkt_); can you help please? Best Regards, Asaf
KaveR&D, Software engineer. _______________________________________________
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