Comments (7)
Sounds like a flushing issue. I will investigate it.
from c2play.
I am not able to reproduce this so I will need a sample stream that demonstrates the issue.
from c2play.
This isn't the best example, but if you download http://ftp.nluug.nl/pub/graphics/blender/demo/movies/Sintel.2010.720p.mkv and convert the subtitles from subrip (srt) to subrip (native) as in
ffmpeg -i /tmp/Sintel.2010.720p.mkv -c:v copy -c:a copy -c:s subrip /tmp/sintel.mkv
then play until there's actual dialog, then hit left arrow, you should see the subtitles doubled the second time around.
from c2play.
Can you provide a specific time index in h:mm:ss format to seek to? This will ensure I am seeing what is being reported.
from c2play.
--time 00:02:24.00 --subtitle 0
The timing of keypresses seems to be pretty significant, but if you hit somewhat quickly you should get to see 2x subtitles and then 3x subtitles.
If you start at 2:04 or 2:05 or so, a single can induce the doubling.
from c2play.
I think I have finally been able to reproduce this. I triggered it using the right arrow (forward) instead of the left arrow. The subtitles were repeated for several lines.
C2play does not handle the layout of subtitles. It only presents what it is told to where it is told to. This means the bug likely is in libass. C2play is being instructed by the libass decoder to produce all the repeating subtitles:
The following log output shows this behavior. One line of subtitle text causes libass to produce several subtitle rectangles:
Subtitle: pts=148.850000 duration=2.900000
Subtitle: format=1, start_display_time=0, end_display_time=2900, num_rects=1, pts=148850000
Subtitle: Rect - x=0, y=0, w=0, h=0, nb_colors=0, text=(nil), ass=0x7f6c31fd60
Subtitle: SSA/ASSA: Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Ein gefährliches Unterfangen für eine\Neinsame Jägerin.
replacing bogus timestamp
Start Time=0:02:28.85
End Time=0:02:31.75
New string=Dialogue: 0,00:02:28.85,0:02:31.75,Default,,0,0,0,,Ein gefährliches Unterfangen für eine\Neinsame Jägerin.
ass_render_frame OK
ASS_Image: w=903, h=75, stride=928, bitmap=0x7f6c064ee0, color=0x00000000, dst_x=516, dst_y=926, next=0x7f6c31fa80, type=1
ass_render_frame OK
ASS_Image: w=416, h=74, stride=416, bitmap=0x7f6c0c1c60, color=0x00000000, dst_x=752, dst_y=987, next=0x7f6c31f930, type=1
ass_render_frame OK
ASS_Image: w=887, h=59, stride=896, bitmap=0x7f6c058020, color=0xffffff00, dst_x=519, dst_y=930, next=0x7f6c213050, type=0
ass_render_frame OK
ASS_Image: w=415, h=58, stride=416, bitmap=0x7f6c0bbde0, color=0xffffff00, dst_x=755, dst_y=991, next=0x7f6c31ffa0, type=0
ass_render_frame OK
ASS_Image: w=903, h=75, stride=928, bitmap=0x7f6c064ee0, color=0x00000000, dst_x=516, dst_y=806, next=0x7f6c31f750, type=1
ass_render_frame OK
ASS_Image: w=416, h=74, stride=416, bitmap=0x7f6c0c1c60, color=0x00000000, dst_x=752, dst_y=867, next=0x7f6c3260b0, type=1
ass_render_frame OK
ASS_Image: w=887, h=59, stride=896, bitmap=0x7f6c058020, color=0xffffff00, dst_x=519, dst_y=810, next=0x7f6c330d20, type=0
ass_render_frame OK
ASS_Image: w=415, h=58, stride=416, bitmap=0x7f6c0bbde0, color=0xffffff00, dst_x=755, dst_y=871, next=0x7f6c4c7e80, type=0
ass_render_frame OK
ASS_Image: w=903, h=75, stride=928, bitmap=0x7f6c064ee0, color=0x00000000, dst_x=516, dst_y=686, next=0x7f6c4c7ec0, type=1
ass_render_frame OK
ASS_Image: w=416, h=74, stride=416, bitmap=0x7f6c0c1c60, color=0x00000000, dst_x=752, dst_y=747, next=0x7f6c330270, type=1
ass_render_frame OK
ASS_Image: w=887, h=59, stride=896, bitmap=0x7f6c058020, color=0xffffff00, dst_x=519, dst_y=690, next=0x7f6c3302b0, type=0
ass_render_frame OK
ASS_Image: w=415, h=58, stride=416, bitmap=0x7f6c0bbde0, color=0xffffff00, dst_x=755, dst_y=751, next=(nil), type=0
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005c60)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005cf0)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005d80)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005e10)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005ea0)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005f30)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64005fc0)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64006050)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f640060e0)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64006170)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64006200)
SubtitleRenderElement::ProcessBuffer - Added (StartTime=148.850000 StopTime=151.750000 Sprite=0x7f64006290)
from c2play.
I don't know if this is related: at some point in time subtitles stop being displayed and then they never come back regardless of seeking.
from c2play.
Related Issues (20)
- MPEG-4 video hang HOT 6
- Sample MP4 file in readme. HOT 3
- Add support for looping. HOT 1
- Gapless looping HOT 2
- MPEG-4 video hang if no audio source HOT 5
- Output delay after start of decoding HOT 1
- [S805] Video and audio are out of sync when playing http stream HOT 8
- egl_render rendering planned ? HOT 3
- volume up/down support ? HOT 3
- Looping a video results in blank screen HOT 2
- Request: load subtitles from file
- ../../src/Media/MediaSourceElement.cpp:163:11: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope case CODEC_ID_MPEG2VIDEO: HOT 1
- c2play/src/Media/os_support.h:30:10: fatal error: config.h: No such file or directory HOT 1
- fatal error: alsa/asoundlib.h: No such file or directory HOT 4
- Variable renderContext size HOT 1
- Open and close c2play often HOT 2
- c2play is usable for digital signage?
- .stamp_host_installed failed HOT 1
- While make c2play HOT 1
- how to get frame after decode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c2play.