mtune and march as native just means gcc uses the best available for your specific cpu - your native setup.
mtune and march as native just means gcc uses the best available for your specific cpu - your native setup.
He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.
How do you think gcc knows that, or even knows what cpu I have? If I had compiled gcc and tailored it to my own system, then it would know whatever I told it about that, and if I told it correctly, then it would know my cpu. I didn't actually compile my gcc -- it came with my distribution, and it knows I have an AMD 64-bit processor, but it doesn't know which one. I have to tell it, if I want optimal results.
I don't find any documentation of "-march=native" in "info gcc".
Have a look on the web, native is the optimal setting when your compiled binaries dont need to be run on anything else than your machine.
He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.
I did look. I learn that "-march=native" was introduced in gcc 4.2. I have only gcc 4.1.2 here, so it's no good to me personally, until I update. Still, very interesting.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=448370
Im on gcc 4.3.1 and have no problems with it. Mplayer now use mtune and march as native in mplayer / mencoder builds. Its super fast, much faster than VLC, Totem etcetc
He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.
FFmpeg does not support "-threads auto" as an option anymore. If your command or script gives you the following error when using "-threads auto", then use "-threads 0" (the integer zero, not a letter) instead:
I'm unsure when this change was introduced.Code:Expected number for threads but found: auto
Update from S. Sabatini on ffmpeg-user mailing list:
-threads auto never worked as you expected, "auto" was previously parsed by atoi() which returned "0", now it omplains if it can't recognize the argument as a number.
Last edited by FakeOutdoorsman; July 13th, 2008 at 10:01 PM.
Looks like you found a bug in ffmpeg. I submitted this to the ffmpeg-user mailing list. You can follow it here:
rc_eq causes 'invalid pointer' error
And the resulting patch that should be applied to svn soon:
[PATCH] Fix the ffmpeg -rc_eq "foo" bug
Also, I will not have internet acces for a week, so I can't reply until then.
Update: This error has been fixed in today's SVN.
Last edited by FakeOutdoorsman; July 14th, 2008 at 05:28 AM.
I got one more question about ffmpeg on ubuntu. Just to see if there is anyone have any idea about this problem.
I am using a quad core (q9450) cpu. But ffmpeg only utilize 25% cpu usage. I already add "-threads 4" or even "-threads 8" in the command line. But I don't see any increase in speed.
I used to have over 200-250 fps in windows (320x240 video encoding). But I got only 100-150 fps in ubuntu (same video, same encoder setting.....).
Last edited by maxbear; July 17th, 2008 at 02:04 AM. Reason: misspell
absolute gold. thanks for the howto.
Bookmarks