Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video play becomes very lag when OSC shows up on OSX #903

Closed
hkenneth opened this issue Jul 2, 2014 · 11 comments
Closed

Video play becomes very lag when OSC shows up on OSX #903

hkenneth opened this issue Jul 2, 2014 · 11 comments
Labels
down-upstream features and bugs that need to be implemented and fixed upstream

Comments

@hkenneth
Copy link

hkenneth commented Jul 2, 2014

I'm using ChrisK's latest build on OSX 10.9.3. I use Nvidia Web Driver instead of the vanilla OSX driver. Video play becomes really lag when OSC shows up. I got the following in Terminal:

[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng () (dts)
[stream] Subs (+) --sid=1 --slang=eng (
) (subrip)
AO: [coreaudio] 48000Hz stereo 2ch float
AV: 00:00:00 / 00:57:36 (0%) A-V: 0.000
VO: [opengl] 1280x720 => 1280x720 yuv420p
AV: 00:00:05 / 00:57:36 (0%) A-V: 2.789 Late: 51

       *************************************************
       **** Audio/Video desynchronisation detected! ****
       *************************************************

This means either the audio or the video is played too slowly.
Possible reasons, problems, workarounds:

  • Your system is simply too slow for this file.
    Transcode it to a lower bitrate file with tools like HandBrake.
  • Broken/buggy audio driver.
    Experiment with different values for --autosync, 30 is a good start.
    If you have PulseAudio, try --ao=alsa .
  • Slow video output.
    Try a different --vo driver (--vo=help for a list) or try --framedrop!
  • Playing a video file with --vo=opengl with higher FPS than the monitor.
    This is due to vsync limiting the framerate.
  • Playing from a slow network source.
    Download the file instead.
  • Try to find out whether audio/video/subs are causing this by experimenting
    with --no-video, --no-audio, or --no-sub.
  • If you swiched audio or video tracks, try seeking to force synchronization.
    If none of this helps you, file a bug report.
@ChrisK2
Copy link
Member

ChrisK2 commented Jul 2, 2014

very lag, such desync, wow

Anyway, I think we need a bit more info. We recently discovered that very odd characters in the file title (which is displayed at the top of the OSC) may cause lag.

Does this happen with all files or just specific ones? Anything odd in your config?

@hkenneth
Copy link
Author

hkenneth commented Jul 2, 2014

In fact, I found that no text is displayed in OSC. Neither does OSD show any text.

screen shot 2014-07-02 at 5 36 39 pm

@hkenneth
Copy link
Author

hkenneth commented Jul 2, 2014

To my surprise, after I manually defined OSD font, the issue disappears. I guess it may link to the default OSD font settings?

sub-text-font = 'Myriad Pro'
osd-font = 'Myriad Pro'

Instead I got following error in Terminal:

[osd/libass] Error opening font: '/Library/Fonts/MyriadPro-Regular.otf', 1
[osd/libass] Error opening font: '/Library/Fonts/MyriadPro-Regular.otf', 1

As showed above, same font is used for sub-text, but no error for sub.

@ghost
Copy link

ghost commented Jul 2, 2014

Is this with libass-ct or vanilla libass?

@hkenneth
Copy link
Author

hkenneth commented Jul 2, 2014

I don't know which one ChrisK used

@ChrisK2
Copy link
Member

ChrisK2 commented Jul 2, 2014

libass-ct
For me it just falls back to Arial though.

@ghost
Copy link

ghost commented Jul 2, 2014

So I guess libass-ct doesn't handle fallback to font families correctly? (Or whatever generic names like Sans are called in fontconfig terminology.)

@ghost ghost added the not our bug label Jul 2, 2014
@hkenneth
Copy link
Author

hkenneth commented Jul 2, 2014

Well, because I prefer Helvetica to Arial, I disabled Arial on OSX so that websites would use Helvetica instead... So basically no Arial in my system would be found. Could this be the reason for the issue? (I think Helvetica or Lucida Sans should be the default font family on OSX)

@ghost
Copy link

ghost commented Jul 2, 2014

Potentially. @pigoz should know.

@pigoz
Copy link
Member

pigoz commented Jul 3, 2014

Potentially. @pigoz should know.

Yeah it is known. It's one of the merge blockers of the fonts branch. Thanks for ping though.

@ghost
Copy link

ghost commented Jul 18, 2015

Duplicate of: libass/libass#186

@ghost ghost closed this as completed Jul 18, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
down-upstream features and bugs that need to be implemented and fixed upstream
Projects
None yet
Development

No branches or pull requests

3 participants