Re: Fetch Preview-Image failed due to COMMA instead of a DOT used in a command-option

Jörn Reder <[email protected]> Sat, 15 Feb 2014 12:28:46 +0100
Newsgroups gmane.comp.video.dvdrip.user
Message-ID <[email protected]>
Am 12.02.2014 20:20, schrieb kaffeesurrogat:

> The command finishes succesfully on machine 2, unfortunately not on
> machine 1.  I found kind of a small difference ....
>=20
> machine 1:  -ss '0,280'
> machine 2:  -ss '0.280'
>=20
> On machine 1 dvdrip uses an COMMA. On machine 2 dvdrip insert a DOT.
> If I execute the command on machine 1 manually with a DOT instead of a
> COMMA, the command finishes nicely.
>=20
> Well, .... actually I don't know what to do .... Is this a perl issue ?

More or less ;) The program uses sprintf() here to round the time value
of the -ss option. And depending on your locale settings a comma is used
instead of the dot to mark the decimals.

You can fix that by either use the same locale settings on machine 1 as
on machine 2, or change lib/Video/DVDRip/Title.pm this way:

In line 3138 you find

    my $start =3D sprintf("%.3f", $start_frame / $frame_rate);

add this line after it:

    $start =3D~ s/,/./;

This should work.

Regards,

J=C3=B6rn

--=20
LINUX - Linux Is Not gnU linuX