wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

Weird subtitle bugs #168

Closed azukaar closed 1 month ago

azukaar commented 1 month ago

I am experiencing a weird issue with a particular movie, that I cant reproduce with other players. The movie itself does not seem to have any subtitles:

ffprobe version 4.4.2-0ubuntu0.21.10.1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-7ubuntu2)
  configuration: --prefix=/usr --extra-version=0ubuntu0.21.10.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, matroska,webm, from 'The Avengers (2012) Bluray-2160p.mkv':
  Metadata:
    ENCODER         : Lavf58.20.100
  Duration: 02:22:55.71, start: 0.000000, bitrate: 38744 kb/s
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2076 [SAR 1:1 DAR 320:173], 24.42 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      DURATION        : 02:22:55.710000000
  Stream #0:1: Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      ENCODER         : Lavc58.115.102 libfdk_aac
      DURATION        : 02:22:55.704000000

But playing that movie on the FPV player somehow displays subtitle. Even if I force them off with

              player.activeSubtitleTracks = [];

Even more weird, if I select an external subtitle, I get an overlap (here German, the ghost subtitle, and then japanese on top, the external one)

              player.setMedia(
                  "${widget.item.originURL}${exSub.link}", MediaType.subtitle);

image

any ideas what's going on?

wang-bin commented 1 month ago

show me the log. It can be closed caption embedded in video stream, so you can not see subtitle track. You can disable closed caption via player.setProperty("cc", "0");

azukaar commented 1 month ago

I still see the subtitles with player.setProperty("cc", "0");

here are logs: https://pastebin.com/vePdjxkE

Thanks

image

wang-bin commented 1 month ago

can you share the video? the log looks good

azukaar commented 1 month ago

OK the issue is not in FPV closing now thanks