https://bugs.kde.org/show_bug.cgi?id=456804
Bug ID: 456804 Summary: Can't load any video, saying 'option refcounted_frames not found' Product: subtitlecomposer Version: 0.7.1 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: max...@smoothware.net Reporter: wangp...@outlook.com Target Milestone: --- # SUMMARY I can't load any video in subtitlecomposer, and the error log said 'option refcounted_frames not found'. # STEPS TO REPRODUCE 1. install subtitlecomposer by aur 2. try opening a video in subtitlecomposer # OBSERVED RESULT the only thing i get is a black frame, and hitting the play button has no effects. i've also tried launching subtitlecomposer from a shell (in order to view debug information), and when i open a video, it showed an ffmpeg output which explained the infomation about the video, followed by a red warning, 'option refcounted_frames not found'. # EXPECTED RESULT the video and waveform beside it should be loaded correctly. # SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 5.25 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 FFmpeg Version: 2:5.0.1-3 (archlinux package) # ADDITIONAL INFORMATION The first video I want to load is an ripped 'A Slient Voice' movie: ``` Input #0, matroska,webm, from '/home/tis/Videos/[VCB-Studio] Koe no Katachi [Ma10p_1080p]/[VCB-Studio] Koe no Katachi [Ma10p_1080p][x265_flac].mkv': Metadata: encoder : libebml v1.3.9 + libmatroska v1.5.2 creation_time : 2020-02-18T13:20:44.000000Z Duration: 02:09:42.78, start: 0.000000, bitrate: 5705 kb/s Chapters: Chapter #0:0: start 0.000000, end 790.081000 Metadata: title : はじまり Chapter #0:1: start 790.081000, end 1375.374000 Metadata: title : 怪獣のバラード Chapter #0:2: start 1375.374000, end 2090.338000 Metadata: title : 再会 Chapter #0:3: start 2090.338000, end 2674.171000 Metadata: title : 会う理由 Chapter #0:4: start 2674.171000, end 3188.143000 Metadata: title : 妹 Chapter #0:5: start 3188.143000, end 3838.710000 Metadata: title : 佐原と植野 Chapter #0:6: start 3838.710000, end 4537.283000 Metadata: title : ポニーテール Chapter #0:7: start 4537.283000, end 5403.189000 Metadata: title : 自分が嫌い Chapter #0:8: start 5403.189000, end 6273.601000 Metadata: title : どうすれば良かったの Chapter #0:9: start 6273.601000, end 6985.812000 Metadata: title : 泣かないでよ、西宮 Chapter #0:10: start 6985.812000, end 7556.048000 Metadata: title : the shape of voice Chapter #0:11: start 7556.048000, end 7782.784000 Metadata: title : エンディング Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709/unknown/unknown), 1920x1036, SAR 1:1 DAR 480:259, 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS-eng : 4316099 DURATION-eng : 02:09:42.775000000 NUMBER_OF_FRAMES-eng: 186600 NUMBER_OF_BYTES-eng: 4198904281 _STATISTICS_WRITING_APP-eng: mkvmerge v40.0.0 ('Old Town Road + Pony') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2020-02-18 13:20:44 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s32 (24 bit) (default) Metadata: title : Original 2.0ch BPS-eng : 1363064 DURATION-eng : 02:09:42.784000000 NUMBER_OF_FRAMES-eng: 91205 NUMBER_OF_BYTES-eng: 1326055003 _STATISTICS_WRITING_APP-eng: mkvmerge v40.0.0 ('Old Town Road + Pony') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2020-02-18 13:20:44 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(jpn): Subtitle: hdmv_pgs_subtitle (default) Metadata: BPS-eng : 51125 DURATION-eng : 02:09:08.032000000 NUMBER_OF_FRAMES-eng: 4659 NUMBER_OF_BYTES-eng: 49515173 _STATISTICS_WRITING_APP-eng: mkvmerge v40.0.0 ('Old Town Road + Pony') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2020-02-18 13:20:44 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ``` At first I thought if it is too big (5.2 GiB), and then I replaced it with a much smaller video: ``` Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/veracrypt3/雷霆行动/DSCF4329_x264.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf59.16.100 Duration: 00:06:05.00, start: 0.000000, bitrate: 2000 kb/s Stream #0:0[0x1](und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuvj422p(pc, bt470bg/unknown/unknown, progressive), 1280x720, 1802 kb/s, 24 fps, 24 tbr, 500k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] ``` Still stucked. So I traced the error log, and wrote a simple patch attempting to commend some lines in src/videoplayer/backend/streamdemuxer.cpp ``` 289 //if(avCtx->codec_type == AVMEDIA_TYPE_VIDEO || avCtx->codec_type == AVMEDIA_TYPE_AUDIO) 290 // av_dict_set(&opts, "refcounted_frames", "1", 0); ``` After recompile and reinstalling, the problem has gone, but I don't know what the side effect is. -- You are receiving this mail because: You are watching all bug changes.