Author Topic: -Solved- Can't update x264 - version numbers  (Read 1230 times)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
-Solved- Can't update x264 - version numbers
« on: January 05, 2010, 08:24:46 AM »
Hi all,

anyone know how to update our x264 package?

our x264 src.rpm uses currently a version number of 1.65 - but when getting the newest code, it has version number 0.80. Anyone know where the 1.65 is coming from? I am looking at the x264 spec from fedora, and they use the 0.80 (here 0.79) version number:

(http://dl.atrpms.net/all/x264.spec)
Code: [Select]
%bcond_with gtk
%bcond_with gpac

%lib_package x264 79
%{?with_gtk:%lib_package x264gtk 79}

Summary: A free h264/avc encoder
Name: x264
Version: 0.79


Our spec says:
Code: [Select]
%define name x264
%define version 1.65
%define major 65

Summary: H264/AVC encoder
Name: x264
Version: 1.65
Release: %mkrel 1
Source0: [url]ftp://ftp.videolan.org/pub/videolan/x264/snapshots/%name-%version.tar.bz2[/url]


I'm following up on an issue with libavcodec is presumably not compiled with x264 - I guess it just need a rebuild with newer code, so I'm attempting to update our x264 src.rpm (and then update ffmpeg to let mencoder be able to work with x264 files. I need to convert x264 files to avi and mkv files from mythTV,

If I use ldd /usr/bin/mencoder there is no x264 or h264 library included on my system.

thanks,
MBantz

« Last Edit: January 06, 2010, 03:15:03 PM by MBantz »

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Can't update x264 - version numbers
« Reply #1 on: January 05, 2010, 10:33:52 AM »
Well, picked a 3 day old srpm from pcman, trying this and see where I end :-)

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Can't update x264 - version numbers
« Reply #2 on: January 05, 2010, 02:08:58 PM »
Ok - more logic in package from pacman - uses the svn number in versioning. Now I have a small issue removing the old package, it appears that %major has been used for versioning and the current has a virtual version 1 and major 65,

I'd rather not continue using major like this (am I wrong?), will try epoch to get it updated... any help/hints appreciated :-)

thanks,
MBantz

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Can't update x264 - version numbers
« Reply #3 on: January 06, 2010, 03:14:39 PM »
Ok, just to wrap this up,

One issue (and there were many! Steep learning curve here) was that when installing the new package it was either broken or would remove a bunch important packages... or both. The reason is that the packages-to-be-removed are hard-wired to the .so library specific version - I was not aware of the importance of this 'under-lying' versioning system until now. Am now!

I have suggested another method in versioning this without using major - and should handle the underlying versioning just fine. If you're interested I'd uploaded my suggested x264 package to dropbox, including update to mencoder to provide hdtv (x264) support,

hope it works out :-)

/MBantz

« Last Edit: January 06, 2010, 03:16:51 PM by MBantz »