You are not logged in.

#1 2008-11-19 02:17:37

Jaejae
Member
Registered: 2008-05-17
Posts: 80

x264 Build Problem

Due to the fact that the x264 package in the repositories was built without AVIS support, I found myself needing to compile it myself.

Firstly, I tried to copy the build tree from the abs, and just modify the PKGBUILD. When building the package, the build fails. Here are the last four lines of output, which I presume are the ones relevant to the failure.

11R6/lib -lX11 -lm -lpthread -lvfw32 -s
/usr/bin/ld: cannot find -lvfw32
collect2: ld returned 1 exit status
make: *** [libx264.so.65] Error 1

Because of this, I tried to compile it from GIT (I actually made my own PKGBUILD for this), but it still fails at the make step, with the same error. The aforementioned PKGBUILD works fine up until that point, and I believe it will work once I've sorted out this problem, so don't hesitate to ask for it.

And just in case, I tried compiling it by hand, from git, and it still fails.

These are the flags I've been using to configure:

./configure --prefix=/usr/local --enable-pthread --enable-visualize --enable-shared --enable-avis-input --enable-pic

The package builds fine without the --enable-avis-input flag, but the whole reason I'm compiling it is to enable AVIS support.

Offline

#2 2008-11-19 02:59:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: x264 Build Problem

Win32 only:

x264 > ./configure --help | grep avis
  --disable-avis-input     disables avisynth input (win32 only)

Offline

#3 2008-11-19 03:26:30

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: x264 Build Problem

You can't have AviSynth support in Linux is why. If you (like me) really want AviSynth, there are solutions, namely avsproxy and avs2yuv. They do not require AviSynth support in x264, as x264 will just be reading YUV data provided to it.

And also, why are you doing --enable-pic? This will only slow x264, and is only useful for debugging purposes. Yeah, I know the x264 PKGBUILD uses it... I need to let them know...

EDIT: I may be wrong, --enable-pic may be necessary for dynamic libs... let me check...

Last edited by Ranguvar (2008-11-19 03:31:11)

Offline

#4 2008-11-19 22:42:22

Jaejae
Member
Registered: 2008-05-17
Posts: 80

Re: x264 Build Problem

I see, Win32 only.
I just demuxed an OGM, with ogmdemux, and the resulting video file was an avi, would avsproxy or avs2yuv convert this resulting avi into a format readable by x264?

Offline

#5 2008-11-20 01:58:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: x264 Build Problem

Jaejae wrote:

I see, Win32 only.
I just demuxed an OGM, with ogmdemux, and the resulting video file was an avi, would avsproxy or avs2yuv convert this resulting avi into a format readable by x264?

avi files and AviSynth files are different things. Most avi files can be re-encoded with x264 through mencoder (from Mplayer), FFmpeg, or VLC. For that matter, using the original ogm files will work too.

Offline

#6 2008-11-20 19:15:31

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: x264 Build Problem

AviSynth is a scripting language / framework for doing advanced filtering of audio and video of all types smile Not necessary at all for simple conversions.

Offline

#7 2008-11-21 03:44:56

Jaejae
Member
Registered: 2008-05-17
Posts: 80

Re: x264 Build Problem

Hmmm, it seems I have a little research to do.
I have an ogm, with one DivX video track, three Vorbis audio tracks, and two .srt subtitle tracks.
I want to convert the DivX track to H.264, and remux the whole lot into a Matroska container.
Anybody feel like giving me a hit, or a link to a guide regarding my problem?

Offline

#8 2008-11-21 04:01:43

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: x264 Build Problem

DivX is not a format, it is a codec (encoder/decoder). The format is MPEG-4 ASP. But anyways...

I am not very experienced (yet!) with Linux multimedia tools. My process in Windoze would be to open the input in AviSynth, and use x264 to re-encode the video. I would use OGMTools to demux the other streams, and then mux to Matroska with MKVToolnix.

Since I believe the latter two apps are available on Linux, the problem is just the encoding. You could set up a Wine AviSynth solution, and that would give you oodles more power. AviDemux would work, Linux-native. It doesn't expose as many x264 options as I'd like, but it'll do for 99% of people. mencoder and ffmpeg are also worth looking into, as well as their GUIs. You could also use mencoder or ffmpeg to open the OGM and pipe the video as YUV to x264, this way staying all in Linux. mencoder has a good number of filters, too, enough for basic stuff, though not nearly the hundreds for AviSynth.

Offline

#9 2008-11-21 04:07:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,357
Website

Re: x264 Build Problem

Jaejae wrote:

Anybody feel like giving me a hit, or a link to a guide regarding my problem?

Hint: mkvtoolnix

Offline

#10 2008-11-22 01:32:48

Jaejae
Member
Registered: 2008-05-17
Posts: 80

Re: x264 Build Problem

Yeah, I've got mkvtoolnix, know (vaguely) how to use it.
I'll look at mencoder and ffmpeg, they sound like the easiest solution.

Offline

#11 2008-11-22 01:37:22

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: x264 Build Problem

Jaejae wrote:

Yeah, I've got mkvtoolnix, know (vaguely) how to use it.
I'll look at mencoder and ffmpeg, they sound like the easiest solution.

Mencoder has better support for subtitles. I only use FFmpeg so I'm not going to be much help here.

Offline

#12 2008-11-22 08:42:46

Jaejae
Member
Registered: 2008-05-17
Posts: 80

Re: x264 Build Problem

All right, thanks for all the help.

Offline

Board footer

Powered by FluxBB