fribidi2 in action

pharon's picture

First item off my list of things to do , was adding arabic shaping and joining to fribidi. That way anything that uses fribidi will get fixed without need for patching.

First time I log on after I finish my exams I find the idea is already implemented! I checked out the cvs and rolled a quick ebuild and then tried to build mplayer against it but no show.

I tried vlc and it compiled just fine and arabic was fixed :)
I will look into mplayer later. I dunno if this will deprecate the mplayer patch, because not all distros are as flexible as gentoo, allowing users to install half-baked cvs checkouts.

VLC is just pure amazing in its interface and cleanliness. I am not sure it can match mplayer in the amount of playable codecs but it sure is a lot friendlier and usable. The downside being it depends on wxGTK2.

Anyway this is one of many things I am trying out for the upcoming version of phaeronix.

Screenshot of VLC rendering subtitles with fribidi2 :

http://phaeronix.net/node/71

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pharon's picture

weird error

the bootstrap script uses /bin/sh as shell... how come you don't have that ?

What linux distro are you using ? what shell are you running ( echo $0 )
?

mplayer versus mplayer

you said you are not sure vlc can match mplayer in the amount of
playable codecs , but iam sure of this since I and my friends used
vlc in windows before , and actually I didn't find any movie that
vlc can't play " without any other codecs " and if amovie failed to
play fine with any other player because of lack of codecs , the
solution was vlc , but the only problem was " arabic subtitle "

pharon's picture

M$ != linux

I assume VLC in windows can use those hacked up codec packs that install lots of adware/malware. In linux I have more than once bumped into stuff that mplayer could play and VLC couldn't.

I wanna mention that MPlayer

I wanna mention that MPlayer also works without patching, whithout even recompiling it

all what I did is installing fribidi2 and I got the Arabic subtitles in the correct way

pharon's picture

Are you sure ?

Are you sure your mplayer is not patched with the other patch available on this website?
I am sure that mplayer won't compile with the development version of fribidi, but I don't know about binary compatibility, and I don't have time to test it now.
I promise to look into compiling mplayer with fribidi2... soon.

yeah, I'm sure about that,

yeah, I'm sure about that, but compiling with fribidi2 failed as u said

pharon's picture

easy fix

I posted about an easy fix on eglug but forget to mention it here:
http://www.eglug.org/node/1767#comment-17243

If you want to compile mplayer againts fribidi2 and you get errors about "FRIBIDI_TRUE" and "FRIBDI_FALSE" being undefined, just edit the corresponding file and replace those occurences with 1 and 0 respectively.

pharon's picture

Instructions

Step 1 checkout sources:
cvs -d:pserver:anoncvs@cvs.freedesktop.org:/cvs/fribidi co fribidi2

Step 2 :
./bootstrap ; ./configure ; make ; make install

( use prefix as option because it will replace your system stable one. )

Step 3 :
Make fribidi-config wrapper because it now uses pkg-config. You can use the one from the stable version or the following trivial script:

{{{

nano /usr/bin/fribidi-config

------------------------------
#!/bin/sh

pkg-config fribidi $@
------------------------------

chmod +x /usr/bin/fribidi-config

}}}

now build whatever program depends on fribidi and cross your fingers. the API has changed but not too much. Look here for guidance :

http://lists.freedesktop.org/archives/fribidi/2005-November/000450.html

http://lists.freedesktop.org/archives/fribidi/2005-September/000439.html

There you go.

Please help on fribidi2 build

Hi Pharon,

Please help.

I am trying to build fribidi2 from the checked out cvs codebase "cvs -d:pserver:anoncvs@cvs.freedesktop.org:/cvs/fribidi co fribidi2" but getting the build error " ./bootstrap:bad interpreter: nosuch file or directory". I was able to build fribidi code successfully but not fribidi2 :-(

How can I fix this? Do you have a pre-built fribidi2 available as a tar?

Thanks,
Praveen

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options