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
29th October 2012, 09:58
Does this help?
No, it just sais that mp4box doesn't like the video stream. It does not provide any informations where how the videostream was created etc.

I cannot find the debug file!
judging from the output file ("/home/ximo/Gandahar/Gandahar.mp4"), the HybridDebugOutput.txt should be located in "/home/ximo/Gandahar/"

digitall.h
29th October 2012, 20:40
judging from the output file ("/home/ximo/Gandahar/Gandahar.mp4"), the HybridDebugOutput.txt should be located in "/home/ximo/Gandahar/"
But it's not there... Can you point me to where I am to enable DebugOutput?. Just to confirm I did it well.


No, it just sais that mp4box doesn't like the video stream. It does not provide any informations where how the videostream was created etc.
Find below the x264 command from the log tab:
"/usr/bin/x264" --preset veryslow --tune film --crf 18 --profile high --level 4.1 --aq-mode 2 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 16:15 --fps 25 --input-res 718x572 --output "/tmp/gand_15_53_21_451_04.264" -
If you think it will be of any help, I have the rest of the x264 encoding log.

My MP4Box version:
MP4Box - GPAC version 0.4.6-DEV-rev

And my x264 version:
x264 core:120 r2151 a3f4407

I'm sorry, I'm lost with this error. I may try another encode, but I would like to know what happened to this one.

Selur
29th October 2012, 20:57
Can you point me to where I am to enable DebugOutput?. Just to confirm I did it well.
Config->Internals->Handling->Create debug file (see: http://www.selur.de/support)

I'm sorry, I'm lost with this error. I may try another encode, but I would like to know what happened to this one.
Can't really help you since the infos you provide are by far not enough so spot any problem,...

x264 core:120 r2151 a3f4407
this is probably not the cause of your problem, but you might want to update your x264 version (r2151 is from February of this year,... current version is r2216)

Cu Selur

digitall.h
29th October 2012, 21:42
Config->Internals->Handling->Create debug file
Well, it was already enabled...

Can't really help you since the infos you provide are by far not enough so spot any problem,...
Please, tell me what information would be helpful.

Most probably this is not an error in Hybrid, and I'm just making you waste your time...
Hybrid analyzed the files, and streams, and extracted the audio, and adjusted it with DelayCut. It then created a x264 script that encoded a 264 raw stream. Then tried to mux the generated streams with MP4Box, and here came the error... Apparently something wrong in the video stream, according to mP4Box output.

The x264 script looks good. It takes the video from stdin, isn't it?. But I don't see in the log where the video is 'sent' from, is it from mplayer?.
Is there any tool/program to analyze the generated stream and try to detect where the problem is?.

Selur
29th October 2012, 21:50
The x264 script looks good. It takes the video from stdin, isn't it?.
yes

But I don't see in the log where the video is 'sent' from, is it from mplayer?.
this and other informations are present in the DebugOutput, the log only contains some rudimentary infos :)
You can see the calls in the Job Queue if you disable "Minimize job command lines" (in the upper right corner)

If you tell me if you use a 32bit or a 64bit version I can compile my latest development build for you,...

Cu Selur

digitall.h
29th October 2012, 22:37
Yes, I looked at autosavedJobs.xml and could see the pipe:
mencoder -ovc raw -noskip -field-dominance -1 -vf yadif=0,crop=718:572:0:2,scale,format=i420 -forcedsubsonly -nosub -nosound -mc 0 -really-quiet -of rawvideo -o -
-dvd-device "/home/ximo/gand/VIDEO_TS" dvd://1 | x264 --preset veryslow --tune film --crf 18 --profile high --level 4.1 --aq-mode 2 --vbv-maxrate 62500
--vbv-bufsize 78125 --sar 16:15 --fps 25 --input-res 718x572 --output "/tmp/gand_15_53_21_451_04.264" -
I see that the video is piped with mencoder and not mplayer, so no problem here with mplayer2.

Related to my first question, not being able to apply filtering, I loaded a new file in Hybrid and at first I had filtering enabled. But I didn't touch anything. I went back to crop/resize, and when I went forth again to filtering, it was greyed out. I will try to reproduce it with a new file.

If you tell me if you use a 32bit or a 64bit version I can compile my latest development build for you,...
Great!, thank you. I'm on a 64bit system

Selur
29th October 2012, 22:46
uploaded new development versions, for changes and a link see: http://forum.selur.de/topic22-infos-about-fixed-bugs-etc-in-the-next-release.html

Related to my first question, not being able to apply filtering, I loaded a new file in Hybrid and at first I had filtering enabled. But I didn't touch anything. I went back to crop/resize, and when I went forth again to filtering, it was greyed out. I will try to reproduce it with a new file.
If you can reproduce it please write a step-by-step 'guide' for it so I can reproduce it here too. :)

Cu Selur

digitall.h
29th October 2012, 23:40
Hybrid development version 2012.10.27.1
I reproduced the error:

Select DVD input
Press DVD folder and select the folder
In audio handling select passthrough all
Enable tagging
Press extract subtitles
Go to subtitle tab, select the extracted sub and add to Subtitle queue
In x264 tab general settings select crf, and apply veryslow preset and film preset
In Crop/Resize tab enable cropping, select crop style avisynth and press autocrop
After that in filtering tab filters are greyed out

I also noticed that if I apply a filter, enable filter view and press Filter View, the screen blinks and nothing happens. In the debug file I see no reference to this.
Opposite, if I enable crop view and press Crop View, it does launch a window with the video.

Hope all this is of any help.

Any advice to analyse my first encoded stream to see what was wrong?.

Selur
29th October 2012, 23:51
In the debug file I see no reference to this.
PreviewDebug Output needs DebugLevel 7

Any advice to analyse my first encoded stream to see what was wrong?.
No clue how to analyse the stream to find out what went wrong.

I also noticed that if I apply a filter, enable filter view and press Filter View, the screen blinks and nothing happens.
Opposite, if I enable crop view and press Crop View, it does launch a window with the video.
Strange, the calls should be nearly identical,...

I reproduced the error
-> will try to rerpoduce

Selur
30th October 2012, 00:08
Tried to reproduce the problem, but it works fine here.
Tried on Windows 7, Window XP, Ubuntu 12.04 64bit and Ubuntu 10.04 64bit. :(

going to bed now, will download Linux Mint 13 KDE 64bit, install it in a VM tomorrow and try again to reproduce the problem.

Cu Selur

digitall.h
30th October 2012, 00:20
Hi selur,
well things become more complicated...
When I try a different source (this time not animation but film), I cannot reproduce the Filtering tab problem... :confused:
I will try another animation film.
A problem that just emerges with a particular source?

digitall.h
30th October 2012, 17:11
Hi selur,
I did two full encodes with Hybrid, one anime and one film, with no problem. So I suppose that the problem was in this particular film.
I already encoded this same film with Handbrake, without a problem. Of course, we cannot compare both programs, and I really prefer by far the possibilities to adjust the encoding and muxing and tagging to my taste in Hybrid. But this problematic film was encoded to x264 well with another program, so there's something that Hybrid cannot manage and Handbrake can.

There's another question that maybe was addressed before, sorry me if you already answered it. In one film Hybrid failed in detecting the correct source aspect ratio. It detected 16:15 input PAR. It is a MPEG2 with a Display Aspect Ratio of 16:9, and when I play the Hybrid encode it looks like DAR 4:3, vertically stretched. In Handbrake it detetcts the source film as PAR 64:45, don't know if it is more correct for this film, and if this helps.

Selur
30th October 2012, 17:20
Hybrid uses MediaInfo to read the Pixel Aspect Ratio of the file, so that gives us three possibilities:
a. MediaInfo reports a wrong PAR (and Hybrid uses this wrong PAR)
b. MediaInfo reports the right PAR, but Hybrid interprets it wrong
c. PAR in Source is not correct.
-> Analyse your source with MediaInfo, this should at least clear up if it's b. or not. :)


Before you ask: No, Hybrid does not read the Display Aspect Ratio, but only the PAR. Why?
Simply because:
a. PAR is more concrete Info
b. Since PAR, DAR and resolution are connected, and if one has two of the three the last one can be calculated (https://en.wikipedia.org/wiki/Pixel_aspect_ratio)

Cu Selur

digitall.h
30th October 2012, 17:48
Selur,
I have version MediaInfoLib - v0.7.52

The original film information (MediaInfo GUI) is:
Display aspect ratio: 16:9
(I find this strange, it says DAR and not PAR)

The Hybrid encoded information is:
Display aspect ratio: 4:3

So I think this is situation b.

Selur
30th October 2012, 17:55
If MediaInfo is not showing the PAR, you are probably not using it right ;)
Set Debug->'Details - 10' to see all the infos MediaInfo offers. :D
If there was no PAR, Hybrid would assume 1:1, but I bet that this is not the case with your source. ;)

digitall.h
30th October 2012, 18:24
If MediaInfo is not showing the PAR, you are probably not using it right
Of course, you're right.
I'm using the GUI, but in Debug I did not select 'Complete' (in my version there's no 'Details - 10')
And with Complete I now see in the source:
Pixel aspect ratio: 1.422
Display aspect ratio: 1.778
Display aspect ratio: 16:9

And in the Hybrid file:
Pixel aspect ratio: 1.067
Display aspect ratio: 1.333
Display aspect ratio: 4:3
In Hybrid I did not change anything related to PAR, and it identified and encoded the source as 1.067 and not 1.422.
In the other encode it detected and encoded well... :confused:

Selur
30th October 2012, 18:28
would be nice if you could upload a small sample of the source so I can reproduce the problem here.

digitall.h
30th October 2012, 18:32
Do you think the first 1024 Kb vob title can be uploaded?, where to?

digitall.h
30th October 2012, 18:34
BTW, after finishing encode Hybrid cleans up temporal files, but it leaves behind the subtitle (*.idx and *.sub) files and an audio (*.ac3) stream in tmp and in Output folders.
Does it have any purpose?, couldn't everything be cleaned and just deliver de encoded file?

Selur
30th October 2012, 18:38
Subtitles will only be removed if Subtitle->'Delete subtitle after muxing' is enabled.
Audio Files should normally be automatically removed (unless the job processing crashed).
-> without a debug output (and/or a source and a step-by-step guide) I can't reproduce the problem,...

digitall.h
30th October 2012, 18:42
Thank you for the information. I'm sorry for these obvious questions, I suppose I don't know how to use Hybrid well yet...

Where can I upload the first VTS___.VOB of the film?.

Selur
30th October 2012, 18:45
if it's not large you can send it to my email (selur @ hybrid . de) other than that, stuff it in a password protected zip upload it to a file host of your choice and send me the download link and the password via PM

digitall.h
30th October 2012, 23:08
It's 1 GiB in size, too big for mail?

Selur
30th October 2012, 23:12
yes! If you got an gmail account you could upload it to google docs and share it with me.

digitall.h
31st October 2012, 09:09
Well, it took for ages!.
Already uploaded. Interested in your feedback.

digitall.h
1st November 2012, 11:50
@selur,
I tried with a new source.
I had again the problem with filtering being greyed out. But if I set filtering first and crop/resize after, I can adjust filtering. When I apply then crop/resize, filtering is greyed, but with the parameters I set. I don't know if it will be then applied...
But there's another problem. After adjusting all the parameters, when I click on Add to queue I get an error
Enforce ffmpeg is enabled for dvd input! -> create debug output and contact author!
... :eek:

I sent to your mail the HybridDebugOutput file
I don't know what I'm doing wrong. Did you have time to look at the file I sent you?

Selur
1st November 2012, 12:46
Just came home, will look at the file, but the 'Enforce ffmpeg is enabled for dvd input! ' should only happen if there's something wrong with mplayer/mencoder,...

I sent to your mail the HybridDebugOutput file
seems like you forgot to attach the DebugOutput,.. ;)

Looked at the file, here it's detected as PAR 1.422 -> settings up a Mint VM to check if your system is somehow broken of it it's a problem with Hybrid&Mint

Regarding the PAR detection, check if it helps to activate 'Config->Inptu settings->General Settings->Analyse first/last vob of current title', some times DVDs have some wrong infos in the 1st/last vob,.. (some of these 'protection by breaking the content' kind of things)

digitall.h
1st November 2012, 13:16
seems like you forgot to attach the DebugOutput,.. ;)
:D Dooohh!


Looked at the file, here it's detected as PAR 1.422 -> settings up a Mint VM to check if your system is somehow broken of it it's a problem with Hybrid&Mint
This would be a bad thing, at least for me. The best way not to have trouble with a OS (at least for me) is not to change it a lot...

Regarding the PAR detection, check if it helps to activate 'Config->Inptu settings->General Settings->Analyse first/last vob of current title', some times DVDs have some wrong infos in the 1st/last vob,.. (some of these 'protection by breaking the content' kind of things)
I will try and report

Selur
1st November 2012, 13:18
This would be a bad thing, at least for me. Will write a small step-by-step guide what I did, may be that will help to figure out what is going wrong. :)

digitall.h
1st November 2012, 13:34
Hi selur,
on second thoughts, I'm not really sure there's just a problem in Mint, or in the interaction Hybrid&Mint. This strange behaviour (Filtering greyed out, Enforce ffmpeg enabled,...) just appears with some sources, and with other Hybrid doesn't complain at all and detects/encodes/muxes without a problem.

I hope we'll be able to identify the problems since I enjoy Hybrid a lot!.

Selur
1st November 2012, 13:38
What I see in the debug log is:

1. your /usr/bin/mplayer binary points to mplayer2 not to a normal mplayer binary. mencoder on the other hand really points to mencoder.
-> did you not install mplayer?

2. your MediaInfo version is quite old (0.7.52, current is 0.7.61)

3. your x264 build is also quite old (2151, current is 2216)

4. your mp4box version is also relatively old (0.4.6m current is 0.5.1)

5. you ffmpeg version really is old, it's 0.8.3, current is more 1.0 ;)

(your mencoder version is up to date :))

6. sox is 14.3.2 instead of 14.4

------------

Also according to the Log the Pixel Aspect Ratio is detected as 1.422, only title 4 (VTS_03_1.VOB) has an aspect ratio of '1.067' the rest has 1.422.

According to the log, 1.422 is displayed and used as input&output PAR.

Selur
1st November 2012, 13:50
I think I found the main problem: 'Enforcing, ffmpeg as decoder since cropHeight%4 != 0'
-> since mencoder had (probably still has) a problem with to resize to a height which isn't mod4 Hybrid enforces, ffmpeg as decoder which causes problems with DVD input, since ffmpeg can't handle DVD input. :)
So you are probably save if you make sure if you crop to mod4 resolutions.
If you use autocrop, simply set Crop/Resize->Advanced Auto Crop Options->mod to 4.
I'll check if current mencoder/mplayer versions still have this problem (totally forgot about it) and if they to enforce mod 4 for autocrop on dvd input.
-> bug is still present :/

=> uploaded a new test version: https://docs.google.com/folder/d/0B_WxUS1XGCPAcF91ZEVzaENqV3c/edit

jouchan
1st November 2012, 15:06
hi selur, i got problem
i have download movie sample from bluray rips, audio format is DTS and 6 channel
but always show this error:

http://s8.postimage.org/bkdnhe5gl/help.jpg

i have try encode other sample, but audio is mp3 and hybrid working normally
how to resolve it (DTS to AAC) :D
and how to change 6 channel to 2 channel?
please help, thanks :D

Selur
1st November 2012, 15:15
see: http://www.selur.de/support -> no debug output, no detailed infos -> I got no clue in what you are doing.

and how to change 6 channel to 2 channel?
set the audio downmix option to something else than 'don't change',...

Just tested here and I got no problem reencoding dts to aac audio.

Cu Selur

digitall.h
1st November 2012, 16:31
Regarding the PAR detection, check if it helps to activate 'Config->Inptu settings->General Settings->Analyse first/last vob of current title', ...
Well, I had that already enabled...

Selur
1st November 2012, 16:34
Well, I had that already enabled...
I assume you tried it also when its disabled? (which is the default)

digitall.h
1st November 2012, 16:53
Also according to the Log the Pixel Aspect Ratio is detected as 1.422, only title 4 (VTS_03_1.VOB) has an aspect ratio of '1.067' the rest has 1.422.

According to the log, 1.422 is displayed and used as input&output PAR.
I'm sorry if I wasn't clear... :(
The Debug I sent you is related to the 'Enforce ffmpeg...' error, in another source (film). In this case the PAR was correctly detected.
The sample I sent you was a previous one, where Hybrid had the incorrect PAR detection problem.

If you use autocrop, simply set Crop/Resize->Advanced Auto Crop Options->mod to 4.
It worked!!. That source that I sent you the Debug, and Hybrid didn't create a Job complainig about a 'Enforce ffmpeg...', now created a Job well.

I'll try to disable first/last vob analyse now to see if Hybrid detects now well the PAR

Selur
1st November 2012, 16:56
The sample I sent you was a previous one, where Hybrid had the incorrect PAR detection problem.
Strange thing is, it does detect the PAR here fine with that sample

digitall.h
1st November 2012, 17:18
I will upload another sample of the first film I tried in Hybrid.
No matter whether I set autocrop to mod2 or mod4, or enable/disable 'Analyse first/last vob of current title', it does detect it as PAR 16/15 when it's 64/45.

Related to the old versions of ffmpeg/mplayer2/mediainfo/x264/sox/... I have nothing to do about it.
I may compile them from source, but I may break other dependencies of programs using them, and loose automatic update.
I could also use a PPA with more updated versions. It's risky and may also break things, but it will update. Do you any of any confident PPA for these programs?. :)
Are these the versions in your Mint VM?

Selur
1st November 2012, 17:26
the mod thing has nothing to do with the PAR problem.

Do you any of any confident PPA for these programs
I posted ppa afaik and use them over at: http://forum.selur.de/topic124-hybriddependencies-for-ubuntu.html
(normally I keep my systems up-to-date, so updating the tools I mentioned normally doesn't break stuff for me,..)

Are these the versions in your Mint VM?
No, haven't set up the VM since the only problem left is the PAR problem which is like I wrote before one of the the possibilities:

a. MediaInfo reports a wrong PAR (and Hybrid uses this wrong PAR)
b. MediaInfo reports the right PAR, but Hybrid interprets it wrong
c. PAR in Source is not correct.

I'm still confused about your postings since you said the source would be detected as 1.096, but the debugoutput you send showed that 1.422 was displayed and used.

Cu Selur

digitall.h
1st November 2012, 17:48
I posted ppa afaik and use them over at: http://forum.selur.de/topic124-hybriddependencies-for-ubuntu.html
Great!, very detailed. I had missed that. So you use these PPA regularly, so we can trust. This will just leave not-updated sox and GPAC, not bad.

I'm still confused about your postings since you said the source would be detected as 1.096, but the debugoutput you send showed that 1.422 was displayed and used.
Probably my fault for not explaining well myself:

The DebugOutput was related to the 'Enforce ffmpeg...' error, solved with mod4.
The source detected as 16/15 was the first one, that I'm uploading now to Google Drive. It is detected as 16/15 whether I enableor disable 'Analyse first/last vob of current title'.

Sorry me if the information was confusing.

digitall.h
1st November 2012, 20:26
selur,
the upload of the first vob of the problematic film is completed.

I see that in the ~motumedia ppa I can also update my mplayer2 version.
I can try first this update and see if it improves some strange behaviours in Hybrid, before uninstalling mplayer2 and substituting it with mplayer, isn't it?.

Is it really necessary for Hybrid properly working a cutting edge version of ffmpeg?.
I'm asking because in ffmpeg ppa they warn it can break some backward compatibility and may find issues, and that some distros are based more in libav than in ffmpeg...

Selur
1st November 2012, 20:28
you don't have to uninstall mplayer2, you simply need to make sure that the binary in /usr/bin points the normal mplayer or configure Hybrid->Config->Tools to use the right version.

googles drive share aborts the download after a few seconds, not sure where the problem is atm. will try to download a bit later,...

digitall.h
1st November 2012, 21:12
When I say I have to uninstall mplayer2 it's because to install mplayer with Synaptic it detects mplayer2 as an incompatibility and marks mplayer2 to be uninstalled.
If I try and manage to install mplayer from ppa, I'm afraid that it will overwrite some binary and break the system. I read that mplayer2 uses the same name as mplayer (i suppose it refers to the binary name), so I cannot have both of them living together in my system at once.

Selur
1st November 2012, 21:15
I read that mplayer2 uses the same name as mplayer (i suppose it refers to the binary name),
argh,..

digitall.h
1st November 2012, 21:18
...yes, I know :rolleyes:

digitall.h
1st November 2012, 21:47
selur, in my last encode (FullMetal Alchemist) I see some artifacts.
There's a bridge hanging with small lines, and the flicker and look jagged, instead of straight lines.
I suppose this is nothing related to Hybrid but with hqdn3d or x264, isn't it?.

digitall.h
4th November 2012, 00:38
Hi selur,
I tried to update mplayer2 with motumedia ppa, but it said the last version failed to build (...)
So I finally decided to uninstall mplayer2 and install mplayer.
Synaptic detected several problems with dependencies, I will see later if these lead to errors.

I have a source that Hybrid detects as PAR 256x135 when it seems to be 64x45.
When I force input PAR to 64x45, and manually apply crop to 702x430 (or whatever cropping) filtering is greyed out...
I can proceed to the end and generate a job.
I am uploading the first VOB and sending you the Debug.
I will run the job tonight, but I'd rather have the chance of applying filtering to it...

Selur
4th November 2012, 00:49
do not just send me a debug output also write a small step-by-step guide what you click in what order so I can reproduce the problem,...

I have a source that Hybrid detects as PAR 256x135 when it seems to be 64x45.
like I wrote before: Hybrid takes the PAR from MediaInfos output, if your source it not flagged properly there's no way for it to know the proper pixel aspect ratio,..

702x430 (or whatever cropping) filtering is greyed out...
mencoder on linux can't handle non mod4 crop resolutions for dvd input -> if you want to filter crop to mod4
430 is not mod4, but mod2,... 430/4 = 107 with rest 2

I am uploading the first VOB and sending you the Debug.
I will run the job tonight, but I'd rather have the chance of applying filtering to it...
first check what PAR MediaInfo reports for you source,... unless the PAR MediaInfo reports and Hybrid uses differs a sample will not help.

digitall.h
4th November 2012, 13:52
I send you a step-by-step by mail.
Yes, you're right, mediainfo reports as being PAR 1.896 (~256x135).

As autocrop did not detect properly the cropping, I did it manually.
I got the mod4 error, and filtering greyed out.
I then changed to 704x428 (mod4), but filtering kept greyed out.
I closed Hybrid, reopen and adjust cropping manually to 704x428, but filtering appears greyed out anyway. It seems like manual crop disables filtering?.

I uploaded the sample anyway, just to see if there's something wrong in my system. I previewed in Hybrid with detected PAR 256x135, and manually entering 64x45, and in 256x135 looks stretched to my eyes, 64x45 more natural.
I also tried to enable/disable analyse first/last vob, with same result.

In last Hybrid build I still find it leaves an *.ac3 audio track in /tmp, and the subtitle track is not deleted, even if I select 'Delete subtitle...'

selur, as always, :thanks: