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 27th February 2016, 13:02   #21  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 4,961
Under Windows, you may use jb_alvarado's media-autobuild_suite to compile x264 with included libav inside an MSYS environment. I hope you can analyze their script to discover some hints how to create a matching configuration.
__________________

German doom9 / Gleitz board
MediaFire shares: x265 | VPx | AOM | Xvid

Rémoulade is spoiled
LigH is offline   Reply With Quote
Old 28th February 2016, 12:54   #22  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 446
Thank you. I fluked mp4: yes, with this
Code:
# x264 cloned by now, and gpac is already built in mp4box_gpac
cd x264
mkdir ./gpac
chmod 777 ./gpac
echo " ------------------------- copying gpac include files ... "
cp -R -v ../mp4box_gpac/include/gpac/* ./gpac
echo " ------------------------- copying gpac_static.a file ... "
cp -v ../mp4box_gpac/bin/gcc/libgpac_static.a ../mp4box_gpac/bin/gcc/gpac_static.a
export LDFLAGS=-L../mp4box_gpac/bin/gcc/
export CFLAGS="$CFLAGS -I./gpac"
# now get on with the cross-compile
The resulting x264.exe reports a funny error though,
Code:
".\x264.exe" --thread-input --threads 8 --profile high --level 4.1 --preset fast --interlaced --tff --no-cabac --crf 18 --sar 64:45 -o "temp.h264" "input.mpg"
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `input.mpg' via any method!
As mentioned above, it looks like I also need to compile libav libraries for lavf-support and add that to LDFLAGS and CFLAGS and see if that makes a difference.
Or, since by that time I've cross-compiled ffmpeg, find out how to "link to" libavformat.a and .h files (or something like that) which hopefully may be cross-compiled as a part of ffmpeg.
I took a look at a ./configure file to see how it "detects" however it is beyond my skills for the time being.
I'll goggle pkg-config to find out what that is and hope it is compatible with Ubuntu based mingw cross-compiling.

I'll also goggle jb_alvarado's media-autobuild_suite as well as config.log.

linux newbie: and I'll also need to goggle how to put multiple paths in each of "LDFLAGS=-L" and "CFLAGS= -I" unless you can suggest it

Last edited by hydra3333; 28th February 2016 at 13:12.
hydra3333 is offline   Reply With Quote
Old 28th February 2016, 13:16   #23  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 4,961
github.com/jb-alvarado/media-autobuild_suite

It contains heavy Windows cmd batch and bash shell scripts for installing and using a MSYS/MinGW cross compiling suite under Windows. I doubt it would run under a real Linux as a whole, but should contain good material to adapt your own workflow from.
__________________

German doom9 / Gleitz board
MediaFire shares: x265 | VPx | AOM | Xvid

Rémoulade is spoiled
LigH is offline   Reply With Quote
Old 28th February 2016, 13:20   #24  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 446
Quote:
Originally Posted by LigH View Post
Beaut, thanks.

edit: my attempt is also 99% based on the very nice, linux cross-compiling tool from Roger Pack : https://github.com/rdp/ffmpeg-windows-build-helpers (as updated when comparing it to zeranoe's listed sources).

Last edited by hydra3333; 28th February 2016 at 13:34.
hydra3333 is offline   Reply With Quote
Old 29th February 2016, 09:35   #25  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 1,459
I've made a tutorial build for x264 here.
Even if it's Windows related, at least for the MSYS2 part, i think you can use all the others informations, it may help you.
jpsdr is offline   Reply With Quote
Old 26th March 2016, 13:22   #26  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 446
Thanks.

I finally got x264 to cross-compile with gpac for .mp4 compatibility and with ffmpeg lavf libraries so that it directly accepts input like .mpg etc as input ... with the help of your examples, using ubuntu, a variation of rogerdpack's script (uses mostly latest source versions, or zeranoes, depending) and a variation of zeranoe's toolchain build script (to use the latest compiler and related stuff). It's a horrific train-wreck of a hacked up script used for debugging ... but it did work.

To me as a linux knowledge free zone, it seems that the configure file for x264 has a number of non-obvious fixed dependencies, eg things like
- pkg-config had to be copied from /usr/bin/pkg-config into the cross-compiler folder with a different name based on a cross_prefix, since the toolchain build script didn't (copy a linux-runnable pkg-config, which the configure needs to see
- setup of PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR
- copying ffmpeg sources and libraries into specific folders
- copying gpac sources into a specific folder and a .a file to specific place with a specific name
- using a custom configure_flags to point to the right places

So now, to consider whether to spend the time to find out why the mp4box built via rogerdpack's script produces .mp4 files which don't behave right when played in mpc-hc, as compared to the the official mp4box; eg when playing a .mp4 and click say 3/4 down the timeline and then the audio plays but the video takes 5 seconds to catch up and start playing, whereas an .mp4 with same video and audio but produced by an older mp4box handles it just fine with no "catchup" (using the same commandline on mp4box).

Last edited by hydra3333; 27th March 2016 at 01:26.
hydra3333 is offline   Reply With Quote
Old 13th October 2016, 17:30   #27  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,308
Anyone got statically linked 8bit and 10bit x264 versions which run on Mac OS X Sierra?
Builds from http://download.videolan.org/pub/vid...macosx-x86-64/ don't work on Sierra
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 17th February 2017, 14:52   #28  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 234
x264 0.148.2762 90a61ec - 8 bit & 10 bit Win32/64 Binaries
(libswscale 4.3.101)
(libavformat 57.66.102)
(ffmpegsource 2.23.0.0)
Built on Feb 17 2017, GCC v6.3.0

http://ge.tt/3gT9Eri2

Code:
https://git.videolan.org/?p=x264.git;a=summary

Last edited by Barough; 17th February 2017 at 14:57.
Barough is offline   Reply With Quote
Old 17th February 2017, 17:50   #29  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,409
Time for an overdue update to post #1, me thinks.

Namely, remove the links to x264.nl and fushizen.eu.

OR add a notice informing that those sites haven't been updated since ages ago.
Midzuki is offline   Reply With Quote
Old 17th February 2017, 23:13   #30  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,826
Quote:
Originally Posted by Midzuki View Post
Time for an overdue update to post #1, me thinks.

Namely, remove the links to x264.nl and fushizen.eu.

OR add a notice informing that those sites haven't been updated since ages ago.
You are right. I removed the defunct "x264.nl" and "doom10" links and also added an outdated notice to the "fushizen.eu" link.

(If there are any more links you'd like to see there, let me know)
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 19th February 2017 at 15:07.
LoRd_MuldeR is offline   Reply With Quote
Old 18th March 2017, 10:30   #31  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,409
Hummm, post #1 has other broken links :-/

Other posts also have broken links :-/

komisar's site hasn't been updated with the latest stable release of x264 :-/

Probably it's better to bury this thread and replace it with a brand-new sticky...
Midzuki is offline   Reply With Quote
Old 18th March 2017, 14:40   #32  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,826
Quote:
Originally Posted by Midzuki View Post
Hummm, post #1 has other broken links :-/
I will try to fix some more of them!

Quote:
Originally Posted by Midzuki View Post
Other posts also have broken links :-/
Well, I think we can't keep every link in every post up-to-date all the time. I will concentrate on the first one.

Quote:
Originally Posted by Midzuki View Post
komisar's site hasn't been updated with the latest stable release of x264 :-/
Slightly outdated, yes. But I'm hoping for update soon.

It's not like there have been fundamental changes in x264 since the 2016/12 build.
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 18th March 2017 at 14:53.
LoRd_MuldeR is offline   Reply With Quote
Old 25th May 2017, 18:34   #33  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 234
x264 0.150.2833 df79067
Built on May 25 2017, GCC v6.3.0

https://git.videolan.org/?p=x264.git;a=summary

DL :
Code:
http://www83.zippyshare.com/v/XRwxwj4Z/file.html
Barough is offline   Reply With Quote
Old 25th May 2017, 22:14   #34  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 4,961
I remember that x264 started to require NASM 2.13 (to support AVX512, I believe?) to build in the media-autobuild_suite.
__________________

German doom9 / Gleitz board
MediaFire shares: x265 | VPx | AOM | Xvid

Rémoulade is spoiled
LigH is offline   Reply With Quote
Old 25th May 2017, 23:17   #35  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,409
Quote:
Originally Posted by LigH View Post
I remember that x264 started to require NASM 2.13 (to support AVX512, I believe?) to build in the media-autobuild_suite.
That's correct, and it's mentioned in the changelog itself.

https://www.videohelp.com/software/x264-Encoder
Midzuki is offline   Reply With Quote
Old 26th May 2017, 12:19   #36  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,826
Quote:
Originally Posted by Midzuki View Post
komisar's site hasn't been updated with the latest stable release of x264 :-/
Now has
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 26th May 2017, 13:55   #37  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,409
Quote:
Originally Posted by LoRd_MuldeR View Post
Now has
ő/

Even though his builds are v. 2829 and mine are v. 2833
(just like Barough's ones)
Midzuki is offline   Reply With Quote
Old 26th May 2017, 15:47   #38  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,826
Quote:
Originally Posted by Midzuki View Post
ő/

Even though his builds are v. 2829 and mine are v. 2833
(just like Barough's ones)
If you look at the commit log, you'll probably notice that in the last four commits there were no changes that effect static Win32 builds.
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 26th May 2017, 17:53   #39  |  Link
komisar
Registered User
 
komisar's Avatar
 
Join Date: Aug 2008
Location: Minsk, Belarus
Posts: 235
no, i am delete my message
__________________
..::[I am live here]..::..[My x264 CLI/VFW builds and tools]::..

Last edited by komisar; 26th May 2017 at 17:55.
komisar 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 09:16.


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