#7290(avcodec:new): avcodec_receive_frame return error, error code is AVERROR(EAGAIN)
#7290: avcodec_receive_frame return error, error code is AVERROR(EAGAIN) -------------------------------------+------------------------------------- Reporter: lpz | Type: Status: new | sponsoring request Component: avcodec | Priority: normal Keywords: | Version: git- AVERROR(EAGAIN) | master Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- i want to use ffmpeg to decode a video file. but when i use avcodec_receive_frame, it return -35, pls help me. -- Ticket URL: <https://trac.ffmpeg.org/ticket/7290> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7290: avcodec_receive_frame return error, error code is AVERROR(EAGAIN) -------------------------------------+------------------------------------- Reporter: lpz | Owner: Type: sponsoring | Status: new request | Component: avcodec Priority: normal | Resolution: Version: git-master | Blocked By: Keywords: | Reproduced by developer: 0 AVERROR(EAGAIN) | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by lpz): this is the program output: ➜ splayer git:(master) ✗ gcc av.c -lavcodec -lavformat && ./a.out Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/lpz/splayer/splayer/splayer/ii.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.76.100 comment : vid:v02004c20000bclgv09q4do2tlivhiag Duration: 00:01:44.67, start: 0.000000, bitrate: 308 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 239 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default) Metadata: handler_name : SoundHandler videoStream = 0 pkt->size = 371. 1 pkt->size = 23171. 0 err ret = -35.-35, -541478725 pkt->size = 372. 1 pkt->size = 4253. 0 err ret = -35.-35, -541478725 pkt->size = 588. 1 pkt->size = 410. 0 err ret = -35.-35, -541478725 -- Ticket URL: <https://trac.ffmpeg.org/ticket/7290#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7290: avcodec_receive_frame return error, error code is AVERROR(EAGAIN) -------------------------------------+------------------------------------- Reporter: lpz | Owner: Type: sponsoring | Status: closed request | Component: avcodec Priority: normal | Resolution: invalid Version: git-master | Blocked By: Keywords: | Reproduced by developer: 0 AVERROR(EAGAIN) | Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cus): * status: new => closed * resolution: => invalid Comment: It is perfectly normal if avcodec_receive_frame returns EAGAIN, it only means you must feed additional packets to the decoder with avcodec_send_packet before you can receive frames. Please read the API docs. -- Ticket URL: <https://trac.ffmpeg.org/ticket/7290#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7290: avcodec_receive_frame return error, error code is AVERROR(EAGAIN) -------------------------------------+------------------------------------- Reporter: lpz | Owner: Type: defect | Status: closed Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: invalid Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: AVERROR(EAGAIN) => * type: sponsoring request => defect * component: avcodec => undetermined -- Ticket URL: <https://trac.ffmpeg.org/ticket/7290#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg