Re: Karaoke (cdg) support broken?

The Wanderer <[email protected]>
Newsgroups gmane.comp.video.mplayer.user
Organization This space intentionally left blank.
Message-ID <[email protected]>
On 2018-02-27 at 15:50, Alec Bennett wrote:

> I get an interesting error when I play the audio file along with the
> CDG video file:
> 
> mplayer ~/Karaoke/test.cdg -audiofile ~/Karaoke/test.mp3
> 
> I've tried the items suggested in the error message as best I can
> figure out, but maybe this makes sense to someone? My system
> definitely shouldn't be too slow, it's an i5 CPU with 8 gigs of RAM.
> 
> Error message with new warning appended:

>            ************************************************
>            **** Your system is too SLOW to play this!  ****
>            ************************************************

Is this the error/warning you were talking about?

As I understand matters, this just means that the gap between the
timestamp on the video stream and the timestamp on the audio stream has
gotten too large. That can be caused by many factors, not just system
slowness, but that was the major cause once upon a time and it's never
seemed worth updating the message to try to explain the many other
possible causes.

If the problem is with the video decoding and/or playback, and the video
file contains no audio track, then it's no surprise that playing the
video file alone wouldn't produce that message; the player doesn't have
any second source of timestamps to compare against.

On my system, if I play the the two together with the '-mc 10' option
thrown into the mix (before either of the other filenames) - to permit
the player to skip up to 5 seconds of video to keep it in sync with the
audio - I get what looks like reasonable playback. The bits of lyrics
which are present in the audio file sync up with the video.

(As far as I can tell, the lyrics get displayed a few seconds ahead of
time, and then turn blue at the moment when you're supposed to sing
them, and the only vocals in the audio file vocals are the ones which
are supposed to come from someone other than the lead singer. This seems
appropriate for karaoke.)

The console-reported video timestamps do behave in a bit of a wonky
fashion, but as far as I can tell that's because this video format
doesn't present a new timestamp until the next frame would be different
from the current one, and there's a fair bit of time (early on in the
video, in particular) where the displayed image doesn't seem to change.
(Which leads to the audio timestamp getting out of sync with the video
timestamp, by up to about five seconds.)

I don't get the originally-described choppy playback; with no audio file
and without -mc 10 I do get the initial "paint the logo on from left to
right" parts animating slower than they should, but with that second
source of timestamps and the freedom to drop 'frames' as needed, it
comes out comparable to (if not even smoother than) what I get from pycdg.

This is with MPlayer built from current SVN, three days ago, with
internal FFmpeg pulled from git on the same date. Whether the released
1.3.0 built in 2016 that you're apparently using would behave
differently I don't know.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAlqWETMACgkQBKk1jTQo
MmuZ2Q/+P0EeLUYrMG8R4SX7mknsma9T0YxvYg0JJcOa3OCPFFAa/+sEvG2czu14
Ic6lVqsBYnidpmXia4X2IdHGF9jJY6mY9wbX9YqkNYvt5my9wBgqXL4y+WAu3oKh
9z+k/nBoCRLmdrC3tYUX3yBY0EKy/oBc8O3g//rufkeQahxp2yDJJFqg9xo78BCl
bRoTuV/uYQAfUDvZLf+cTzn0M2B/2ZsbqnQHLbQPXlfJ4T/ARaOP15TzjgrLKMFt
CGF3EvY+vv4sjpIr+SmHQJvRjmR/zAq3sesBoIVVEJTVj7LxhERBMfer5xTKlrFm
okch9DgF4Jo23RQIgcw6E5WV9q6Klc71uioDJQiJeBjDfEW19p9B+9MrXABK9KCw
6fkPtXWUe7tFNaNRQl7BPXTgrqw7DMpmWfyCFMeVg3lKyW2pH787R7wQvHZwezUn
Rd5U2wdoBk0fWKjAHXLOrzBSMM9xz0E7NettO27gUy43bPEJ1TgdGn4cVKEwYFuI
cUfCl7/+rUWrCwTWK0o+dfzi6V8kL+IMRVuTThcsAMjEo+YgyLHi+hiUPRKKzV69
iPNkveZnmDmuGDQx438UWjEoKzVqzLnHeX74S7cNJXvHbmLYx0uvukfVGu/dOC4Q
tKSJijrgJzlvVjTihyab3c7QhxJrhu8h/Hq8qQLlgTwvAYiobF0=
=kES9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.