View Full Version : sx264 - qt based x264 gui (Linux&Windows)
Selur
9th December 2008, 11:52
Welcome to my an alpha (http://en.wikipedia.org/wiki/Beta_version#Alpha:_internal_test) thread about my little hobby project: sx264
It's an alpha and I'm developing it in my free time, so don't kill me if something does not work like it should. :D
sx264 is a small gui ment to convert X to x264.
Windows users need:
(there's a 'small' package under Downloads)
0. the Microsoft Visual C++ 2008 Redistributable Package to run sx264:
Microsoft Visual C++ 2008 Redistributable Package (x86) - 32bit
http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en (english)
Microsoft Visual C++ 2008 Redistributable Package (x64) - 64bit
http://www.microsoft.com/Downloads/details.aspx?familyid=BD2A6171-E2D6-4230-B809-9A8D7548C1B6&displaylang=en (english)
to really use sx264 you need the backend tools that sx264 uses:
1. x264.exe with mp4/mkv output and hrd patch (e.g. from http://x264.nl/)
2. MediaInfo - command line version (http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=90612)
3. mkvmerge (+.dlls it needs) of the mkvtoolnix package (z.B. von http://www.bunkus.org/videotools/mkvtoolnix/downloads.html#windows)
4. mp4Box (http://kurtnoise.free.fr/index.php?dir=mp4tools/)
5. tsMuxeR (http://www.smlabs.net/tsmuxer_en.html)
6. MPlayer and Mencoder (http://sourceforge.net/project/showfiles.php?group_id=205275&package_id=248631)
7. FFMpeg (http://sourceforge.net/project/showfiles.php?group_id=205275&package_id=248632)
8. NeroAacEnc (http://www.nero.com/eng/downloads-nerodigital-nero-aac-codec.php)
9. vstrip_ifo (z.B. http://www.mediafire.com/?9rvft5eet1d <- css free Version)
10. avsInfo (comes with the sx264 download)
11. sox (http://sourceforge.net/project/showfiles.php?group_id=10706&package_id=10619)
12. SetPriority (http://gilchrist.ca/jeff/SetPriority/index.html)
13. current sx264 version (for download see below under Downloads)
At the end the sx264 folder should contain:
avsInfo.exe, cygz.dll, ffmpeg.exe, libcharset.dll, libebml.dll, libiconv.dll, libmatroska.dll, MediaInfo.dll, MediaInfo.exe, mencoder.exe, mkvmerge.exe, MP4Box.exe, mplayer.exe, neroAacEnc.exe, (pthreadGC2.dll <- might be needed by x264) sox.exe, sx264.exe, tsMuxeR.exe, vStrip.dll, vstrip_ifo.exe, x264.exe
Comments for Vista user:
After the first start:
1. switch to the 'Misc'-register
2. activate 'Show additional misc settings'
3. switch to the 'Misc 2'-register
4. set the default paths to paths where your user got read/write-rights (you should set: sx264 path, output path, temp path)
5. switch to the 'Misc'-register again
6. deactivate 'Show additional misc settings'
7. press 'Save Profile as Default'
General comments: (for Windows&Linux user
After the first start::
1. switch to the 'Misc'-register
2. activate 'Show additional misc settings'
3. switch to the 'Misc 2'-register
4. set the "Font Path" to your system font folder (or any other folder with .ttf files)
5. switch to the 'Misc'-register again
6. deactivate 'Show additional misc settings'
7. press 'Save Profile as Default'
For Linux users:
sx264 is OpenSource und the SourceCode can be obtained under Downloads or from me via PM.
Compiling sx264: (when not using the binary build, see below under Downloads)
0. You need a current gcc version and the current qt-dev package installed. (to use it you also need a qt runtime environment on you system, which normally comes with the dev package)
1. Download the source code (see below under Downloads)
2. extract the source code
3. inside a console: switch to the console
4. create a make-file: qmake sx264.pro
5. start the compilation: make
To use sx264:
After the compilation copy the binary to a place you like (e.g. the binary path for all users: /usr/local).
Since sx264 is 'only' a graphical frontend you need additional tools to use sx264. These tool normally need to be up-to-date and need to be available via command line without entering a path. Here's a list of the tools you need:
x264 (http://www.videolan.org/developers/x264.html)
mplayer & mencoder (http://www.mplayerhq.hu/design7/dload.html)
ffmpeg (http://ffmpeg.mplayerhq.hu/download.html)
mediaInfo (http://sourceforge.net/project/showfiles.php?group_id=86862&package_id=90612)
tsMuxeR (http://www.smlabs.net/tsmuxer_en.html)
neroAacEnc (http://www.nero.com/eng/downloads-nerodigital-nero-aac-codec.php)
mkvmerge (part of mkvtoolnix: )
mp4box (part of gpac: http://www.bunkus.org/videotools/mkvtoolnix/downloads.html)
lsdvd (http://sourceforge.net/project/showfiles.php?group_id=133848)
Most of these tools should be available through the package management of your distribution. Personally I would recommend to at least compile x264 on you own.
As a little help here (http://ubuntuforums.org/showthread.php?t=786095) is a link for Ubuntu Users: HOWTO: Install and use the latest FFmpeg and x264.
About feature requests:
I'll listen to feature requests but can't promise anything. :)
Here are some feature requests that are known but not (yet?)implemented:
General Features:
- fileCheck check if ffmpeg/mencoder/mplayer/... are installed (+version check)
- specify a separate paths for each tool
- find a way to remove maximize button and remove it (under windows)
- give a notice that Lagrinth input is not supported since, neither ffmpeg nor mplayer can handle it. (LAGS)
- MultiInputSource -> SingleInputOutput
- better m2ts - overhead/file size calculation if needed (had no dts audio stream to test)
- command line support
- support for different languages
Audio Features:
- multi audio support
- add audio stretch (for mkv)
- add stretch/shrink audio on reencode
- ogg vorbis encoding (for mkv)
- ac3 encoding (for mkv/bluray/m2ts)
Muxing Features:
- add multiple subtitles to output
- add timecodes (for vfr material)
- multi audio support
- import subtitles from external mkv/mp4 source
- import chapters from external chapter file/mkv/mp4/dvd source
Not planned features:
1. extended Avisynth-Support like with MeGui+AvsP
2. support for additional output containers like .mov, .3gp,..
3. support for other encoders
4. decrypt dvds
5. .ac3/.ogg support inside .mp4 files
Known restrictions/bugs:
1. design inherent: sources that can't be handled by the mencoder/ffmpeg version you got on you system can't be processed.
2. Avisynth support: as soon as 'Yv12 Pass-Through' is enabled in DivX-Configuration avisynth support is broken on some windows systems
3. Avisynth support: interlacted material will be recognized as progressive unless the script contains AssumeBFF or AssumeTFF
About the License:
License needs to be GPL since I use the OpenSource QT Framework atm.
Thanks:
Thanks to all the pre-alpha testers and people that helped. :)
Screenshots
Over at http://www.mediahump.com/gallery/3457/ are some screenshots of sx264. :)
Downloads
sx264 Win32: http://www.selur.info/sx264/sx264_Alpha_rev573.zip
sx264 Win64: http://www.selur.info/sx264/sx264_Alpha_rev573_64bit.zip
sx264 Source: http://www.selur.info/sx264/sx264_AlphaSource_rev573.zip
sx264 Linux32bit binary: http://www.selur.info/sx264/sx264_Alpha_rev573_binary.zip
sx264 Linux64bit binary: http://www.selur.info/sx264/sx264_Alpha_rev573_64bit_binary.zip
Reading up on the licences I made a 'small' package for windows users containing most of the files needed.
I'll not update the package each time I update sx264, so download the package + the current windows binary to to get the most up-to-date sx264.
You still need to download NeroAacEnc and if needed the Microsoft Visual C++ 2008 Redistributable Package.
For the package:
http://www.multiupload.com/QMEUND4GN1
Please post all feedback&co about the alpha versions in this thread or via pm to me.
Have fun testing sx264. :)
Cu Selur
Ps.: I'll post all updates in the thread and modifiy the links in this post.
PPs.: the sx264config file and other sx264 data is located at:
win7: C:\Users\USERNAME\AppData\Roaming\sx264
winxp: C:\Documents and Settings\USERNAME\Application Data\sx264
linux: /home/USERNAME/.sx264/
Defaults are located in the sx264Config file.
buzzqw
9th December 2008, 12:09
Thanks Selur!
a truly great software! (and now i can test it even under win)
thanks!!
BHH
EDIT: just a hint for windows user
MAKE SURE YOU HAVE ALL NEEDED APPLICATIONS IN SX264 FOLDER OR IN SYSTEM PATH
gswudi
9th December 2008, 13:56
where can i find pcrecpp.dll?
Selur
9th December 2008, 14:05
Should come with mkvmerge (part of mkvtoolnix) if it doesn't come with current mkvtoolnix and mkvmerge doesn't need it anymore, sx264 shouldn't either. :)
-> Just checked works fine without, will modify the first thread. :)
I also added a note that pthreadGC2.dll <- might be needed by x264 if x264 is statically linked sx264 doesn't need it. :)
Cu Selur
flebber
9th December 2008, 14:10
Looks good. Will give it a try.:D
flebber
9th December 2008, 14:28
SX264 keeps crashing just after audio encoding, however I can't provide many details as I cannot find an error log or similar the program exits totally after windows reports error.
Is there a way to get crash logs so I can give you some useful info regarding crashes?
Selur
9th December 2008, 14:34
enable debug output under misc sx264 will then create a sx264Debug.txt file :)
If you choose 1pass encoding the next step should be muxing so something might be wrong there, if you choose 2pass encoding next step would be encoding using mencoder and x264,..
-> hard to tell what exactly went wrong withoug some infos what you were doing. :) (and knowing if you use windows or linux)
flebber
9th December 2008, 15:15
Got some info now. I am on Windows XP.
- audio encoding finished --
decoderCL:
ffmpeg -i "C:\Rip\Source Video\Probot_-_Shake_Your_Blood-sic-ucv.mpeg" -v 0 -vcodec rawvideo-croptop 36 -cropbottom 44 -cropleft 18 -cropright 80 -s 352x288 -vsync 0 -an -pix_fmt yuv420p -f rawvideo -
encoderCL:
x264 --pass 1 --bitrate 950 --level 5.1 --ref 1 --keyint 250 --min-keyint 25 --scenecut 40 --bframes 3 --b-bias 0 --b-pyramid --weightb --direct auto --ratetol 1 --cplxblur 20 --qcomp 0.6 --qblur 0.5 --vbv-maxrate 300000 --vbv-bufsize 300000 --qpmin 1 --qpmax 51 --qpstep 4 --ipratio 1.4 --pbratio 1.3 --chroma-qp-offset 0 --direct-8x8 -1 --partitions i4x4,i8x8,p8x8,b8x8 --me dia --subme 2 --trellis 0 --aq-mode 1 --aq-strength 1 --deadzone-inter 11 --deadzone-intra 11 --threads auto --thread-input --sar 1067:1000 --filter -1,0 --no-psnr --no-ssim --stats "C:\Rip\Produced\Probot - Shake Your Foundation.stats" --progress --fps 25 --output NUL - 352x288
x264 [info]: using SAR=1067/1000
x264 [warning]: VBV bitrate (300000) > level limit (240000)
x264 [warning]: VBV buffer (300000) > level limit (240000)
x264 [info]: using cpu capabilities: MMX2 SSE2 Cache64
x264 [info]: profile Main, level 5.1
x264 [info]: final ratefactor: 15.34
-- video encoding 2nd pass --
encoderCL:
x264 --pass 2 --bitrate 950 --level 5.1 --ref 7 --keyint 250 --min-keyint 25 --scenecut 40 --bframes 3 --b-bias 0 --b-pyramid --weightb --direct auto --ratetol 1 --cplxblur 20 --qcomp 0.6 --qblur 0.5 --vbv-maxrate 300000 --vbv-bufsize 300000 --qpmin 1 --qpmax 51 --qpstep 4 --ipratio 1.4 --pbratio 1.3 --chroma-qp-offset 0 --direct-8x8 -1 --partitions i4x4,i8x8,p8x8,b8x8 --me umh --merange 16 --subme 6 --8x8dct --trellis 1 --psy-rd 1:0.5 --aq-mode 1 --aq-strength 1 --deadzone-inter 11 --deadzone-intra 11 --threads auto --thread-input --sar 1067:1000 --filter -1,0 --no-psnr --no-ssim --stats "C:\Rip\Produced\Probot - Shake Your Foundation.stats" --progress --fps 25 --output "C:\Rip\Produced\Probot - Shake Your Foundation.264" - 352x288
x264 [info]: using SAR=1067/1000
x264 [info]: using cpu capabilities: MMX2 SSE2 Cache64
x264 [error]: empty stats file
x264 [error]: x264_encoder_open failed
Videoencoder: Error - QProcess::Crashed
Videoencoder: exitCode: -1, ExitStatus:
Now running with mencoder and all appears to be working fine. Final ouput was good and correct for settings.
Selur
9th December 2008, 15:24
(iirc ffmpeg as decoder is only needed for flv/swf input, but should normally work for other input too, strange)
Thanks for the info, will try to reproduce the problem with ffmpeg as decoder here. :)
Found the problem:
"-vcodec rawvideo-croptop 36 "
there's a space missing -> will fix and update the download links :)
Cu Selur
Selur
9th December 2008, 16:06
*fixed*
- missing space in ffmpeg calls
-> updated downloads in first post
Cu Selur
Pitti
10th December 2008, 01:27
Hallo Selur,
thx for your software.
I'm trying to compile this on Debian_etch_AMD_64 and this errormsg pops up:
nwidget/NListWidget.cpp: In member function 'virtual void NListWidget::clear()':
nwidget/NListWidget.cpp:8: error: 'class NListWidget' has no member named 'removeItemWidget'
make: *** [NListWidget.o] Fehler 1
can you help me please? (evtl sogar in deutsch)
Pitti
Adub
10th December 2008, 03:25
There seems to be a small issues when muxing .aac files. I ran a test file that contained .aac audio. It went through all of the motions just fine, but when it said it was done, there was no output file. So, I said do not delete sources, and copy and pasted the mkvmerge line and I got this:
mkvmerge v2.4.0 ('Fumbling Towards Ecstasy') built on Nov 24 2008 12:14:35
Error: The file '/home/****/End of the World 1.MP4 DELAY 0ms.aac' has unknown type. Please have a look at the supported file types ('mkvmerge --list-types') and contact the author Moritz Bunkus <moritz@bunkus.org> if your file type is supported but not recognized properly.
Hmm..or maybe it is complaining because my original file is named End of the World 1.MP4.m4v, and your program succesfully chopped of the last 3 characters, but MKVmerge is choking on the "End of the World 1.MP4 DELAY 0ms.aac" part with the double periods.
Otherwise, awesome program. I will mess with it some more once finals are done.
edit: nope, it seems that .aac is not supported by mkvmerge. Weird.
Selur
10th December 2008, 05:32
@Merlin7777: I'll try to see if I can reproduce it. Would be cool if you could provide me a small sample of the input file you used. :)
It's definitely not that mkvmerge doesn't support .aac input at all, it probably just needs something. ;)
@Pitti:tried to reproduce the problem on a 64bit Kubuntu system but sx264 compiles there without a problem. I uploaded the binary it produced here: http://stashbox.org/320350/sx264_alpha_rev411_64bit_binary.zip
Cu Selur
Adub
10th December 2008, 07:26
I'll get you a link to the file.
Here you go:
http://www.mediafire.com/download.php?2wmn4nzynjf
Selur
10th December 2008, 07:40
Okay, something seems to be wrong with the aac audio inside the file or how I handle it since, mp4box&mkvmerge crash on it but when I reencode the stream everything works like it should. :)
Okay, mp4box provides some info: "Audio isn't MPEG-2/4 AAC with ADTS"
Seems like I got a bug when passing through aac audio -> will try to fix it :)
Found the bug and a fix will upload a fixed version. :)
Cu Selur
Henrikx
10th December 2008, 08:43
@Pitti
Try to install :
libc6-amd64
libc6-dev-amd64
GCC:
gcc-4.3-multilib
lib64mudflap0
GCC++
g++-4.3-multilib
lib64stdc++6-4.3.dbg
Selur
10th December 2008, 08:43
*fixed*
- small bug when passing through aac audio (forcing now ffmpeg for extraction of aac audio)
-> updated 1st post :)
Cu Selur
Ps.: also made a 'small' package for windows users
Adub
10th December 2008, 17:46
Great! Thank you.
Edit: Oh, and is there a reason why p4x4 is disabled?
Selur
10th December 2008, 19:53
Oh, and is there a reason why p4x4 is disabled?
it should only be disabled when it's not allowed by the profile@level + your options disallow it.
p4x4 is not allowed when level > 3 or when level = 3 and B-Frames are enabled. (iirc x264 doesn't check this and you should also find some info about it somewhere in the forum :))
In general sx264 should not allow settings that violate a specific profile@level unless you select unrestricted as level.
Cu Selur
Dark Shikari
10th December 2008, 19:59
it should only be disabled when it's not allowed by the profile@level + your options disallow it.
p4x4 is not allowed when level > 3 or when level = 3 and B-Frames are enabled.Where do people keep coming up with these things? :rolleyes:
p4x4 is allowed at all levels. The only level-related restriction with regards to partitions is on bidirectional sub-8x8 partitions, which x264 doesn't support.
Selur
10th December 2008, 20:08
@Dark Shikari: one of the comments I got this from was:
Don't use p4x4 partitions with level >= 3. (This is one of the constraints x264 doesn't warn about.) (Strictly speaking p4x4 is allowed in the standard, but there's some restrictions on where it can be used, and x264 doesn't check those restrictions, so the only way to be sure is to disable p4x4.) see: http://forum.doom9.org/showpost.php?p=996577&postcount=5
don't remember where I got the other part from, but if you say p4x4 will cause no problem at all, I'll happily remove the restriction. :)
Cu Selur
Dark Shikari
10th December 2008, 20:20
@Dark Shikari: one of the comments I got this from was:
see: http://forum.doom9.org/showpost.php?p=996577&postcount=5
don't remember where I got the other part from, but if you say p4x4 will cause no problem at all, I'll happily remove the restriction. :)
Cu SelurTheoretically, he is right.
In practice, not even the reference encoder abides by that rule. It is meaningless, and, quite literally, nobody cares.
Selur
10th December 2008, 20:27
Okay, just wanted to make sure that it wouldn't cause any incompatibilities. :)
-> I'll lift the restriction.
---
Update:
*changed*
- allowing p4x4 at all levels
see: http://forum.doom9.org/showthread.php?p=1222781 and following; in short: it's not standard conform, but nobody cares
-> updated 1st post
Sharktooth
10th December 2008, 21:33
megui still enforces the standard.
Selur
10th December 2008, 22:11
-> started a small poll to see what the community prefers, see: http://forum.doom9.org/showthread.php?t=143419
isn't much of a change to me anyway, so I'll go with the community there :)
Cu Selur
froggy1
10th December 2008, 23:22
@ Selur
Why fight about/discuss p4x4 so much? If my memory serves me correctly, pengvado (akupenguin here on doom9) once said that out of all partitions, p4x4 is the one that gives the least compression and basically has little to no benefit at all on a lot of content. Do you really think you will see noticeable effects both in compression and quality if you turn on p4x4 or disable it? My guess is you won't
Selur
10th December 2008, 23:34
The question is not if it helps with compression, it's whether one should care about standard conformity.
Since (I think) most people assume when they select a specific profile@level in a gui the output will meet the restrictions of this selection, I think it's a good idea to ask what people want if you don't deliver what they suspect. :)
Cu Selur
froggy1
11th December 2008, 00:12
you want standard conformity? then go find another encoder as x264 won't deliver full standard conformity no matter how much you tweak its options. It may come (very?) close to the standard but full conformity is out of the question at the moment. As Dark said, you will probably have to stop using cabac and probably a few other things
Dark Shikari
11th December 2008, 00:14
you want standard conformity? then go find another encoder as x264 won't deliver full standard conformity no matter how much you tweak its options. It may come (very?) close to the standard but full conformity is out of the question at the moment. As Dark said, you will probably have to stop using cabac and probably a few other thingsI was being pedantic in pointing out every last little thing that could theoretically violate the spec. ;)
I doubt any other encoders care about such things either.
Selur
11th December 2008, 00:26
I prefer to stay close to standard, and not break it if I must not. I also like x264 and will use it further even when it might not be full standard conform. If you don't like that I see not how I could help. :)
I totally got Dark Shikaris point about p4x4 that if nobody cares about p4x4 restrictions it might be valid to use it. I just think it's a valid question to ask others that might want to use the gui I what they prefer. Seems like you don't care about any compatibility that's fine with me. :)
Cu Selur
Pitti
11th December 2008, 04:24
@Pitti:tried to reproduce the problem on a 64bit Kubuntu system but sx264 compiles there without a problem. I uploaded the binary it produced here: http://stashbox.org/320350/sx264_alpha_rev411_64bit_binary.zip
Cu Selur
Hallo Selur,
thx for trying to help me.
But its not working. Your 64bit bin 413 crashing on my 64er Etch.
Seems to be there is a conflict with the libraries between kubuntu and Debian.
I have also tried to compile the rev.413 with the same error.
nwidget/NListWidget.cpp:8: error: ‘class NListWidget’ has no member named ‘removeItemWidget’
For now i have these line complemented out and the process was successful ;)
Pitti
Adub
11th December 2008, 05:05
How up to date is your qt version?
Selur
11th December 2008, 07:11
This might cause a problem with zone and chapter option, since this might stop sx264 from clearing the chapters and zones.
Checking QT Documentation: "This function was introduced in Qt 4.3."
-> I agree with Merlin7777, it might help of you update your qt version.
iirc qt 4.3 was released around june 2007, 4.4 was released around may 2008, I don't think that I used any options that were introduced with 4.4 but 4.3 seems to be mandatory to run sx264. :)
Cu Selur
JxPhoenix
11th December 2008, 21:17
awesome program!! it gives you a very wide range of options to use, finally i was capable of converting videos in h.264 quality for my iPod.
Thanks a lot!
Henrikx
11th December 2008, 23:33
sx264 Test with - OpenSuse 11 - KDE4 works fine.
http://www.imgbox.de/users/public/thumbnails/m22712x154_t.gif (http://www.imgbox.de/?img=m22712x154.png)
flebber
12th December 2008, 01:39
I have tried all analysers but none will seem to accept mp2 input. FFmpeg appears to analyse all data and then errors no audio input.
x264Model: grabDelayFromFilename -> 19
Collected the following audio infos:
Audiostream count = 1
x264Model: grabDelayFromFilename -> 19
FfmpegAnalyser analyses: C:\Rip\Source Video\Anthrax_-_Black_Lodge Tc0 L2 2ch 44.1 224 DELAY 19ms.mp2
Collected the following audio infos:
Audio format = mp2
Audio bitrate = 224
Audio channels = 2
Audio sample rate = 44100
x264Model: grabDelayFromFilename -> 19
analysing audio data,..
Collected the following audio infos:
Audio format = MPEG-1 Audio layer 2
Audio bitrate = 224
Audio channels = 2
Audio sample rate = 44100
Audio delay = 0
Audiostream number = 1
Redoing analysis with ffmpeg as analyser!
Setting ffmpeg as decoder.
x264Model: grabDelayFromFilename -> 19
x264Model: grabDelayFromFilename -> 19
FfmpegAnalyser analyses: C:\Rip\Source Video\Anthrax_-_Black_Lodge Tc0 L2 2ch 44.1 224 DELAY 19ms.mp2
Collected the following audio infos:
Audio format = mp2
Audio bitrate = 224
Audio channels = 2
Audio sample rate = 44100
Actually I have now converted it to mp3 vbr192 with lame. and no analyser lets me select it as a audio track same error as above similar log. Interestingly and probably nothing to do with your program (but the external ones)they all guessed a bifferent bitrate.
FfmpegAnalyser analyses: C:\Rip\Source Video\Anthrax_-_Black_Lodge 0ms.mp3
Collected the following audio infos:
Audio format = mp3
Audio bitrate = 160
Audio channels = 2
Audio sample rate = 44100
analysing audio data,..
Collected the following audio infos:
Audio format = MPEG-1 Audio layer 3
Audio bitrate = 167
Audio channels = 2
Audio sample rate = 44100
Audio delay = 0
Audiostream number = 1
Redoing analysis with ffmpeg as analyser!
Setting ffmpeg as decoder.
analysing audio data,..
Collected the following audio infos:
Audio format = MPEG-1 Audio layer 3
Audio bitrate = 167
Audio channels = 2
Audio sample rate = 44100
Audio delay = 0
Audiostream number = 1
Redoing analysis with ffmpeg as analyser!
Setting ffmpeg as decoder.
Collected the following audio infos:
Audio format = mp3
Audio bitrate = 128
Audio channels = 2
Audio sample rate = 44100
Selur
12th December 2008, 08:12
@Henrik: You might want to adjust your dpi to your monitor, seems like the font size hints are off. :)
@flebber: found the problem :) there's a small copy&paste error, will fix it and upload a new version later. :)
Cu Selur
Henrikx
12th December 2008, 08:44
Yes. My monitor or Graphics card is broken.Synchronization is broken.
Fonts with max 70(?) dpi is possible. Next week I buy a new (Quad Core!!)
But the statement remains, sx264 works fine ...
Selur
12th December 2008, 10:00
rev415
*fixed*
- some minor bugs with seperate audio stream handling
*changed*
- limit p4x4 usage again on default
*added*
- option to allow p4x4 for all levels
*updated*
- Windows package: new mplayer, ffmpeg, mediainfo, x264
-> updated 1st post
Cu Selur
buzzqw
12th December 2008, 14:57
please use another service provider for download like mediafire
here is locked your speedshare :(
BHH
Selur
12th December 2008, 15:13
Tried mediafire, but only got an upload of about 80kbit/s. Didn't know speedshare blocks some regions of the net, works fine from here. :)
Here's an alternative Download to current windows package: http://www.fileqube.com/file/xLDRULs158932 hope this works for you.
Cu Selur
Pitti
13th December 2008, 06:15
This might cause a problem with zone and chapter option, since this might stop sx264 from clearing the chapters and zones.
Checking QT Documentation: "This function was introduced in Qt 4.3."
-> I agree with Merlin7777, it might help of you update your qt version.
iirc qt 4.3 was released around june 2007, 4.4 was released around may 2008, I don't think that I used any options that were introduced with 4.4 but 4.3 seems to be mandatory to run sx264. :)
Cu Selur
Ok. I have updated to QTv4.4.3 and now it works fine.
The first testings on ripping a DVD running also fine on the video part.
The audio part is not working. maybe neroaac hast trouble with the debian64.
and now i have a feature request :)
is it possible to add a logfile that includes the history.
jobid|starttime|endtime|fps
or expand the jobcontrol (like megui)
Pitti
PS: i like your tool.
Selur
13th December 2008, 07:09
iirc there's a thread in the forum which mentions some problems with NeroAacEnc and 64bit on some systems. ;)
is it possible to add a logfile that includes the history.
jobid|starttime|endtime|fps
Will think about it, it's probably possible, if I add it, I'll probably modify the report output. :)
Cu Selur
buzzqw
13th December 2008, 09:15
i have a sample (too big to upload) of vob where mediainfo or mplayer were unable to determine the frames count
the missing frame count is a stop for encoding in you application
i suggest that ABR encoding and CRF/QP encoding (where users have to specify the values of bitrate/crf/qp), sx264 should not stop encoding, since not knowing the frame count isn't important
BHH
Selur
13th December 2008, 09:28
sx264 should not stop encoding, since not knowing the frame count isn't important
FrameCount is used to:
1. calculate remaining time during encoding
2. calculate file size for 2pass Encoding (and 1pass bitrate Encoding to give some sort of a general 'size hint')
What did you do to the vob such that mediainfo and MPlayer both can't get the framecount? (sounds like the file is broken in some way)
If frame rate and video length are identified correctly I could add a workaround to calculate framecount. (not 100% accurate, but should work)
-> Are these identified correctly?
Cu Selur
buzzqw
13th December 2008, 10:08
the vob is a split from a bigger vob, so.. could be broken (and don't blame mediainfo or mplayer)
and yes, both lenght and fps are correctly indentified
just add a warning, and compute the frame count on videolenght/fps (or.. as i have said.. a panel with media proprierties.. editable by users)
thanks
BHH
Selur
13th December 2008, 10:18
don't like the panel idea, since missing properties mos times imply a problem with the source that might cause other problems, e.g. decoder/encoder crashing. :)
Modifying ReportInfos and thinking about adding a little history like Pitti wanted, with lines like:
#### StartTime: 11:05:02 #### D:\sx264\test.mp4 #### Average speed: 220.85fps #### Endtime: 11:05:04 ####
for each finished encode. :)
Will add a warning and calculate frameCount in MediaInfo-Analyser and MPlayer-Analyser after that. :)
Cu Selur
Selur
13th December 2008, 11:16
and yes, both lenght and fps are correctly indentified
Please recheck this for MPlayer since, MPlayer-Analyser always calculates FrameCount anyway.
So something really went wrong, or length and/or fps are missing or zero.
Cu Selur
froggy1
13th December 2008, 11:40
Tip: When using --pulldown in x264, --nal-hrd is required. Also looking at console output, no matter if one selects 3:2 or 6:4 pulldown, the program always passes --pulldown 32 to x264
nice GUI anyways, but definitely not something I will be using.
Selur
13th December 2008, 11:44
When using --pulldown in x264, --nal-hrd is required. Also looking at console output, no matter if one selects 3:2 or 6:4 pulldown, the program always passes --pulldown 32 to x264
thanks for the info, will fix :)
nice GUI anyways, but definitely not something I will be using.
can't win them all :D
Cu Selur
froggy1
13th December 2008, 12:03
thanks for the info, will fix :)
can't win them all :D
Cu Selur
you're welcome. And it's not about winning. I just don't like GUIs when it comes to encoding. I have nothing against it if others use it, but for me I stick to CLI stuff since I spend a great deal of time working on the CLI and are kinda addicted to it ;) The only GUI I would consider using is Ripbot264 due to its superior combination of simplicity and usability. GUIs that offer a gazillion of options are, IMHO, not only overloaded but also user unfriendly in regards to the not-so experienced/noob users. I for example, will need less time to write the MEncoder parameters on the command line, than to click checkboxes spread over multiple tabs which hold a considerable amount of options. I think that when Atak_Snajpera started developing Ripbot264, he not only looked at it from the perspective of the developer, but also from the perspective of the (noob) user. In the end, you get a program like Ripbot264, which as I said earlier is unbeatable when it comes to combining simplicity with usability and power.
Again, this is just how I see things and by all means it is not an attack or similar to what you're doing. In fact, I think you're doing a great job, and since this is early alpha release, who knows how this program will develop in the future? It can drastically change or then maybe not. :)
Selur
13th December 2008, 12:21
About simplicity: When starting to write the gui I thought about writing a simple wizard with questions&Co similiar to your h264enc, but then I realized I wouldn't really fresh up my c++ skill doing so, since most of the logic could be copied from h264Enc and combined with QWizard it would be a rather short project. So I started to write the gui mainly to write a gui for my needs, but since I showed it to some buddies and they liked it I decided to tune it and release it to the public. :) I too like RipBot264 for it's simplicity but since I personally like to have a lot of options to play with whatever I do it's not my usual tool to use. :) But who knows maybe I'll add a Wizard view in a later stage. :)
----
rev417
*added*
- Job History (Misc->Logging->Show job history)
- to MediaInfo Analyser: if no framecount was found calculate framecount if fps and length are present
*fixed*
- typo when selecting x264->pulldown
- making sure x264->pulldown can only be used when BluRay support is enabled
*cosmetics*
- changed some debug messages
-> updated 1st post
Cu Selur
froggy1
13th December 2008, 12:35
A wizard will be a good idea, however I don't think it will be the best option here. The biggest thing that will reduce the amount of options and thus bring a lot of simplicity to sx264, is if you design a robust presets system. A presets system that not only allows you to choose from different built-in presets, but for the more experienced user, also allows to write your own presets and load them into the program (just like h264enc allows that). If you develop a presets system, this will not only give you a great deal of simplicity on the user side, but also in the codebase side, since you will not have to deal with all the checkboxes/tabs/whatever in the code. I think the best thing to do here, is somehow find equilibrium (balance) between simplicity and the amount of code. The more code you have in the program, the buggier it can get due to too much variables/functions/etc that have to be considered which also requires a lot of time spend in debugging/reading code and fixing it
Selur
13th December 2008, 13:17
Yup, a preset system is a nice thing, though I don't think I'll implement a more complex one in the near future. :)
If you develop a presets system, this will not only give you a great deal of simplicity on the user side, but also in the codebase side, since you will not have to deal with all the checkboxes/tabs/whatever in the code.
Don't think so, since one would still require to have those checkboxes/tabs/whatever to allow to generate those presets. (if one wants to keep as much freedom as possible)
Cu Selur
Ps.: I like the filtering options/presets you present in h264enc ;)
froggy1
13th December 2008, 13:23
Don't think so, since one would still require to have those checkboxes/tabs/whatever to allow to generate those presets. (if one wants to keep as much freedom as possible)
Cu Selur
yes, this is true, but it will reduce some amount of them. If you implement a presets system, all the checkboxes for things like 8x8dct, level, partitions, motion estimation, deadzones, etc will be gone. That is if you get rid of them and don't keep them for "as much freedom as possible" reasons. The only difference between using a presets system which allows you to write and load your own presets, and the currently used checkbox system, is that instead of the user clicking on various checkboxes, the user writes the x264 settings in a file. Personally, I find the last option more appealing and again, I speak only for me here :)
Selur
13th December 2008, 13:31
I too like the idea of presets :D, that's why one can save&load a profile and save general default settings. ;)
But we will see, may be I'll implement a preset system in the future. :)
Cu Selur
flebber
13th December 2008, 13:36
Selur have you tested flv input. I am trying to use flv with ffmpeg and mencoder decoder. However I cannot get a log or info as sx264 is crashing immediately after I select the file, I have checked the create report and enable debug boxes checked but I am not getting any output.
The flv appears okay as automen is encoding it fine and the flv player plays it without error.
This is my file format read with mediainfo
General
Complete name : C:\Documents and Settings\flebber\My Documents\My Recordings\Slipknot_Dead Memories final1.flv
Format : Flash Video
File size : 17.6 MiB
Duration : 4mn 27s
Overall bit rate : 552 Kbps
Video
Format : VP6
Duration : 4mn 27s
Bit rate : 400 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16/9
Frame rate : 23.980 fps
Bits/(Pixel*Frame) : 0.072
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Duration : 4mn 27s
Bit rate mode : Constant
Bit rate : 96.0 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits
Selur
13th December 2008, 13:43
Tested some flv. Try ffmpeg as Decoder not mencoder, since mencoder&mplayer are not so good at handling flv files. :)
Create Report and Debug will both create a file.
report during and after encoding and debug should create a sx264Debug.txt file.
I'll recheck the flv files I got here. (thought that I forced ffmpeg as Decoder wen input is .flv, but I might be wrong there :))
Cu Selur
Selur
13th December 2008, 16:20
rev418
*fixed*
- flv/swf handling -> enforcing ffmpeg as decoder again
-> updated 1st post
Pitti
13th December 2008, 17:46
rev417
*added*
- Job History (Misc->Logging->Show job history)
You're a treasure :)
I try it out immediately
Pitti
14th December 2008, 16:53
btw: in the sources of rev418 the folder "encoder" is missing.
I hope it was ok to use the folder that was contained in r417
Selur
14th December 2008, 16:56
Hups,.. will fix that -> fixed new Download :)
Pitti
14th December 2008, 18:54
thx :)
a little OT:
I have tested some encodings. (DVD-sources, mkv ...)
I cant max out my Phenom x4 ... any ideas?
>> http://www.pittiplatsch.gmxhome.de/bilder/x264maxout.png
Selur
14th December 2008, 19:10
thinks that pop into my head:
1. why do you use unrestricted? (4.1 or even 3.0 is probably enough for DVD sized material)
2. I forgot the "--thread-input" there not sure if it can hurt perfomance
(will remove in future builds -> if you build sx264 yourself yo could try by deleting the arguments << "--thread-input"; line in x264Model.cpp in the model-folder and compile sx264 again)
Alternatively you could replace the line with:
#ifdef Q_OS_WIN32
if(this->findChild<NValue *>("videoInput")->value().endsWith(".avs", Qt::CaseInsensitive)) arguments << "--thread-input";
#endif which I'll do on my end for the next revision. :)
If you compile and test it please report back. :)
3. problem might be that mencoder can't provide the source fast enough (may be mencoder-mt would help, normal mencoder normally single-threaded afaik)
Cu Selur
Pitti
15th December 2008, 00:41
>> 1. why do you use unrestricted?
Oh this was a mistake.
>> if you build sx264 yourself yo could try by deleting the arguments << "--thread-input"; line in x264Model.cpp
I'm testing
edit:
it was functionable but that changes nothing.
can you implement the possibility to start more jobs at the same time?
I have tested with 2 instances but this is no so comfortable.
Emess
16th December 2008, 10:14
My first thought after opening the program was about how cluttered it was. Everything is bunched together, and options that I would think to be in the same tab were not. A lot of the options had named that didn't describe their function as well, I had to do a few quick encodes and compare the header information before I figured it all out. Using QT Designer obviously makes the UI easier to fix, and as it's a gui/frontend the UI is pretty important. If you don't rename things, maybe give them tooltips.
One thing I noticed in R418 was that max reference frames only goes up to 15? I dragged it to the far end but it wouldn't reach 16. Other problems were the program repeatedly giving me warnings. When I selected to use an external audio file, it gave about 5 warnings about not having a file defined. I wasn't able to define one without enabling the option to do so... The program seems pretty liberal with its alerts and pop ups.
The tabs are not that informative either. Tags doesn't exactly cover chapters and subtitles. And the way they are not all there from the start is a bit irritating. In re of subtitles, is it possible to add support for ass/ssa? libass and asa aren't exactly the greatest libs but mplayer/mencoder is able to read the formats fairly well, and given you have them as decoders it shouldn't be too difficult to add.
My only real problems with it overall though were how cluttered it is, and how non descriptive some of the options are. Even a simple tooltip with the corresponding x264 flag would help a lot.
On actually using it for an encode, I found it fairly quick, faster than autox264 at least, and a fairly good tool to use. The UI is unfortunate but it covers everything and is pretty verbose with its output, which is good. Another thing I really liked was its profile system. Is it able to import sharktooth's meGUI profiles or are the XML .flags different, I haven't had a chance to look yet.
Overall, nice little tool that looks to be coming along well, nice work :)
E~
Selur
16th December 2008, 10:45
@Emess: Everything is bunched together, and options that I would think to be in the same tab were not.
like... ? I sorted the options like I felt them fit, but I'm open too suggestions. (But I won't move an option just to be similiar to another UI.)
If you don't rename things, maybe give them tooltips.
'What is / ?'-entries are planned (added some to the main tab some time ago -> press '?'-button and then click on an option to see), but atm family and christmas has the grab on my free time. :)
I'm no real fan of tooltips. :)
The program seems pretty liberal with its alerts and pop ups.
It is an alpha :)
One thing I noticed in R418 was that max reference frames only goes up to 15?
about the formula I use, see: http://forum.doom9.org/showthread.php?t=142758
-> max references depend on a bunch of factors. :)
If you see a mistake please correct. :)
The tabs are not that informative either.
not?
Tags doesn't exactly cover chapters and subtitles.
about chapters:
atm sx264 can:
1. extract chapters from dvd input
2. let you modify and specify your own chapter points
-> should all be possible with the current 'Chapter Editor' in the 'Tags'-register
about subtitles:
atm sx264 can:
1. load external subtitle .srt/.idx (and insert them as subtitle stream to the output)
2. let you choose if you want to embed the subtitle into the picture
3. set a title and language for the subtitles in the 'General Tags' section
-> Could you explain a bit more what you mean with "Tags doesn't exactly cover chapters and subtitles." ?
Is it able to import sharktooth's meGUI profiles or are the XML .flags different, I haven't had a chance to look yet.
XML flags are different and hold some additional infos. Don't think I will support importing sharktooth's meGUI profiles.
@Pitti: I'll add 'running X Jobs' parallel to my todo-list but I don't think that this will come soon.
Cu Selur
Emess
16th December 2008, 13:51
By tabs not being informative, I meant the title of each tab. Obviously Qunatisation and Audio tabs do exactly what they say, but what about the Tags tab? It is called Tags, yet it controls the subtitles and chapters, as well as the actual track/stream names. Maybe rename it Extra or something.
I see what you mean by sorting the options how you say, but I was getting confused to what some of them do, and it seemed like some things that should be together were not. Not such a big deal really. What was really irritating though was that everything is so cramped. Maybe make the window a bit bigger and spread things out more, the app is like a wall of text on the Main tab.
As for the number of refs, I was using both high@5.1 and high@unrestricted, and it still cut it down to 15 refs. I am not sure why.
E~
Selur
16th December 2008, 16:19
rev419
*added*
- option to extract subtitle track from dvd (in DVD Selector)
*changed*
- using '-ovc frameno' instead of '-ovc copy'
- disable ui during analyse and subtitle extraction
- renamed 'Tags'- to 'Tags, Subtitles, Chapters'-register until I find a better name
-> updated 1st post
-----
I checked the number of refs and atm there's a small bug since ref will only be lowered by one if bframe > 1 and b-pyramid is active,and one changes the number of b-frames. Will fix that.
Atm keeping refs to 15 when b-pyramid is active is (using x264) the way to go to get better level compliance. (see thread linked in last post)
Just realized I disabled the 'What is'-option in the Alpha releases. :)
Cu Selur
Pitti
17th December 2008, 18:01
@Pitti: I'll add 'running X Jobs' parallel to my todo-list but I don't think that this will come soon.
or maybe add a button to create a shellscript?
Selur
17th December 2008, 23:03
shell script wouldn't be that easy, but I'll probably have some time to think about the needed changes over the christmas days and with a bit of luck I would be able to implement it at the beginning of january next year. ;)
Pitti
18th December 2008, 05:42
shell script wouldn't be that easy, but I'll probably have some time to think about the needed changes over the christmas days and with a bit of luck I would be able to implement it at the beginning of january next year. ;)
as I can see the shell commands appears in the commandbox and also in the reports.
if you can add a checkbox to prevent the commands then the command lines pops up in the commandbox without executing.
ofc private live first. take your time.
greetings Pitti
Selur
18th December 2008, 08:51
It wouldn't be a problem to generate all the command lines, but if you use 2pass encoding I normally adjust the videobitrate after the audio encoding which wouldn't work in command line.
Cu Selur
Selur
23rd December 2008, 21:06
Good and 'bad' news. ;)
Good news: Found some time to think about multi-Audio/Video/Subtitle support and encoding multiple jobs parallel.
"good" news: I'll implement parallel job encoding probably in january. :)
"Bad" news: Multi-Stream support won't come soon, since I'll have to make a mayor overhaul to implement it, which will result in a total rewrite of sx264. (-> I'll rewrite the program but that will have to wait. After encountering a lot of bugs&co I want to first be sure that the current 1 video + 1 audio + 1 subtitle stream version works fine)
Cu Selur
Selur
27th December 2008, 11:06
rev423
*added*
- 'parallel jobs' under Misc->Encoding defines how many jobs are processed parallel
side notes:
- if cpu usage is high enough for you when processing 1 at a time, stay with one job
- at the moment only the progress of the job at the top is viewable
*fixed*
- small bug, always lower max refs by 1 whenever b-pyramid is enabled, see: http://forum.doom9.org/showthread.php?t=142758
- fixed buffer values
*updated*
- sx264 and x264 version in windows 'complete' package
-> updated 1st post
Cu Selur
Selur
27th December 2008, 14:28
*cosmetics*
- renamed 'average quantization' to 'constant ratefactor'
*changed*
- removed '-noconfig all' calls since some mplayer version on linux got problems with it
-> updated download in 1st post
Selur
28th December 2008, 17:26
rev429
*fixed*
- vbv Buffer/Bitrate initialisation value fixed
- "S-Mpeg 4 v2" also needs to be decoded as YuY2 with mencoder -> using -vf format=yuy2,scale,format=i420 instead of -vf format=i420
*update*
- exchanged x264.exe in windows package since some people reported crashes with the last one
-> updated downloads in first post
rev430
*fixed*
- vbv bug
- instead of toLatin1() use toUtf8() when creating a pipe
-> updated downloads in first post
Pitti
29th December 2008, 05:14
rev423
*added*
- 'parallel jobs' under Misc->Encoding defines how many jobs are processed parallel
cool. my phenom is awake :D
I have testet with some little videos.
Results:
2 vids one after another -> 18:34 min
2 vids at the same time -> 12:42 min
4 vids 4 workers -> 20:30 mim
Selur
29th December 2008, 07:15
There are a bunch of small things about it that have to be fixed in the future: make sure debug output will generate multiple files, status view for all encodings not just the first in the queue, ability to stop a specific worker,... but getting the process started such that the temp files and the processes itself do not get in conflict was the main thing to start.
Nice, happy to see that it really does help with the speed and that it works. :)
Cu Selur
Emess
29th December 2008, 13:44
Just been messing with the settings. Found that when b-pyramid is enabled, thats when the refs drop to 15. Any reason?
Had some errors too:
Folder:
fonts
does not exist -> adjusting folder to '.' !
Could not create mediaInfo-VideoConfig!!
Probably no rights to write in to currten sx264 default path (see Misc 2)
Could not create mediaInfo-AudioConfig!!
Probably no rights to write in to currten sx264 default path (see Misc 2)
This was done in the Misc 2 tab. Unsure about the fonts error, while the mediaInfo errors seem to be from when I set sx264 path to /usr/bin
E~
Dark Shikari
29th December 2008, 13:49
Just been messing with the settings. Found that when b-pyramid is enabled, thats when the refs drop to 15. Any reason?Because the maker of this program introduced the bug intentionally to "fix" a problem that doesn't exist:- small bug, always lower max refs by 1 whenever b-pyramid is enabled
Selur
29th December 2008, 13:55
yup, see: http://forum.doom9.org/showthread.php?t=142758 :)
Folder:
fonts
does not exist -> adjusting folder to '.' !
sais that you didn't specify the path to a font folder on your system and sx264 didn't find a fonts folder next to it.
-> Without a font folder, OSD in mplayer preview can't be used (-> no preview of subtitles) and subtitles can't be burned in :)
Could not create mediaInfo-VideoConfig!!
Probably no rights to write in to currten sx264 default path (see Misc 2)
Could not create mediaInfo-AudioConfig!!
Probably no rights to write in to currten sx264 default path (see Misc 2)
sx264 wants to create two config files:
sx264_mediaInfo-VideoConfig General;%Duration/String3%
Video;%%FrameRate/String%%%Format%%%PixelAspectRatio%%%Width/String%%%Height/String%%%FrameCount%%%Encoded_Library/String%%%ScanOrder% and
sx264_mediaInfo-AudioConfig Audio;%Codec/String%%%SamplingRate/String%%%Channel(s)/String%%%BitRate/String%%%Video_Delay/String%%%ID/String%%%StreamKindPos%%%StreamCount%%%%%
which are used to get the infos needed when analysing a source.
Cu Selur
Selur
29th December 2008, 13:59
Because the maker of this program introduced the bug intentionally to "fix" a problem that doesn't exist:
Did I misunderstand that lowering max ref is needed when b-frames are enabled and b-pyramid is used to stay more standard conform?
If so I'm really sorry, but as I remember the other thread (see link above) the conclusion was this workaround was needed to stay more standard conform. I understood, that it might not be needed to produce content that hardware players accept since the 'normally' do not stick to the specs.
Cu Selur
Dark Shikari
29th December 2008, 14:08
Did I misunderstand that lowering max ref is needed when b-frames are enabled and b-pyramid is used to stay more standard conform?
If so I'm really sorry, but as I remember the other thread (see link above) the conclusion was this workaround was needed to stay more standard conform. I understood, that it might not be needed to produce content that hardware players accept since the 'normally' do not stick to the specs.
Cu SelurThe logic in the original thread on the topic--if correct--suggests that b-pyramid is potentially:
1. Technically never standards-compliant
or
2. Not standards compliant with under 4 refs.
Not that it is compliant if you limit refs to 15.
Selur
29th December 2008, 14:16
okay, thanks for clearing that up, must have misunderstood it, since the formulas I ended up there:
MaxDPB >= (bytes in a frame) * min(16, max(ref + (pyramid ? 1 : 0), 1 + (pyramid ? 2 : bframes ? 1 : 0))
and
maxref = Min(this->maxDPB(level)/bytesPerFrame, 16)
maxref = (pyramid) ? maxref-1 : maxref
if(maxref) < bframeModifier+1) maxref = bframeModifier+1
implied it. :)
So the 'maxref = (pyramid) ? maxref-1 : maxref' part wouldn't be needed, right? :)
Cu Selur
Dark Shikari
29th December 2008, 14:17
So the 'maxref = (pyramid) ? maxref-1 : maxref' part wouldn't be needed, right? :)I think that's right.
Selur
29th December 2008, 14:22
Okay, will fix this and upload a new version shortly. :)
Special thanks to Dark Shikari for it's patience. :)
Cu Selur
Selur
29th December 2008, 14:52
rev431
*fixed*
- forgot a '-noconfig all' in autocrop commandline :/, removed it now
- lowering maxRef when using b-pyramid isn't needed; thanks to Dark Shikari for the hint :)
*cosmetics*
- added (Pass 1/2) to encoding status during 2pass encode
- extended 'timestamp' in job history and debug to: ("yyyy.MM.dd - hh:mm:ss")
- not writing all text files as ascii but utf8
-> updated downloads in first post
Emess
30th December 2008, 07:30
sais that you didn't specify the path to a font folder on your system and sx264 didn't find a fonts folder next to it.
-> Without a font folder, OSD in mplayer preview can't be used (-> no preview of subtitles) and subtitles can't be burned in :)
Thing is in the Misc2 window I do set it. Each time the program closes it forgets the path I give it.
sx264 wants to create two config files:
sx264_mediaInfo-VideoConfig General;%Duration/String3%
Video;%%FrameRate/String%%%Format%%%PixelAspectRatio%%%Width/String%%%Height/String%%%FrameCount%%%Encoded_Library/String%%%ScanOrder% and
sx264_mediaInfo-AudioConfig Audio;%Codec/String%%%SamplingRate/String%%%Channel(s)/String%%%BitRate/String%%%Video_Delay/String%%%ID/String%%%StreamKindPos%%%StreamCount%%%%%
which are used to get the infos needed when analysing a source.
These seem to be created in whatever directory the app is started from. I notice if I load it from cli in /home it creates them there. However if I load it from my menu or kicker it errors on permissions and attempts to write to /usr/bin I believe. I have yet to check that on r431.
E~
Selur
30th December 2008, 09:22
Each time the program closes it forgets the path I give it.
You do save the settings, do you? (misc -> save defaults)
These seem to be created in whatever directory the app is started from.
They will be created in the sx264-Folder specified under Misc -> sx264 Path. If sx264 find them there it's okay, otherwise it's create them. As Defaults sx264 uses the pass it's started from. :)
Thinking about it I could change the default to e.g. /tmp on linux systems. :)
Cu Selur
Emess
30th December 2008, 10:08
I do save defaults yes, but it doesn't save. /tmp would be a very good idea.
E~
Selur
30th December 2008, 10:10
Thanks for the info, will do some testing here and fix that. :)
Cu Selur
Selur
30th December 2008, 11:12
rev432
*fixed*
- typo when calculating framecount from framerate and length in mediainfo analyser (needed when mediainfo could not find the framecount)
- .evo handling: using -demuxer 35 now for .evo content
- fixed problem when loading defaults and sx264Defaults Path was changed
*changed*
- setting sx264 to system variable->TEMP on windows and to /tmp on linux systems if not specified by user under Misc2
-> updated downloads in first post
Selur
30th December 2008, 17:48
rev434
*fixed*
- problem with default path and saving the defaults; defaults will now be saved in the users HOME
-> updated downloads in first post
Emess
31st December 2008, 02:34
rev434
*fixed*
- problem with default path and saving the defaults; defaults will now be saved in the users HOME
-> updated downloads in first post
as in $HOME/.sx264? I haven't grabbed anything past 431 yet (will do in a minute) Good to see the refs thing fixed. I noticed on an encode yesterday that when I try to use neroAacEnc via the GUI, it creates the pipe and then completely locks up. The GUI is fully responsive but it just won't start encoding the audio, I am not sure why.
[EDIT] Checked in r434, still has aac issues, and its not just for nero either. It's good to see the configs and mediainfo dumps going to $HOME, but perhaps create $HOME/.sx264/ for them so they aren't visible to the user whenever they browse their home directory, it's just cleaner that way.
E~
Selur
31st December 2008, 08:06
Thought about creating a .sx264 directory, but wasn't sure if this was a 'proper' way. ;) (haven't done much linux coding up-to-now :))
If the encoding doesn't start it sometimes helps to abort the current queue.
Will test the aac thing if you tell me a bit more specific what you did. :)
Cu Selur
Emess
31st December 2008, 17:15
I went to the audio tab and selected AAC without nero, and sample rate from input. Bitrate to 128. It then opened mplayer after encoding video so as to dump the audio (which I'd imagine you want mplayer's -dumpaudio flag for so the program doesn't need to open in full display) It finished dumping and then just stuck at 0% on "encoding audio" The other time it happened was with an externally loaded WAV file and the neroAAC button checked. Same problem, however it didn't run mplayer to dump. Now I just mux by hand. Feature request along those lines though, option to use raw .264 files as output besides for mkv/mp4/m2ts.
E~
Selur
31st December 2008, 17:35
Will look at it next year. :) (tomorrow)
Selur
1st January 2009, 17:44
rev437
*fixed*
- on source clip change adjustBitrate wasn't called when Target Mode != Custom was selected before loading a source clip
- if current bitrate is higher than allowed for level -> select a higher level
- not analysing video on current audio selection change
- (linux only) saving sx264Config in HOME/.sx264 and setting HOME/.sx264 as sx264 default path
- (linux only) added JobId to .fifo name to avoid collisions with other parallel running jobs
-> updated downloads in first post
----
did some test encodes with neroaacenc to mkv without a problem, so if it still doesn't work please enable debug output and post the sx264Debug.txt :)
Cu Selur
Selur
4th January 2009, 13:56
rev439
*fixed*
- staying deactivated when non analysable data was found
- activating '-demuxer 35' for vc-1 content
- missing separator for tsmuxer .meta file path
-> updated downloads in first post
Selur
6th January 2009, 08:15
@Emess:
Feature request along those lines though, option to use raw .264 files as output besides for mkv/mp4/m2ts.
Got a use-case for this? You want .264 only output then or audio raw too?
Cu Selur
buzzqw
6th January 2009, 09:17
Got a use-case for this? You want .264 only output then or audio raw too?
+1
outputting raw h264 and aac audio could be useful for proper muxing (with mkvmerge or mp4box)
BHH
Selur
6th January 2009, 09:27
@buzzqw: if I the the use-case right sx264 supports this already :)
When disabling 'delete intermediate' under misc sx264 will leave you with:
1. the normal output
2. the raw audio stream
3. the raw video stream
4. the .meta file if .m2ts output was selected
Side node: If muxing is not done proper I hope someone would tell me so I can fix it. ;)
Cu Selur
buzzqw
6th January 2009, 14:01
no no.. i don't want to blame! :p
BHH
Selur
6th January 2009, 14:08
Okay :P
Emess
7th January 2009, 04:57
Just having raw output for muxing with multiple audiotracks or setting a container framerate or other random things one can do by muxing it manually, especially for example, ordered chapters or timecode files in matroska. Having to hunt around for the temp files is messy and somewhat annoying. I mean just the raw video OR audio stream, without muxing at all.
E~
Selur
7th January 2009, 07:34
I mean just the raw video OR audio stream, without muxing at all.
If I would support .264 as output, it would be video only with no size adjustments (thinking about overhead here) to the container.
I could also add an option to skip the muxing part and move the tmp files to the folder the output is ment to be. This would give you all the outputs (size adjusted to a specific container) but not muxed.
Both are minor changes I could do relatively fast. :)
General questions:
- Whats the difference between 'ordered chapters' and the chapter option currently present int the "Tags, Subtitles, Chapters" register?
Cu Selur
Emess
8th January 2009, 14:10
Ordered chapters are chapters that exist outside the main mkv file. Think of the main mkv as a chapter index, it 'imports' the chapters from other files to display as 1 central file. I always encode with crf in general, but for specified bitrate/size users, having it calculate for total file size (load audio size from file) and then copying the temp file to the output dir could work pretty well, esecially as the user can set their wanted size here.
For more info on ordered chapters and other matroska features not in your muxing dialogue but found in mmg, see http://www.mod16.org/hurfdurf/?p=8
E~
Selur
8th January 2009, 15:13
Okay, thanks. Got the main part of the supporting of '.264 output' and 'disabling of just the muxing' finished, going to fix some minor bugs tonight and will probably release a working version tomorrow. :)
Cu Selur
Selur
16th January 2009, 13:40
rev454
*fixed*
- x264 command line only shown after defaults have been saved
- video only source -> no audio handling possible
*changed*
- 'job control'-view
-- can show progress&state of multiple parallel jobs
-- allows to start/stop/set to waiting a current job
- enabling 'adaptive dct' as default (tsmuxer 1080 vs. 1084)
- using tsmuxer to demux .m2ts/.mts/.ts files
*added*
- 'force input PAR type to' - option
*cosmetics*
- removed 'Alternative audio stream' checkbox for audio stream, stream can now be entered directly
- rearranged and renamed option in Misc-tab
*updated*
- windows pack: mencoder, ffmpeg, tsmuxer, x264 and sx264
-> updated downloads in first post
nakTT
16th January 2009, 16:14
Thanks Selur!
a truly great software! (and now i can test it even under win)
thanks!!
BHH
EDIT: just a hint for windows user
MAKE SURE YOU HAVE ALL NEEDED APPLICATIONS IN SX264 FOLDER OR IN SYSTEM PATH
Hi,
My I know what do you mean by System path? Thanks.
buzzqw
16th January 2009, 16:30
Hi,
My I know what do you mean by System path? Thanks.
this package
Reading up on the licences I made a 'small' package for windows users containing most of the files needed.
I'll not update the package each time I update sx264, so download the package + the current windows binary to to get the most up-to-date sx264.
You still need to download NeroAacEnc and if needed the Microsoft Visual C++ 2008 Redistributable Package.
For the package:
http://www.mediafire.com/?msmmslkhnzq
you must unzip the package OR in the same folder as sx264 OR in your c:\windows\system32 folder
BUT is much better to uncompress on sx264 folder
BHH
nakTT
16th January 2009, 16:54
you must unzip the package OR in the same folder as sx264 OR in your c:\windows\system32 folder
BUT is much better to uncompress on sx264 folder
BHH
Thanks for the reply. Yes I agree with you that uncompress it to sx264 is much better and I would say safer. Thanks again.
Selur
16th January 2009, 18:36
btw. updated the win package link since I accidentally put in an old sx264 version. :)
Selur
16th January 2009, 22:16
rev455
*fixed*
- the newly introduced audio handling bug
*added*
- some additional debug outputs
-> updated downloads in first post
Selur
18th January 2009, 14:57
rev456
*cosmetics*
- x264 command line view always showing up when coming out of minimized to system try state
- percent view and rest time show (of top most job) again in window title
*fixed*
- crash with mkv output when audio handling was enabled
- bitrate&filesize not adjustable (-> show x264 cl bug)
- log output wasn't updated
-> updated downloads in first post
Selur
20th January 2009, 11:53
rev457
*cosmetics*
- forgot to show progress when extracting/multiplexing with tsmuxer
- removed direct-8x8, see: http://forum.doom9.org/showthread.php?t=144433
*fixed*
- problems when converting .m2t files
*updated*
- windows package: x264 and sx264 version
-> updated downloads in first post
Selur
20th January 2009, 20:33
rev461
*fixed*
- forgot to remove direct8x8 call from default simple settings
*updated*
- windows package, testing another filehoster, since downloads from mediafire were too slow (< 4kByte/s)
-> updated downloads in first post
Emess
28th January 2009, 03:47
rev454*changed*
- 'job control'-view
-- can show progress&state of multiple parallel jobs
-- allows to start/stop/set to waiting a current job
BRILLIANT. I now have no reason to use any other UI. Thanks :D
On loading, I keep getting an alert about font paths. There is no single font path in *nix really, is it asking for a specific directory with fonts, or a directory with subdirs? Maybe code it to use fontconfig like most other apps so that it can locate them itself?
E~
Selur
28th January 2009, 07:03
Thanks for the feedback.
atm sx264 wants a single path with truetype fonts (.ttf) in it, which seemed to be the fastest way crossplatform way. :)
I never really thought about it much since, I personally - at least at the moment - don't need subtitles&co at all and nobody gave me any feedback. :)
-> will read up a bit about fontconfig and think about scanning the system using it
Cu Selur
Emess
28th January 2009, 14:08
Can always check for fontconfig during configure and if it's there it will set the right path. If not it asks the user at runtime. Or something.
One other thing, the resizer, what are the equivalent avisynth filters to the different modes? It's hard to tell which one I want >.<
E~
Selur
2nd February 2009, 15:09
rev464
*fixed*
- taking infos from first video stream when multiple video streams are present
- support to mux .sup subtitles when creating blu rays
- broken report and missing log command line output
*cosmetics*
- changed some name/position of some elements
*added*
- linux only: searching for *.ttf file according to /etc/fonts/fonts.conf
*updated*
- new mediainfo, x264 and sx264 build for windows package
-> updated downloads in first post
------
One other thing, the resizer, what are the equivalent avisynth filters to the different modes? It's hard to tell which one I want >.<
Sorry, can't really help there since I never really compared mencoder/ffmpeg vs. avisynth resizers.
Cu Selur
Pitti
3rd February 2009, 13:04
THX Selur :)
464 is nice.
a little issue in the audiotab:
if the option "Encode audio stream" is selected, then audioencoding is disabled.
should be named to "keep orginal audio" or so.
Selur
3rd February 2009, 13:07
yup, had a small mix up with some versions and the naming of the option, will be fixed in the next version. :)
Selur
4th February 2009, 23:35
rev466
*fixed*
- levelForBitrate needs to be 25% higher for highprofile
- max Bitrate&Buffer at Level 4.0 (used lower values before)
- x264 command line view not updated after an encode
*cosmetics*
- small adjustments and renamings
*updated*
- windows package: new x264, sx264 and mkvmerge version
-> updated downloads in first post
Pitti
5th February 2009, 05:31
Hallo Selur
can you think again about the personal profiles?
the decoding part (filtertab) and the encoding part (x264) should be separated (in my mind).
Sometimes the source needs to be cropped or deinterlaced sometimes not,
but the x264-settings are the same (especially on tv-caps).
this makes the possibility to import megui-profiles easer.
one more request :)
the jobs are temporarily?
can you implement the feature that the queue is saved in a file?
Pitti
PS: sorry wegen meines schlechten english
Selur
5th February 2009, 08:29
sorry wegen meines schlechten english
I also post updates over at M2D, Flaskmpeg.info and the german doom9 forum. ;)
the decoding part (filtertab) and the encoding part (x264) should be separated (in my mind).
I'll think about it. :)
the jobs are temporarily?
can you implement the feature that the queue is saved in a file?
Yes, jobs are temporary, but I will think about an Option to load and save them. :)
Cu Selur
Ps.: Main problem atm is that I'm kind of swamped with stuff in real live so free time and time to code are limited. ;)
Selur
9th February 2009, 19:08
rev470
*added*
- profile manager, gives the ability to load/save/delete general/audio/video/filter profiles
- not sure if one of the profiles is missing some parameters that should be included, so feedback is needed
- general = everything, audio = everything under Audio->Audio Encoding, video = all x264 settings, filter = everything under Filter/Subtitle->Filter Settings
- atm. encoding profiles require to be in 'advanced' mode
*cosmetics*
- a lot of changes. ;)
*updated*
- windows package: new x264, sx264 version
-> updated downloads in first post
flebber
9th February 2009, 22:21
Hi selur congrats its coming along nicely.
With the new profile management section do we copy and create the profiles to our sx264 directory in any particular fashion to get profiles to load, eg c:\sx264\Profiles c:\sx264\Filters etc.
I ask because I cannot seem to load profiles into these settings and would love to add the megui profiles and then some filters. however currently seems unable to the import megui profiles is not active. Regarding filters which ones are supported should I use Avisynth ?
http://farm2.static.flickr.com/1363/3267092487_916bef0a67.jpg
http://farm2.static.flickr.com/1106/3267092493_f8d92e26e6.jpg
Selur
9th February 2009, 23:17
Atm importing MeGui is not supported since I did not write any code for it. (It's planned, but will take some time.) :)
When you configure sx264 the way you like you can create a profile by pressing the 'Save As' Button, an entering a name the Profile should get. sx264 will automatically create the needed folders and subfolders and offer the profile in the drop-down menu.
About the filters, like mentioned in the changelog, when saving a filter profile everything under Filter/Subtitle->Filter Settings will be saved to the profile. You can not add any external filters.
And like mentioned in the first post: 'extended Avisynth-Support like with MeGui+AvsP' is not planned, you are free to feed sx264 with an avisynth script and as long as you are aware or the known problems (see first post) everything should work file.
Cu Selur
flebber
9th February 2009, 23:21
Sounds good. I like the layout updates, much cleaner and easier.
Pitti
10th February 2009, 04:25
This is a great update.
It's not an alpha anymore ;)
I have a little trubble to input the bitrate.
The automatic between filesize and bitrate hangs if i input these values manually.
Selur
10th February 2009, 07:00
@pitti: could you explain a bit more what you do to run into the problem? Seems to work here. :) Might also help i you start sx264 enable debug output cause invoke the problem and send me the created debg output file. -> if this is a bug this really is a reason why it should still be alpha, since this really is an important feature that should be stable before going to beta. ;)
-> there's some bug somewhere that's even causing sx264 to crash, don't know if it's the same that's causing your problem, will try to hunt it down tonight.
Cu Selur
Selur
10th February 2009, 08:22
okay, found&killed a small bug which was triggered when entering a target size to fast and in such provoking a loop. iirc you are using the 64bit binary if so plz try if http://stashbox.org/396991/sx264_testing.zip fixes your problem too. :)
Pitti
10th February 2009, 17:34
could you explain a bit more what you do to run into the problem?
- I load the videofile,
- set the outputname,
- go to the bitratefield and input the value manually (not using the spinbutton)
>> then the cpu-usage is going to 100% and sx264 is hanging
here is the debug: http://www.pittiplatsch.gmxhome.de/sx264Debug.txt
it seems that 473test fixes the problem
Selur
10th February 2009, 17:42
Thanks for the info, will make a new release for all systems tomorrow. :)
Pitti
10th February 2009, 23:08
can you please bring back the option "disable auto deinterlacing"
I have some TV-caps marked as interlaced, but there is no interlacing.
If i can disable this option (like in ver 466) in this case manually the encoding is much faster.
Selur
10th February 2009, 23:13
it's still there it just moved to 'Misc'->'Input Settings'->'Disable auto deinterlacing' ;) (wasn't sure if this is a better place -> open for suggestions ;))
CU Selur
Pitti
11th February 2009, 03:45
i like the old place more
otherwise maybe on both places
Selur
11th February 2009, 08:08
"otherwise maybe on both places"-> I'll try that. ;)
Selur
11th February 2009, 10:44
rev473
*added*
- importing MeGui audio/video profiles in profile manager (settings that are not supported in sx264 atm. will be ignored)
- reset settings option in profile manager
*fixed*
- fast manual targetsize change causing crash
*cosmetics*
- 'disableAutoDeinterlaceCheckBox' now under Filter/Subtitle and Misc->Input Settings
- fixed the naming of the 'tagTab'
- fixed some glitches under Audio->Audio Encoding
-> updated downloads in first post
buzzqw
11th February 2009, 12:08
good update!
thanks :)
BHH
Pitti
11th February 2009, 22:47
I think there is one more mainfeature necessary before we can go to search the hidden bugs.
It is the Possibility to keep the queue save over a restart.
Your progress has been made for this short time are really amazing.
Grüßle Pitti
Ps: is there any function in mencoder like the trim() function in avisynth.
for the short testings before the entire encodinprocess
Selur
11th February 2009, 22:56
In general there is only problem is one can't jump in every source, which makes it impossible to set start and end time, had feature in an earlier version but removed it since I never found the time to really test which formats allow jumping with mencoder/mplayer and which not,... atm I'm doing a bunch of gui changes but the queue saving is planned. ;)
Pitti
11th February 2009, 23:20
trim is not so important. I can trim the source with other tools like tsmuxer or mkvmerge.
but saving the queue (automaticly) is very important because sometime my wife interrupting my computer progress
(she call me: Hooooolger come to the supper or so) ;)
saving the queue is also saving my marriage :)
enough joking
cu Pitti
Emess
12th February 2009, 11:06
I'd imagine you could trim in avisynth and using avs2yuv open the pipe as the input in sx264, as long as some sort of way to define the frames is used, like x264 --frames option for this exact purpose. Maybe support named pipe's as input with a popup to ask for the number of frames? This could still be a problem for 2pass tho, so a better way would be for sx264 to create the pipe itself for each pass, maybe have it run wine avs2yuv.exe <stuff> itself. Or maybe this is just a really bad idea. It'd sure save HDD space though.
E~
Selur
12th February 2009, 16:30
Yup, wouldn't be to hard to include avisynth, but like I stated before 'I don't like the wine-way' and avisynth support/integration will only come when avisynth (3) runs native on linux. ;)
Selur
13th February 2009, 17:21
rev474
*added*
- auto load/save jobHistory and jobQueue (only not finished jobs will be saved, for infos about finished job use jobHistory)
- save/clear jobHistory
- 'close on queue finished' and 'shutdown on close' (later only for windows, no clue how to do it on linux without admin rights)
*cosmetics*
- added a menubar
- some small renamings and rearrangements
*fixed*
- p4x4 not enabled when level = unrestriced was selected
-> updated downloads in first post
Selur
14th February 2009, 08:54
rev475
*cosmetics*
- added button to open misc to main register (before it was only in the menubar)
-> updated downloads in first post
Emess
17th February 2009, 02:23
Not a feature request this time but it's been bugging me for a while. Is it possible to use a different location for storing the packages? The site you use currently can't be used with wget (at least not for me) and is VERY slow in a browser. I build a package so my packagemanager doesn't bork and the buildscript usually autodownloads the source but it's not possible here. Is there a possibility of svn access returning?
E~
Selur
17th February 2009, 06:48
I planned to migrate the files to a small homepage in april (should having enough free time on my hand than) which should make wget possible, but svn access is out of the question atm. .
Btw. planned to release a new version today, but atm there's a problem building the 64bit binary, so the 64bit binary release will have to wait a bit unless I figure out where the problem lies. :( (windows and linux 32bit build work fine)
(seems like it can't find qdbus, which is needed for the new option: 'shutdown on queue finished')
---------------
rev481
*cosmetics*
- removed menubar, rearranged some stuff
*fixed*
- neroAAC audio encoding problem
*added*
- 'shut down on queue finished*
*removed*
- 'shut down on close' and 'close on queue finished'
-> updated downloads in first post
-----------------
found the problem, needed to apply a small patch (QT += dbus -> CONFIG += qdbus in the project file) since including D-Bus access changed from QT 4.3 to QT4.4 (programed with qt4.4, but my linux 64bit system still got qt 4.3)
-> will upload a 64bit build and updated sources later
Emess
17th February 2009, 13:45
*cosmetics*
- removed menubarThe menu bar made it less cluttered, but it was annoyingly small and sort of in the way. Maybe a drop down button in the corner or something instead, like the icons VBox uses to indicate network/disk/mouse usage. With the new mplayer patches, is it possible to see ssa/ass subtitle muxing support? Or should we still be using mkvmerge like good muxers for that?
E~
Selur
17th February 2009, 14:59
Don't really know if normal mplayer builds support ssa muxing and preview atm. since I normally don't use subtitles at all or simple .srt subtitles.
So if mplayer supports it I can add support for preview and muxing. ;)
"like the icons VBox uses"
VBox ?
Cu Selur
buzzqw
17th February 2009, 16:14
VboX= VirtualBox www.virtualbox.org
BHH
Selur
17th February 2009, 16:19
you mean like at http://www.virtualbox.org/attachment/wiki/Screenshots/ubuntu-on-xp.png in the right lower corner?
If so stands the question: What should be but there?
(Mainly removed the menubar since it didn't really help from my usage point of view. :))
Cu Selur
Selur
17th February 2009, 18:39
rev483
*changed*
- SpinBoxes do not update (check values) unless 'enter' is pressed or keyboardfokus is lost
*fixed*
- 'negative bitrate' loop
- small workaround to compile under qt4.3 and qt4.4 (!qt4.3 is required!)
-> updated downloads in first post
Selur
18th February 2009, 16:42
rev486
*fixed*
- some bugs related to job load/save (serializing audioIDs and dvdStructure)
-> might have to delete your old sx264Jobs.xml file
- problem with tempFile and neroaacEnc under Linux
*cosmetics*
- adjust window sizes on open
-> updated downloads in first post
rev488
*fixed*
- missed a ! when choosing to delete or stop queue on 'abort' :/
-> updated downloads in first post
Selur
22nd February 2009, 16:04
rev494
*fixed*
- check negative Bitrate before start
- mplayer pcm audio handling
- problem with negative bitrates
- div 0 with mplayer on some Linux systems
- positioning of some tmp files (hope I didn't miss one ;))
-> updated downloads in first post
Selur
22nd February 2009, 23:32
rev495
*fixed*
- intermediate file handling
-> updated downloads in first post
Changelog auf Deutsch:
*Fehler behoben'
- Handhabung der temporären Dateien
-> hab die Downloads im ersten Post aktualisiert
Ajax_Undone
23rd February 2009, 23:30
The package link is broken. The file will not download...
Selur
24th February 2009, 00:09
uploaded newest package to Megaupload, hope this helps :)
rev497
*fixed*
- shutdown on queue finished
- extracting .mp3 from .ts container (-> not supported by tsmuxer)
- bob framerate change
- bunch of small fixes related to avc and vc-1 input handling
*updated*
- windows package
-> updated downloads in first post
flebber
27th February 2009, 00:29
I am having trouble with something silly. I have ripped a DVD with DVD decrypter to a folder C:\Rip\DVD so that folder now contains 3 vobs. If I select video input it only opens vob1, but if I select DVD input and DVD folder it says no DVD info exists.
I know the vobs are okay because they open fine in avidemux 2.4.4 final.
Selur
27th February 2009, 00:51
If I select video input it only opens vob1
yup, video input takes 1 input file as source
but if I select DVD input and DVD folder it says no DVD info exists.
assuming the message yo refers sais "NO *.vob files detected in the selected folder! -> Select another folder." sx264 did not find any files
named VTS_0X_1.VOB with X being a number between 0 and 9
Assuming it finds the vob it then tries to parse the ifo file associated with this vob with (vstrip (windows) or lsdvd (linux)) to get a pgc <> vobfile mapping.
So in general it's the best way to just dump the dvd 1:1 to hdd when you want to process it with sx264. :)
Cu Selur
If it's another
flebber
27th February 2009, 01:54
Yeah I have VTS_01_1 2&3 in the DVD folder but it has no ifo file. Maybe I need to ensure dvd decrypter leaves a ifo file
Selur
27th February 2009, 07:08
yup, please try that :)
Selur
5th March 2009, 20:08
rev500
*fixed*
- added warning, because tsMuxeR does not support Umlaute
- freeze when loading audio only file as video input
*added*
- close on queue finished;
- crop view switching Mplayer/FFmpeg
*changed*
- using Qt 4.5
*removed*
- removed 'Non-pre scenecut'
- limiting --scenecut to 0 before it was -1
-> updated downloads in first post
Selur
8th March 2009, 15:04
rev504
*fixed*
- checking input file for Umlaute when (tsMuxeR does not support Umlaute)
- mplayer audioChannel count
- (auto) crop-Bug
- audio handling in .flv files
- mplayer analyser bug mit .ts files
- tsMuxeR extract audio
*changed*
- on audio extraction through tsMuxer, delay fixed during demux through tsMuxer
*updated*
- windows package: new sx264, x264, mkvmerge, tsmuxer version
-> updated downloads in first post
Selur
8th March 2009, 18:39
rev505
*fixed*
- LetterBox + ffmpeg bug (forgot to load the values ;))
-> updated downloads in first post
Betsy25
8th March 2009, 18:51
Hi,
the stashbox.org is not responding.
Selur,
Do we need to download and manually install all the needed tools inside some subfolder, or are these included in the package at stashbox.org ?
Thanks a lot !
Selur
8th March 2009, 18:59
Do we need to download and manually install all the needed tools inside some subfolder, or are these included in the package at stashbox.org ?
for windows it's enough to:
1. download the package from megapload and extract it (contains everything besides neroaacEnc and c++ runtime)
+
2. download newest win32 binary from stashbox and extract it into the folder you extracted the package to have a up-to-date version
the stashbox.org is not responding.
Seems like stashbox really slow today, so you might have to reload the page and/or wait a bit.
Cu Selur
flebber
14th March 2009, 23:16
Hi Selur The latest version crashes when I press encode. It doesn't produce any useful output to greatly help.
This is the only information.
analysing video data,..
analysing audio data,..
Collected the following video infos:
Video format = MPEG Video
Video width = 352
Video height = 240
Video fps = 29.97
Video interlace = PRO
Video PAR = 0.889
Video framecount = 7307
Video length = 00:04:03.810
Collected the following audio infos:
Audio format = MPEG layer-2, layer-3
Audio bitrate = 224
Audio channels = 2
Audio sample rate = 44100
Audiostream count = 1
with MediaInfo, mode: 7
AudioIDs: 0
AutoCrop: cropWidth: 352
AutoCrop: cropHeight: 238
AutoCrop: cropXpos: 0
AutoCrop: cropYpos: 2
AutoCrop: cropWidth: 352
AutoCrop: cropHeight: 224
AutoCrop: cropXpos: 0
AutoCrop: cropYpos: 10
Preview created with:
mplayer "C:\Rip\Source Video\arch_enemy-ravenous-evilsoul-apv.mpg" -mc 0 -nosound -vf crop=352:224:0:10,scale=352:224 -sws 10 -aspect 1.64979:1 -fps 29.97
Selur
14th March 2009, 23:30
I know and i'm working on it, but I got a major exam next Wednesday and a flu, so I'm not really got at coding atm. :(
Will fix it as fast as I'm able to, so probably Thursday or Friday. :)
flebber
14th March 2009, 23:43
I know and i'm working on it, but I got a major exam next Wednesday and a flu, so I'm not really got at coding atm. :(
Will fix it as fast as I'm able to, so probably Thursday or Friday. :)
I hope you get well. Best of Luck in your exams :-)
Selur
14th March 2009, 23:46
thanks :)
Selur
19th March 2009, 18:58
rev507
*fixed*
- blu-ray compatiblility bugs
- "Crop and resize to match input resolution and display aspect ratio (DAR)" Fehler
- m2ts(mpeg,mpa)-Source handling
- linux profile handling
- missing close button with qt 4.5 and linux
*added*
- optional usage of lavd/copts threads=X
-> updated downloads in first post
flebber
20th March 2009, 00:19
I end up with this screen loading with new 507 rev. Was this planned? Did the exams go well?
http://farm4.static.flickr.com/3578/3368533579_dd44373a92_o.jpg
Selur
20th March 2009, 00:29
exams went well,
"Was this planned?"
seems like I forgot to disable the console view I use when debugging. :)
The error is normal when sx264 is started for the first time, or the sx264Config changed a lot, no reason for concern.
Got some time tomorrow so I'll probably do some coding and release a new version. :)
Will probably throw out the 'optional usage of lavd/copts threads=X' since it seems to cause more trouble than it's worth (crashes for some people corrupted output for others) and add Linear Blending (pp=lb) as additional deinterlacer, since it's fast I a lot of times I prefer it over yadif.
Cu Selur
Selur
21st March 2009, 16:39
rev508
*modified*
- lavThreads support disabled when using dvd input and no deinterlacing (causes visual artefacts otherwise)
*added*
- linear blending as additional deinterlacer
-> updated downloads in first post
Cu Selur
Ps.: orderd myself a mac mini which should arrive at the end of next week so may be a mac version isn't that far away ;)
killerhex
24th March 2009, 21:34
doesn't start on windows 7 lol
Selur
24th March 2009, 21:52
don't know what you did, but over here it works fine on windows 7 (got it as alternative to linux on my laptop)
(maybe you forgot to install the c++ runtime)
killerhex
25th March 2009, 01:26
i have revision 508 and a cmd screen starts and shuts off quickly
Selur
25th March 2009, 07:51
send you a pm with a link to the testversion I used on my laptop
(did you install the c++ runtime ?)
Selur
25th March 2009, 15:38
rev509
*fixed*
- forgot 'scale,format=i420' when dvd input and no resize&co was selected
- x264 command line preview not updating when source was loaded
- allowing psyTrellis only if trellis is enabled (> 0)
- handling of some avis with pcm audio
- 'custom output par' crash
*changed*
- create .stats only when using 2pass encoding
-> updated downloads in first post
Selur
30th March 2009, 19:03
rev510
*changed*
- internal 'prefer ffmpeg' option made available under misc; will use ffmpeg instead of mencoder when no filtering&co is done; it's mainly for debugging and should normally kept enabled.
- 'use lavdopts threads' changed to 'FFmpeg/MEncoder threads' -> sets the number of threads FFmpeg/MEncoder use
*added*
- option to lower max references when b-pyramid is enabled
*fixed*
- audio bitrate/quality switching fixed
- audio handling DVD -> Video + NeroAACEnc audiohandling
- small bug with max references (sometimes to few when level <= 3.0)
- adjusted bluRay vbv max buffer for 4.0&4.1 to 30000 and vbv max bitrate rate for level 4.1 to 40000
*cosmetics*
- rearranged misc&misc2
- a bunch of renamings
-> updated downloads in first post
Selur
31st March 2009, 01:21
rev511
*fixed*
- cropToDar -> cropHeight adjustment
- a bunch of GUI glitches
*changed*
- restricting vbv values when bluray is enabled even when no source is loaded
-> updated downloads in first post
Selur
2nd April 2009, 08:07
rev514
*fixed*
- Audio->Quality factor setting after save&restart
- aac audio detection
*added*
- output framerate scaling (thanks to mm)
*cosmetics*
- rearranged: Main, Profile Manager and DVD Selector
*changed*
- audio quality scaling to 1-100 (1= worst, 100=best)
*updated*
- windows package to newest x264, sx264,...
-> updated downloads in first post
Selur
2nd April 2009, 20:22
rev515
*fixed*
- fixed output framerate scaling when using ffmpeg decoder
- fixed adjusting framecount when scaling the framerate
(converting HD captures@50p to 25p should work now :))
- preview with external subtitles
- dvd encode title/chapter
*info*
- preview of subtitles in the DVD Selector might not work, see: http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1332
(does not work with mplayer version inside the windows package and no I don't know when it stopped working)
-> updated downloads in first post
Selur
12th April 2009, 09:42
rev516
*added*
- option to create avchd structure (through tsmuxer) when blu-ray compatibility is enabled
- option to dis-/enable ToolTips
*changed*
- using "tsshutdn 0 /DELAY:0 /POWERDOWN" instead of "shutdown -s -c \"sx264 is shutting down the system\" -t 01" to shutdown Windows systems since method 2 causes Norton Antivir to prevent the shutdown. :(
- blu-ray compatible enables dxva compatible (since it's a subset)
*fixed*
- lost minimize button after minimize to tray
Emess
12th April 2009, 15:02
Hey Selur, is there any chance of a .desktop file? I realise I could of course write my own but one being provided with the source would be handy for building packages.
E~
Selur
12th April 2009, 15:17
Haven't found the time to investigate how to write a .desktop file with an icon. :)
iirc the .desktop file should look like e.g.:
[Desktop Entry]
Exec=sx264
Type=Application
Icon=sx264.png
but I'm not sure where to but the png file or if a .png file is even allowed as icon ;)
Cu Selur
Selur
15th April 2009, 09:24
rev517
*fixed*
- encoding typ not properly saved in video profile
*added*
- possibitlity to adjust vbv values to outpt media
- remember position off sx264 on close
-> updated downloads in first post
Riki
22nd April 2009, 14:51
I love this app. Thanks for creating this and letting us use it!
Things I love:
1. No need for avs files, sx264 handles my avi and mov files perfectly :)
2. The advanced configuration
3. Job Que
3. Audio Encoding and Muxing
A couple features that would be great would be:
1. The ability to drag a file into the input slot (or even the input slot remembering the last location I picked a file)
2. The ability to change the framerate (is this currently possible? Having the option to use the ConvertFPS avisynth option would be awesome)
3. The ability to drag in multiple files and have them all be encoded with the current settings. (batch option)
Selur
22nd April 2009, 16:21
just leaving but here's a fast feedback:
to 1.&3. : thinking about it (3. really isn't a easy as it sounds, especially if the file types differ a lot, implemented it some time ago halfway through but stopped implementing it, not totally sure why so ;))
to 2. : avisynth isn't used in the app so using ConvertFPS from avisynth might be a problem, changing fps through dropping and adding frames is possible: Filter->Filter Settings ->Scale output framerate to
dansus
23rd April 2009, 16:53
hi, thought i would give this another crack. Liking it a lot, a few issues to resolve for me to use it again...
1. Anamorphic content not handled correctly. Broadcast 720x576i and 544x576i (BBC), anamorphic its 1024x576i - not detected.
2. Hard pulldown not detected. ie 29.970> 23.976
3. Trim or SelectRange function would be nice so that i can test result before committing.
4. Denoising options, possibilty to add Undot to the list. Others are too strong for some content.
5. Threading, despite setting to 6 threads, cpu is 50% and using only two cores on my quad. Maybe thats a filter issue, possibilty to wrap filters with mt.
Hopefully you can address some of these issues and make it even better. :)
----
Selur
23rd April 2009, 17:03
about 1.: that aspect ratio is detected by sx264 and what aspect ratio should have been detected in our opinion? Did you try to force a specific PAR type (Generic ITU, IT-R BT-601, MPEG-4 PAR) to fix your problem ?
about 2.: got no clue how to do a frame accurate preview atm. so trim&select range will have to wait until I find a way. :)
about 3.: some additional infos about input, settings you choose, a log or debug file, what versions of ffmpeg/mencoder you are using etc. might help, otherwise I'm totally in the dark. :)
@all: If you have a feature request it would help if you post which OS (Windows/Linux) you use so that I can make a testbuild and send it to you via pm. :)
Cu Selur
dansus
23rd April 2009, 17:27
If i force PAR to 1x1, its gives an odd figure of 720x320.
720x576i detects PAR as 1.422, which is fine but outputs it as 720x576 which is 4:3 on 16:9 content. Output should be 1024x576i or forced ie 720x416p
analysing video data,..
Collected the following video infos:
Video format = MPEG Video
Video fps = 25.000
Video width = 720
Video height = 576
Video interlace = TFF
Video PAR = 1.422
Video framecount = 69369
Video length = 00:46:14.760
No name for the logfile, so nothing to save.
using which ever version of files came with the latest all in one pack, updated sx264 to 5.17
Also cant handle the mpeg audio (mpa) with several test files i tried.
(xp sp3 x86)
---
Selur
23rd April 2009, 17:36
If i force PAR to 1x1, its gives an odd figure of 720x320.
You probably should check 'Auto adjust->width' instead of 'Auto adjust->height' if you want to keep the height and not the width ;)
[quote]Also cant handle the mpeg audio (mpa) with several test files i tried.[/quote9
will have a look later ;)
Selur
23rd April 2009, 19:44
@dansus: could you be a bit more specific about "cant handle the mpeg audio (mpa) with several test files i tried." since I just converted some files with Mpeg-1/2 layer-1/2 audio in it,..
Riki
23rd April 2009, 21:31
Thanks for the fast response. It took me a while to find the filters tab. Now that Im there would it be possible to define a custom framerate? For my videos I tend to go 10, 12, 15, and 30. These are for camtasia recorded training videos so dropping frames is fine.
Im using the windows build and would love to test a build :)
Selur
23rd April 2009, 22:10
under "Filter Settings ->Scale output framerate to" you can select frame rates
switch(forceOutputFramerate){
case 1 : framerate = 23.976; break;
case 2 : framerate = 24; break;
case 3 : framerate = 25; break;
case 4 : framerate = 29.976; break;
case 5 : framerate = 30; break;
case 6 : framerate = 50; break;
case 7 : framerate = 59.976; break;
case 8 : framerate = 60; break;
case 9 : framerate = 100; break;
case 10 : framerate = 120; break;
} atm, can add support for 10, 12, 15 tomorrow. :)
Cu Selur
Selur
24th April 2009, 13:39
rev518
*changed*
- calculating framecount if mediaInfo analyser missed it but has frame rate and length
- keeping temp files if output was not created during muxing
- behaviour when target bitrate collides with restrictions
- .m2ts overhead calculation (lower video, higher audio overhead)
- using lavcopts again, which should help multihreading when filtering
- audio delay handling
*cosmetics*
- changed job manager view
*fixed*
- mplayer analyser audio and .dvr-ms handling
- .stats file naming
- problem when muxing with tsmuxer
*added*
- drag&drop support for video input
- mutlifile input support (using settings selected for 1st file)
- option to downsample dts-hd to dts when using tsmuxer as muxer
- option to automatically create the outputname: 'default output path'+'input filename'+"."+'default extension'
- 'default output path' can be set under: Misc -> Paths
- 'default extension' can be set under: Misc->Encoding, Compatibility and Output->Output Settings->Standard output container
- additional framerates for framerate convertion
-> updated downloads in first post
Riki
24th April 2009, 20:31
Amazing! I cant tell you how much time this saves me, I highly recommend this app.
On a side note, I attached the settings I use for streaming on the web if anyone wants to check them out. I found them to work very well.
Could you or anyone take a look and let me know if there is anymore I could do to improve my output?
My goal is: Smallest filesize possible, Highest Quality possible, and fast playback. I dont care about encoding time because I have a mac pro with 8 cores and it seems to encode very fast, around 20fps with my current settings.
Here are a few things I did and would like some advice on because some of this I dont quite understand.
1. I decreased the reference frames and bframes because there were some playback issues in quicktime (image would get all messed up during playback) and also to increase playback speed.
2. Im going with a 28.00 constant rate because its hard to choose a bitrate and have it fit all the different types of videos. Some have tons of fullscreen motion and others have none and even others are mixed.
3. Increasing Chroma Boost to 12 seemed to make the filesize go down, and I dont seem to see any quality differences.
4. I went with main profile 3.1 to increase playback speed. This actually made a HUGE difference compared to high.
5. I dont understand settings like Quantizer min/max, Quantfactor I P and B, Max quantizer different, Deadzone, and all the Rate Control Settings. Perhaps there are some tweaks in there to help?
Selur
24th April 2009, 20:35
About the settings: it might helpt if you open x264 commandline view and post your settings. ;) (so others don't have to wait for a moderator to approve the attachment ;))
Cu Selr
Riki
24th April 2009, 21:13
oops, Im not sure if this is correct but..
x264 --crf 28 --level 3.1 --ref 3 --keyint 250 --min-keyint 25 --scenecut 40 --bframes 10 --b-bias 0 --b-pyramid --weightb --direct spatial --b-adapt 2 --cplxblur 20 --qcomp 0.6 --qblur 0.5 --qpmin 1 --qpmax 51 --qpstep 4 --ipratio 1.4 --pbratio 1.3 --chroma-qp-offset 12 --partitions i4x4,p4x4,p8x8,b8x8 --me esa --merange 16 --mvrange 512 --subme 9 --mixed-refs --trellis 2 --no-fast-pskip --no-dct-decimate --aq-mode 1 --aq-strength 1 --deadzone-inter 11 --vbv-maxrate 14000 --vbv-bufsize 14000 --threads auto --filter -1,-1 --no-psnr --no-ssim --progress --fps 12 --output
Selur
24th April 2009, 21:27
here some comments from me:
"-me esa" is probably overkill umh (multi-hexagonal) should be fine and a lot faster :) (for most sources one really can't tell the difference when viewing)
"--direct spatial" personally I would select 'auto'
I would also set "--psy-rd" to "1:0.3" (Psy RD/trellis strength)
You can also try to enable 'Allow P4x4 for all levels' under misc->compatibility + p4x4 under Macroblock settings, which might help a bit and will probably cause no problem with quicktime (haven't tested).
Cu Selur
Riki
24th April 2009, 21:38
Thanks, Ill try that and let you know the results
Selur
24th April 2009, 22:38
rev519
*fixed*
- delay moved to muxing when using neroaacenc
- collision when multiInput met parallel encodings
-> updated downloads in first post
Riki
25th April 2009, 03:34
Thanks, all of that is great, except for this
I would also set "--psy-rd" to "1:0.3" (Psy RD/trellis strength)
That made the fielsize significantly bigger.
I found a small bug. When loading a profile the resize only resizes the height, and the auto width doesn't get propagated. I have to toggled the mod setting to get it to update.
Do you accept donations?
Selur
25th April 2009, 06:53
Do you accept donations?
Thanks, but none needed (software is not even beta;)) atm.
When loading a profile the resize only resizes the height, and the auto width doesn't get propagated. I have to toggled the mod setting to get it to update.
Will have a look at it tomorrow. (got a lot to do today, so won't probably find any time ;))
Would be nice If you could specify a bit more what you did and may be send me a profile with the problem via PM.
It's probably only a small bug. -> think I would the problem, will send you a pm
Cu Selur
Riki
25th April 2009, 16:28
Thanks, Im doing a huge test right now with compressing around 200 files. One thing that would help me but it is a minor thing, is to be able to select an output folder and have the files get dumped into there, but inherit the filename.
The reason is some of the files I encode are already mp4 so I get the _reencode suffix.
Its not really a huge deal because I use Directory Opus as my explorer and it has a renaming function to remove characters.
Ill send you a pm about the other fix you sent. :)
Riki
26th April 2009, 03:22
Im not sure if I asked this already but is there a way to set the audio to be mono? I dont seem to see the option and not sure if it has been removed or was never there.
Selur
26th April 2009, 08:44
you can select the output folder by setting a default ouput folder. ;)
void X264Model::autoNameOutput(){
if(this->isClone || !this->findChild<NBoolValue *>("autoOutput")->boolValue()) return;
emit sendMessage(DEBUG, "autoNameOutput called");
if(!this->findChild<NBoolValue *>("dvdInput")->boolValue()){
QString path = this->findChild<NValue *>("defaultOutputPath")->value();
QString input = this->findChild<NValue *>("videoInput")->value();
QString videoInput = input;
emit sendMessage(DEBUG, "autoNameOutput input: "+input);
input = input.replace("\\", "/");
input = input.remove(0, input.lastIndexOf("/")+1);
input = input.remove(input.lastIndexOf("."),input.size());
input = QDir::toNativeSeparators(path+QString((path.isEmpty()) ? QString("") : QDir::separator()))+input;
input +=".";
QString container;
switch(this->findChild<NRangeValue *>("outputContainer")->intValue()){
case 1 : container = "mkv"; break;
case 2 : container = "m2ts"; break;
case 3 : container = "264"; break;
default : container= "mp4"; break;
}
input += container;
if(QFile::exists(input)){
input = input.replace("."+container, "_reencode."+container);
}
emit sendMessage(DEBUG, "autoNameOutput output: "+input);
this->findChild<NValue *>("out")->setValue(input);
}
}
Im not sure if I asked this already but is there a way to set the audio to be mono?
haven't implemented any downmix since ffmpeg can't downmix audio and mencoder normally doesn't handle audio raw well. (it's possible but kind of a pain)
Emess
26th April 2009, 12:41
Im not sure if I asked this already but is there a way to set the audio to be mono? I dont seem to see the option and not sure if it has been removed or was never there.You should be able to demux your audio from your source and open it in say, Audacity, downmix to mono, and then add it as an external audio file.
Haven't found the time to investigate how to write a .desktop file with an icon. :)
iirc the .desktop file should look like e.g.:
[Desktop Entry]
Exec=sx264
Type=Application
Icon=sx264.png
but I'm not sure where to but the png file or if a .png file is even allowed as icon ;)
Cu SelurWindows won't like it (unless it's changed since win2k) but *nix is fine with PNG icons. The default location iirc is /usr/share/icons, however you can use a full path in the .desktop file like $sx264dir/icon.png where sx264dir is the directory where profiles and whatnot are in ~/.sx264. If using /usr/share/icons, be aware that it generally likes multiple sized copies of your icons in the hicolor directory, at least last I checked.
Request: Ability to open named pipes as video sources. I like to use avs2yuv for example to load avisynth scripts in x264 or mencoder, or sometimes I use mplayer and -vo yuv4mpeg:file=mypipe.y4m, is there a way sx264 could maybe buffer the first frame to get the resolution? Obviously there would be no audio and the user would need to set the framerate themselves.
E~
Selur
26th April 2009, 12:47
resolution wouldn't be enough, length, framerate, par, famecount would also be needed, if mplayer an open such a pipe through 'mplayer and -vo yuv4mpeg:file=mypipe.y4m' and it's able to provide all the needed infos via mplayer -identify -vo yuv4mpeg:file=mypipe.y4m, integration into sx264 would probably not much of a problem.
Riki
26th April 2009, 15:53
The strange thing about the audio is the input source is already mono, and the nero encoder converts it to stereo, is there any way to leave it mono?
As for the output path, thanks! When I saw it greyed out I thought it wasnt an option, now I see the checkbox at the top. :p
Selur
26th April 2009, 16:52
Strange, does sx264 recognize the file as mono? (audio channels = ?)
Got no mono file here, but if you upload it somewhere and send me link via pm I'll look into it tomorrow. ;)
Riki
26th April 2009, 21:28
yeah sx26 says 1 audio channel. I did a test with an existing mono audio file and the filesize ended up being exactly the same, so Im not worried about it. I was getting the info from mediainfo. I thought it may have been forcing it to 2 channels and bloating the filesize, but its not.
Riki
26th April 2009, 22:34
Here is something else interesting. I unchecked MP4 hinting and it made the filesize lower and still works just the same on a streaming server. I thought for sure this was needed but I guess its not.
Selur
27th April 2009, 07:43
@Riki: if you need mp4 hinting or not depends on the streaming server you need, some hint the content on the fly iirc. ;)
just tested the mono audio thing with neroaacenc:
got no problem here, reencoding the mono audio creates a mono aac output,..-> if your system gives stereo output it's probably the fault of the decoder used. ;)
@Emess: About y4m pipe/input: The problem is mplayer doesn't give any infos about length or framecount. Without framecount or length size calculation, showing progress during muxing/encoding etc. isn't possible. I probably could write some workarounds to force mplayer as analyser, mencoder as decoder, only allow 1pass encoding, showing no process and ignoring the missing length and frame count, but would it be worth the effort?
Since I don't use wine under linux I'm not sure, but if mplayer can playback avisynth files as input I can tweak sx264 to accept .avs input under linux too. (might even work atm., with some small bugs, when selecting mplayer as analyser and mencoder as decoder) ;)
Cu Selur
Selur
27th April 2009, 09:11
rev520
*fixed*
- auto adjusting resolution on profile load (with auto adjust hieght/width)
- mkv delay handling
-> updated downloads in first post
Emess
27th April 2009, 10:30
@Emess: About y4m pipe/input: The problem is mplayer doesn't give any infos about length or framecount. Without framecount or length size calculation, showing progress during muxing/encoding etc. isn't possible. I probably could write some workarounds to force mplayer as analyser, mencoder as decoder, only allow 1pass encoding, showing no process and ignoring the missing length and frame count, but would it be worth the effort?
Since I don't use wine under linux I'm not sure, but if mplayer can playback avisynth files as input I can tweak sx264 to accept .avs input under linux too. (might even work atm., with some small bugs, when selecting mplayer as analyser and mencoder as decoder) ;)
Cu Selur
MPlayer cannot load avs files, but what I do at the moment is run avs2yuv via wine, and output that to a pipe. I then load that in x264. Sometimes I do a similar thing with mplayer, but either way, once it starts reading from the pipe, I do not think it can seek to go back, so opening info from it would require reinitialising it as far as I can tell. Maybe have a check on the input extention, if it fits one of the standard pipe extentions (usually .y4m or .yuv,) then have a small popup asking the user to fill in info like the resolution, the par, the framerate, the framecount, etc?
E~
Selur
27th April 2009, 10:48
MPlayer cannot load avs files,..
:( (damn, works under windows ;))
have a small popup asking the user to fill in info like the resolution, the par, the framerate, the framecount, etc?
Nope, not a way to go for me. ('Only trust the user if you definitely have to.' ;))
Another idea: could you test if avsinfo works through wine? If avsInfo would work, it should be able to provide the infos needed. When getting a .y2m/.yuv file sx264 could then look for the .avs file (assuming it's in the same dir as the pipe) and analyse the .avs file with avsInfo (wine avsInfo.exe input.avs).
Assuming avsInfo does work through wine, I patched the sources (http://www.selur.info/sx264Source.zip) to check on .y2m/.yuv input if a .avs file exists an if so to call 'wine avsInfo.exe input.avs' to analyze the content.
Cu Selur
Emess
27th April 2009, 18:37
I haven't got a copy of avsInfo to test with, but it sounds like it'd be mostly for avs scripts rather than any old yuv pipe, not that I can find a webpage for it or anything. From what you said though, how would it proceed if there is no avs script, and instead it's being generated from mplayer?
Seeing as I can't find it, are you able to link me a binary of avsInfo from somewhere, or at least a link to a thread or page about it? :3
E~
Selur
27th April 2009, 20:10
here you go http://www.selur.info/sx264/avsInfo.zip ;)
and yes it's ment for .avs input wouldn't help with 'any old yuv pipe' and unless there's an automated way to get framecount/length I don't see me integrating support for it in sx264.
Selur
28th April 2009, 09:13
Assuming all .yuv/.y4m files start with something like:
YUV4MPEG2 W640 H352 F25:1 Ip A1:1
and frame count can be determined by counting the occurrence of "FRAME" in the input, I implemented a simple method that parses the input and should analyse such files. ;)
Updated the test sources (http://www.selur.info/sx264Source.zip), would be nice if someone could post if this works. ;) (tested it only with a small raw file and not with a pipe)
-> seems like only YUV4MPEG2 output is that easy to analyse -> only analysing y4m input ;)
Cu Selur
Riki
29th April 2009, 14:14
Ive been doing many more tests and one idea that I think could benefit some people is the ability to change the parallel jobs number from the job control. So for example if you have many encodes sometimes you need to limit it to 1 encode while you work, and when you leave to crank it up to 4 or so.
Selur
29th April 2009, 14:45
adding an additional control isn't a problem, will send you a pm with a test version,...
roozhou
30th April 2009, 08:12
Hi Selur,
Here is how to add Lagarith support to mplayer/mencoder
Add the following lines to mplayer/codecs.conf and put lagarith.dll inside mplayer's directory or C:\WINDOWS\system32
videocodec lagarith
info "Lagarith Lossless Video Codec"
comment "http://lags.leetcode.net/codec.html, requires an MMX2 CPU."
status working
fourcc LAGS
driver vfw
dll "lagarith.dll"
out BGR32,BGR24 flip
Selur
30th April 2009, 08:37
thought about adding support to other codecs, that are not natively supported but went against it, since I would end up having to check:
a. license issues that might arise
b. add each additional .dll to the downloads (iirc LorD_MuldeR got a nice collection of .dlls that come with SMPlayer)
-> this might come on a later note, but since the user base is rather small atm. and most people that need more exotic codecs normally now how to add mencoder support on their own, it's easier to not add a .dll package +(.conf file) to the downloads. ;)
Cu Selur
Ps.: Personally I use CanopusHQ as an additional codec.
Emess
30th April 2009, 16:44
I'll test that y4m thing when I install the new machine. Lagarith is an awesome codec, but it doesn't run natively in Linux, at least not last I tried. I'd assume the aim of sx264 using Qt would be for multi platform compatibility, so that kind of defeats the purpose.
E~
Selur
30th April 2009, 16:49
One can decode Lagarith under linux very similar to the way roozhou posted for windows, .dlls normally lie in /usr/lib/codecs and codecs.conf in /etc/mplayer, but yes one of the main goals is multi platform compatibility. ;)
Cu Selur
Riki
30th April 2009, 19:38
Would you know why I get messed up audio playback in quicktime when I use sx264? It pops and pauses and stuff like that.
Selur
30th April 2009, 19:44
1st guess: high CPU usage (on windows I use SetPriority which sets all processes to idle and under linux I leave it to the OS)
Riki
30th April 2009, 19:47
I thought about that too, but I did alot of tests and used multiple computers and its definitely a problem with the encoding. It doesn't do it with my other encodes. I have an 8-core mac pro so I know the computer can handle it. The other encodes I have are from megui, super, adobe media encoder, etc.
Riki
30th April 2009, 19:48
Also, the playback is fine in media player classic, just messes up in quicktime.
Selur
30th April 2009, 19:53
To get this right:
Do you have problems playing material created with sx264 or are you having problems with playback in quicktime while encoding?
If it's playing back content which is created by sx264 do a quick test with audio disabled to check if it's an audio problem.
If it's an audio problem: post which settings you selected in the audio register. :)
Cu Selur
Riki
30th April 2009, 19:57
Basically its an audio only problem with content encoded with sx264 and played back in quicktime. (if that makes since :p)
The audio settings are:
aac
32 kb
22050
everything else is default
I just noticed the mp3 option, I could try that too and see if it fixes it.
Selur
30th April 2009, 20:04
strange, when you would have said you selected NeroAACEnc the problem would be that quicktime sucks at aac-he, but ffmpeg/mencoder both should use faac which afaik only uses aac-lc,...
-> yo could try to:
a. use a higher sample rate e.g. 48000
b. use a higher bitrate e.g. 128 kb
Cu Selur
Riki
30th April 2009, 20:07
I dont see nero as an option. I did put the nero encoder into the root of the sx264 folder. The problem is I need the filesize as small as possible, hopefully mp3 will help with this, or another aac encoder? (are you referring about about mencoder/ffmpeg?)
Selur
30th April 2009, 20:11
I dont see nero as an option.
between the 'Audio format' DropDown and the 'Save'-Button, should be a 'Nero AAC' checkbox,...
sx264 uses NeroAACEnc as aac encoder when 'Nero AAC' is checked, otherwise it uses faac which is a part of mencoder/ffmpeg.
Cu Selur
Riki
30th April 2009, 20:13
Ahh! I didnt notice it because its greyed out. How do I ungrey it so I can test it out? All my other tests were with nero encoder so it should help.
Riki
30th April 2009, 20:16
I figured it out I just had to toggle to mp3 and back to aac. Now it works!
Selur
30th April 2009, 20:17
hmmm,.. another bug, it shouldn't be grayed out if aac audio is selected ;)
Riki
30th April 2009, 20:31
I was able to check it after toggling audio format but after I submit the job it greys itself out again. Im not sure if its even using nero at all. The popping was still there with Nero AAC checked.
I also tried mp3 and every time after the encode I double click the mp4 file and get this error:
Error -2041: an invalid sample description was found in the movie
Selur
30th April 2009, 20:36
Since can't reproduce the effect here, enabled debug output under misc and send me the debug file via pm, if you got a small sample of a file you can't properly reencode it might also be helpful if you could provide such a sample and the settings you used.
Cu Selur
Riki
30th April 2009, 20:38
sure, Ill send you a pm :)
rev521
*added*
- support for .y4m input (YUV4MPEG2)
*fixed*
- mix-up when forcing PAR-typ, ITU-601 and MPEG were switched
- neroaacenc wrongfully greyed out when audio input format was .aac
*changed*
- maximum parallel jobs setting adjustable in Job Control
- removed the lagarith warning so that people who want it can add support manually see: http://forum.doom9.org/showthread.php?p=1279783#post1279783
*updated*
- windows package (found a bug: delete the mplayer folder that comes with the package)
-> updated downloads in first post
rev525
*fixed*
- looping when redoing analysis
- handling of dvd with pcm stream
- vbv Buffer/max rate error that prevented encoding in some cases (on default vs. profile conflicts)
- switching to 1pass abr not changing to bitrate configuration
*changed*
- using mediaInfo to grab audio delay
- instead of 'disable auto deinterlace' and 'force deinterlace', now using 'enabled auto deinterlace' and 'enable deinterlace'
*cosmetics*
- showing current audio input info in the audio register
- showing current audio&video input info in the log register
- removed removed info-popup showing collected audio/video infos
- show info current scan type in filter register
-> updated downloads in first post
rev526
*fixed*
- tsmuxer audio handling (wrong audioId)
-> updated downloads in first post
Emess
14th May 2009, 08:07
Selur, any chance of a field for entering manual cli options, or a "super advanced" tab for all the stuff not covered elsewhere? Example being colormatrix setting or no-asm options.
E~
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.