pkuvcl / davs2

An open-source decoder of AVS2-P2/IEEE1857.4 video coding standard
GNU General Public License v2.0
129 stars 52 forks source link

Unable to rewind video #19

Open scx opened 5 years ago

scx commented 5 years ago

Describe the bug

I am unable to rewind any AVS2 video. I can play or pause, but I can't change the video position.

To Reproduce

  1. Build FFmpeg 4.2.1 with DAVS2 1.6 support
  2. Build FFMS2 2.23.1
  3. Use any video player/editor that is based on FFmpeg/FFMS2
  4. Open a sample video

To be more specific:

  1. Clone repo: https://github.com/scx/aegisub-flatpak.git
    git clone --recurse-submodules https://github.com/scx/aegisub-flatpak.git
  2. Checkout v3.2.2+20190914:
    git checkout v3.2.2+20190914
  3. Apply the patch: aegisub-flatpak-davs2.patch (mirrors: 1, 2)
  4. Build a flatpak package:
    flatpak-builder "build" "org.aegisub.Aegisub.yaml" --force-clean --install-deps-from="flathub"
  5. Download a sample video
  6. Run flatpak-ed Aegisub:
    flatpak-builder --run "build" "org.aegisub.Aegisub.yaml" "aegisub"
  7. Open the sample video file: VideoOpen Video...
  8. Play video to the end, then try to rewind

Expected behavior

Able to rewind or go forward (change video position).

Desktop

Output

[davs2 info]: davs2: 1.6.0 not-in-git-tree.8, 2019-09-14 19:10:55
[davs2 info]: CPU Capabilities:  MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 55e4ba168640: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 info]: Manager 55e4ba168640: Sequence Resolution: 1920x1080.
[davs2 info]: davs2: 1.6.0 not-in-git-tree.8, 2019-09-14 19:10:55
[davs2 info]: CPU Capabilities:  MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 7f0234003700: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 info]: davs2: 1.6.0 not-in-git-tree.8, 2019-09-14 19:10:55
[davs2 info]: CPU Capabilities:  MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 55e4ba24d120: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 info]: Manager 55e4ba24d120: Sequence Resolution: 1920x1080.
[davs2 info]: davs2: 1.6.0 not-in-git-tree.8, 2019-09-14 19:10:55
[davs2 info]: CPU Capabilities:  MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 55e4ba24d120: using 8 thread(s): 8(frame/AEC)+0(pool/REC), 9 tasks
[davs2 info]: Manager 55e4ba24d120: Sequence Resolution: 1920x1080.
[davs2 debug]: Dec[ 0] 55e4ba24dcc0: discontinuous COI (prev: 8 --> curr: 0).
[davs2 warn]: Dec[ 0] 55e4ba24dcc0: force to remove obsolete frame <poc: 0>.
[davs2 warn]: Dec[ 0] 55e4ba24dcc0: force to remove obsolete frame <poc: 8>.
[davs2 warn]: Dec[ 0] 55e4ba24dcc0: force to remove obsolete frame <poc: 4>.
[davs2 warn]: Dec[ 0] 55e4ba24dcc0: force to remove obsolete frame <poc: 6>.
[davs2 debug]: Dec[ 0] 55e4ba24dcc0: discontinuous COI (prev: 199 --> curr: 20).
[davs2 error]: Dec[ 0] 55e4ba24dcc0: reference frame of [coi: 532, poc: 529]: <COI: 531> not found.
[davs2 error]: Failed to decode frame <COI: 532, POC: 529>

Error

[davs2 error]: Dec[ 0] 55e4ba24dcc0: reference frame of [coi: 532, poc: 529]: <COI: 531> not found.
[davs2 error]: Failed to decode frame <COI: 532, POC: 529>
scx commented 5 years ago

Experimental patch for DAVS2 support in Aegisub (aegisub-flatpak): aegisub-flatpak-davs2.patch.zip

scx commented 5 years ago

Entire flatpak manifest: aegisub-flatpak.zip

ua0lnj commented 4 years ago

Try this