View Full Version : From Windows32bit to Ubuntu64bit: Encoding HD videos
bisdelf
28th April 2007, 00:09
hi everybody!!
i'll try to explain myself in the easiest way!
i'm still a rookie but there are several months that i encode 1080i (.ts or .mpeg) videos to 720p xvid avi files.
well, i use dgindex, then i analyse the video with the "avisynth script creator" of megui to see what kind of source do i have. then i write the avisynth script file. after that i use virtualdubmod to encode the file, xvid codec no profile, 2 pass.
going straight to the point, how can i do the same things on ubuntu 64bit (feisty fawn)???
what are the detailed steps i have to follow???
or even more, are there some better ways to this "job" on linux?? can ubuntu64 do this job faster?
just to be fussy, i attach this avisynth sample script:
SetMTMode(2,2) #enables multihreading using thread = to the number of available processors and mode 2
LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\EEDI2.dll")
LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\TDeint.dll")
LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\TIVTC.dll")
LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\SimpleResize.dll")
DGDecode_mpeg2source("E:\Downloads\DGIndex\SAMPLE.d2v",cpu=4)
edeintted = last.AssumeBFF().SeparateFields().SelectEven().EEDI2(field=-1)
TDeint(order=0,edeint=edeintted)
crop( 0, 0, 0, -8)
Undot() # Minimal Noise
SimpleResize(1280,720) # Simple (Soft)
PS: is my script a good one????? (in the encoding, i set the bitrate to 8000kbps)
thanks everybody,
bisdelf
Blue_MiSfit
28th April 2007, 04:56
Well, the biggest problem with video encoding on Linux (for those of us who are used to using AviSynth) is the lack of AviSynth!
You can do everything that your script does using mencoder, but I'm not sure the quality would be up to par, considering that you use EEDI2 and TDeint to deinterlace. An all 64 bit toolchain is possible IIRC though.
I have 64 bit feisty installed as well, maybe tonight's the night to try it all out!
~MiSfit
disturbed1
28th April 2007, 05:56
DGIndex and avisynth work perfectly well with Wine. Getting wine to work for 64bit is reported to be done, not not as easy as sudo apt-get install wine ;)
What do you do with that avisynth script in Linux? Google for avs2yuv.
This is how I encode ogg-theora from avisynth scripts.
wine avs2yuv.exe file.avs - |./ffmpeg2theora-0.18.linux.bin -v 8 -C .9 -B .1 -G 1.1 -Z 1.2 - -f yuv4mpegpipe -o out.ogg
Just replace the theora stuff with mencoder stuff.
Or you could try avidemux, which has a couple of avisynth, virtual dub, and mencoder filters.
Joe Fenton
29th April 2007, 02:00
DGIndex and avisynth work perfectly well with Wine. Getting wine to work for 64bit is reported to be done, not not as easy as sudo apt-get install wine ;)
Actually, most distros have wine in their repos, so it IS as easy as just "yum install wine" or "apt-get install wine". I installed wine on Fedora Core 6 64bit from the extras repo and have no trouble. It's also been in Ubuntu's repos for some time now as well.
skottish
30th April 2007, 01:47
Actually, most distros have wine in their repos, so it IS as easy as just "yum install wine" or "apt-get install wine". I installed wine on Fedora Core 6 64bit from the extras repo and have no trouble. It's also been in Ubuntu's repos for some time now as well.
It depends on if your distro has either a multi-lib setup or a chroot environment. There is no 64 bit Wine; It has to be run with 32 bit libraries. With that being said, I believe that Ubuntu has the necessary software either pre-installed, or available in the reops.
Joe Fenton
3rd May 2007, 08:06
It depends on if your distro has either a multi-lib setup or a chroot environment. There is no 64 bit Wine; It has to be run with 32 bit libraries. With that being said, I believe that Ubuntu has the necessary software either pre-installed, or available in the reops.
Yep. Ubuntu, Fedora Core, and SUSE all have 64 bit setup by default with multi-lib. They recognize that quite a bit of important software is still only 32 bit.
Bigmango
3rd May 2007, 10:39
Avidemux will do what you want. I am using it to encode 1080p blue ray sources to x264; avidemux handles xvid as well. Imho avidemux is the best tool for the job, be it on windows or linux.
For HD support you need the latest 2.4 devel release (I think its 3003 now) (2.4 preview 1 will not do HD sources, you need a later release).
http://avidemux.org/
Latest windows 2.4 devel releases:
http://www.razorbyte.com.au/avidemux/
I don't have a link to the devel linux binaries as I build it myself (the 64bit avidemux is much faster than the 32bit). If you don't want to build it you will certainly find it in one of the personal ubuntu repositories (you can search the ubuntu forums).
bisdelf
8th May 2007, 00:00
Avidemux will do what you want. I am using it to encode 1080p blue ray sources to x264; avidemux handles xvid as well. Imho avidemux is the best tool for the job, be it on windows or linux.
For HD support you need the latest 2.4 devel release (I think its 3003 now) (2.4 preview 1 will not do HD sources, you need a later release).
http://avidemux.org/
Latest windows 2.4 devel releases:
http://www.razorbyte.com.au/avidemux/
I don't have a link to the devel linux binaries as I build it myself (the 64bit avidemux is much faster than the 32bit). If you don't want to build it you will certainly find it in one of the personal ubuntu repositories (you can search the ubuntu forums).
wow, thanks a lot man!!! this program seems to be great...just some little problems: how to configure it!! :p
i'll first try it on windows with x264....
if you could post here (or send me a PM) some good settings regarding the jobs i've to do: from 1080i (.ts or mpeg) to 720p xvid+avi (i don't like mkv :) ). I'll really appreciate it!!!
BTW thanks all for the answers!!!
bye,
bisdelf
Bigmango
8th May 2007, 04:21
Just open your source file (if it asks you to index it click yes to do it).
Then on the left for the video chose the one you want (xvid or x264). You can also apply filters if you need them.
Under video chose the audio you want (for mp3 select "lame", for aac "faac", for ac3 "aften",...) (or select "copy" to keep the source audio" as it is). If you have several audio tracks select the one you want in the "audio" menu.
For the container select "avi" if this is what you want.
And finally click on "save" to encode and save your file.
Avidemux is 32bit only on windows (works fine with the 64bit windows versions). The 64bit version is linux only.
bisdelf
13th May 2007, 23:32
well, the program works pretty well both on win and ubuntu.
The encoding time is almost the same, due to the fact that the codecs (xvid or x264 doesn't matter) are written in 32-bit.
unluckly, there is no internal tool that analyses the source video to tell you if it is interleaced etc. like in megui. but anyway i'm fairly satisfied :)
One more question: is it possible to add new filters?? if yes, how???
bye,
bisdelf
Bigmango
14th May 2007, 06:11
Of course the encoding times will be the same if you use the 32 bit version.
But with the 64bit version under linux it is faster on my systems. The benchmarks around the web also confirm that the 64bit xvid is faster than the 32bit one.
Also make sure you are using the latest 2.4 devel tree, and compile avidemux with the latest versions of x264 (build 655 as of now) and xvid (1.2cvs).
I don't know about adding filters, I have never tried it. But you will certainly get an answer on the avidemux.org forums.
bisdelf
14th May 2007, 14:43
uhm on ubuntu64 i've installed the 2.4 preview 1 already packed from getdeb.net, which means that is probably not the leatesssttt version, but i'm not so good in compiling programs on linux :)
Bigmango
14th May 2007, 18:11
Yes 2.4 preview 1 is quite old. It is lacking some features that were added in the later versions like support for MKV files and HD video.
If you are on ubuntu I'm sure that someone has set up a private repository with the latest builds. You could try to search the ubuntu forums.
bisdelf
14th May 2007, 21:36
unfortunately i'm not able to install the avidemux svn build (3091). during "make" and "make install" it gives me some errors....damn it :p
Bigmango
14th May 2007, 23:40
unfortunately i'm not able to install the avidemux svn build (3091). during "make" and "make install" it gives me some errors....damn it :p
You are probably missing some libraries devel packages, you will need to install them.
If you can't figure out what is missing/wrong form the compile error output, you will get the best help if you post the error output on the avidemux forum.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.