Log in

View Full Version : Hybrid: Input -> x264/x265/Xvid/VP8/VP9


Pages : 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78

Selur
26th June 2011, 21:22
Think I fixed the problem, but since you didn't post which Hybrid version you are using (Win2k/Windows/Linux 32/64bit) I can't provide you with a fixed test version.
(-> post the needed info and I'll compile you a test version and send you a link via pm)

Cu Selur

Selur
29th June 2011, 09:32
Hybrid rev 2011.06.29.1:

*fixed*

crash when importing .mkvs with multiple chapter sets (now the last one will be imported)
subtitle handling for multiInput
multiple stream source srt->ttxt

Hybrid rev 2011.06.29.2:

*fixed*

problem when tsMuxeR output


Hybrid rev 2011.06.30.1:

*fixed*

crash when extracting subtitle from DVD source


-> downloads: http://www.selur.de/downloads

Cu Selur

Selur
1st July 2011, 16:33
Hybrid rev 2011.07.01.1:

*fixed*

problems crash when extracting subtitle from dvd/blu-ray source


-> downloads: http://www.selur.de/downloads

Cu Selur

pdanpdan
19th July 2011, 06:50
Hello,
I just tested the experimental :) cut support.
Input file: NextPVR capture 1.ts (mpeg2 video + mpa audio)
If I enable cut in main tab and select something in start field, then on audio convert (to nero aac) I get an error Crashed Couldn't find 'Volume adjustment'!(3)
The intermediate demuxed mpa is 0b.
Everything works if cut is not enabled.
Debug file: http://pastebin.com/DRFKiH8G

Selur
19th July 2011, 09:43
I'll look into it. :)
-> think I found the problem, will send you a link to a hopefully fixed test version via pm.

Cu Selur

pdanpdan
22nd July 2011, 05:26
Sorry, it's me again.
Source .3gp 1280x720 h264 / aac from phone

1. If I choose rotate output in Crop/Resize / Misc, I think there is an extra comma in mencoder command line
report: http://pastebin.com/bAQTh2rc
debug: http://pastebin.com/y02PijLU

2. What does "Flip input width and height"?
I mean I have 1280x720 video, I rotate it 90cw and scale it down to 576x1024.
Can I choose 1024x576 in resize and "Flip input width and height"

3. In Audio / Audio filtering / Filtering, if I choose Normalize I get ABORTED on the line with mencoder | neroaccenc
The strange thing is that on the .ts files (tv captures) it works.
report: http://pastebin.com/Q4cnQYvS
debug: http://pastebin.com/zpncYFiK

Selur
22nd July 2011, 07:24
1. ... I think there is an extra comma in mencoder command line
I agree -> fixed it locally will send you a test version when I get a handle on the audio problem :)

2. What does "Flip input width and height"?
this will not change the mencoder/filter call but only flip the output width/height when signaling it to i.e. x264
resize: 1024x576 -> x264: --input-res 1024x576
resize: 1024x576 + flip -> x264: --input-res 576x1024
resize: 576x1024 + flip -> x264: --input-res 1024x576
resize: 576x1024 -> x264: --input-res 576x1024
I added this option when I processed a lot of 480x576 clips and aspect ratio detection didn't work properly.
(Not sure if this option is even usefully anymore in the way it is atm. :))

3. In Audio / Audio filtering / Filtering, if I choose Normalize I get ABORTED ...
seems like there's a problem with the sox call, would be cool if you could upload a small sample of the source you try to convert :)
(will also look into the flip thing abit more if I got a sample; problem is that sox assumes it gets singed integer values but it seems like it gets unsigned integer values ;))

Cu Selur

pdanpdan
22nd July 2011, 07:51
It shows the problem with audio aborted.
It's not one recorder in portrait mode - it's landscape.
But it's the same thing with portrait - I have to rotate it 90cw and then resize to 576x1024.
By the way - I just now realized: the order the operations are done is 1-Rotate,2-Resize? :)

Selur
22nd July 2011, 07:54
the order the operations are done is 1-Rotate,2-Resize?
yup.

But it's the same thing with portrait - I have to rotate it 90cw and then resize to 576x1024.
A portrait source would be nice to check resize&co changes against it ;)

pdanpdan
22nd July 2011, 07:56
ok, I'll upload one this evening
thank you

Selur
22nd July 2011, 09:52
Nice, I also just send you a link to a new test version, which changes the rotate handling a bit. :)

Cu Selur

pdanpdan
23rd July 2011, 06:46
1. I have another file that fails on audio encoding: http://www.mediafire.com/?q2s2tw83gm3m72c
This time I choose 29.97->23.976 convert on audio and normalize (it fails with ABORTED...)
2. In x264, shouldn't the "Tune: animation" add "--tune animation" on command line?
3. The apply button on x264 Preset does not account for x264 Tune, so if you first choose tune and then preset you loose tune.

Selur
23rd July 2011, 07:05
1. I have another file that fails on audio encoding
I'll look at it :)
-> I can reproduce it, know I just need to figure out how to fix it :)
Problem is that I tell ffmpeg with '-f s16le' to output signed-interger but it seems like it outputs a-law instead. :/

2. In x264, shouldn't the "Tune: animation" add "--tune animation" on command line?
Nope. Since 'animation' does:
animation (psy tuning):
--bframes {+2} --deblock 1:1
--psy-rd 0.4:<unset> --aq-strength 0.6
--ref {Double if >1 else 1}
and the bframes and doubling of the refs it not traceable once it has been applied. ;)
When a tune or option is applied the settings are changed accordingly, after than Hybrid has a complete (unshortened) command line and tries to minimize it.
'Problem' is a +2 or a doubling is not trace able and the settings need to be changed beforehand to be sure no compatibility issue is triggered, i.e. if you level only allows 5 ref frames and the default value would be three applying animation would boost the ref value to 5, but from 5 there's no way to trace it backwards that animation was applied, therefore Hybrid will not even try to show --tune animation. ;)
3. The apply button on x264 Preset does not account for x264 Tune, so if you first choose tune and then preset you loose tune.
That's right and logical. A preset is a fixed setting combination, so Preset resets the settings to default and then applies the changes for the Preset. Tune on the other hand applies the changes to the current settings without resetting anything.

Cu Selur

Selur
3rd August 2011, 21:50
Hybrid rev 2011.08.03.1:

*fixed*

cudaH264: cq setting accidently disabled on "1-pass constant quantizer"
cudaH264: changing target file size did not change target bitrate
problem with aspect ratio and (crop-)preview
problem with key-mapping during (crop- and) preview
lagarith decoding: force -vfm ffmpeg for lagarith input when decoding with mencoder (due to ffmpeg decoder limitations currently lagarith decoding only works with yv12 lagarith)
extracting audio with tsMuxeR when experimental cut support is enabled (workaround for tsMuxeR bug: audio extraction results in 0 Byte file when using --cut-start)
extra ',' when using 'rotate'
Xvid: resolution restrictions and restriction checks
kerndeint calls by adding an additional scale before it
x264: error message when preset calls changes weightedP, but interlaced encoding doesn't allow it


*changed*

removed '--aspect' parameter from mencoder call (should not be needed since output is raw)
adjusting resize values when 'rotate' is enabled


*added*

deinterlacers: 'Yadif - custom' and 'mcdeint - custom'
option en-/disable if mkv fps will be checked against average time code fps
filter: gradFun, postprocessing options
deinterlacers: "linear interpolation - fast", "cubic interpolation", "Median Deinterlacer", "FFMpeg Deinterlacer"
x264: support for '--subme 11' (requires x264 rev 2037+)
x264: 'MediaInfo - Encoding settings - import' allows to import the 'Encoding settings'-String MediaInfo shows for x264 encodes


*cosmetics*

rearranged Filter-Tab


-> downloads: http://www.selur.de/downloads

Cu Selur

flebber
4th August 2011, 06:00
Wow you hve been busy!! Thanks.

Selur
4th August 2011, 07:05
and overlooked a stupid bug ;)

Hybrid rev 2011.08.04.1:

*fixed*

job creation

-> downloads: http://www.selur.de/downloads

Cu Selur

Selur
5th August 2011, 13:36
Hybrid rev 2011.08.05.2:

*fixed*

autoselection of audio/subtitle with language X


*added*

output name generation: 'Add parent folder name as prefix'
subtitle: 'All Subtitle Extract/Add' only add/extract subtitle with language X


-> downloads: http://www.selur.de/downloads

Cu Selur

Brazil2
7th August 2011, 12:31
Hybrid rev 2011.08.05.2:
Typo in the Windows 2k additions file name:
Hybrid_win2k_11085.7z should be Hybrid_win2k_110805.7z

Selur
7th August 2011, 12:35
Thanks, link should be fixed now. :)

chunkylover67
11th August 2011, 13:54
When there's an update, can you make it so that the settings made in the previous version are transferrable to the newer one? I always have to reset everything, including the x264 profiles.

Selur
11th August 2011, 14:38
No, at least not until I find more time.

1. most of the time you only need to reset the models mentioned in the POPUPs (unless I change a lot, which normally only happens when I do a lot of refactoring and changed some of the main Hybrid routines, but that really should not happen often, iirc. this was only necessary one time since I started with Hybrid and added the possibility to reset single Models)
2. in theory it's possible to port one model version to the next but I frankly just don't have the time to write such routines&co whenever a model is changed (+ it's a really boring task, since post time, just a new entry comes to the model or the parameters of an entry change; the configurations are only saved models so this can be even done by hand).
3. without any warranty: depending on the changes it might be enough to save the current configuration instead of resetting it (but since this is not always the case resetting is the save way)

----

About the Configurations:
At the moment there's a bit of a design flaw in Hybrid, since I save and restore the complete Model when a configuration is saved. Which causes problems when the model layout changes at all.
It might be better to only save the changes to the default, so that at least new options and parameter changes most of the time would not require to reset the saved configurations.
Default (and Global profiles) still would be needed to be reset and the if i.e. the x264 defaults change this would result in changed command lines without anyone knowing.

Cu Selur

Music Fan
11th August 2011, 16:08
If it's a really boring task, could you add an option which saves a file including all settings, and that we could open to put all previous settings after a new installation ?
It's like the bookmarks in Firefox that can be saved in a file.
I don't know if it's possible for programs like yours, it's just an idea.:)

Selur
11th August 2011, 16:18
The problem is the 'all settings'.
Atm. all the settings are spread over models which Models hold all the settings (currently selected values, available options,...) for a specific area of the tool and if you save a configuration you save a specific model. If you save a global profile you save all the models in a file.
Problem with this is if the model definition changes you will have conflicts and Hybrid will tell you to reset the specified model. ;)

So I could easily add an option that saves a global model of for each job during job creation, but this would not help with the fact that Hybrid would cause problems when you import this model after when a model has changed and thus would not solve your problem. ;)

Cu Selur

Ps.: you can look at the saved models&co on you hard drive to see what data they include atm.:
win7: C:\Users\USERNAME\AppData\Roaming\hybrid
winxp: C:\Documents and Settings\USERNAME\Application Data\hybrid
linux: /home/USERNAME/.hybrid/

PPs.: with the next version, user saved video&audio configurations should be fine, global profiles and defaults still need to be reseted, but that can't be avoided since they need to reflect all changes.
-> I think I came up with an idea how to modify the code that I can save only (name,value)-pairs for all the profiles, which should make it possible to skip the reseting step, so you will get a popup to resave the defaults.

chunkylover67
17th August 2011, 13:49
Can there also be an option (or automatic) for THM/JPG generation if someone is encoding to the PSP? The feature is supported in programs such as Xvid4PSP

Selur
17th August 2011, 14:02
Never heard of THM before :)
looking at http://www.linupedia.org/opensuse/Videoconverterscript I see:
#
# PSP
#

if [ "$MEDIA" == ALL || "$MEDIA" == PSP ]; then
mkdir -p "$PSP";
echo "PSP conversion started...";
time konsole --caption "Converterscript v.0.0.2 - Converting for Sony PlayStationPortable..." -e ffmpeg -i "$1" -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 "$PSP/$basename1.MP4";
echo "Creating thumbnail graphics...";
time konsole --noclose --caption "Converterscript v.0.0.2 - PSP-Thumb Converting..." -e ffmpeg -y -i "$1" -f ljpeg -ss 5 -vframes 1 -s 160x120 -an "$PSP/$basename1.THM";
echo "PSP Conversion finished.";
else
echo "PSP-Conversion not selected.";
fi
if I understand this right, this would just be a single frame from position "5 seconds" with a resolution of 160x120.
Not sure which parameters are needed for to make this useful,.. i.e. does the frame size need to be fixed to 160x120, does it always have to be from 5 seconds into the film?
Do you have some additional infos about this?

Cu Selur

chunkylover67
17th August 2011, 14:06
It doesn't have to be 5 secs. It can just be any screenshot anywhere in the film, sized 160x120. The PSP supports JPG and THM.

Selur
17th August 2011, 14:09
Okay, I'll think about some general thumb nail generation. :)

illogan
17th August 2011, 14:15
It is just the still image for the thumbnail preview. Maybe it have to be that resolution for compatibility issues?
The Windows7 preview thumb for videos is also fixed at 5 seconds... for a reason i guess. :D

chunkylover67
17th August 2011, 14:18
It has to be 160x120 for the PSP. That's the only resolution it supports for a video preview.

Selur
17th August 2011, 21:44
Okay, I think I got the main part implemented, main question is: Do I need some clever resize (+letterbox), since ffmpeg will output 160x120 is you tell it to, but is that wise, since one will probably end up with a streched picture,..
+ what version of Hybrid do you use (win/linux/mac 32/64) so I can send you a test build

chunkylover67
17th August 2011, 21:59
Yeah, a clever resize would be great. For videos that can't go down to that resolution then a fixed 160x20 would do fine, and I use Hybrid 2011.07.01.2

chunkylover67
17th August 2011, 22:02
I use the Windows version.

Selur
17th August 2011, 22:05
not sure how to tell ffmpeg to pad top&bottom,..
ffmpeg -y -v -10 -threads 1 -an -i "test.mp4" -vf "scale=160:-1,pad=160:120" -vcodec mjpeg -vframes 1 -ss 10 "test.jpg"
will create a 160x120 but ffmpeg only adds the padding at the bottom,.. (and I'm not sure how to change it, see: http://ffmpeg.org/libavfilter.html#SEC42)

GOT IT!!! :)

ffmpeg -y -v -10 -threads 1 -an -i "D:\Encoding Output\test.mp4" -vf "scale=160:-1,pad=160:120:0:(120-ih)/2" -vcodec mjpeg -vframes 1 -ss 1 "D:\Encoding Output\test.jpg"

Cu Selur

Ps.: going to bed now :)

Selur
17th August 2011, 22:17
I use the Windows version.
32 or 64bit? come on,...

chunkylover67
17th August 2011, 22:20
32 bit.

chunkylover67
17th August 2011, 22:20
I don't really know anything about ffmpeg and all that, but surely it can't be that difficult to generate a thumbnail image? I'm not sure how Xvid4PSP does it, but it uses Avisynth a lot, I'm not sure if you need it to make thumbnails.

Selur
17th August 2011, 22:26
It's not complicated, but after all in all around 10hrs (work&private) programming + API reading I'm totally bombed. ;)
->think I got it working, will send you a hybrid test version via pm in a few minutes and then go to bed for today.

Selur
19th August 2011, 23:59
Hybrid rev 2011.08.19.1:

*added*

DVD: dvdangle support
rearranging of subtitle and audio queue items via drag&drop
subtitle: move up, move down, modify, delete subtitle in subtile queue (by right click on the item)
audio: move up, move down, delete audio entries in audio queue (by right click on the item)
x264: allow switching between jvt, flat and custom quantizer matrix
a simple thumbnail generation option (Config->Output settings->Container and Thumbnail Settings)
misc: option to switch between mencoder and mplayer for dvd audio extraction


*changed*

subtitle handling: don't set mkv default&forced automatically
always only save (name,value)-pairs in profiles and hopefully kill the need to reset settings


*fixed*

Xvid: removed profile=unrestricted from call
x264: 10bit encoding


-> downloads: http://www.selur.de/downloads

Cu Selur

Selur
21st August 2011, 11:48
Hybrid rev 2011.08.21.2:

*added*

x264: option to set output colorspace


Hybrid rev 2011.08.21.1:

*fixed*

x264&xvid: 2pass 1st pass output file handling
windows packages: avsInfo was broken


-> downloads: http://www.selur.de/downloads

Cu Selur

pdanpdan
21st September 2011, 04:59
Hello,
It's not an important problem, but I just want to check if somebody else has the same problem in mplayer preview:
- right arrow moves the movie 1sec forward (on a npvr captured .ts - mpeg2 video/mp2 audio)
- right arrow moves the movie 1sec backward and the 1sec forward and so on (on a mkv h264/aac)

Selur
24th September 2011, 12:55
Hybrid rev 2011.09.24.1:

*fixed*

x264: 10bit replacement caused problems when path to x264 binary also included the string x264
x264: Blu-ray checks regarding frame rate
*added*

'Start Queue'-button in Main-Tab
'Stay on top'-Option in Config->Internals->Handling
AV-Combo-Profiles (combination of a video and an audio profile)
reading values from misc.ini file (must be located next to Hybrid binary) and look like:
[General]
fontsize=15
settingPath=PathtoSettingsFolder

to create portable version of Hybrid, create a settings subfolder in the Hybrid folder and set the misc.ini to:
[General]
settingPath=.\\settings
side node: backslashed need to be escaped!
options to pass-though default&forced flags for subtitle/audio when going from mkv to mkv
Press F12 to abort subtitle extraction (in MainTab)
option to select preferred mpeg2 decoder
FilterView: allows to compare unfiltered and filtered source - for Denoise/Sharpen and Post-processing only; Requires uptodate mplayer and local ip connection between two mplayer instances
Windows Installer: added Option to set Custom Hybrid Settings Path (thanks to Faust)
*cosmetics*

using a combobox instead of a spinBox for subtitleSelection (not 100% sure if I didn't miss an index, so report if you run into an subtitle problem,..)
using a combobox instead of a spinBox for audioSelection (not 100% sure if I didn't miss an index, so report if you run into an audio problem,..)
*changed*

when default container changed and generate is active output container will be changed too
when input contains subtitle subtitle tab will be automatically enabled
hand over audio delay to Preview even when audio is not from a seperate source
*removed*

notification that subtitle extraction starts
all hidden flags


-> downloads: http://www.selur.de/downloads

Cu Selur

mcjordan
25th September 2011, 12:01
http://www.selur.de/sites/default/files/hybrid_downloads/Hybrid_110924.zip
http://www.selur.de/sites/default/files/hybrid_downloads/Hybrid_110924_2k.zip

File not found...

Selur
25th September 2011, 12:04
fixed :)

Selur
25th September 2011, 18:23
Hybrid rev 2011.09.25.1:
*fixed*

postponing of jobs
cropping Preview


-> downloads: http://www.selur.de/downloads

Cu Selur

mcjordan
26th September 2011, 10:11
http://www.selur.de/sites/default/files/hybrid_downloads/Hybrid_110925_2k.zip

Missing again...:)

Selur
26th September 2011, 10:21
Fixed,..

alter4
26th September 2011, 12:21
Hello guys! I have two questions.
1) It is normal that audio "passthrough all" doesnt work with DVD source?
2) I recommend to update oggecn2 from aotuv beta 6.02 to beta 6.03 cos 6.02 has critical problems with 6 ch files. see aotuv home (http://www.geocities.jp/aoyoume/aotuv/) and discussion on HA

Selur
26th September 2011, 12:26
regarding
1) Nope, should work,.. works fine here. (just tested with Elephants Dream and another DVD)
2) I'll update it (totally missed that there was an update :))

Cu Selur

alter4
26th September 2011, 12:32
Ok. Thx! let me describe details, I imported DVD, set output file, changed audio settings to "passthrough all", pressed "Add to queue" and got
"Notice. You just added a job with empty audio queue...bla-bla ".
Tested with 3 my dvds on hdd, winxp 32 sp3.

Whoops!... If I open VOB directly, but not "as DVD input" it really works. But is it as designed?

Selur
26th September 2011, 12:54
did the same thing,.. works without a problem here,..
Are you using the latest version (2011.09.25.1) ?
Not sure what the problem is, you could reset the settings Config->Defaults->Reset->All and see if that helps.
Tried 5 different DVDs and no problem with any of them,...

Cu Selur