Coder Social home page Coder Social logo

Comments (7)

jacek-marchwicki avatar jacek-marchwicki commented on May 7, 2024

Do this file play well on desktop ffplay?

from androidffmpeg.

wind-walker avatar wind-walker commented on May 7, 2024

Yes, I also try build FFmpegLibrary/jni/ffmpeg for win32, then play rmvb file using ffplay, it seek work fine.
ffplay dump media info as below:
[rm @ 01e40060] Unsupported stream type 00000170
Input #0, rm, from 'e:/__media/mov_bbb/mov_bbb.rmvb':
Metadata:
title :
author :
copyright :
comment :
Duration: 00:00:11.14, start: 0.000000, bitrate: 300 kb/s
Stream #0:0: Video: rv40 (RV40 / 0x30345652), yuv420p, 320x176, 218 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, flt, 96 kb/s
Stream #0:2: Data: none

from androidffmpeg.

wind-walker avatar wind-walker commented on May 7, 2024

Update my verification, ffplay seek rmvb file forward also dump one error log,
[rv40 @ 01ea8780] Invalid decoder state: B-frame without reference data.
But ffplay play continue not stop.

from androidffmpeg.

jacek-marchwicki avatar jacek-marchwicki commented on May 7, 2024

Hmm.. its hard to say what exactly problem is. I can guess that there after seeking is assume that correct frame will be read but I should skip some B-frames until receive I-frame before trying decode. Maybe you can investigate this problem more precisely?

from androidffmpeg.

wind-walker avatar wind-walker commented on May 7, 2024

I read theget_video_frame()function of ffplay.c about video decoding.


    if(avcodec_decode_video2(is->video_st->codec, frame, &got_picture, pkt) < 0)
        return 0; // video thread would continue to work

Maybe one solution(or workaround) to modify player_decode_video()


    int ret = avcodec_decode_video2(ctx, frame, &frameFinished, packet);
            :
    if (ret < 0) {
        LOGE(1, "player_decode_video Fail decoding video %d\n", ret);
        return 0; /// -ERROR_WHILE_DECODING_VIDEO;
    }

Return zero continue to decode video, it will play continue not stop.

from androidffmpeg.

jacek-marchwicki avatar jacek-marchwicki commented on May 7, 2024

Did you tried this solution?

from androidffmpeg.

wind-walker avatar wind-walker commented on May 7, 2024

Yes, it play continue not stop.

from androidffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.