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

Eretria-chan
23rd February 2007, 13:00
The worst fears have now come to pass...
Bencos failed on audio encoding. Why? No idea. Since it doesn't keep logs of past events, that information is now lost to me. Further, it doesn't help that the audio encoding comes AFTER the video encoding. The video encoding pass was now wasted because audio failed.
Now that's why I always wanted audio encoding first....

Sirber
23rd February 2007, 13:34
@Eretria-chan

Due to mencoder design and other limitation, the only way to know if there's audio in the source is from mencoder logs from video first pass. Also, mencoder will use the first audio track unless you set the audio track number (aid).

Eretria-chan
23rd February 2007, 14:45
Due to mencoder design and other limitation, the only way to know if there's audio in the source is from mencoder logs from video first pass.
There is audio in the file, but it doesn't want to encode it...

Also, mencoder will use the first audio track unless you set the audio track number (aid).

But I have NO idea whatsoever to specify what track to use, or if it's possible to select a certain LANGUAGE track and subtitle track to keep. If not, then I would say mencoder is inherently flawed.

Concerning abovementioned problem...
I don't know where Bencos places the audio file that it extracts, but it isn't in the temp directory and the error "No valid SBR configuration found" is what enhAacPlusEnc.exe returns.

Sirber
23rd February 2007, 18:12
I don't know where Bencos places the audio file that it extracts, but it isn't in the temp directory and the error "No valid SBR configuration found" is what enhAacPlusEnc.exe returns.

http://www.detritus.qc.ca/forum/viewtopic.php?id=36

enhaacplusenc only supports 44khz audio and 48khz.

http://www.detritus.qc.ca/forum/viewtopic.php?id=10

Features:
# Doesn't use VFW or DirectShow codecs
# Doesn't modify your system
- Video codec: MPEG4 AVC (x264)
- Audio codec: AAC HE+PS, AAC HE, AAC LC
- Input: AVI, MKV, MP4, OGM, AVS*
- Input audio: 44kHz or 48kHz
- Output: MP4, MKV
* deprends on your mencoder build

But I have NO idea whatsoever to specify what track to use, or if it's possible to select a certain LANGUAGE track and subtitle track to keep. If not, then I would say mencoder is inherently flawed.

http://www.detritus.qc.ca/forum/viewtopic.php?id=11
http://www.detritus.qc.ca/forum/viewtopic.php?pid=159#p159
http://www.detritus.qc.ca/forum/viewtopic.php?pid=168#p168

Best go read over my forum, since it's the main development site.

Eretria-chan
23rd February 2007, 18:16
http://www.detritus.qc.ca/forum/viewtopic.php?id=36

enhaacplusenc only supports 44khz audio and 48khz.

http://www.detritus.qc.ca/forum/viewtopic.php?id=10

Features:
# Doesn't use VFW or DirectShow codecs
# Doesn't modify your system
- Video codec: MPEG4 AVC (x264)
- Audio codec: AAC HE+PS, AAC HE, AAC LC
- Input: AVI, MKV, MP4, OGM, AVS*
- Input audio: 44kHz or 48kHz
- Output: MP4, MKV
* deprends on your mencoder build

That error is misleading. There would be no way I knew the sampling rate it had. It doesn't make it easier when Bencos puts the audio temp file in bencos\codecs. That's not Vista compatible in the least either.

As for bencos 20061223, track selection is only by Track ID:

MPEG: 0−31
AVI/OGM: 1−99
ASF/RM: 0−127
VOB(AC3): 128−159
VOB(LPCM): 160−191
MPEG-TS: 17−8190
from mplayer manpages

MKV/MP4: 0−99
from testing
That makes no sense.

...And subtitles were removed at the moment? That means testing of such sources would have to wait I guess?

Sirber
23rd February 2007, 18:27
That error is misleading. There would be no way I knew the sampling rate it had. It doesn't make it easier when Bencos puts the audio temp file in bencos\codecs.I have to extract the audio with mplayer, and it doesn't support paths. So it just to anywhere. Also, in bencos, you can right click on your file in the list and select Info.

That's not Vista compatible in the least either.Couldn't care less...

...And subtitles were removed at the moment? That means testing of such sources would have to wait I guess?It's work in progress. You can see everything that change here:

http://www.detritus.qc.ca/forum/viewtopic.php?pid=32#p32

Eretria-chan
23rd February 2007, 18:31
Couldn't care less...
Plus it's very unfriendly with limited user accounts, plus it's wasted space. Plus some will eventually get Vista and you will maybe get some complaints...
But mencoder, such a big thing, it doesn't support audio extraction? Using mplayer to do it seems stupid. Mplayer seems to be even more flawed as it cannot even output the audio to a certain path.
Well, I'm sure a way will open up sometime in the future...

Sirber
23rd February 2007, 19:01
I tested plenny and the best way is mplayer. My job is to workaround all that crap and get something working.

If you have a better solution to the encoding process I'm listening. Complaining won't get us anywhere.

Eretria-chan
23rd February 2007, 19:05
I agree - but if you don't plan on using non-Windows tech, like DirectShow, then I have no further ideas, then maybe, find some library floating around out there to decode the audio to wav and maybe sample it to 44 khz.
Well, that's all. For now anyway I guess...

Sirber
23rd February 2007, 19:09
I'll add a filter for audio sampling, but I cannot force it.
I'll ask Celtic Druid if he can make a patch for mplayer to be able to specify a path.

celtic_druid
24th February 2007, 14:21
You can specify a path. Just can't contain a ":". So basically you need to use something like msys or use "%n%string_of_length_n" to escape it. Don't think it works for all options where you can specify paths. Definitely should work for -ao pcm though.

Eretria-chan
24th February 2007, 14:24
Just a thought, but Bencos allows you to change settings while its encoding, but it won't honor those new settings unless you stop and restart the encoding process.

Sirber
25th February 2007, 03:30
@CD
Could you give me an exemple please?

@Eretria-chan
Like all my GUI ;) Should be better in yours I assume.

Eretria-chan
25th February 2007, 13:33
@Eretria-chan
Like all my GUI ;) Should be better in yours I assume.

If I actually can find motivation to finish it -_-
Relying on your GUI is so easy! :D

Eretria-chan
26th February 2007, 15:15
Hey, this thing can even encode files streamed through Network! Awesome!
Is that supposed to happen? Mencoder suffered from a access violation, but Bencos continued as if nothing happened. I have yet to see if it was the Network streaming that caused the problem.

Sirber
26th February 2007, 15:33
What do you mean by network streaming?

buzzqw
26th February 2007, 15:35
i think capture the internet/network (mms/rtps...) video stream and encode on the fly

BHH

Eretria-chan
26th February 2007, 16:12
What do you mean by network streaming?

I encode files by selecting them from network (ie, the file is on another computer).
Further update on the problem suggests that it's related to the Intel Core Duo processor since the problem seems to appear even if the files are stored locally.
Yes, the test was conducted with Vista and UAC disabled, but I'm still learning towards the processor. Tested with latest Bencos build. I'll try the P4 package, if I can...

UPDATE: It seems the Debug profile doesn't crash, just as the P4 crash thread suggestion. It would appear it's the same problem. I've applied the P4 patch. Now let's see if it crashes again...
UPDATE2: It works!

Well, you'll be thrilled to hear that it works to encode files through Network.
Hey, what revision of x264 is mencoder using?
Sneaky... Bencos is saving settings somewhere I don't know... I wonder where? I'm too lazy to find out right now.

DarkZell666
26th February 2007, 17:20
"Streaming over network ...", lol this is simply via shared directories from what I understand, as in "\\192.168.1.2\mysharedanime\narutosux101.avi".

Streaming would have been mms/rtsp indeed (though that should work too btw ;)).

Eretria-chan
26th February 2007, 17:58
Yes, it's via shared directories, but it's streaming over the network. It isn't stored locally--it's sent over the network - hence, streaming. Streaming over network, not internet.

Sirber
26th February 2007, 18:34
your file has to be "C:\blabla.avi", aka real files readable via cmdline. Why playing with fire?

Eretria-chan
26th February 2007, 21:14
Because it works. It works very well. Why transfer files and fill the relatively small HD with a lot of duplicate material when I don't need to?

Z:\Program Files\Bencos\mencoder.exe "\\IRIA-PC\...\Movies\Anime\Tsubasa Chronicle\Tsubasa Chronicle - 06.avi" -mc 0 -of rawvideo -ovc x264 -oac pcm -o Z:\Users\Selune\AppData\Local\Temp/bencos/video.264 -x264encopts deblock=1,1:bframes=5:frameref=5:threads=auto:b_pyramid:nofast_pskip:nopsnr:bitrate=326:pass=2:8x8dct:weight_b:mixed_refs:me=umh:bime:partitions=all:subq=6:brdo:trellis=1 -nosound -vf harddup

The encoded files are perfectly watchable! So far I've encoded 5 files this way and encoding the 6th file and what can I say? It works very well.
Maybe I should experiment putting the output directory on the network drive as well!

So you see, the files does not need to be "C:\blabla.avi". They don't need to be local at all.
And btw, Bencos works perfectly under Vista with UAC disabled. Dunno 'bout it enabled, though.

Hmm, seems that it doesn't work the other way around. OH well.
Ah! Map a network drive and it works! YES!

Sirber
27th February 2007, 13:19
just map a network drive...

Eretria-chan
27th February 2007, 13:24
I just did. It works.

Eretria-chan
27th February 2007, 18:52
Sirber, can't you just encode audio before video? It makes it easier when the program fails to encode the audio. Saves a lot of time.

Sirber
27th February 2007, 19:07
Sirber, can't you just encode audio before video? It makes it easier when the program fails to encode the audio. Saves a lot of time.

no, no and no. already explained that matters a lot, and the last time was 3 days ago, to you.

:search:

http://forum.doom9.org/showthread.php?p=959129#post959129 :sly:

Eretria-chan
27th February 2007, 20:16
Don't yell at me! :/ I fear you!
Did I miss it? Or just not remember it? Hmmm. Oh well.
But... can you not simply try to extract the audio with mplayer and see if it fails? I guess not...
I know I mentioned it before, but there's no progress on encoding non-44 KHz sources, is there?

Eretria-chan
1st March 2007, 18:50
Hmm, are there any plans for "skip if exists" option in the future? I also see that Bencos writes to the user profile (eg C:\Documents and Settings\User\bencos.ini), but I would think it's better fit in %appdata%.
How is the filelist coming? I'd like to add lots of files, but since drag & drop doesn't work and add directory doesn't exist, it tends to become somewhat of a drag...
The ini file doesn't support files either to my knowledge...
How's work coming along? Taking a break or just busy tampering with the source? :)

Sirber
6th March 2007, 01:59
Linux users please read:

http://www.detritus.qc.ca/forum/viewtopic.php?pid=235#p235

Eretria-chan
8th March 2007, 19:16
First bugreport in a while...
I don't know if it's Mencoder related, but... anyway, here's the deal. The following source:

General #0
Complete name :
Format : AVI
Format/Info : Audio Video Interleave
Format/Family : RIFF
File size : 175 MiB
PlayTime : 24mn 5s
Bit rate : 1010 Kbps
Writing library : VirtualDub build 13870/release
Video #0
Codec : XviD
Codec/Family : MPEG-4
Codec/Info : XviD project
Codec settings/BVOP : No
Codec settings/QPel : No
Codec settings/GMC : 0
Codec settings/Matri : Default
PlayTime : 24mn 5s
Bit rate : 869 Kbps
Width : 640 pixels
Height : 480 pixels
Aspect ratio : 4/3
Frame rate : 23.976 fps
Resolution : 8 bits
Chroma : 4:2:0
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.118
Audio #0
Codec : MPEG-1 Audio layer 3
Codec profile : Joint stereo
PlayTime : 24mn 5s
Bit rate : 128 Kbps
Bit rate mode : CBR
Channel(s) : 2 channels
Sampling rate : 48 KHz
Resolution : 16 bits

Original length: 24:05. Encoded length: 45:50! When seeking past the 24:05, I get a crash in libavcodec. The filesize is 110 mb, too big for a 24:05 movie. I'm going to try to fetch a log from the encoding passes and see if anything else turns up...

First pass:
C:\x86 Apps\Bencos\mencoder.exe "(...).avi" -mc 0 -of rawvideo -ovc x264 -oac pcm -o C:\DOCUME~1\Shizuka\LOKALA~1\Temp/bencos/video.264 -x264encopts deblock=1,1:bframes=5:frameref=5:threads=auto:b_pyramid:nofast_pskip:nopsnr:bitrate=318:pass=1:turbo=2 -vf harddup

MEncoder Sherpya-SVN-r22351-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
SSE supported but disabled
SSE2 supported but disabled
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

success: format: 0 data: 0x0 - 0xaf2a800
AVI file format detected.
VIDEO: [XVID] 640x480 24bpp 23.976 fps 878.8 kbps (107.3 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

Sirber
8th March 2007, 19:23
I had that problem a few times.

close bencos, clean "%TEMP%\bencos\*.*" then retry it.

Eretria-chan
9th March 2007, 20:01
Doesn't work.

Sirber
9th March 2007, 20:10
send me your source I'll see what I can do.

Eretria-chan
10th March 2007, 16:27
I believe you have One Piece, yes? It happens all the time on all those sources and no other.

Sirber
10th March 2007, 17:34
I am currently recoding one piece and I have no problems what so ever. I'm at ep 083.

Eretria-chan
10th March 2007, 18:51
Maybe the "no other" part was wrong. It seems it's doing to every source now...
Or at least other sources. Some old ones are unaffected, some old ones are affected.
If I had to guess, this seems to be mencoder's problem. All these problems with mencoder and RA5 doesn't work... great.

Sirber
10th March 2007, 22:57
If you find why it's doing that I'll fix in bencos, else I can't do much...

Eretria-chan
11th March 2007, 00:49
I'll just have to make sure to find a source it does not affect... and one it does affect.

Eretria-chan
14th March 2007, 13:07
Testing newest build. Failing that, I'll test the P4 build, since the other computer does not seem affected.

Sirber
14th March 2007, 13:45
Testing newest build. Failing that, I'll test the P4 build, since the other computer does not seem affected.

So you get Access Violation from mencoder on second pass? You are so unclear sometimes...

weaver4
14th March 2007, 14:01
Will BENCOS take a Vob file as input?

Sirber
14th March 2007, 14:10
Sharktooth is working on DVD input, but I think currently you can add VOB files directly, but it will output one mp4 per vob file.

Eretria-chan
14th March 2007, 14:35
So you get Access Violation from mencoder on second pass? You are so unclear sometimes...

Hehehe... no, it made the output files 44 minutes in length, though the source was 24 minutes. Anyhow, with the new build, the problem is gone, so that's one less thing to worry about!
Looking forward to testing subtitles and troublesome sound sources in your next build when it's ready!
Take your time!

Sirber
14th March 2007, 15:34
Take your time!

Will do! :cool:

Eretria-chan
14th March 2007, 16:54
Unfortunately, it doesn't solve the infamous Core Duo crashing problem. Meh.
Well, it isn't all that bad - just have to use the special version of mencoder and it will work.

Sirber
14th March 2007, 18:16
Can you provide me a build that works on CoreDuo? I'll add it to the sticky.

Eretria-chan
14th March 2007, 23:39
The P4 one in the sticky works perfectly fine.

Sirber
14th March 2007, 23:57
The P4 one in the sticky works perfectly fine.

Not sure this build uses pthread (multiple CPU)...

Eretria-chan
15th March 2007, 01:49
Well, I get identical speed on both versions of Mencoder, so it's all good and well. The Core Duo is clocked at 1.83 GHz and the Athlon 64 X2 is clocked at 2.01 GHz, so unless I should be getting more speed out of the Core Duo, this build works...
Of course, if there are any other builds, I'd be happy to test.

Sirber
15th March 2007, 12:08
look in task manager to see if both core are used.