Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st July 2008, 13:12   #521  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
there is a "search this thread" function
Sharktooth is offline   Reply With Quote
Old 22nd February 2009, 22:32   #522  |  Link
K0zi
Registered User
 
Join Date: Nov 2007
Location: PL
Posts: 26
I'm trying to compile my own first x264 build using the guide from #166 (hpn) http://forum.doom9.org/showthread.ph...782#post723782
Step 18 runs into errors, no matter what versions of tools I use. I copied config.h from the gpac source folder to include/gpac/internal/config.h to work around the first one, but still, end up with this:
http://img6.imageshack.us/img6/2547/70594335.png

Last edited by K0zi; 22nd February 2009 at 22:35.
K0zi is offline   Reply With Quote
Old 22nd February 2009, 23:12   #523  |  Link
skystrife
Registered User
 
skystrife's Avatar
 
Join Date: Feb 2007
Posts: 176
You don't necessarily need a cvs gpac to do the muxing for x264--you could try building from one of the older snapshots on their main page and see if that works.
skystrife is offline   Reply With Quote
Old 22nd April 2009, 14:14   #524  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Ubuntu sucks ??

seems like compilation fails on Ubuntu 9.04 using the main branch...

Quote:
ranlib libx264.a
gcc -o x264 x264.o matroska.o muxers.o libx264.a -lm -lpthread -s
libx264.a(ratecontrol.o): In function `init_pass2':
ratecontrol.c:(.text+0x1963): undefined reference to `isfinite'
ratecontrol.c:(.text+0x1bee): undefined reference to `isfinite'
libx264.a(ratecontrol.o): In function `rate_estimate_qscale':
ratecontrol.c:(.text+0x5d40): undefined reference to `isfinite'
ratecontrol.c:(.text+0x62f3): undefined reference to `isfinite'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [x264] Erreur 1
lionel@ubuntu:~/x264$
Quote:
$ uname -a
Linux ubuntu 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
Quote:
$ gcc -v
Utilisation des specs internes.
Target: i486-linux-gnu
Configuré avec: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Modèle de thread: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
Quite strange though coz it worked last week :confused:...Any hint ?
Kurtnoise is offline   Reply With Quote
Old 22nd April 2009, 14:22   #525  |  Link
Henrikx
Registered User
 
Henrikx's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 306
Ubuntu 9.04
$ x264 --help
x264 core:67 r1145 d2e1e1c

De-Install libx264.dev
__________________
Henrikx
Henrikx is offline   Reply With Quote
Old 22nd April 2009, 14:40   #526  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
I don't use dev package for this compressor...

Quote:
lionel@ubuntu:~$ find /usr/lib/ -name 'libx264*'
lionel@ubuntu:~$ find /usr/local/lib/ -name 'libx264*'
returns nothing...
Kurtnoise is offline   Reply With Quote
Old 22nd April 2009, 14:50   #527  |  Link
Henrikx
Registered User
 
Henrikx's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 306
HOWTO: Install and use the latest FFmpeg and x264
The instructions on the page are for Ubuntu Jaunty Jackalope 9.04

http://ubuntuforums.org/showthread.php?t=786095
__________________
Henrikx
Henrikx is offline   Reply With Quote
Old 22nd April 2009, 14:57   #528  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
useless for me...it was a conflict with a file header. Problem solved.
Kurtnoise is offline   Reply With Quote
Old 27th April 2009, 14:27   #529  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
I tried to compile x264 with MinGW 4.4.0, but configure fails:

Code:
./configure: line 320: die: command not found
Platform:   X86
System:     MINGW
asm:        yes
avis input: no
mp4 output: no
pthread:    no
debug:      no
gprof:      no
PIC:        no
shared:     yes
visualize:  no

You can run 'make' or 'make fprofiled' now.
The line that fails is that one:

Code:
$CC $CFLAGS conftest.c -c -o conftest.o 2>$DEVNULL || die "endian test failed"
Any ideas? Did I miss something or is the compiler binary broken?

I used an "unofficial" MinGW build that I found here:
http://www.equation.com/servlet/equa...d?call=fortran
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 27th April 2009 at 14:29.
LoRd_MuldeR is offline   Reply With Quote
Old 27th April 2009, 16:30   #530  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
that's the first line something is actually compiled so the compiler is probably broken.

which is not surprising as i've been trying to compile 4.4.0 for mingw and it keeps failing as well.
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 27th April 2009, 17:32   #531  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by kemuri-_9 View Post
that's the first line something is actually compiled so the compiler is probably broken.

which is not surprising as i've been trying to compile 4.4.0 for mingw and it keeps failing as well.
Thanks for info

If you get your hands on a working MinGW 4.4.x binary, please let me know
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 27th April 2009 at 18:22.
LoRd_MuldeR is offline   Reply With Quote
Old 27th April 2009, 21:24   #532  |  Link
Mr VacBob
Registered User
 
Join Date: Feb 2005
Posts: 140
It's probably a compiler bug; you could take out the "2>$DEVNULL" to see what it prints before failing.
Mr VacBob is offline   Reply With Quote
Old 27th April 2009, 21:26   #533  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Mr VacBob View Post
It's probably a compiler bug; you could take out the "2>$DEVNULL" to see what it prints before failing.
Yeah, it says that the application caused the runtime to terminate in an "unusual" way.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 30th April 2009, 05:39   #534  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by LoRd_MuldeR View Post
Thanks for info

If you get your hands on a working MinGW 4.4.x binary, please let me know
i got it working finally (at least enough to properly compile x264), but for x264 it's still slower than 3.4.x

on a note on this, due to how x264's configure writes values to TMP (in as_check() and cc_check())
this was crashing my gcc build as this does overwrite the temporary folder location (strangely is only affecting my gcc 4.4.0 x86/x64 builds)
as they were then trying to write to a nonexistent folder.
changing TMP to say TMPVAL and it works like a charm.
you should try this on the build you have, chances are it is the culprit on your side as well.
__________________
custom x264 builds & patches | F@H | My Specs

Last edited by kemuri-_9; 30th April 2009 at 05:42.
kemuri-_9 is offline   Reply With Quote
Old 1st May 2009, 22:08   #535  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by kemuri-_9 View Post
on a note on this, due to how x264's configure writes values to TMP (in as_check() and cc_check())
this was crashing my gcc build as this does overwrite the temporary folder location (strangely is only affecting my gcc 4.4.0 x86/x64 builds)
as they were then trying to write to a nonexistent folder.
changing TMP to say TMPVAL and it works like a charm.
you should try this on the build you have, chances are it is the culprit on your side as well.
Hey thanks!

That solved the problem for me too, although I don't understand why renaming a variable in the bash script did fix the crash in GCC

In case anybody is interested, my patch is here:
http://mplayer.somestuff.org/misc/li...cc440-fix.diff

Also I noticed that TDM finally has a MinGW 4.4.0 binary too:
http://www.tdragon.net/recentgcc/

BTW: GCC 4.4.0 is flooding the console with even more strange warning when compiling x264 than GCC 4.3.3 did
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 1st May 2009 at 22:39.
LoRd_MuldeR is offline   Reply With Quote
Old 2nd May 2009, 00:49   #536  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by LoRd_MuldeR View Post
That solved the problem for me too, although I don't understand why renaming a variable in the bash script did fix the crash in GCC

BTW: GCC 4.4.0 is flooding the console with even more strange warning when compiling x264 than GCC 4.3.3 did
for the first part, it seems that GCC 4.4.0 is reading the TMP env variable for the location of the temporary folder for writing temp files.
x264's configure currently overwrites the location with the *_check() functions saving to the TMP variable.
so basically trying to save temporary files to a place that doesn't exist is naturally going to cause some failures.

I mentioned this in the dev channel, so it should probably get fixed along side with whatever the next commit will be.

i also noticed that gcc 4.4.0 was extremely angry at x264 with its mountain of "dereferencing pointer {} will break strict-aliasing rules" warnings.
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.