Log in

View Full Version : MEncoder-Frontend for x264 encoding (update: 2006-09-17)


Pages : [1] 2 3

LoRd_MuldeR
20th March 2006, 15:36
Note: This tool is outdated and I doubt I will ever release an update!
I highly recommend to use Avidemux (http://tinyurl.com/2jsqqf) or some more up-to-date MEncoder front-end instead.


MEncoder264 is a front-end for MEncoder, that is dedicated to x264.
Different x264 profiles (plus custom profiles) and various video/auido filters are available.
Source can be any media that plays in MPlayer, which includes Video-DVD.
The current version supports AVI output plus MP4 muxing via MP4Box (experimental).

http://img487.imageshack.us/img487/1340/shotmencoder2645ra.gif

killerhex
21st March 2006, 00:59
the program need iconv.dll and intl.dll to work

LoRd_MuldeR
21st March 2006, 02:47
the program need iconv.dll and intl.dll to work

You talk about the MPlayer/MEncoder?
Depends on what build you use. Some builds require those DLLs...

The GUI application does not need any DLLs


Try celtic's latest build. The .7z includes all you need:
http://ffdshow.faireal.net/mirror/mplayer/

Or this one, which has some additional patches included:
http://forum.doom9.org/showthread.php?p=802171#post802171

Romario
21st March 2006, 17:13
Lord_Mulder, your little frontend is very buggy, you should clean the source code from bugs.

LoRd_MuldeR
21st March 2006, 17:25
Lord_Mulder, your little frontend is very buggy, you should clean the source code from bugs.

Please tell me details if you notice any bugs, so I can check and maybe fix that :)

hellfred
21st March 2006, 18:43
Hi LoRd_M
I am just playing around with your GUI on my Laptop (WinXP SP2, 1280x800 display). As my monitor aspect is 1:1.6, the preview of a DVD is stretched in the horizontal achses. This is suboptiomal. One can fix the playback of mplayer using the option -moitoraspect 1.6 for every call of mplayer, or put monitoraspect=1.6 in the config file. But there will be some users of your GUI, that are not familiar with mplayer / mencoder and do not know of this trick. Therefore I suggest you to allow the user to set their monitor aspect in your GUI (evt. with a big fat warning, that this option is just to correct preview output).
This is taken von mplayer manpage:−monitoraspect <ratio> (also see −aspect)


Set the aspect ratio of your monitor or TV screen.

EXAMPLE:


−monitoraspect 4:3 or 1.3333
−monitoraspect 16:9 or 1.7777Otherwise I did not encouter any problems while clicking on your GUI. I did not do any real encoding with it yet. Nice peace of work. If you want to get added to the list of projects on mplayerhq.hu, I can drop a line on mplayer-cygwin mailing list for you.

Hellfred

LoRd_MuldeR
21st March 2006, 18:50
If you want to get added to the list of projects on mplayerhq.hu, I can drop a line on mplayer-cygwin mailing list for you.

If you think my little GUI is worth it, why not...
And I'll have a look at the monitor issue ASAP.

LoRd_MuldeR
21st March 2006, 20:27
Okay, hellfred
The -monitoraspect param will now be set to the correct value.
This is done automatically, so there's no new option.

hellfred
21st March 2006, 21:43
Works great here on my laptop. Really cool. Thankd for this feature!
May I ask, what your plan for this tool of yours is. Further enhancing it or leaving it the way it is?
I had a look at most of the win32 mencoder forntends listed on mplayerhq.hu, looking for one for easy dvd backup. I wanted to have one that will help me with cropping and resizing of the dvd, when black bars have to be removed. Just the way e. g. StaxRip works.
There the cropping parameters are auto-detected, the user can override it in a nice intuitiv crop dialog. Further on there is a slider for resizing the cropped output. When one moves the slider, different resolution (with width and hights modolo 16) are presented together with the resulting aspect error, so the user knows how much the picture gets distorted for the different resolutions. I really like StaxRip for this feature, but as I mainly do one pass cfr encodes with x264 I dislike having to copy/decript dvd source to hd before encoding. This means additional processing time and huge intermediat files. Using mencoder, there is neither the need for decryptiong the dvd beforehand nor for intermediat files.
MeWig is supposed to do auto-cropping and resizing suggestions. But development of MeWig is paused, and for me the automatism of cropping and resizing fails on main titles of dvds. (It works for reencoding avis and single chapters of the dvd, but for the full movie it just consumes CPU cycles and gives no results). And I think it can not keep anarmorphic material anamorphic, always rescaling it to square pixels.
So now the question: Did you plan to enhance your GUI to help the user with cropping and resizing? This feature would make it my No. 1 DVD backup solution!

Hellfred

P.S.: Have a look at the German gleitz/doom9 forum for selurs x26x guid and manual for a nice decription of further x264 options for high quality encodes.man page (http://forum.gleitz.info/showthread.php?t=26187&highlight=x264) und Wissenswertes rund um x264 (http://www.flaskmpeg.info/board/thread.php?postid=54931)

LoRd_MuldeR
21st March 2006, 23:27
Future plans? hm... At the moment it does everything I need, so there are no big things planned. One thing I'll do, is adding some x264 profiles, because at the moment it will always encode with high (slow) settings. Other things might be added if people ask for them...

I've just added the auto-cropping you requested. In order to use it, keep the "Crop" filter disabled and press the Preview button. Once you return from preview, the cropping filter has been set to the correct values. You just need to enable it then :)

See download link above.

hellfred
22nd March 2006, 09:25
One thing I'll do, is adding some x264 profiles, because at the moment it will always encode with high (slow) settings. Other things might be added if people ask for them...
I was already wondering if mencoder is starte with more x264encopts as one can set via the option tab ("denoise"=inloop filter? and adaptiv quantization). Is there a way to learn what you actually use to start mencoder?
From the error message that I recieve from my testings right now I can see that you enable subq 7. My "homegrown" mencoder buids do not support it yet. So I have to update x264 and rebuild mencoder, but that is ok. But with the verbosity level you use for mencoder, the parameters are not repeated in mencoders output.
Addind Sharktooths profiled is a great idea.
Here I have another one:
If you do not want to update your entire GUI with every new and interesting switch for x264 and mencoder, you could add textboxes for those. One for general mencoder options, and one for x264encopts, that are not yet supported. The user could input every not yet supported parameter he would like to use for the encoding, and your GUI can add them to the mencoder command line. That is, if the user has input anything to the textboxes.
Additional -x264encopts options one evt. wants to test/use (already existing)
turbo=0:bime:psnr
Additional mencoder options one evt. wants to test/use (already existing)
-info name=anyname:subject=MyBirthdayPartyVideo
Those are just examples to illustrate what i suggest.
It is yours to decide if this is worth the time for programming. I woud certanly use such a featur, especially as yout gui provides me with the possibility to encode only some frames. That is ideal for tweaking x264 options on the source at hand.
By the way, some ppl on this list would prefere getting a raw video stream to mux it with mp4box later on.

Hellfred

hellfred
22nd March 2006, 10:17
I wanted to check the autocop feature.
For an avi without black bars, autocrop suggests to crop some lines on the hight to make it modolo 16. Well done.
On a dvd that does have a very thin black bar (maybe one or two pixel) on the top and bottom, auto crop suggestes to crop 8 lines form top and bottom each, so modolo 16 is kept. (Der Untergang)
The DVD that MeWig could not process, make troubles with your GUI, too. But after further investigation, i think that the DVD structure is messed up. DVD in question is "28 Tage" (28 days?) with Sandra Bullock. Yet again! Pressing preview will make the GUI vanish/minimized and the DVD spinn up, but the preview will never appear. In the task manager I can see mplayer idling around, consuming no cpu cycles at all. So I started playback of this DVD from cmd.exe:
D:\Software\MEncoder264\MEncoder264.2006-03-22>mplayer.exe -dvd-device e:\ dvd:/
/ -v
MPlayer dev-CVS-060313-18:33-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.

get_path('codecs.conf') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplay
er/codecs.conf'
Reading D:/Software/MEncoder264/MEncoder264.2006-03-22/mplayer/codecs.conf: Can'
t open 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplayer/codecs.conf': No
such file or directory
Reading /opt/mplayer/etc/mplayer/codecs.conf: Can't open '/opt/mplayer/etc/mplay
er/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-dvd-device' 'e:\' 'dvd://' '-v'
get_path('font/font.desc') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mp
layer/font/font.desc'
font: can't open file: D:/Software/MEncoder264/MEncoder264.2006-03-22/mplayer/fo
nt/font.desc
font: can't open file: /opt/mplayer/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplaye
r/input.conf'
Can't open input config file D:/Software/MEncoder264/MEncoder264.2006-03-22/mpla
yer/input.conf: No such file or directory
Can't open input config file /opt/mplayer/etc/mplayer/input.conf: No such file o
r directory
Falling back on default (hardcoded) input config
get_path('.conf') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplayer/.co
nf'
Playing dvd://.
get_path('sub/') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplayer/sub/
'
WINSOCK2 init: 0
URL: dvd://
Reading disc structure, please wait...
There are 8 titles on this DVD.
There are 28 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (5.1) language: en aid: 128
[open] audio stream: 1 audio format: ac3 (5.1) language: de aid: 129
[open] audio stream: 2 audio format: ac3 (stereo) language: en aid: 130
[open] audio stream: 3 audio format: ac3 (5.1) language: en aid: 131
[open] number of audio channels on disk: 4.
[open] subtitle ( sid ): 0 language: en
[open] subtitle ( sid ): 1 language: de
[open] subtitle ( sid ): 2 language: nl
[open] subtitle ( sid ): 3 language: ar
[open] subtitle ( sid ): 4 language: bg
[open] subtitle ( sid ): 5 language: cs
[open] subtitle ( sid ): 6 language: da
[open] subtitle ( sid ): 7 language: fi
[open] subtitle ( sid ): 8 language: el
[open] subtitle ( sid ): 9 language: iw
[open] subtitle ( sid ): 10 language: hi
[open] subtitle ( sid ): 11 language: hu
[open] subtitle ( sid ): 12 language: is
[open] subtitle ( sid ): 13 language: no
[open] subtitle ( sid ): 14 language: pl
[open] subtitle ( sid ): 15 language: sv
[open] subtitle ( sid ): 16 language: tr
[open] subtitle ( sid ): 17 language: de
[open] subtitle ( sid ): 18 language: nl
[open] number of subtitles on disk: 19
DVD start cell: 0 pack: 0x0-0xF291
DVD start=0 end=2568660
STREAM: [null] dvd://
STREAM: Description: DVD stream
STREAM: Author:
STREAM: Comment:
DVD Seek! lba=0x0 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename dvd:// ext: (null)
DVD Seek! lba=0x0 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
Checking for Nullsoft Streaming Video
DVD Seek! lba=0x0 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 75266, FOUND 47, packet_size= 0, SEEMS A TS? 0
DVD Seek! lba=0x24 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
DVD Seek! lba=0x0 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
DVD Seek! lba=0x3986F cell=3 packs: 0x30072-0x4E074
Angle-seek synced by cell/vob IDN search!
==> Found audio stream: 131
==> Found audio stream: 129
==> Found audio stream: 128
==> Found audio stream: 130
DVD Seek! lba=0x730DF cell=5 packs: 0x71C5F-0x7F912
Angle-seek synced by cell/vob IDN search!
==> Found subtitle: 16
==> Found subtitle: 15
==> Found subtitle: 14
==> Found subtitle: 13
==> Found subtitle: 12
==> Found subtitle: 11
==> Found subtitle: 10
==> Found subtitle: 9
==> Found subtitle: 8
==> Found subtitle: 7
==> Found subtitle: 6
==> Found subtitle: 5
==> Found subtitle: 4
==> Found subtitle: 3
==> Found subtitle: 2
==> Found subtitle: 1
==> Found subtitle: 0
==> Found subtitle: 18
==> Found subtitle: 17
At this point mplayer takes a long pause (approx 22 seconds) with the same symptons as mentioned above (spinning tray and mplayer not eating any CPU cycles). Then it continuse with the following output and starts the playback:

--- END OF CELL !!! ---
DVD next cell: 6 pack: 0x7F913-0xAA18CAnd another 2 Second pause

Too many audio packets in the buffer: (4096 in 8257536 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
ds_fill_buffer: EOF reached (stream: video)
DVD Seek! lba=0x0 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
get_path('sub/') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplayer/sub/
'
get_path('default.sub') -> 'D:/Software/MEncoder264/MEncoder264.2006-03-22/mplay
er/default.sub'
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
No accelerated IMDCT transform found
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>14 BGR32 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12 supported
<vo_directx><FORMAT OVERLAY>1 I420 not supported
<vo_directx><FORMAT OVERLAY>2 IYUV not supported
<vo_directx><FORMAT OVERLAY>3 YVU9 supported
<vo_directx><FORMAT OVERLAY>4 YUY2 supported
<vo_directx><FORMAT OVERLAY>5 UYVY supported
<vo_directx><FORMAT OVERLAY>6 BGR8 not supported
<vo_directx><FORMAT OVERLAY>7 RGB15 supported
<vo_directx><FORMAT OVERLAY>8 BGR15 supported
<vo_directx><FORMAT OVERLAY>9 RGB16 supported
<vo_directx><FORMAT OVERLAY>10 BGR16 supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 supported
<vo_directx><FORMAT OVERLAY>14 BGR32 supported
<vo_directx><INFO>Your card supports 10 of 15 overlayformats
<vo_directx><INFO>hardware supports overlay
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
ao_dsound: Output Devices:
0 Primõrer Soundtreiber <--
1 Realtek HD Audio output
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:48000Hz Channels:2 Format:s16le
ao_dsound: Buffersize:192000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows DirectSound audio output
AO: Author: Gabor Szecsi <deje@miki.hu>
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=0,'MPlayer',0x32315659)
VO: [directx] 720x576 => 1024x576 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer@freenet.de>
<vo_directx><INFO>overlay with format YV12 created
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
DVD Seek! lba=0x6265 cell=0 packs: 0x0-0xF291 ??% ??% ??,?% 0 0
Angle-seek synced by cell/vob IDN search!
DVD Seek! lba=0x5FB4 cell=0 packs: 0x0-0xF291
Angle-seek synced by cell/vob IDN search!
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Uninit audio filters... 0.004 ct: 0.197 77/ 77 10% 3% 13.9% 3 0
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: libmpeg2
WINSOCK2 uninit
ao_dsound: DirectSound uninitialized

Exiting... (Quit)

D:\Software\MEncoder264\MEncoder264.2006-03-22>
The problem persists when I ask for the first title of the DVD (mplayer.exe dvd://1) but seams to go away for title 2 (mplayer.exe dvd://2) which is a much shorte trailer for the move contained on the dvd. If it is because the bug in the dvd structure does not harm the playback of title #2 or scanning the entire title is much faster as the trailer is much shorte, I do not know. Trying to preview title #2 from your GUI fails, too. (GUI gets minimized, no preview showing up, mplayer.exe not eating any CPU cycles). But at least after some 20 seconds the GUI reappears. Fot title #3 (another trailer) I get a preview after waiting some 10 seconds.
Swithing back to title 2 on the gui will lead to no spinning up anymore, and the GUI gets minimized and return after just one second. Strange problem!
I guess: MPlayer has some kind of workarounds set for this currupted DVD that are not triggert when started for preview. Do you use MPlayers the slave mode? This is something to post at MPlayer mailing list.

Hellfred

LoRd_MuldeR
22nd March 2006, 13:41
Seems like that DVD is causing the problem. Maybe it has some kind of "copy-protection" on it, that MPlayer can't handle correctly. Why there is a different behavior between clicking the "Prieview" button and starting it manually I don't know. Are you sure you used the exactly same build both times? I don't use -slave in Preview mode. Only switches used are -dvd-device f:\VIDEO_TS and dvd://1 plus -alang de to select the right audio stream. Maybe the last one makes the difference, since you did not use it when you started it manually. Did you try to copy that DVD to your hard-drive first and then play/encode it? Might be a workarround for that DVD... I tested various of my DVDs and never had a problem like that. There was a little problem with older MPlayer/MEncoder builds, which made the total percentage display wrong. This means I got 100% after only 20min of a 2hours movie were encoded. Encoding did continue and MEncoder displayed something like 384% in the end. But this problem seems to be fixed in the latest build.

hellfred
22nd March 2006, 14:32
Seems like that DVD is causing the problem. Maybe it has some kind of "copy-protection" on it, that MPlayer can't handle correctly.
There is not note that the dvd is copy-protected. The source of mplayer was last updated less than a week ago (13.03.2006).
Are you sure you used the exactly same build both times? I don't use -slave in Preview mode. Only switches used are -dvd-device f:\VIDEO_TS and dvd://1 plus -alang de to select the right audio stream. Maybe the last one makes the difference, since you did not use it when you started it manually.Yes, I did use the exactly same mplayer.exe that your gui uses, just from within cmd.exe. Adding -alang de to the cmd line die not change the behavior of cmd line invocation (spinning up, pause, start of playback).
Did you try to copy that DVD to your hard-drive first and then play/encode it? I will have to test that.

Hellfred

EDIT: I have to state more precisely what the GUI dose when I want it to preview the main movie (selecting title 1 chapter 1 in the correspondig dialog). When I press preview, your GUI does vanisch. It does not get minimized to system tray.
But hell, what I am talking about. After several tryes, the preview of the main title showed up and autocrop got its values. Really strange one. I bet the next time i load the DVD, it will fail once again. :(

LoRd_MuldeR
22nd March 2006, 15:55
Sounds to me like a bug in MPlayer I encountered before. But if I look at the log you posted, your build of MPlayer seems to be outdated (CVS-060313). Please get the latest build from celtic_druid (CVS-060321) and try again. This one works fine for me :)

http://ffdshow.faireal.net/mirror/mplayer/

hellfred
22nd March 2006, 22:22
Sounds to me like a bug in MPlayer I encountered before. But if I look at the log you posted, your build of MPlayer seems to be outdated (CVS-060313). Please get the latest build from celtic_druid (CVS-060321) and try again. This one works fine for me :)

http://ffdshow.faireal.net/mirror/mplayer/
Hey, I have been building my mplayer/mencoder binaries for years, I will never ever lower myself to dl a binary from somebody else :D
I will do the four necesary steps to updat mplayer today.But looking at cvs log of mplayerhq.hu, I guess the possibility fo something being broken just now is quite high...
I just want to ask you some necessary information for submitting your project to mplayerhq.hu. Usually the name of the project is given and a link to its homepage. Shall that be this thread, or do you want to present your GUI somewhere else?


Hellfred

LoRd_MuldeR
22nd March 2006, 22:47
Hey, I have been building my mplayer/mencoder binaries for years, I will never ever lower myself to dl a binary from somebody else :D
I will do the four necesary steps to updat mplayer today.But looking at cvs log of mplayerhq.hu, I guess the possibility fo something being broken just now is quite high...
I just want to ask you some necessary information for submitting your project to mplayerhq.hu. Usually the name of the project is given and a link to its homepage. Shall that be this thread, or do you want to present your GUI somewhere else?


Hellfred

If you still think it's worth it, you might post a link to my homepage (http://mulder.at.gg/) and I'll add the program there. Linking to this thread maybe is a bad idea, since you never know when your threads are closed or when you get banned/suspended (especially if you mention the word "VfW" now and then ^^).

I still think you should make a new build of MEncoder/MPlayer from the CVS asap or at least try the latest celtic build. Only to check if the problem you described above has been fixed. If the problem is still there, we'll have to look for a solution...

hellfred
22nd March 2006, 23:02
If you still think it's worth it, you might post a link to my homepage (http://mulder.at.gg/) and I'll add the program there. Linking to this thread maybe is a bad idea, since you never know when your threads are closed or when you get banned/suspended (especially if you mention the word "VfW" now and then ^^). Jehova!Jehova!Jehova! :)
Your GUI is light, but quite nice and easy to use. Just compare it to other win32 mencoder guis yourself.

I still think you should make a new build of MEncoder/MPlayer from the CVS asap or at least try the latest celtic build. Only to check if the problem you described above has been fixed. If the problem is still there, we'll have to look for a solution... Uhm, lets seelibavcodec/libavcodec.a(xvid_rc.o):xvid_rc.c:(.text+0x1e): undefined reference to `mkstemp'
libavcodec/libavcodec.a(xvid_rc.o):xvid_rc.c:(.text+0x26d): undefined reference to `mkstemp'
collect2: ld returned 1 exit status
make: *** [mplayer.exe] Error 1 Looks like I need to get xvid 1.1, too (or just disable it)

Hellfred

I have just disabled xvid for this compile (I still have a xvid 1.1 beta 2 installed) and tryed opening the problematic DVD from within the gui once more. No luck again: Your gui fanishes, the dvd drives spinns up and that's it. I have been waiting for the preview for approx 5 minutes now - and just killed mplayer.exe via taskmanager. Now I try to open the dvd directly from cmd.exe with parameters -dvd-device e:\ dvd://1 -alnag de -v, and the dvd will open after the usual pause and error message.

EDIT: Oh yes, this one can drive you nuts. You think, hey, in cmd.exe I usually ask for no spcific language or for de, while the GUI defaults to en. So lets try with -alang en from en and expect it to fail. But it will start. Then I go bak to the GUI just to see that now the preview starts both for english and german soundtrack fine. Looks like mencoder is learning how to handle this DVD after the first successfull access to the main movi via cmd.exe. But no chance if you start from the GUI.
/me giving up.

LoRd_MuldeR
22nd March 2006, 23:27
Okay, I've added MEncoder264 to the projects on my homepage.

hellfred
22nd March 2006, 23:46
I have just send the mail to the mplayer cygwin mailing lists, dedicated to the window port of mplayer/mencoder and its win32 frontends. Soon your project will be listed on mplayerhq.hu :)

Hellfred

killerhex
24th March 2006, 17:31
i have a 1ghz 256mb ram which build of mplyer would be good for me

LoRd_MuldeR
24th March 2006, 20:30
i have a 1ghz 256mb ram which build of mplyer would be good for me

Use the build that suits your type of CPU or use one with runtime CPU detection.
Last one would be slower of course.

CPU clock and RAM size don't matter for choosing the right build ^^

killerhex
25th March 2006, 13:35
how do i chose .mkv container the encodes are coming out .avi when i encode to x264 i like mkv container better


and nice work on the gui

celtic_druid
25th March 2006, 13:49
mencoder has a mkv demuxer only. Same goes for libavformat, not that I would really recommend -of lavf anyway.

LoRd_MuldeR
25th March 2006, 16:19
how do i chose .mkv container the encodes are coming out .avi when i encode to x264 i like mkv container better

and nice work on the gui

All you can do is this:
Take the created AVI, extract the audio/video stream and remux it to MP4 with MP4Box. It's also possible to let MEncoder output raw streams instead of AVI container, but then you'll have to mux it manually.
Maybe I'll add automated MP4 output via MP4Box. Would that help?

killerhex
26th March 2006, 07:54
yes it would help

LoRd_MuldeR
26th March 2006, 14:25
yes it would help

I'll do ASAP, but ATM I'm busy :o

hellfred
4th April 2006, 15:25
Hi LoRd_MuldeR
Some times ago I got feedback from MPlayerHQ.hu concerning adding your little GUI. It was:
>... it's impossible to link to the project
> directly.
So if you want it mentioned, it would be good if you could provide a link to the project on your webspace.

Hellfred

LoRd_MuldeR
4th April 2006, 18:36
Hi LoRd_MuldeR
Some times ago I got feedback from MPlayerHQ.hu concerning adding your little GUI. It was:
>... it's impossible to link to the project
> directly.
So if you want it mentioned, it would be good if you could provide a link to the project on your webspace.

Hellfred

The direct download links can be found on my homepage...
If one of the links didn't work, maybe the server was busy. For me they seem to work fine.

hellfred
5th April 2006, 12:01
The direct download links can be found on my homepage...
If one of the links didn't work, maybe the server was busy. For me they seem to work fine.
Diego wants to try to link to the project page of your GUI directly, not to the binaries. And that is impossible, as any deep links get redirected to your starting page. Try e. g. http://free.pages.at/borschdfresser/public/home/html/projects.html

Hellfred

LoRd_MuldeR
5th April 2006, 19:24
Understood.

I changed the site to allow deep links. But I can't upload the new files currently, because the server is out of disk-space and rejects all uploads. Need to wait until they fix the problem...

//EDIT

Uploaded now :)

hellfred
5th April 2006, 20:58
Understood.

I changed the site to allow deep links. But I can't upload the new files currently, because the server is out of disk-space and rejects all uploads. Need to wait until they fix the problem...

//EDIT

Uploaded now :)
OK, I will forward this information.

Hellfred

LoRd_MuldeR
10th April 2006, 02:47
*UPDATE*

Added MP4 output and some x264 profiles :cool:

hellfred
11th April 2006, 20:32
Hi MuldeR
I saw that mplayer got a fix for opening DVD's under MinGW that might have been the cause for the infinite delay of preview that I noticed.
So I have updated mplayer/mencoder and your GUI.
But version 1.0.1.0 from the mirrow has a bug:
When opening the DVD and trying to preview it, the -along switch gets illegal arguments
MPlayer dev-CVS-060411-18:59-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Unknown option on the command line: -alangde,en
Setting process priority: belownormal
MPlayer dev-CVS-060411-18:59-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Unknown option on the command line: -alangen,en
Setting process priority: belownormal
MPlayer dev-CVS-060411-18:59-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Unknown option on the command line: -alangnl,en
Setting process priority: belownormal
MPlayer dev-CVS-060411-18:59-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Unknown option on the command line: -alangfr,en
Setting process priority: belownormal
First attempt was to get German soundtrack. "de" gets added without any whitespace after -alang, followed by ",en".
Second attempt was to get English soundtrack. This time "en" gets added without any whitespaces after -alang, followed again by another ",en". Same happens with Netherland and French soundtrack.

Hellfred

killerhex
12th April 2006, 00:51
can you make one with xvid

LoRd_MuldeR
12th April 2006, 03:19
can you make one with xvid

Nope. This GUI is for x264, XviD support is not planned ATM.

LoRd_MuldeR
12th April 2006, 03:20
*UPDATE*

v1.0.1.1

1. Fixed DVD bug reported by hellfred
2. Fixed 2-pass encoding (broken in last version)

LoRd_MuldeR
12th April 2006, 17:16
*Update*

v1.0.1.2

1. Fixed auto-crop for new MPlayer builds
2. Made "Fast first pass" optional
3. Some changes to MP4 output
4. Minor bugfixes

rhys87
16th April 2006, 14:16
great program for people new to x264 encoding, i was wondering what the quality setting has the x264 settings at. Like motion search, etc.... It would be good if the same profiles that are used in MeGUI and StaxRip could be put into this program.

LoRd_MuldeR
16th April 2006, 15:47
Do we really need that many profiles ???
I want to keep things simple. This is what I got this far:

Insane:
frameref=16:bframes=3:me=4:subq=7:brdo:deblock:deblockalpha=0:deblockbeta=0
:bime:b_adapt:cabac:b_pyramid:weight_b:mixed_refs:chroma_me:trellis=2
:nofast_pskip:i4x4:i8x8:8x8mv:b8x8mv:4x4mv:8x8dct

Quality:
frameref=6:bframes=3:me=3:subq=7:brdo:deblock:deblockalpha=0:deblockbeta=0
:bime:b_adapt:cabac:b_pyramid:weight_b:mixed_refs:chroma_me:trellis=1
:i4x4:i8x8:8x8mv:b8x8mv:4x4mv:8x8dct

Intermediate:
frameref=3:bframes=0:me=2:subq=5:nobrdo:deblock:deblockalpha=0:deblockbeta=0
:nobime:nob_adapt:cabac:nob_pyramid:noweight_b:nomixed_refs:chroma_me:trellis=0
:noi4x4:noi8x8:8x8mv:b8x8mv:no4x4mv:no8x8dct

Fast:
frameref=1:bframes=0:me=1:subq=1:nobrdo:deblock:deblockalpha=0:deblockbeta=0
:nobime:nob_adapt:nocabac:nob_pyramid:noweight_b:nomixed_refs:nochroma_me:trellis=0
:noi4x4:noi8x8:no8x8mv:nob8x8mv:no4x4mv:no8x8dct

rhys87
16th April 2006, 16:30
oh ok, thanks for the details. Its just that the quality setting takes ages for me, beautiful results though :)

LoRd_MuldeR
16th April 2006, 17:21
oh ok, thanks for the details. Its just that the quality setting takes ages for me, beautiful results though :)

I recommend "quality", because it uses the full power of x264.
Of course it's much slower then ASP-Codecs like XviD/DivX...

LoRd_MuldeR
16th April 2006, 22:37
*Update*

v1.0.1.3

1. Added new option: "Output framerate" *
2. Suppressing "skiped/duplicated frame" messages **


* Required to properly encode WMV files and other VFR media
** Hopefully avoids heavy CPU load in the GUI application

LoRd_MuldeR
17th April 2006, 04:06
*Update*

v1.0.1.4

New style of encoding GUI:

http://img211.imageshack.us/img211/2117/newgui2mg.gif

celtic_druid
17th April 2006, 07:20
In my mencoder builds using -noskip should prevent skipped frames.

LoRd_MuldeR
17th April 2006, 10:37
In my mencoder builds using -noskip should prevent skipped frames.

Thanks for the info :)

But is this a good idea? For example if I encode a WMV file, then MPlayer/MEncoder detects a framerate of 1000 fps. So encoding without "-ofps" is a bad idea. With "-ofps 25" I get a lot of skipped or duplicated frames, but the resulting files plays really fine. How would MEncoder change a variable framerate to 25fps without skipping/duplicating frames? Can't imagine how this could work without destroying A/V sync...

But I will do some testing ASAP!

celtic_druid
17th April 2006, 12:24
Well for your purposes I guess it isn't that usefull, but if you had say an ogm @ 23.976fps with vorbis audio and wanted to convert to an avi @ 23.976fps with mp3 audio, then you run mencoder.exe -ovc copy -oac mp3lame input.ogm -o output.avi and get a bunch of skipped frames. If you add -noskip, then the output has just as many frames as the input @ the same rate.

stax76
17th April 2006, 12:33
Maybe you'll like this nice screenshot freeware (http://www.mirekw.com/winfreeware/mwsnap.html).

LoRd_MuldeR
17th April 2006, 12:34
Well for your purposes I guess it isn't that usefull, but if you had say an ogm @ 23.976fps with vorbis audio and wanted to convert to an avi @ 23.976fps with mp3 audio, then you run mencoder.exe -ovc copy -oac mp3lame input.ogm -o output.avi and get a bunch of skipped frames. If you add -noskip, then the output has just as many frames as the input @ the same rate.

Just tried it. Seems to work nice, even with WMV files.
I'm not sure how it works, but it does :D

Will be added to new version ASAP.


BTW: celtic_druid = most helpful user @ doom9 http://www.soadfans.de/forum/images/armageddon/smilies/2%20(4).gif

LoRd_MuldeR
17th April 2006, 12:38
Maybe you'll like this nice screenshot freeware (http://www.mirekw.com/winfreeware/mwsnap.html).

Good utility. I'm going to use that one in the future :cool: