Log in

View Full Version : BENCOS - Windows and Linux batch encoder GUI


Pages : 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14

YouDontKnowMe
10th January 2010, 11:19
nice thing you are on track again :P

well I have a favour to ask... could you add "encode by filesize" so I dont have to specify a bitrate but rather a filesize and bencos calculates it automatically? would this be to much to ask for?

Sirber
10th January 2010, 15:37
well I have a favour to ask... could you add "encode by filesize" so I dont have to specify a bitrate but rather a filesize and bencos calculates it automatically? would this be to much to ask for?

adding on the todo

ckmox
14th January 2010, 16:09
@Sirber
are you sure the decoding of audio fails on mplayer or maybe the programming or coding about it has to be updated or checked for glitches because i talked to a casual encoder and a linux user that mplayer(decoder) and mencoder(encoder) successfully encoded the file example i presented to you

and can i suggest to have a slider on resizing the video resolution with rounding to the nearest multiple of 16 just like the slider seen on the "filter -> resize" of avidemux

thanks again

Sirber
14th January 2010, 16:15
are you sure the decoding of audio fails on mplayer or maybe the programming or coding about it has to be updated or checked for glitches because i talked to a casual encoder and a linux user that mplayer(decoder) and mencoder(encoder) successfully encoded the file example i presented to you

the mkv sampled that failed on my side failed using the commandline directly too. It seems to play well, but it fails if you instruct mplayer to dump the wave:

mplayer.exe input.mkv -ao pcm:waveheader:fast:file="%7%out.wav" -vo null -vc null -af channels=2


and can i suggest to have a slider on resizing the video resolution with rounding to the nearest multiple of 16 just like the slider seen on the "filter -> resize" of avidemux

since the input list can have multiple resolution, I cannot make something that is calculated from the source.

ckmox
15th January 2010, 09:15
the mkv sampled that failed on my side failed using the commandline directly too. It seems to play well, but it fails if you instruct mplayer to dump the wave:

mplayer.exe input.mkv -ao pcm:waveheader:fast:file="%7%out.wav" -vo null -vc null -af channels=2



since the input list can have multiple resolution, I cannot make something that is calculated from the source.

i dont have knowledge about linux command line options but this is what he used and what he thinks is the possible problem


This is what I'm using the $x is variable for input file ...
mplayer -ao pcm:file=audio.wav -vo null -vc none "$x"
Maybe it's the chanels=2 or the :fast option ?

I also add the filter
mplayer -af resample=48000:0:0 -ao pcm:waveheader:file=blank2.wav -vo null -vc none "$x"
When I input the 3 sec pic intro into my command , no problems with it whatsoever...

Maybe the channel=2 fails when input is a 1 channel audio ? Dunno about your sample but I had nor problems with encoding any files, beside some old OGMs that had to be first mixed into mkv to make them work. Odd bug that was, but certainly I have no problems with encoding any new mkvs etc. and that's the thing bencos fails on I guess ...

This might also be a windows related problem though I personally doubt it :)


and about the slider resolution yeah your right hehe didnt think about that

:thanks:

steban1990
15th January 2010, 17:00
Sry for the nuisance, but im having some trouble with encoding a fille.

this is what the log gives

Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2 SSE3 Cache64
x264 [error]: MB-tree doesn't support different resolution than 1st pass (640x480 vs 640x360)
x264_encoder_open failed.
FATAL: Cannot initialize video driver. :rolleyes:

Exiting...

what could it be, can you give any advice, thanks in advance.

Sirber
15th January 2010, 17:01
(640x480 vs 640x360)

Did you ask for resizing or cropping?

steban1990
15th January 2010, 19:36
Did you ask for resizing or cropping?

Sry for my litle knowledge with these issues, since i used to encode with minicoder but seem like every encoder that i have been trying to this date are struggling to encode this file, dunno what you mean with the resizing or cropping sry. ::rolleyes:

Btw here are the file specs.
file size around 600 mb
http://img251.imageshack.us/img251/4025/asasx.jpg

Hope i´ve been of help.

Sirber
15th January 2010, 19:40
Sry for my litle knowledge to these issues, since i used to encode with minicoder but seem like every encoder that i have tried to this date are struggling to encode the file, i would like you to explain that better, sry for the nuisance of this newbie. ::rolleyes:

did you use filtering from the "Settings" tab, "Filtering" section?
Because the video size isn't the same on the first pass and the second pass, could be a Bencos bug.

http://i48.tinypic.com/2zp5loy.jpg

ckmox
18th January 2010, 13:09
just a suggestion again about the resize resolution option can you do something like this
http://i47.tinypic.com/21n1wtx.jpg
its from MeGUI a checkbox for suggest resolution is available so you just have to input a width

Fidelix
29th January 2010, 16:02
Man, this is the BEST PROJECT i have ever seen here or anywhere else, that is related to encoding GUI's.

Please, for the world's sake, keep going with your project, there aint decent UI's like Realanime/Bencos out there!

Sirber
29th January 2010, 16:06
Thank you! :D

Fidelix
30th January 2010, 13:54
Hey Sirber, i'm getting the same error with all files being encoded by bencos.
I'm sorry if its the wrong way of reporting this, i didnt know where else to post. Anyway, if this doesnt help i'll delete my message.

This is my bencos config/status screen.
http://www.anbient.net/i/img/bencosbug.jpg

This is Benco's log:
C:\Program Files (x86)\Bencos\enhAacPlusEnc.exe "C:\Users\Fidelix\AppData\Local\Temp/bencos/audio.wav" "C:\Users\Fidelix\AppData\Local\Temp/bencos/audio.mp4" --cbr 48000 --disable-ps


*************************************************************
* Enhanced aacPlus 3GPP Floating Point Reference Encoder
*
* Source timestamp Wed Jan 3 10:01:12 2007
* Build Jan 3 2007, 10:01:18
*************************************************************

input file C:\Users\Fidelix\AppData\Local\Temp/bencos/audio.wav:
sr = 48000, nc = 2

output file C:\Users\Fidelix\AppData\Local\Temp/bencos/audio.mp4:
br = 48000 sr-OUT = 48000 nc-OUT = 2


Writing of 3GPP file failed.


This is the source file info:
K:\Downz\[Kuroi Raws] Spice and Wolf II OVA (DVD 1280x720 H264 AAC 2ch) [A53B4F8E].mkv
General
Complete name : K:\Downz\[Kuroi Raws] Spice and Wolf II OVA (DVD 1280x720 H264 AAC 2ch) [A53B4F8E].mkv
Format : Matroska
File size : 295 MiB
Duration : 22mn 20s
Overall bit rate : 1 845 Kbps
Encoded date : UTC 2009-07-16 06:05:37
Writing application : mkvmerge v2.1.0 ('Another Place To Fall') built on Aug 19 2007 13:40:07
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video #1
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 10 frames
Muxing mode : Container profile=Unknown@4.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 22mn 19s
Nominal bit rate : 1 600 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.072
Writing library : x264 core 68 r1179M 96e2229
Encoding settings : cabac=1 / ref=10 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=9 / psy_rd=0.6:0.0 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=6 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1600 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=17500 / vbv_bufsize=14000 / ip_ratio=1.40 / pb_ratio=1.30 / aq=0
Language : Japanese
Audio #2
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : A_AAC
Duration : 22mn 20s
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Language : Japanese

I'm using Windows 7 x64 Ultimate
Processor = Intel Q8200 Woodstock

This seems to be some adaptability problem in the aac encoder with different file formats...

Anyway, for now i'll do my things with Realanime, but i'm really eager to use bencos ^^

Sirber
30th January 2010, 17:19
Format : AAC

the current build of mplayer used in bencos has issues with MKV/AAC. You can try to upgrade mplayer:


MPlayer for Win32 by sherpya (http://sourceforge.net/projects/mplayer-win32/files/MPlayer%20and%20MEncoder/revision%2030369)

I'd suggest de "rtm" build. Just extract into Bencos installation folder, overwriting the existing files, then retry the encoding. Please tell me if it fixes the issue. Thanks!

[edit]

I made a release (for testing): download (https://sites.google.com/a/detritus.qc.ca/software/projects/bencos/BENCOS_20100130.7z?attredirects=0&d=1)
Updated mencoder/mplayer to revision 30369. The UI has changed a bit too to display better
on linux.

Sirber
30th January 2010, 21:20
nah it still fails :(

[edit]

mplayer.exe -ao pcm:file=out.wav -vo null test.mp4
seems to work, but is much more slower

mplayer.exe -ao pcm:file=out.wav -vo null -vc null test.mp4"
the code that bencos currently use. fails with:
"Too many audio packets in the buffer"

Sirber
30th January 2010, 21:56
made an update to the code named "Slow audio extraction". Only enable if the source is using AAC audio, because it's terribly slower.

download (https://sites.google.com/a/detritus.qc.ca/software/projects/bencos/BENCOS_20100130.7z?attredirects=0&d=1)

Sirber
30th January 2010, 22:23
@Fidelix

Your first video (1280x720.mkv) failed the "video encoding". Can you post the mencoder logs?

Fidelix
31st January 2010, 15:43
@Fidelix

Your first video (1280x720.mkv) failed the "video encoding". Can you post the mencoder logs?

The error happened because i canceled the process.
I tried it again (1280x720) and it only failed on the audio. Same thing.

Well, i realized the UI "feels" a little different from realanime, i guess thats because your programming approach regarding the interface has changed, so i cant tell if it would be difficult to add a really nice feature RealAnime had, which is Drag n' Drop.

Anyway, i'll try ur new build for aac right now.

Edit: Oops, u said before: "Haven't find a working way with FreePascal yet."
Too bad. I really dont know if this helps, and i realize not all delphi components works on lazarus, but anything is worth a try hehhe:

http://www.chami.com/tips/delphi/111196D.html
http://delphi.about.com/od/vclusing/a/dragdrop.htm
http://www.delphidabbler.com/software/dropfiles?mid=3.1
I found also this:
http://wiki.lazarus.freepascal.org/LCL_Drag_Drop#Drag_Drop

Fidelix
31st January 2010, 15:51
Sirber, which enhAacPlusEnc build is Bencos using?

Wouldn't it be a good idea to use Nero's aac encoder? I heard it is better, although i have no base for stating this for sure, but i believe you do.

About the aac problem: The process failed with audio encoding, i dont get how mplayer is responsible for it.

Edit: I looked at some of the early posts, and it seems that licensing is a problem for neroaac.
I've got a suggestion. What about something like this?
if FileExists(neroaacenc.exe) or FileExists(neroaacenc.so) then
somebooleanvariable = true;


Or maybe a "NeroAAC" option in Audio Codec dropdown. I dont know the complexity needed to achieve something like this, because it would certainly involve a lot of ifs and elses regarding other options like bitrate, mplayer and etc, but i'm just brainstorming ^^

Sirber
31st January 2010, 17:21
Well, i realized the UI "feels" a little different from realanime, i guess thats because your programming approach regarding the interface has changed, so i cant tell if it would be difficult to add a really nice feature RealAnime had, which is Drag n' Drop.

I'll have a look at it, last time I tryed (drag drop) was in 2006 :)
Realanime 6 was a stripdown version of Bencos made in Turbo Delphi, mainly because Bencos wasn't working on Vista at that time.

Sirber, which enhAacPlusEnc build is Bencos using?An old one? :D

Wouldn't it be a good idea to use Nero's aac encoder? I heard it is better, although i have no base for stating this for sure, but i believe you do.

It is better but I cannot bundle it due to it's licence. I will add code to detect and support it though.

Sirber
31st January 2010, 17:23
v2010-01-30 with "slow audio extraction" enabled works with AAC source.
For a 24 minutes clip, audio extraction took 9 minutes... :(

Fidelix
31st January 2010, 17:24
"For a 24 minutes clip, audio extraction took 9 minutes..."

Thats due to Mplayer right? Ur using mplayer to extract audio?

What about mkvmerge cli?

Sirber
31st January 2010, 18:02
I'm using mplayer to convert the source audio track into an uncompressed WAV file, then I launch the audio encoder on that file (faac or enhaacplus, soon nero aac too).

Fidelix
31st January 2010, 18:09
Then i guess demuxing files with aac through mp4box or mkvmerge-cli isnt an option?

I believe this would solve the problem, am i right?

Sirber
31st January 2010, 22:06
I need to demux and decompress to feed the encoders

Fidelix
1st February 2010, 00:26
Well then... thanks for the answers, i guess currently "slow aac encoding" is the only option for me.

Good luck Sirber. And if there is anything i can do to help, i'll gladly do it.
good bye.

Sirber
1st February 2010, 14:50
bencos is not really responsive while encoding from HD sources..

[edit]

I'm getting lots of: "Too many video packet in the buffer" and the encoding is realllly slow. :(

[edit]

I'll gonna try with "-nosound -noskip". I read somewhere that mencoder does that when it fails to keep the sinc with video and audio. I hope the sound keeps sync..

Sirber
2nd February 2010, 14:37
I'll gonna try with "-nosound -noskip". I read somewhere that mencoder does that when it fails to keep the sinc with video and audio. I hope the sound keeps sync..

No more video buffer packets errors, but audio did not encode since I look in mencoder logs to see if there's an audio track lol. I think I'll launch mplayer to extract the audio, and if there's an extracted file, proceed to the audio encoding, else proceed to the final merge.

Sirber
2nd February 2010, 14:45
I'm gonna remove XviD and add profiles for 720p and 1080p.

[edit]

I think I'm gonna change the toolchain to:

* handbrake CLI for H264 and AAC LC encoding
* mplayer for audio extraction
* enhAacPlus for AAC HE and HE+PS encoding
* optional: Nero AAC for AAC HE and HE+PS encoding

Fidelix
8th February 2010, 01:51
I'm gonna remove XviD and add profiles for 720p and 1080p.

[edit]

I think I'm gonna change the toolchain to:

* handbrake CLI for H264 and AAC LC encoding
* mplayer for audio extraction
* enhAacPlus for AAC HE and HE+PS encoding
* optional: Nero AAC for AAC HE and HE+PS encoding

That seems to be getting really good.
good luck man, and keep up the progress!

Sirber
8th February 2010, 18:49
I think I'm gonna start a new project to leave this codebase untouched. Too much stuff need to be changed.

"Bencos 2" ;)

Eretria-chan
8th February 2010, 18:54
I figure that's a bad idea since that's what you always keep doing! You keep reinventing the same stuff over and over!
You will do what you feel is best, of course, but my advice is that you continue on the current code.

Sirber
8th February 2010, 19:22
I figure that's a bad idea since that's what you always keep doing! You keep reinventing the same stuff over and over!
You will do what you feel is best, of course, but my advice is that you continue on the current code.

I have to remove most of the code to implement handbrake and I want to keep the old code working in case of. Anyway it won't affect the user nor the interface layout. There'll be more video profiles and presets for HD content, less filtering, Theora and Vorbis support in mkv. MKV output will be optional and as an addon.

Eretria-chan
8th February 2010, 20:28
Then I demand you write it in C++! :D

Sirber
8th February 2010, 20:30
Then I demand you write it in C++! :D

not that again.. :scared:

Fidelix
13th February 2010, 12:04
You'll write in Free Pascal again?
It seems a better idea since you are already familiarized with the needed code.

And plus, c++ wont have ANY advantage in writing a GUI.

Just please dont stop it Sirber, please! I want so bad to see this done!

Eretria-chan
13th February 2010, 12:09
And plus, c++ wont have ANY advantage in writing a GUI.

Didn't say it did ;)
I was kidding.

Sirber
13th February 2010, 18:40
Yeah it's in FreePascal (GTK2). I still want a Linux build for Bencos :)

jofori89
14th February 2010, 14:25
When will bencos support drag and droping fuction and Shutdown/Hibernate when done?

Sirber
14th February 2010, 16:40
When will bencos support drag and droping fuction and Shutdown/Hibernate when done?

dunno

jofori89
14th February 2010, 16:51
Because it support batch so i love it, love mencoder too, this is excellent program to make mini-size anime, so good quality. But how can i set it auto shutdown after finish encoding a a lot of episode (upper 5 -10 episodes) ?

jofori89
19th February 2010, 14:12
http://img130.imageshack.us/img130/6180/hatsuyukikobato17.jpg

When i try encode some softsub mkv anime, why output video change to hardsub like that pic (both in mkv or mp4)? I want to it only encode video + audio source, dont hardsub or copy font + ASS subttiles?

Sirber
22nd February 2010, 17:46
http://img130.imageshack.us/img130/6180/hatsuyukikobato17.jpg

When i try encode some softsub mkv anime, why output video change to hardsub like that pic (both in mkv or mp4)? I want to it only encode video + audio source, dont hardsub or copy font + ASS subttiles?

Is your sub file external or inside the source (.ass vs .mkv) ?
Subtitles never worked in Bencos (and probably never will).

Sirber
22nd February 2010, 17:48
Screenshot of BENCOS 2 settings tab (work in progress)

http://img710.imageshack.us/img710/5763/bencos220100222.png

Sirber
22nd February 2010, 22:20
Basic 2-pass (video) encoding works with x264 (HandbrakeCLI) and Theora (ffmpeg2theora).
ffmpeg2theora completly jam the GUI, I'll have to implement AsyncProcess...

Sirber
22nd February 2010, 22:29
from http://www.whatwg.org/specs/web-apps/current-work/
Theora video and Vorbis audio in Matroska container

<source src='video.mkv' type='video/x-matroska; codecs="theora, vorbis"'>

I think I'll drop ffmpeg2theora and keep only HandbrakeCLI and output theora to matroska.

Alex_080
23rd February 2010, 01:29
Hi Sirber can i convert both audio tracks of a dual audio file at same time by BENCOS 2 please tell me because i always face problem when re-encoding a dual audio file.

Sirber
23rd February 2010, 03:01
Hi Sirber can i convert both audio tracks of a dual audio file at same time by BENCOS 2 please tell me because i always face problem when re-encoding a dual audio file.

That can be done, Handbrake CLI supports it. :cool:

jofori89
23rd February 2010, 13:05
Is your sub file external or inside the source (.ass vs .mkv) ?
Subtitles never worked in Bencos (and probably never will).

ASS subtitle file and fonts attached to mkv file, it's anime mkv softsub, and output file no has audio too. I retested other mkv file, nothing change. What is wrong with audio and video, i don't enable "Autoload VSFitler" in Haali Media Splitter, my OS is Win XP sp3 and decoder is CoreAVC 2.0


Complete name : E:\My documents\AVS\Maria+Holic - 02 [gg].mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 54.4 MiB
Duration : 23mn 38s
Overall bit rate : 322 Kbps
Encoded date : UTC 2010-02-22 12:45:49
Tagged date : UTC 2010-02-22 12:45:49

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 23mn 38s
Bit rate mode : Variable
Bit rate : 320 Kbps
Maximum bit rate : 3 378 Kbps
Width : 848 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.033
Stream size : 54.1 MiB (99%)
Writing library : x264 core 83 r1391 3d0f110
Encoding settings : cabac=1 / ref=5 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 /
psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 /
fast_pskip=0 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 /
constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 /
keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=320
/ ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2010-02-22 12:45:49
Tagged date : UTC 2010-02-22 12:45:54

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 394ms
Bit rate mode : Constant
Bit rate : 3 944 bps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 44.1 KHz
Stream size : 195 Bytes (0%)
Encoded date : UTC 2010-02-22 12:45:54
Tagged date : UTC 2010-02-22 12:45:54


And one request, can you add gaining audio fuction?

Sirber
23rd February 2010, 14:38
what is a "graining audio function" ?

maybe mencoder did hardsub the subtitles. I'll have to try.