This is the sequel of my post before. Story of a struggle to achieve the latest pride of fansubbers and anime-watchers: to encode and play an h264 Hi10P video (or simply h264-10bit). Not really a story, uh… actually it’s just a log of my trial-and-error in getting this damned Hi10P working on my system.
In the previous episode – the prolog – this lame hero compiled his Hi10P x264, created a Hi10P DVD-Rip, but can’t play it on his own system. The reason: the installed ffmpeg version didn’t support it. It got worse after I built x264 shared library: mplayer2 can’t play x264 videos at all because it was built against older x264. The solution is to rebuild mplayer2 from scratch, with a new ffmpeg too. At first I tried mplayer2-git from AUR, but quickly gave up since it involved cloning the entire git repository, which was not feasible for average Indonesians.
So I built my own FFmpeg package, dubbed FFmpeg-anime, from latest git snapshot. I guess snapshot means trouble in makepkg, since there’s no way to verify the source checksum, while makepkg mandates it for direct-download files. I built FFmpeg with external libraries enabled, to make sure that my Hi10P x264 takes effect. It compiled without trouble, but mplayer2 refused to use it: mismatched version, again.
Next quest: build mplayer2 against FFmpeg-anime. Oh, no… now it failed to compile. Time to plumb over the lines…. Fixed first two errors by explicitly telling the location of libav* headers. Finished? No. We have syntax errors from libavformat.h, avio.h, taglists.h and mp_taglists.h. There are syntax errors caused by several lines I don’t understand, function and type declarations that I’ve never been taught in my basic programming class. Facepalm.org, I give up this time.
And another problem appeared, my dear little mpd can’t get along with the new FFmpeg-anime. Oh, dear.. your time has come and I won’t listen to your last will. I can live without mplayer for several days, since I didn’t have much new downloads, but I can’t live without mpd. And I completed this ‘mpd-rebuild’ quest, after several dirty edits deleting lines to compensate with older FFmpeg.
Let’s call it a day, still can’t play Hi10P. Tomorrow I’ll just download the mplayer2 binary from the official site, use it as if it was successfully installed into my system, and profit. I still hope this will lead into an anticlimax, maybe I’ll find a PKGBUILD for Hi10P mplayer2 that doesn’t involve cloning git repo, or the next official binary from Archlinux will support it, in less than a month.