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 18th February 2009, 15:54   #241  |  Link
Buggle
Guest
 
Posts: n/a
Recently I see there are x64 builds appearing on x264.nl (plus the addition of win64 support in the main branch or svn or what you call it) and here on Doom9. Is this because of the great effort by MasterNobody (meaning all stuff written will have to be adjusted by him everytime), or has something fundamentally changed due to those changes in the source code?
It would appear that 64bit is finally really getting off the ground, hopefully MeGUI will follow soon...
  Reply With Quote
Old 18th February 2009, 15:55   #242  |  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 Buggle View Post
Recently I see there are x64 builds appearing on x264.nl (plus the addition of win64 support in the main branch or svn or what you call it) and here on Doom9. Is this because of the great effort by MasterNobody (meaning all stuff written will have to be adjusted by him everytime), or has something fundamentally changed due to those changes in the source code?
It would appear that 64bit is finally really getting off the ground, hopefully MeGUI will follow soon...
See here:
http://git.videolan.org/gitweb.cgi?p...67681f23249087

It seems the Win64 patch, that had been maintained separately before, was merged into the x264 Git repository...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 18th February 2009, 18:18   #243  |  Link
komisar
Registered User
 
komisar's Avatar
 
Join Date: Aug 2008
Location: Minsk, Belarus
Posts: 235
bob0r, x64 build from x264.nl dont process files > 2G... Need update cross-compile toolchain.
__________________
..::[I am live here]..::..[My x264 CLI/VFW builds and tools]::..
komisar is offline   Reply With Quote
Old 18th February 2009, 18:22   #244  |  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 komisar View Post
bob0r, x64 build from x264.nl dont process files > 2G... Need update cross-compile toolchain.
Bobor just mirrors Skystrife's x64 builds, so Skystrife needs to update then...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 18th February 2009, 21:12   #245  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by komisar View Post
bob0r, x64 build from x264.nl dont process files > 2G... Need update cross-compile toolchain.
skystrife uses his own cross-compiled build iirc.

which is it: you can't read >2 GB files or write >2 GB files or both?
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 18th February 2009, 21:28   #246  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 552
Quote:
Originally Posted by kemuri-_9 View Post
skystrife uses his own cross-compiled build iirc.

which is it: you can't read >2 GB files or write >2 GB files or both?
Mostly read (except AVI/AVS input) but may be also write (if it use fseek/ftell). This may happen if 'configure' doesn't define
Code:
#define fseek fseeko64
#define ftell ftello64
which may happen if something wrong in compilation chain (for example, if there is no crtfastmath.o in GCC as was in first cross-compilation GCC build by komisar)
MasterNobody is offline   Reply With Quote
Old 18th February 2009, 22:08   #247  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by MasterNobody View Post
Mostly read (except AVI/AVS input) but may be also write (if it use fseek/ftell). This may happen if 'configure' doesn't define
Code:
#define fseek fseeko64
#define ftell ftello64
which may happen if something wrong in compilation chain (for example, if there is no crtfastmath.o in GCC as was in first cross-compilation GCC build by komisar)
if -ffast-math fails from lack of crtfastmath.o,
./configure fails pretty much all the custom configures, so it doesn't configure the ftello64/seeko64 properly.

Edit:
hmm... seemingly the cross-compile is missing crtfastmath.o by default...
oh, i see, found the file, but there's compilation issues:
crtfastmath.c:
Code:
#define FE_NONIEEE_ENV 0x0009a04d0270037f
...
__asm__ __volatile__ ("mov.m ar.fpsr=%0" : : "r"(FE_NONIEEE_ENV));
Code:
$ gcc crtfastmath.c
Assembler messages:
Error: no such instruction: `mov.m ar.fpsr=%rax'
so how did komisar go about fixing this issue?
__________________
custom x264 builds & patches | F@H | My Specs

Last edited by kemuri-_9; 18th February 2009 at 22:23.
kemuri-_9 is offline   Reply With Quote
Old 18th February 2009, 23:54   #248  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,392
Quote:
Originally Posted by kemuri-_9 View Post
Code:
#define FE_NONIEEE_ENV 0x0009a04d0270037f
...
__asm__ __volatile__ ("mov.m ar.fpsr=%0" : : "r"(FE_NONIEEE_ENV));
You're looking at __ia64_set_fast_math(). That's Itanium, not x86_64.
akupenguin is offline   Reply With Quote
Old 19th February 2009, 00:36   #249  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
ah it seems i was...

Code:
$ gcc -D__x86_64__ gcc-snapshot/gcc/config/i386/crtfastmath.c -c -o crtfastmath.o
$ mv crtfastmath.o /prefix/x86_64-pc-mingw32/lib
works fine...
strange at how it doesn't compile and install it automatically with gcc's makefile though...

but that fixes the issue nevertheless...
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 19th February 2009, 08:42   #250  |  Link
komisar
Registered User
 
komisar's Avatar
 
Join Date: Aug 2008
Location: Minsk, Belarus
Posts: 235
issue to fix configuration of gcc when his build:
in gcc/config.gcc add in section (for 4.3.3 version)
Code:
i[34567]86-*-mingw32* | x86_64-*-mingw32*)
	tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
	xm_file=i386/xm-mingw32.h
	tmake_file="${tmake_file} i386/t-cygming i386/t-mingw32"
	target_gtfiles="\$(srcdir)/config/i386/winnt.c"
	extra_options="${extra_options} i386/cygming.opt"
	extra_objs="winnt.o winnt-stubs.o"
	cxx_target_objs=winnt-cxx.o
	default_use_cxa_atexit=yes
	case ${enable_threads} in
	  "" | yes | win32)
	  thread_file='win32'
	  tmake_file="${tmake_file} i386/t-gthr-win32"
	  ;;
	esac
        case ${target} in
		x86_64-*-mingw*)
			tmake_file="${tmake_file} i386/t-crtfm"
			;;
		*)
			;;
	esac
	case ${target} in
		*mingw32crt*)
			tm_file="${tm_file} i386/crtdll.h"
			;;
		*mingw32msv* | *mingw32*)
			;;
	esac
	;;
in gcc/config.gcc add in section (for 4.3.4 version)
Code:
i[34567]86-*-mingw32* | x86_64-*-mingw32*)
	tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
	xm_file=i386/xm-mingw32.h
	tmake_file="i386/t-cygming i386/t-mingw32"
	target_gtfiles="\$(srcdir)/config/i386/winnt.c"
	extra_options="${extra_options} i386/cygming.opt"
	extra_objs="winnt.o winnt-stubs.o"
	cxx_target_objs=winnt-cxx.o
	default_use_cxa_atexit=yes
	case ${enable_threads} in
	  "" | yes | win32)
	  thread_file='win32'
	  tmake_file="${tmake_file} i386/t-gthr-win32"
	  ;;
	esac
        case ${target} in
		x86_64-*-mingw*)
			tmake_file="${tmake_file} i386/t-crtfm"
			;;
		*)
			;;
	esac
	case ${target} in
		*mingw32crt*)
			tm_file="${tm_file} i386/crtdll.h"
			;;
		*mingw32msv* | *mingw32*)
			;;
	esac
	;;
P.S. Change full section of configuration.
__________________
..::[I am live here]..::..[My x264 CLI/VFW builds and tools]::..

Last edited by komisar; 19th February 2009 at 17:12.
komisar is offline   Reply With Quote
Old 19th February 2009, 17:05   #251  |  Link
Egh
Registered User
 
Join Date: Jun 2005
Posts: 630
Quote:
Originally Posted by MasterNobody View Post
Mostly read (except AVI/AVS input)
As I recently found out by myself x264 fails to read any AVI over 2GB regardless of the build, it is per design and that fact is conveniently omitted from the documentation )
Egh is offline   Reply With Quote
Old 19th February 2009, 18:16   #252  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
@komisar mind compiling a proper fprofiled x264bit build for us? (gpac/pthreads)
bob0r is offline   Reply With Quote
Old 19th February 2009, 19:11   #253  |  Link
komisar
Registered User
 
komisar's Avatar
 
Join Date: Aug 2008
Location: Minsk, Belarus
Posts: 235
Information: for correct building libgcov.a (need for profiling) in gcc configure must use "--prefix=/XXX --with-sysroot=/XXX" for x86_64-pc-mingw32.

P.S. If anybody interest, I publish my last mingw cross-compile toolchain...
__________________
..::[I am live here]..::..[My x264 CLI/VFW builds and tools]::..

Last edited by komisar; 21st February 2009 at 14:36.
komisar is offline   Reply With Quote
Old 20th February 2009, 19:23   #254  |  Link
JediNight
Registered User
 
Join Date: May 2002
Posts: 31
I recently moved to a 64bit OS -- is it worthwhile to use the 64bit build of x264 yet, or should I stick to the 32bit for now? And can it be used with megui at all, or is it CLI only for now?
JediNight is offline   Reply With Quote
Old 20th February 2009, 20:37   #255  |  Link
deets
Registered User
 
Join Date: Jan 2005
Location: london, england
Posts: 509
Quote:
Originally Posted by JediNight View Post
I recently moved to a 64bit OS -- is it worthwhile to use the 64bit build of x264 yet, or should I stick to the 32bit for now? And can it be used with megui at all, or is it CLI only for now?
ripbot264 will use the 64 bit in the recent build.

cant use megui as yet, well not easily anyway.
deets is offline   Reply With Quote
Old 21st February 2009, 00:39   #256  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
x264_x64_1114M.exe

patches:
x264_check_mingw_has_strtok_r.diff
x264_hrd_pulldown.09_interlace.diff

gcc 4.3.3
+pthreads, gpac, avs
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 21st February 2009, 16:38   #257  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Quote:
Originally Posted by komisar View Post
Information: for correct building libgcov.a (need for profiling) in gcc configure must use "--prefix=/XXX --with-sysroot=/XXX" for x86_64-pc-mingw32.

P.S. If anybody interest, I publish my last mingw cross-compile toolchain...
Always do!
bob0r is offline   Reply With Quote
Old 21st February 2009, 22:20   #258  |  Link
komisar
Registered User
 
komisar's Avatar
 
Join Date: Aug 2008
Location: Minsk, Belarus
Posts: 235
I hope that the more critical bugs fixed...

MinGW cross-compile toolchain:
komisar.gin.by/mingw/

Code:
Generic configuration compiled with
"--disable-shared --enable-static" options for configure script

***************************************
:32-bit i686-pc-mingw32
CFLAGS="-march=pentium2 -mtune=generic"
mingwrt-3.15.2-mingw32
w32api-3.13-mingw32
zlib-1.2.3
gmp-4.2.3
mpfr-2.3.2
binutils-cvs (GNU Binutils) 2.19.51.20090220
gcc version 4.3.4 20090220 (prerelease) (x32.generic.Komisar) (GCC)
pthread version svn-2.9.0.0
GPAC version 0.4.6-DEV (build 1) cvs 20090219

:64-bit x86_64-pc-mingw32
CFLAGS="-mtune=generic"
mingw-w64 from svn rev.635
zlib-1.2.3
binutils-cvs (GNU Binutils) 2.19.51.20090220
gcc version 4.3.4 20090220 (prerelease) (x64.generic.Komisar) (GCC)
pthread version svn-2.9.0.0
GPAC version 0.4.6-DEV (build 1) cvs 20090219
__________________
..::[I am live here]..::..[My x264 CLI/VFW builds and tools]::..

Last edited by komisar; 28th August 2009 at 17:21.
komisar is offline   Reply With Quote
Old 28th March 2009, 17:09   #259  |  Link
komisar
Registered User
 
komisar's Avatar
 
Join Date: Aug 2008
Location: Minsk, Belarus
Posts: 235
For simple self-building cross-compile toolchain I make small scripts.
Grab it from http://komisar.gin.by/mingw/
__________________
..::[I am live here]..::..[My x264 CLI/VFW builds and tools]::..
komisar is offline   Reply With Quote
Old 12th March 2017, 19:23   #260  |  Link
frencher
French Love
 
Join Date: Oct 2008
Location: France
Posts: 456
Hi roozhou,

Have you update of "Namedpipe.exe" ?

I have Windows 10 x64, my problem is with large cmd.
My problem is with a large number of file in a home made GUI, "Namedpipe.exe" remains on stand-by from time to time.
Code:
".\NamedPipe.exe" "\\.\pipe\pipe_88741.y4m" ".\x264_x64.exe"  --crf 28 --preset ultrafast  --force-cfr --stdin y4m --output ".\TMP_Video.24" - | ".\mplayer.exe" ".\MOV_0715.mov" -lavdopts threads=11 -vf scale=160:90 -correct-pts -fps 30000/1001 -noframedrop -nofontconfig -vo yuv4mpeg:file="\\.\pipe\pipe_88741.y4m" -ao pcm:fast:file=".\TMP_Audio.wav"


Quote:
Originally Posted by roozhou View Post
Rename attached file to Namedpipe.exe

usage:

Namedpipe pipename exename args

1) pipename must start with \\.\pipe\
2) exename is the program that you want to redirect its stdin
3) args is extra command-line arguments for exename, remember to put at least 2 spaces between exename and args

e.g. pipe mplayer's to neroAacEnc

1) in 1st cmd window, type "Namedpipe \\.\pipe\1.wav neroAacEnc.exe -q 0.3 -ignorelength -if - -of xxx.mp4"
2) in 2nd cmd window, type "mplayer xxx.xxx -vc NULL -vo NULL -ao fast:file=\\.\pipe\1.wav"

Source code(compiled in VC2005)
Code:
#pragma comment(linker,"/INCREMENTAL:NO /SECTION:.text,EWR /ALIGN:0x1000")
#include <Windows.h>

#define BUFSIZE 0x400000
char processname[256];
char pipename[64];
char *cmd,*tmp;
HANDLE hPipe/*,hCP,hChildIn*/;
STARTUPINFOA stinfo={0};
PROCESS_INFORMATION pinfo={0};
SECURITY_ATTRIBUTES sa={sizeof(SECURITY_ATTRIBUTES),NULL,TRUE};
void WINAPI Main()
{
	DWORD quoteon,state,cmdend;
	cmd = GetCommandLineA();
	quoteon = 0;
	state = 0;
	cmdend=0;
	tmp = pipename;
	while (!cmdend)
	{
		switch(*cmd)
		{
		case 0:
			cmdend=1;
			*tmp=0;
			goto END;
		case '\"':
			quoteon = !quoteon;
			break;
		case ' ':
		case '\t':
			if (quoteon)
			{
				switch(state)
				{
				case 2:
				case 4:
					*tmp++ = *cmd;
				}
			}
			else
			{
				switch(state)
				{
				case 0:
					state++;
					break;
				case 4:
					cmdend = 1;
				case 2:
					*tmp = 0;
					state++;
				}
			}
			break;
		default:
			switch(state)
			{
			case 3:
				tmp = processname;
			case 1:
				state++;
			case 2:
			case 4:
				*tmp++ = *cmd;
			}
		}
		cmd ++;
	}
END:
	if (state<2 || quoteon)
		return;
	if (INVALID_HANDLE_VALUE == (hPipe = CreateNamedPipeA(pipename,PIPE_ACCESS_DUPLEX,PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT,PIPE_UNLIMITED_INSTANCES,BUFSIZE,BUFSIZE,0,&sa)))
		return;
	ConnectNamedPipe(hPipe,NULL);
	stinfo.cb = sizeof(STARTUPINFO);
	stinfo.dwFlags = STARTF_USESTDHANDLES;
	stinfo.hStdInput = hPipe;//hChildIn;
	stinfo.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
	stinfo.hStdError = GetStdHandle(STD_ERROR_HANDLE);
	if (CreateProcessA(processname,cmd,0,0,TRUE,0,NULL,NULL,&stinfo,&pinfo))
	{

		WaitForSingleObject(pinfo.hProcess,INFINITE);
	}
}
__________________
2013-11-29 MVC Player Free v0.0.2.6 BD & 3D BD's Player, Demuxer v0.0.0.8b, Recoder. Tutorial
Demo for MVC Player Free: Trailer 3D

3DBD's Free - v0.0.0.0005.exe Old

Programing free for all.

Last edited by frencher; 12th March 2017 at 19:56.
frencher 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 22:20.


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