Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 20th March 2008, 23:58   #1  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
divxenc for Linux

Just started a new small project. It's basically the same as h264enc and xvidenc, except it uses lavc's MPEG-4 video format and no longer supports manual codec configuration, only presets... 7 of them for now.

http://divxenc.sourceforge.net

divxenc is also available from my openSUSE build service repo:

http://download.opensuse.org/reposit...e:/microchip8/

Last edited by microchip8; 26th April 2009 at 22:45.
microchip8 is offline   Reply With Quote
Old 23rd March 2008, 10:47   #2  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 0.0.2
Code:
* Changed qns=3 to qns=2 for the ihq preset
* Set precmp, cmp and subcmp to RD for the ihq preset
* Set the fullpel comparison function of the vhq preset to SATD
* Set the macroblock decision to 2 for the hq preset
* Small modifications to threads auto-detection
* -ffourcc DX50 is now hard coded into the mencoder_opts() function. Same goes for the turbo option for the first pass
* Be silent when doing FPS conversion
microchip8 is offline   Reply With Quote
Old 26th March 2008, 14:31   #3  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.0
Code:
* Use awk to get the current device when exporting DVD chapters information 
* Bumped version to 1.0.0 as the script is pretty complete and the low versioning doesn't really suite it 
* When encoding specific chapters, append the chapters info at the end of the output file 
* Set the luminance and chrominance coefficient thresholding to -4 and 9 respectively 
* Added normalize adaptive quantization (naq) for the NQ preset since it uses luminance and
darkness masking. With naq we can restore the average per-MB quantizer 
* Added support for 3-pass encodings 
* Removed support for MP3 high- and lowpass frequency settings. I'm sure many people dont
use those settings and accept the default
microchip8 is offline   Reply With Quote
Old 26th March 2008, 15:04   #4  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
just some comment

i like mpeg4 codec from lavc, has several options that xvid lack, and for me is much more "scalabily"
I like the *mask (lumi/dark/tcplx/scplx) among other, correctly tuned could bring astonishing results!

thanks for this app!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 26th March 2008, 15:14   #5  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by buzzqw View Post
just some comment

i like mpeg4 codec from lavc, has several options that xvid lack, and for me is much more "scalabily"
I like the *mask (lumi/dark/tcplx/scplx) among other, correctly tuned could bring astonishing results!

thanks for this app!

BHH
indeed, lavc's mpeg-4 delivers higher quality than Xvid, imho
microchip8 is offline   Reply With Quote
Old 7th April 2008, 11:10   #6  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.1
Code:
* Integrated the exit command into the rmconf() function
* Bug fix for the target file size calcualtion. Variable vbitrate should use the vbitrate options instead of bitrate
microchip8 is offline   Reply With Quote
Old 7th April 2008, 11:24   #7  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
thanks froggy1 for your great work!

(arghh.. givme my next pc.. i want move to linux.. and btw i am thinking starting a gui to...ffmpeg or handbrakecli.exe ... but i'll start a new thread when TUX is here)

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 8th April 2008, 17:20   #8  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.2
Code:
* Fixed color output in the target file size calculation
* Updated the cropping code to support the latest SVN version of MEncoder
microchip8 is offline   Reply With Quote
Old 10th April 2008, 13:44   #9  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.3
Code:
* Replace underscores from DVD title names with spaces
* EHQ and UHQ preset optimizations
microchip8 is offline   Reply With Quote
Old 11th April 2008, 15:10   #10  |  Link
WalterK
Registered User
 
WalterK's Avatar
 
Join Date: Jan 2006
Posts: 177
Great encoder script, esp the batch encoding and HQ settings, thank you.
Never had much use for the lavc mpeg4 encoding, in the days of having to save space and get quality xvid was always the way to go but now that its been improved and storage is not so much an issue anymore its a good way to transcode.
WalterK is offline   Reply With Quote
Old 11th April 2008, 22:03   #11  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by WalterK View Post
Great encoder script, esp the batch encoding and HQ settings, thank you.
Never had much use for the lavc mpeg4 encoding, in the days of having to save space and get quality xvid was always the way to go but now that its been improved and storage is not so much an issue anymore its a good way to transcode.
thanks for using divxenc. I basically started this small project because I found out that IMO lavc's mpeg-4 delivers higher quality than Xvid nowadays.
microchip8 is offline   Reply With Quote
Old 15th April 2008, 02:31   #12  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.4
Code:
* Added support for NTSC Double @ 60 fps
* Fixed the cropping code. NTSC content was problematic
microchip8 is offline   Reply With Quote
Old 19th April 2008, 14:55   #13  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Ps3

I know the PS3 is a hassle, but if there's anyway you can get mencoder's DivX to work with it...

Something like the special PS3 quality options for h264enc ...

Currently, I'm getting "The data type is not supported (880288Bf)" error with divxenc (DivX5). With transcode & dvd::rip (DivX4, OpenDivx), the file is supported and will play if less than 2GB.

Thanks for these scripts. They're very helpful, especially the subtitle burning stuff.
blaz is offline   Reply With Quote
Old 19th April 2008, 15:38   #14  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by blaz View Post
I know the PS3 is a hassle, but if there's anyway you can get mencoder's DivX to work with it...

Something like the special PS3 quality options for h264enc ...

Currently, I'm getting "The data type is not supported (880288Bf)" error with divxenc (DivX5). With transcode & dvd::rip (DivX4, OpenDivx), the file is supported and will play if less than 2GB.

Thanks for these scripts. They're very helpful, especially the subtitle burning stuff.
hi,

I don't know much about the PS3 MPEG-4 Part 2 support. Is there a possibility that you can save the transcode or dvd::rip options and post them here so I can make a few presets?
microchip8 is offline   Reply With Quote
Old 19th April 2008, 16:03   #15  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Quote:
Originally Posted by froggy1 View Post
hi,

I don't know much about the PS3 MPEG-4 Part 2 support. Is there a possibility that you can save the transcode or dvd::rip options and post them here so I can make a few presets?
Well, the big difference is that dvd::rip is using DivX4 (OpenDivx) versus DivX5 that divxenc uses.

But I'll look into it more and get back to you.
blaz is offline   Reply With Quote
Old 19th April 2008, 16:07   #16  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by blaz View Post
Well, the big difference is that dvd::rip is using DivX4 (OpenDivx) versus DivX5 that divxenc uses.

But I'll look into it more and get back to you.
I think it may just be that the PS3 doesn't recognize the DX50 ffourcc. divxenc can use DIVX4 too, it's just a matter of changing the ffourcc, but I'm not sure if there needs to be something extra added for PS3 compatibility, that's why I'm asking if you could provide some output from transcode or dvd::rip
microchip8 is offline   Reply With Quote
Old 19th April 2008, 17:02   #17  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Can you try out the PS3 preset on a sample and tell me if it's working? Here's the updated divxenc http://www.mediafire.com/?37gmnbznxzf

run: divxenc -1p -p ps3
microchip8 is offline   Reply With Quote
Old 20th April 2008, 18:39   #18  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Ahhh, the forum's working again!

>>> Can you try out the PS3 preset on a sample and tell me if it's working?

Definitely will do. It may take a little while though, as I'm in the middle of installing a new 1 TB drive and moving stuff all around.
blaz is offline   Reply With Quote
Old 20th April 2008, 21:57   #19  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
No, that doesn't work unfortunately.

Here's a version of the dvd::rip commands that give me an avi of the first chapter of title 1 of a dvd with DivX4 (OpenDivX). Maybe there's something here that will provide a clue. (But these avi's can only go to 2 GB before they stop working on the PS3)

(skipping stuff about thumnails, subtitles, etc.)
...
Start job 'Transcode video - title #1, chapter #1, pass 1'
Executing command: mkdir -m 0775 -p '/home/blaz/media/video/dvdrip/Traffic/tmp' && cd /home/blaz/media/video/dvdrip/Traffic/tmp && mkdir -p /home/blaz/media/video/dvdrip/Traffic/avi/001 && execflow -n 19 transcode -H 10 -a 0 -x vob -i \/home\/blaz\/media\/video\/dvdrip\/Traffic\/vob\/001\-C001\/ -w 1200,50 -F mpeg4 -A -N 0x2000 -f 30,4 -M 2 -Y 10,0,14,0 -B 15,10,8 -R 1 -y ffmpeg,null --psu_mode --nav_seek /home/blaz/media/video/dvdrip/Traffic/tmp/Traffic-001-C001-nav.log --no_split -o /dev/null --print_status 25 -J extsub=0:0:0:0:0 && echo EXECFLOW_OK
...
Transcode video - title #1, chapter #1, pass 1: 100% done.
...
Start job 'Transcode video - title #1, chapter #1, pass 2'
Executing command: mkdir -m 0775 -p '/home/blaz/media/video/dvdrip/Traffic/tmp' && cd /home/blaz/media/video/dvdrip/Traffic/tmp && mkdir -p /home/blaz/media/video/dvdrip/Traffic/avi/001 && execflow -n 19 transcode -H 10 -a 0 -x vob -i \/home\/blaz\/media\/video\/dvdrip\/Traffic\/vob\/001\-C001\/ -w 1200,50 -F mpeg4 -A -N 0x2000 -f 30,4 -M 2 -Y 10,0,14,0 -B 15,10,8 -R 2 -y ffmpeg --psu_mode --nav_seek /home/blaz/media/video/dvdrip/Traffic/tmp/Traffic-001-C001-nav.log --no_split -o /home/blaz/media/video/dvdrip/Traffic/avi/001/Traffic-001-C001.avi --print_status 25 -J extsub=0:0:0:0:0 && echo EXECFLOW_OK
...
Job 'Transcode video - title #1, chapter #1, pass 2' finished
blaz is offline   Reply With Quote
Old 20th April 2008, 22:38   #20  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
grrrr I was hoping for it to work. The log of dvd::rip isn't really helpful, it just shows that it encodes to mpeg4. MEncoder can encode to mpeg4 too, that's what divxenc is using. I really don't know which settings to change so that your PS3 can play it... I've disabled most of the settings for the PS3 preset which may be problematic. Also can you tell me which ffourcc the AVI file is using when you encode with dvd::rip ? Is it DIVX or DIV4 ?

I'm not sure if this update will fix it for you - http://www.mediafire.com/?1xd04utdn2x
microchip8 is offline   Reply With Quote
Old 21st April 2008, 01:35   #21  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Some info from GSpot.

Container sections:
Both have AVI v1.0 but the working (transcode) avi has:

Interleave: 1 vid frame (33ms)
Audio frames: aligned on interleaves

whereas yours has:

Interleave: 500 ms (12.0 v.frames), preload=512
Audio frames: Split across interleaves

Audio sections are the same in GSpot.

Video sections both have DIVX as codec. Rest is different as I used different resolutions and kbps. Could changing the frame rate from 29.97 to 23.976 be a problem? For some reason I thought I had to do that. I'll try your new code and leave it alone.
blaz is offline   Reply With Quote
Old 21st April 2008, 04:21   #22  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
It works

Your last download works! (At least for small files < 2GB.)

Turns out I do need the frame rate conversion or there's lots of errors. But that has no impact on whether the PS3 likes it or not.

I also tried changing the fourcc to DX50 and it worked. So here's the latest batchfile:
mencoder "dvd://1" -o "/home/blaz/TRAFFIC_chapter1-1.avi" -chapter 1-1 -dvd-device /dev/hdc -ffourcc DX50 -fps 30000/1001 -ofps 24000/1001 -vf filmdint=fast=0/io=30:24/dint_thres=256,softskip,harddup -noodml -aid 128 -channels 6 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200:threads=2:vmax_b_frames=0:vme=4:mbd=2:lumi_mask=0:dark_mask=0recmp=0:cmp=2:subcmp=0:dia=2:trell:cbp:mv0reme=1:qns=0:autoaspect 2>/dev/null

I'll try a longer one with subtitles over night.

p.s. I didn't change lavcopts, so just ignore the smiley faces

Last edited by blaz; 21st April 2008 at 04:24.
blaz is offline   Reply With Quote
Old 21st April 2008, 13:14   #23  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
That's great to hear, but what caused it to be playable? Was it the frame rate conversion or the fact that it doesn't use b-frames (I doubt the PS3 doesn't support b-frames in DIVX since Sony is working with DivX to certify their PS3's to be compatible). Can you do one small test for me? set the vmax_b_frames to 2 and also add v4mv to the above commands and see if it works

Last edited by microchip8; 21st April 2008 at 13:57.
microchip8 is offline   Reply With Quote
Old 21st April 2008, 16:26   #24  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Good News and Bad news

The bad news is that setting vmax_b_frames to 2 and adding v4mv put things back to "data type is not supported" on the ps3.

The good news is that for the first time ever, I can play an avi file that's > 2GB. That's using your last download without the B frames and a fourcc of DIVX not DX50 (which hopefully will work too).

And the ps3 problems were not related to frame-rate conversion. I tried both ways. Your new code worked both ways, just lots of messages if I didn't convert.

Is there any point in trying two-pass encoding with your latest?
divxenc -2p -p ps3

I might then edit the batch file to use DX50 instead of DIVX.

Any other suggested edits to the batchfile? I'm looking for high quality.

But I think we are getting somewhere.

Last edited by blaz; 21st April 2008 at 16:28.
blaz is offline   Reply With Quote
Old 21st April 2008, 16:53   #25  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by blaz View Post
The bad news is that setting vmax_b_frames to 2 and adding v4mv put things back to "data type is not supported" on the ps3.

The good news is that for the first time ever, I can play an avi file that's > 2GB. That's using your last download without the B frames and a fourcc of DIVX not DX50 (which hopefully will work too).

And the ps3 problems were not related to frame-rate conversion. I tried both ways. Your new code worked both ways, just lots of messages if I didn't convert.

Is there any point in trying two-pass encoding with your latest?
divxenc -2p -p ps3

I might then edit the batch file to use DX50 instead of DIVX.

Any other suggested edits to the batchfile? I'm looking for high quality.

But I think we are getting somewhere.
so either b-frames or the v4mv is causing the problem. I'm pushing more for v4mv that it causes problems rather the b-frames option... you can play files > 2 GB because I disabled OpenDML in the PS3 and HW compatible presets. I'm still tweaking the PS3 preset to give it a better quality. If you have some time on your hands, you can do a small sample encode with vmax_b_frames=2 but without the v4mv option and with vmax_b_frames=0 but this time with the v4mv option so we can see which works and which doesn't

as for doing a 2-pass encode, if you set the bitrate high enough there's no real need to do a 2-pass encode, but it's up to you
microchip8 is offline   Reply With Quote
Old 21st April 2008, 18:44   #26  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Setting vmax_b_frames to 2 definitely does not work.
But v4mv is not a problem.
I also switched to DX50 in both cases.

Still single pass, but doubled the bitrate to 2400 as you suggested.
blaz is offline   Reply With Quote
Old 21st April 2008, 18:50   #27  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by blaz View Post
Setting vmax_b_frames to 2 definitely does not work.
But v4mv is not a problem.
I also switched to DX50 in both cases.

Still single pass, but doubled the bitrate to 2400 as you suggested.
ok, thanks for testing. It's strange that the PS3 doesn't support b-frames in DivX but supports them in H.264 O.o
microchip8 is offline   Reply With Quote
Old 21st April 2008, 20:19   #28  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.5
Code:
* Updated the filmdint FPS conversion filter. Added dint_thres=256 to not do any deinterlacing while doing the conversion
* Added one Sony PS3 compatible preset (ps3)
* Small update to the FPS conversion menu
* Updated the audio_channels_func() function
* Updated the --help section
* Made the display_quality_preset_func() function global instead of per preset based
* Updated the audio codecs menu
* Removed delay when exiting from user interrupt
microchip8 is offline   Reply With Quote
Old 22nd April 2008, 21:30   #29  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
First, a dvd I ripped with the latest divxenc to a 2.5GB avi, streamed beautifully to my PS3 via mediatomb last night. Great stuff.

Second, a question about subtitles. Currently I'm burning them into the video and this works fine ... except they can't be turned off or on.

But divxenc has the option of ripping them to separate sub/idx files, and I know there's a windoze program http://userxp.tripod.com/sub2divx.htm that can put these subtitles into an avi container, and, apparently, the PS3 will recognize them, allowing you to turn them off or on. I'm hoping this works when streaming as well.

Is there someway of doing this natively in linux?
blaz is offline   Reply With Quote
Old 22nd April 2008, 21:50   #30  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by blaz View Post
First, a dvd I ripped with the latest divxenc to a 2.5GB avi, streamed beautifully to my PS3 via mediatomb last night. Great stuff.

Second, a question about subtitles. Currently I'm burning them into the video and this works fine ... except they can't be turned off or on.

But divxenc has the option of ripping them to separate sub/idx files, and I know there's a windoze program http://userxp.tripod.com/sub2divx.htm that can put these subtitles into an avi container, and, apparently, the PS3 will recognize them, allowing you to turn them off or on. I'm hoping this works when streaming as well.

Is there someway of doing this natively in linux?
about the subtitles, I'm not aware of any Linux tools that can do such things. I'm not really a subtitles guy (hardly ever use any) but I'll try to dig and see if I can find anything that does the same on Linux
microchip8 is offline   Reply With Quote
Old 24th April 2008, 15:44   #31  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
A little problem:

I don't like cropdetect's recommended values for a 2.35:1 dvd, so I enter 720:368:0:56 instead of the default 720:352:0:64.
The preview looks good. I force the frame rate (NTSC video -> Film).

But then the default "desired resolution" is 720x352. ??
And if I change it, I have to choose algorithms for zooming, etc.
IOW it looks like my 720:368:0:56 crop has been ignored in favor of cropdetect's.

I can modify the batch file and it seems to work ok with 720:368:0:56
blaz is offline   Reply With Quote
Old 24th April 2008, 16:05   #32  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Fixed http://www.mediafire.com/?u0z41ytmzdd
microchip8 is offline   Reply With Quote
Old 25th April 2008, 15:33   #33  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.6
Code:
* Set the field dominance of the yadif deinterlacer to auto-detection. If the
decoder doesn't export the field order, it defaults to TFF (top field first)
* Small menu enhancements to the video_interlace_func() function
* Fixed a problem where the detected resolution based on the crop values favored
the values of the cropdetect filter instead of the user provided values. Reported by blaz
from the Doom9 forum
* Renamed resolution variable 'res' to 'vres'
* Added support for doing 25 -> 50 fps and 29.970 -> 59.940 fps conversion using simple frame duplication
microchip8 is offline   Reply With Quote
Old 26th April 2008, 17:22   #34  |  Link
blaz
Registered User
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 57
Ps3

With one exception so far, divxenc has worked well creating avi files that are streamable to the PS3 from my dvds.

The main exception (King Kong) is converted and plays fine on the pc, but the PS3 gives me the same "data type is not supported (880288Bf)" error as before when you had b-frames enabled. It's weird because of the ten or so other dvds that I've tried so far, there's been no problem with PS3 compatibility.

I tried removing the v4mv option, but that didn't help either.

It's not a major problem for me, as I do not need the sub-titles and vobcopy works fine (although the file IS large). It is curious though.
blaz is offline   Reply With Quote
Old 26th April 2008, 17:25   #35  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by blaz View Post
With one exception so far, divxenc has worked well creating avi files that are streamable to the PS3 from my dvds.

The main exception (King Kong) is converted and plays fine on the pc, but the PS3 gives me the same "data type is not supported (880288Bf)" error as before when you had b-frames enabled. It's weird because of the ten or so other dvds that I've tried so far, there's been no problem with PS3 compatibility.

I tried removing the v4mv option, but that didn't help either.

It's not a major problem for me, as I do not need the sub-titles and vobcopy works fine (although the file IS large). It is curious though.
hmmm, this could also be some kind of firmware problem, try updating the firmware. I'm positive that the PS3 will get much better at handling of DivX files as they are working together with DivX Inc to certify their consoles.... I can't really help on this one as I don't really know what the problem is and why it refuses to play this movie but plays the other ones without a problem
microchip8 is offline   Reply With Quote
Old 27th April 2008, 19:01   #36  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.7
Code:
* Clarify that the aspect ratio is the one for input sources
* Set the field dominance of the frame doubling yadif deinterlacer to auto detection
* Implemented source_fps_func() function to reduce code duplication. This function
automatically detects the FPS of the content and is shared between the deinterlace
and interlace functions
* Added support for applying denoising/deblocking/brightness/contrast on interlaced
content. This is done by deinterleaving the content with the il=d filter, applying the
denoising/deblocking/brightness/contrast on the deinterleaved content and interleaving
it back with the il=i filter. That way we don't break the interlacing
microchip8 is offline   Reply With Quote
Old 29th April 2008, 06:11   #37  |  Link
WalterK
Registered User
 
WalterK's Avatar
 
Join Date: Jan 2006
Posts: 177
A newbie question but how do you use the batch option to say encode a bunch of files in a folder?
just using the argument divxenc -b /home/path/to/batchfile re-encodes the same file over and over again.
WalterK is offline   Reply With Quote
Old 29th April 2008, 12:09   #38  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by WalterK View Post
A newbie question but how do you use the batch option to say encode a bunch of files in a folder?
just using the argument divxenc -b /home/path/to/batchfile re-encodes the same file over and over again.
you configure each file with divxenc and save the options to the same batch file, it appends the commands for each file if you use the same batchfile as output. More into in the FAQ - http://divxenc.sourceforge.net/faq.html#batch

Last edited by microchip8; 29th April 2008 at 13:53.
microchip8 is offline   Reply With Quote
Old 2nd May 2008, 14:49   #39  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.8

Code:
* Fixed the location of the il=i filter which is used to interleave the content after postprocessing
* Color enhancements to the -bpp and -bpb options
* Small menu enhancements to the FPS settings
microchip8 is offline   Reply With Quote
Old 30th May 2008, 13:29   #40  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.0.9
Code:
* Fixed wrong explanation for the temporal denoiser
* Removed support for the Sonic and SonicLS audio codecs since they
are experimental and far from complete for daily use
* Updated the man page
microchip8 is offline   Reply With Quote
Old 1st July 2008, 10:52   #41  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.3
Code:
* Added support for using the neroAacEnc AAC audio encoder with LC, HE and HEv2 profiles
* Function renaming: aacplus_audio_func() -> neroaac_audio_func()
* Variable renaming: aacplusbr -> neroaacbr
* Audio codec renaming: AAC+ -> neroAAC
microchip8 is offline   Reply With Quote
Old 5th July 2008, 11:58   #42  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.4
Code:
* Bugfix: multi-channel audio was not enabled for the neroAAC codec 
* Bugfix: don't leave config files upon none-zero exit status of MEncoder 
* Feature request: add the possibility to specify the path to MEncoder.
Useful if the user has two or more versions of MEncoder but wants to use
a specific one for the encoding 
* Changed default unsharp mask / gaussian blur matrix to chroma & luma
5x5 as it provides a better balance than the 3x3 matrix 
* Check to see if destination directory is writable by writing a small file to it. 
* Updated the AUTHORS file
microchip8 is offline   Reply With Quote
Old 12th July 2008, 16:20   #43  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.5
Code:
* Added Vorbis audio support for the Matroska container
* Feature request: add the possibility to disable MEncoder's A/V sync algorithm when
encoding video files. This can be used to fix input video files with bad A/V sync in them,
however there are no guarantees that this will actually fix the problem
* Enabled back the use of temporary directories based on process ID to store config files
* Do not ask for FPS conversion or pullup/pulldown if the user forces an output frame rate
* Updated the requirements part in the README.divxenc file
* Small clean ups
microchip8 is offline   Reply With Quote
Old 19th October 2008, 15:02   #44  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.6

Code:
* Small improvement: when using the vorbis audio codec and muxing to the Matroska
container, do not extract the video from the AVI since mkvmerge takes the video directly from
the AVI and we can skip the extraction step. Extraction is only necessary if the user has also
chosen the MP4 container
* Separated the 'normal' deinterlacers from the frame doubling ones
* Removed path specification for MEncoder
* denoise3d & hqdn3d: implemented weak/medium/strong denoising presets
* Removed quantization parameters for the spp, uspp, fspp and pp7 deblockers
* Added Vorbis audio support for the OGM container
* Improved subtitle handling for video file encodings. Now the user can select to hardcode a
given subtitle into the movie or import it into the MP4 and/or MKV container. Only two subtitle
formats are supported and have been tested: VobSub and SRT
* Added support for sample encoding and previewing. When encoding samples, one can specify
the start position and the duration in seconds for the sample. Sample encoding respects encoding
passes meaning if you execute divxenc in two-pass mode and want to encode a sample before the
real encoding starts, then the sample will also be encoded in two-pass mode with all the options
and filters selected by the user. Sample encoding can further be used to encode only specific parts
of a video file or a DVD. In regards to DVDs, sample encoding does not respect selected DVD chapters
meaning the given start position for the sample will overwrite the selected DVD chapter(s). This is a
mencoder problem and there's nothing I can do about it.
* Updated the crop preview code. Instead of sleeping for 15 seconds and then killing the PID value of mplayer,
use the -endpos option
* Updated the man page
microchip8 is offline   Reply With Quote
Old 2nd November 2008, 14:38   #45  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.7
Code:
* Improved DVD handling. Now there's a menu where the user can select the
input type: ISO image, VIDEO_TS folder or DVD drive
* Added extra strong denoising preset for the denoise3d & hqdn3d filters
* Added neroAAC audio support for the MKV container
* Removed AAC object type complexity menu. AAC (FAAC) is best used in low complexity mode
* Set the field order of the tfields filter to auto detection
* Implemented configuration file support. As of this version, divxenc automatically generates a
config file in its configuration directory. The config file can be used by the user to modify/set the
paths to various programs. This can be useful if the user has multiple executables of the same
program(s) but wants to use a specific one for the job. It can also be used to set the correct path
to a program if the program in question is not located in a standard location and cannot be found
by the system. The configuration file cannot be used to store encoding settings or other parameters!
It is only meant for the tools needed for the correct operation of xvidenc. The config file will be
generated in /home/user_name/.divxenc/config. The config file has its own versioning system and will
be automatically updated in case something changes in future versions of divxenc
* Added -r option to reset the config file in case the user has made any changes to it and wants to restore
the original values of the config file
* Updated the man page
microchip8 is offline   Reply With Quote
Old 24th November 2008, 10:28   #46  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.8
Code:
* Added support for the aacplusenc AAC+ audio encoder from Matteo Croce
* Updated the MP4 & MKV batch exporting and muxing code to support the aacplusenc encoder
* Rewrote the DVD part of the video_subtitles_func() function. It now supports dumping of three subtitles
* Updated the MKV/MP4 muxing code to support importing of three subtitles
* Dramatically simplified the MKV/MP4/OGM batch exporting code. This reduces a lot of code duplication
* Display elapsed time when encoding samples
* Bugfix in the video_subtitles_func() function for SRT subtitles. Wrong variable used
* When encoding samples, make sure to take care of any subtitles that might have been dumped to disk
* Added support for deinterlacing at half frame rate. Useful for interlaced content that's running at
50 or 59.940 fps (100i/120i)
* Reduced some code duplication in the set_output_filename_func() function by moving path and extension
checking into its own function
* New formula to calculate the video bitrate for a target filesize. The previous formula, which was directly
taken from the ripdvd project, incorrectly calculates the bitrate which often results by missing the target
filesize by as much as 30 MB. The new formula also uses floating point precision and has been tested
against the calculators of MeGUI and Avidemux
* Moved the DVD device detection code into its own function to reduce some code duplication
* Removed neroAacEnc quality-based encoding mode. It is incompatible with video bitrate calculation for
a target size and I cannot find any info on quality -> average bitrate mappings.
* Don't exit if the user provides a floating point value for the Vorbis audio codec. Instead warn and use
the default value
* In some cases it is possible for divxenc to leave its unique temp directory. Find those directories and
remove them if they are 15 or more days old
* Removed support for MPEG-2 AAC and ADPCM audio
* Updated the source_fps_func() function
* Removed the noise filter. No real use for it
* Updated the audio_resample_func() function
* Updated the check_audio_codec_func() function
* Updated the genconfig_func() function
* Updated the man page
* Updated the README.divxenc file
microchip8 is offline   Reply With Quote
Old 25th November 2008, 14:01   #47  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.1.9
Code:
* Bugfix: the vobsubout3 variable was not tested in the MKV/MP4 muxing code.
This leads to the third subtitle not being imported into these containers 
* Implemented real batch support for files. As of now, one can encode a bunch of video
files in a directory and automatically remux them to MKV/MP4/OGM. The user needs to
configure only one of the files in a given directory and all the settings will apply to the
other files as well 
* New formulas to calculate the video bitrate for a target filesize. The user can choose between
MeGUI's formula, divxenc's refactored MeGUI formula and the old divxenc/ripdvd formula
microchip8 is offline   Reply With Quote
Old 25th November 2008, 18:34   #48  |  Link
Ranguvar
Registered User
 
Ranguvar's Avatar
 
Join Date: Feb 2007
Location: ::1
Posts: 1,234
Fantastic work!! I'm shocked no one has thanked you through all these recent revisions - this project is developing nicely.

I'll have to perform a quality test Xvid CVS + VAQ vs lavc soon. I remember a comparison where Xvid blew apart lavc, but it looks like that may no longer be the case?
Ranguvar is offline   Reply With Quote
Old 25th November 2008, 18:50   #49  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Thanks for the nice words, Ranguvar. I mostly write these scripts for me but also share it with others so they don't have to go through the pain that is MEncoder

As for Xvid vs lavc's mpeg4, I think lavc beats it since it has some really nice features like QNS (dog slow though), bidir_refine and UMH motion estimation which Xvid lacks . I have not done any tests either so I can't really for sure say which is "better"
microchip8 is offline   Reply With Quote
Old 30th November 2008, 16:52   #50  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.0
Code:
* Lots of empty variables and code cleanups
* Replaced the --help option with -help for consistency with the other options
* Added support for importing up to three subtitles (VobSub or SRT) into the MKV/MP4
containers when encoding a video file or a directory with files. Also hardcoding a subtitle is
now possible for directory encodings
* Reduced a lot of code duplication in the batch exporting code by using only one variable
to carry the output file
* Optimized the MKV/MP4/OGM muxing code for directory encodings
* Simplified the MKV/MP4 subtitles importing code. The new code is a bit ugly, but is much
smaller and works quite well. It's basically a small loop which tests the subtitle variables for
not being empty, and if so, it appends the values to the MKVSUBS/MP4SUBS variables
* Small bugfix: IVTC/Telecine was still asked if user has selected to do FPS conversion using
frame duplication (25 -> 50 fps, 50 -> 100 fps). This is due to wrong variable being tested: $fpsfilter instead of $frc
* When encoding to neroAAC/AAC+/Vorbis audio and muxing to MKV, take the video directry from
the AVI file instead of dumping it to disk. That way we can skip the dumping process and don't have
to pass the FPS value of the raw video to mkvmerge since it takes it directly from the AVI. This also
makes the code a bit more simple. When also muxing to MP4, MP4Box always dumps the
video so we're safe here
* Added support for detecting the audio codec of the video file/DVD when using audio stream copy.
Based on the detected audio codec, decision is made if we allow or disallow muxing to MKV/MP4/OGM
* Updated the man page
microchip8 is offline   Reply With Quote
Old 3rd December 2008, 13:12   #51  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.1
Code:
* Remove support for MP2 and WMA audio
* Use MEncoder to dump the video when remuxing to MP4 as MP4Box can crap out in certain cases.
I'm tired of fixing MP4Box' problems :/ but the alternative (mp4creator) is a piece of crap too and is no
longer maintained. It doesn't support VobSub subtitles either, nor chapter files AFAIK
* Added support for providing a custom factor value when using the video bitrate calculation formulas
* Added initial support for a second audio track for DVD encodings. Below is a list of what currently
works and what doesn't:
	      * PCM audio is not supported yet. It's not a priority for me
	      * If you're looking for second audio track in AVI, don't waste your time. I will never support it.
                Use the MKV/MP4/OGM containers
	      * Audio filters are supported for both tracks
	      * Audio codecs and audio filters apply to both tracks. One can't
	        use, for example, Vorbis audio for first and AAC audio for second
	        track. One also can't set audio bitrate independently for each track
	      * Audio stream copy is supported by the MKV/OGM containers. For the MKV container one
                can copy AC3 + AC3 or AC3 + DTS audio. For OGM only AC3 + AC3 is supported since it
                knows nothing about DTS audio. If DTS audio is selected, it will be ignored
	      * I use (very?) dirty tricks to maintain (perfect?) A/V sync when one uses frame altering video
                filters, like  bobbing, interlacing, ivtc/telecine, FPSconversion
* Updated the video bitrate calculation code to support a second audio track
* Updated the MKV/MP4/OGM containers code to support a second audio track
* Better explanation about what the -r option does/is used for
* Implemented audio_exit_func() function. This function kicks in effect if the audio encoding with an external
audio encoder didn't succeed. If this is the case, the function will be called with the appropriate parameters and will
force an exit to prevent container conversion. This is because if the audio encoding fails for some reason, container
conversion will automatically fail too since the muxing programs will complain about the missing audio file and will
exit, thus there is no point in continuing and displaying conversion failing messages
* Reduced the amount of options displayed when one calls the script without any parameters. From now on it will just display:
Usage: divxenc <options>
Use 'divxenc -help' for more information
* Some old comments cleanups
* Updated the man page
microchip8 is offline   Reply With Quote
Old 5th December 2008, 11:09   #52  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.2
Code:
* Improved dealing with LPCM audio on DVDs. If the user has selected to encode a second
audio track and that track uses LPCM as audio, the encoding will fail since -oac copy will not be
able to copy LPCM in AVI. For this reason, divxenc will check to see if the second audio track is
LPCM audio and will use -oac pcm instead of -oac copy
* DVD channels settings can be now independently controlled for each audio track
* Added support for AC3 in MP4. This requires latest gpac version 0.4.5 compiled with liba52 support!
microchip8 is offline   Reply With Quote
Old 12th December 2008, 12:44   #53  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.3
Code:
* Removed signal SIGTSTP from the trap list. The user can now suspend the encoding process
with CTRL+Z and continue later on by typing fg in the terminal
* Added support for the software equalizer video filter (eq2)
* Don't exit if the user did not add the .avi extension for the output file. Instead automatically add the
extension to it
* Small loop modifications in the video_subtitles_func() function
* Set default AAC profile when using neroAacEnc to LC instead of HE
* Added support for VCD/SVCD encodings
* Small loop modifications to the get_dev_devices_func() function
* Small modifications to the install script
* Updated the man page
microchip8 is offline   Reply With Quote
Old 14th January 2009, 08:18   #54  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.4
Code:
* Use 'source' instead of '.' for importing files into the script. Makes it easier for me
to read when my eyes are tired
* Improvements to the audio_resample_func() function. Automatically detect the audio sample
rate of the content and display it. Also, moved the resample filters into a function called
audio_resample_filters_func(). The reason for this is to be able to compare the detected audio
sample rate with the selected one. If the user selects a sample rate which equals the detected
one, resampling will be skipped as there is no point in running a resampler if the detected and
selected sample rates are equal - mencoder always picks up the sample rate of the content.
* For directory encodings, offer an option to automatically delete the AVI file after remuxing to the
other containers. This can considerably reduce disk space usage, especially when encoding a
directory with a lot of files in it.
* Replaced all 'tail -1' commands with 'tail -n 1' since 'tail -1' is made obsolete as stated by the info page of tail
* Calculate and display the amount of frames when scanning a video file. Also display seconds in
addition to minutes for the runtime
* Replaced MB and GB with MiB and GiB
microchip8 is offline   Reply With Quote
Old 22nd January 2009, 11:09   #55  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.5
Code:
* Add title/movie name to MKV and OGM as meta-info. The title is taken from the output
name provided by the user. For directory encodings, this will be skipped
* Add audio codec and audio language meta-info to MKV when encoding DVDs and copying the audio track(s)
* Added support for the expand video filter
* Slightly improved info when the script is called without any parameters
* Implemented denoising presets for the 'tn' temporal denoiser
* Merge the mp3, aac, ac3 exporting code with the ffac3 and ffdts one since it's the same for the second audio track
* Small improvement/fix: when encoding two audio tracks to HE-AAC audio and muxing them into MKV, mkvmerge
uses for both tracks the same track ID (1) while divxenc assumes that the second track uses track ID 2 which is
wrong so the option --aac-is-sbr 2:1 is incorrect here and should actually be --aac-is-sbr 1:1 for the second audio track
microchip8 is offline   Reply With Quote
Old 25th April 2009, 14:43   #56  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.6
Code:
* Rewrote and simplified the video_denoise_func() function. Merged the presets
with the denoise filters
* Added a new mplayer variable to the config file called MPLAYEROPTS where the user
can set custom mplayer options. The default value in this variable is '-noconfig all' which
disables reading of the mplayer config file
* Moved out the VCD device scanning code to a function -> get_vcd_devices_func()
* Updated the -scan option to support VCD scanning
* Revert back to the old crop detection method for DVDs as it was more precise in some
cases than the currently used one. This forces the video codec during crop detection to
mpeg12 instead of ffmpeg2 as the -sstep option doesn't play nice with ffmpeg2
* Optimize output file naming for file/vcd encodings. Based on a patch by Jouni Suorsa
* Proper file extension handling for directory batch encodings
* Added support for the dszie video filter
* Add audio meta-data info for the MKV container when using aac, mp3, ac3 or vorbis audio
* Dump the first subtitle during the first pass of a multipass encoding to avoid possible delay problems
* Added support for VBR audio encoding when using FAAC or neroAacEnc as encoder.
This automatically disables target file size calculation until I find out how to map quality
values to bitrates for these codecs
* Small cleanups
microchip8 is offline   Reply With Quote
Old 26th April 2009, 09:47   #57  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.7
Code:
* Bugfix: missing 's' in the sed expression of the MP4OUT variable. This results in
missing output file and will fail when one tries to remux to mp4
microchip8 is offline   Reply With Quote
Old 29th April 2009, 09:57   #58  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.8
Code:
- Optimize some variables by replacing piping to sed with VARIABLE1="${VARIABLE2%.*}.ext"
- Add -loop 1 mplayer option to the config file's MPLAYEROPTS variable
- Add support for enabling/disabling specific pre/postprocessing filters in the config file.
This adds 7 new variables to the config file where the user can either enable to ask
questions about a specific filter or disable a specific variable, thus skipping questions about the filter
- Moved the video filters code to a new function called video_filters_func(). This also reduces a
bit of code duplication
- Add a new option -e which allows the user to edit the config file directly from within the terminal.
This adds a new variable EDITOR to the config file where the user can set his preferred text editor (defaults to nano)
- Add video title meta-data for MKV and OGM when doing directory batch encodings
- Silence possible dvdxchap warnings
- Updated the man page
microchip8 is offline   Reply With Quote
Old 7th May 2009, 10:46   #59  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.2.9
Code:
* Automatically add the shebang line to batch files and make them executable
* Added Apple iPod preset (request from Rogério Brito from the LAME team)
* Added MP3 presets and updated target file size code to support them (requested by Rogério Brito)
* Updated the audio code and aac/neroaac functions to support the iPod audio restrictions
* Added -ipod parameter to MP4Box when using the iPod preset
* Added new variable ALLOW_AUTOCROP to the config file which allows the user to enable or disable automatic cropping
* Use Uneven Multi-Hexagon motion search (UMH) for the HW, PS3 and iPod presets and remove v4mv
* Updated the man page
microchip8 is offline   Reply With Quote
Old 10th May 2009, 21:47   #60  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by Major_Kong View Post
When i use the script, it can't seem to find lsdvd, although it's installed. Any ideas on how to fix this ?
have a look at the -r option
microchip8 is offline   Reply With Quote
Old 12th May 2009, 14:39   #61  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.0
Code:
* Added deinterlace combinations of Yadif + linear blend, linear interpolation, cubic interpolation, median deint, ffmpeg deint and lowpass 5
* Cosmetics to the help menu
* Added global audio function audio_filters_func() for calling the resample, volume normalizing and volume filters
* Added 15 new variables to the config file for enabling/disabling of specific audio/video filters and containers: 
ALLOW_FPS_CONVERSION, ALLOW_SCALER_TUNING, ALLOW_DSIZE, ALLOW_EXPAND, 
ALLOW_COLORSPACE, ALLOW_ASPECT, ALLOW_AUD_RESAMPLE, ALLOW_AUD_NORMALIZE, 
ALLOW_AUD_VOLUME, ALLOW_MKV_MUXING, ALLOW_MP4_MUXING, ALLOW_OGM_MUXING, 
ALLOW_SAMPLE_ENCODING, ALLOW_SCAN_MULTIPLE_VIDSTREAMS and ALLOW_SCAN_MULTIPLE_AUDSTREAMS,
the last two are only effective on file encodings
* Updated the man page
microchip8 is offline   Reply With Quote
Old 30th May 2009, 13:42   #62  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.1
Code:
* Use the same name for the log file as the output file name
* Force using the libmpeg2 decoder when encoding DVDs/VCDs (works slightly better in specific cases compared to ffmpeg2)
* Added support for IVTC 59.940 -> 23.976 fps
microchip8 is offline   Reply With Quote
Old 30th May 2009, 14:05   #63  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
Hi froggy!

i have added your repo (fedora10) to my list

BUT when i try to install divxenc/xvidenco/h264enc... it always say i missing MPlayer (note the capitalized MP)

i have already installed both mplayer (and mencoder)

could you correct it ? should it be named mplayer ?

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 30th May 2009, 14:12   #64  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Yup, will correct it... just need to find out how to detect different distros with the spec file. In the meantime, you can force installing it
microchip8 is offline   Reply With Quote
Old 30th May 2009, 14:24   #65  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
yep.. i will use rpm.... (and not yum)

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 30th May 2009, 14:34   #66  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by buzzqw View Post
yep.. i will use rpm.... (and not yum)

BHH
Well, I just downloaded the Fedora 10 RPM for xvidenc-8.0.9 from my repo and it *does* require mplayer and mencoder, *not* MPlayer (which is for suse)

http://download.opensuse.org/reposit...1.1.noarch.rpm

if you run on it: rpm -qp --requires xvidenc-8.0.9-1.1.noarch.rpm

this is what I get:

/bin/bash
bc
coreutils
gawk
gpac >= 0.4.5
lsdvd >= 0.16
mencoder
mkvtoolnix-gui >= 2.2.0
mplayer
nano
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
vorbis-tools

So this is correct for Fedora. Maybe you're trying to install an older version or something? Refresh your repos

Last edited by microchip8; 30th May 2009 at 14:46.
microchip8 is offline   Reply With Quote
Old 30th May 2009, 14:45   #67  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
i am sure that divxenc require MPlayer (but no prob, i have already installed manually all *enc)

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 30th May 2009, 14:48   #68  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by buzzqw View Post
i am sure that divxenc require MPlayer (but no prob, i have already installed manually all *enc)

BHH
Well, I get something else for the Fedora rpm (which is correct)

neutrino@neutrino:~/Download> rpm -qp --requires divxenc-1.3.1-1.1.noarch.rpm
/bin/bash
bc
coreutils
gawk
gpac >= 0.4.5
lsdvd >= 0.16
mencoder
mkvtoolnix-gui >= 2.2.0
mplayer
nano
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
vorbis-tools
microchip8 is offline   Reply With Quote
Old 30th May 2009, 14:51   #69  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
i have removed all these package.. and reinstalled

now it work flawlessly... don't know

sorry for a false problem ( again)

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 30th May 2009, 14:52   #70  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
No problem. Glad it works out so I won't have to spand time chasing problems
microchip8 is offline   Reply With Quote
Old 9th June 2009, 23:03   #71  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.2
Code:
* Added support for adding jpeg/png cover art files to MKV/MP4
* Added audio language meta-info for MP4 files
* Added iTunes video title name for MP4 files
* Improved audio language meta-info for MKV files. This also adds metadata info for the second audio track
* Fixed a small bug: the --aac-is-sbr mkvmerge parameter should be set to 0:1 for the second audio
track when using aacplusenc as encoder
microchip8 is offline   Reply With Quote
Old 12th June 2009, 19:40   #72  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.3
Code:
* Replaced the --noaudio mkvmerge option with -A due to recent options changes in mkvmerge version 2.9.5.
-A also works for older versions so nothing breaks here
* Removed the check_outfile_func() function as its code has been added to the set_output_filename_func() function,
which also has been improved
* Added support for FLAC audio in MKV
* Removed some code duplication in the MKV metadata tagging code
microchip8 is offline   Reply With Quote
Old 15th June 2009, 10:25   #73  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.4
Code:
* Update to the video_subtitles_func() function: for DVD encodings, added support for importing up to
three external subtitles into MKV/MP4/OGM. Also added support for hardcoding an external subtitle into the movie
* Updated the MKV/MP4/OGM muxing code to support imports of external subtitles
* If dumping of the second and/or third DVD subtitle fails and user has selected to import the subs into MKV/MP4,
force an exit since container conversion will fail as the muxing programs will complain about the missing subs. If no
container conversion is chosen or user has chosen not to import the subs and dumping of subs fails, just continue
since there's nothing critical in this case
* Use mplayer -really-quiet option instead of redirection to /dev/null when dumping audio to a named pipe for
neroAAC/Vorbis/AAC+ encoding
* Some small updates to the man page
microchip8 is offline   Reply With Quote
Old 18th June 2009, 11:02   #74  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.5
Code:
* Added support for per track audio bitrate for DVD encodings
* Added support for per track audio normalization and volume adjustments for DVD encodings. Updated functions
audio_volnorm_func() and audio_volume_func()
* Added support for per track audio resampling for DVD encodings. Updated functions audio_resample_filters_func() and
audio_resample_func()
* Updated the video bitrate calculation code to support the above audio changes
* Added support for per track AAC profile settings (LC/HE/HEv2) when using the neroAacEnc audio encoder
* Small modifications to the MKV/MP4 tagging and muxing code to support the per track neroAacEnc AAC profiles. This also
includes optimizations to the way the tagging code handles different AAC profiles. If LC profile is chosen, audio will be tagged
as LC-AAC (along with channels info). For HE and HEv2, audio will be tagged as HE-AACv1 and HE-AACv2
(along with channels info) respectively
* Moved the MKV tagging code inside the MKV muxing code
* Converted the EXTSUB1, EXTSUB2 and EXTSUB3 variables, used to import external DVD subs, to arrays so we can easily
check different files for their file extensions
* Only allow SRT subs as import into OGM. If another subs format is provided, the subs will be skipped. For MP4, do not
allow ASS/SSA subs since it's not supported yet by MP4Box. For MKV, do not allow SUP and TTXT subs
microchip8 is offline   Reply With Quote
Old 18th June 2009, 11:03   #75  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Packages for Fedora 11 are now available from my repo - http://download.opensuse.org/reposit...e:/microchip8/

microchip8 is offline   Reply With Quote
Old 18th June 2009, 12:08   #76  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,550
already using

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 19th June 2009, 11:11   #77  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.6
Code:
* Simplifications to the MKV tagging code which reduces some code duplication
* Bugfix: FAAC acodec2 variable has wrong mpeg value. Must be mpeg=4 instead of mpeg4. This results in failure in
encoding of the second audio track when one selects FAAC as encoder
* Bugfix: FLAC audio was ignored for the second track due to missing value in the selection of the case statement
* Added support for tagging of MKV files when doing a directory batch encoding
* Replaced the IMPSUB1, IMPSUB2 and IMPSUB3 variables, used to import subs when input type is file/directory/vcd,
by array variables EXTSUB[1], EXTSUB[2] and EXTSUB[3]. This allows for less code duplication as these array variables
are shared by all input types (including DVD) and thus we only need to do a small loop and add their values if not empty
to the MKVSUBS, MP4SUBS and OGMSUBS variables
* Use as temp directory $HOME/.divxenc/job<PID>
* Added new function audio_stream_copy_func() which will print a warning that audio stream copy in directory batch encoding
mode is not recommended unless the user is certain that the files have a supported audio codec by the MKV/MP4/OGM containers
* Group audio filters under a submenu similar to how the video filters are grouped
* Some small cleanups
microchip8 is offline   Reply With Quote
Old 30th June 2009, 10:17   #78  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.7
Code:
* Converted most of the variables in the video_subtitles_func() function to arrays. Moderately reduces some code duplication
* Use array variables ${SUBFILE[2]} and ${SUBFILE[3]} instead of ${OUTPUT%.*}_sub2 and ${OUTPUT%.*}_sub3 when dumping
the second/third DVD subtitle
* Simplified the MKV cover art importing code
* Major audio code restructuring and partial rewrite. Converted virtually all audio variables to array variables. This reduces a lot of
code duplication and makes the audio code much easier and extensible
* Added support for a third DVD audio track
* Added support for per track audio codec for DVD encodings
* Use external flac encoder to encode to FLAC audio as doing it through mencoder is terribly broken. This updates the config file to
version 7 and adds the 'flac' encoder as dependency
* Use only one named pipe when encoding audio tracks to neroAAC/AAC+/Vorbis/FLAC
* Updated and optimized the containers muxing code to support the above audio changes
* Updated the bitrate calculation code for target size to support the above audio changes
* Disallow autocropping, if enabled in the config file, for directory batch encodings
* Disallow automatic detection of audio sample rate for directory batch encodings
* Added support for MP4 hinting for RTP/RTSP sessions
* Updated the man page
microchip8 is offline   Reply With Quote
Old 3rd July 2009, 10:00   #79  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.8
Code:
* Fallback to undefined audio language in the AUDLANG[$i] variables if we detect unknown
language from MPlayer's output
* Added support for bitrate-based ABR Vorbis encoding in addition to quality-based VBR. ABR mode
in Vorbis resembles quality-based VBR except the encoder averages a given nominal bitrate
* Updated the Vorbis part of the video bitrate calculation code
* Added new function ratio_and_pixels_func() which calculates and displays the Storage Aspect Ratio
(SAR), Pixel Aspect Ratio (PAR) and total pixels from resolution
* Bugfix for track 1 in the internal audio encoding code. If using aacplusenc to encode audio, the case
statement had a wrong selection value (aac instead of aac+) resulting in displaying a failed message
and forcing an exit even though the encoding may have succeeded
* Simplifications to the internal audio encoding code which reduce code duplication
microchip8 is offline   Reply With Quote
Old 8th July 2009, 12:23   #80  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.3.9
Code:
* Added detection for E-AC3 audio for stream copy and updated the MKV muxing code to support it
* Added new option -spr which calculates the Storage and Pixel Aspect Ratios (SAR/PAR) for various resolutions
* Display the amount of chapters each DVD title has when scanning for titles
* Display total pixels, SAR and PAR when scanning a file/vcd with the -scan option
* Added --no-chapters mkvmerge option for audio files encoded by neroAacEnc so that chapters won't be
copied over to the MKVs from these files
* Small update to the install script 
* Updated the man page. Fix some small cosmetic issues, patch by Alessio Treglia
microchip8 is offline   Reply With Quote
Old 24th July 2009, 10:05   #81  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.0
Code:
* Minor improvments to the set_output_filename_func() function 
* Added support for the new gradfun debanding video filter. Although mostly recommended for playback due to the
fact that encoding tends to bring back banding, it can be useful to deband input sources which show pretty bad and
very noticable banding effects before passing the content to the encoder. The gradfun filter is only available in MPlayer SVN.
This also adds a new variable ALLOW_DEBAND to the config file where one can enable or disable this filter 
* Added a small while loop to the video_crop_func() function which will keep asking the user for new crop values until he's
satisfied with them. Patch by elektronaut from Doom9.org 
* Added a new variable PRIORITY to the config file which can be used to set a global priority nice value for the encoding
process. The values one can use are between (and including) -20 and 19. However, if the script detects that this variable
has a negative nice value set and the script is being executed with regular user privileges, it will print a notice and exit.
This change updates the config file to version 8 
* Fixed a bug in the audio functions calling code of the iPod preset
microchip8 is offline   Reply With Quote
Old 4th August 2009, 14:46   #82  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.1
Code:
* Add example on how to encode only specific DVD chapters
* Call the track_echo_func() function inside the select_audio_codec_func() one. Removes pointless duplication
* Don't call mplayer twice in the 2nd/3rd audio track code just to get the audio codec. Also removed a pointless case statement
microchip8 is offline   Reply With Quote
Old 11th August 2009, 14:33   #83  |  Link
vlotho
Registered User
 
Join Date: May 2009
Posts: 6
hi,

divxenc use a real divx codec ( http://labs.divx.com/DivXLinuxCodec ) or xvid codec ?
vlotho is offline   Reply With Quote
Old 11th August 2009, 14:48   #84  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by vlotho View Post
hi,

divxenc use a real divx codec ( http://labs.divx.com/DivXLinuxCodec ) or xvid codec ?
divxenc uses libavcodec's MPEG4 SP/ASP and DivX also uses this standard. DivX is just another encoder implementation of the MPEG4 ASP (Part 2) standard, just as Xvid and libavcodec's mpeg4 codec are
microchip8 is offline   Reply With Quote
Old 12th August 2009, 23:48   #85  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.2
Code:
* Removed pointless for loop and if conditional in the audio_filters_var_func() function
* Simplified the audio_filters_func() function
* Added support for the audio panning filter. This change updates the config file to version 9
* Moved the audio filters functions after the audio codecs ones
* Reduced the number of if conditional iterations for setting the scaler interlace variable
* Replaced variable CONFIGDIR with TEMPDIR
* Fixed some spacings issues by moving around some echo's
* Print full path of the output file(s) at the end of encoding
* Simplified the sample encoding code. Reduced some code duplication
* Removed duplicate videofilters variable. This removes the check for the tfields filter as now
deinterlacing will always be done after cropping (which also speeds up things a bit) so the crop
filter will never complain about crop area being outside of the original if tfields is used. It also
reduces filters maintenance a bit
microchip8 is offline   Reply With Quote
Old 5th September 2009, 12:19   #86  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.3
Code:
* Added support for the noise video filter. This change updates the config file to version 10. Also, encoding priority now defaults to a nice value of 10 in the config file
* Moved out the code which checks and backups/renames a file if it has the same name as the output provided by the user to a separate function
called backup_file_func() and also improved it so that if there's already an existing backup file, the new one will increase its count number by one thus
there's no more overwriting being done anymore. The same thing applies to existing chapter files and DVD subs
* Small improvements to how chapters information is added to the output file name
* Improved detection of DVD audio language codes. We now specifically grep for the language word and then print the 2nd positional
which gives us the language code. It works more reliably if the DVD does not report its language code for the audio track(s) so if this
is the case, we fall back to undefined language. The previous code fails in such cases due to the printing of the 8th positional which will
print the "aid:" part when there's no language code after the "language:" word, resulting in MKV/MP4 muxing failures.
* Turn soft-clipping on in the volume audio filter
* Simplified the audio_channels_func() function a bit
* Moved the MP4 code that deals with DVD subs/cover files/metadata info/chapters and external subs before its audio code
* Fixed chapters import for the OGM container. Missing '@' before the chapters input file results in the file not being imported
* Added support for audio language metadata info for the OGM container
* Added support for Year and Genre metadata tagging for the MKV/MP4/OGM containers. For MKV, the genre and year is set globally
using an automatically generated XML file. MP4 uses the iTunes tagging and OGM the comment space
* Updated the man page
microchip8 is offline   Reply With Quote
Old 16th September 2009, 11:57   #87  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.4
Code:
* Small improvement to how the MKV XML tagging file gets exported. Also improved the XML formatting and added COMMENT
string with text "Tagged by divxenc $version" and added SOURCE entry
* Added comment tag for MP4 and OGM with the same text as above
* Small update to the video_deinterlace_func() function's menu
* Add comment header with dates to batch files
* Use only lowercase words in all case statements that deal with the input source
* Placed the -passlogfile option inside the PASSLOG variable
* Added support for 2-pass Nero AAC audio encoding. Note that 2-pass is only supported by ABR/CBR encoding and ensures that the
output quality is constant (like VBR) while also ensuring that a specified output bitrate is achieved (like CBR)
* Small bugfix: the counter in set_output_filename_func() didn't increase itself
* Replaced variable $source with $type and $vtype with $source
microchip8 is offline   Reply With Quote
Old 19th September 2009, 10:37   #88  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.5
Code:
* Added VIDEO_FILTERS, AUDIO_FILTERS_TRACK[1|2|3], ENCODER and LAVC_PARAMETERS entries to the mkvtags_func() function
* MP3 (MPEG1 Layer 3) only supports sample frequencies of 32, 44.1 and 48 kHz so restrict to those only in the audio_resample_func() function
* Set default for the pp7 deblocker to 3
* Fixed example typo in the DVD chapters code
microchip8 is offline   Reply With Quote
Old 29th September 2009, 17:06   #89  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.6
Code:
* Insert the ilpack filter before the scaler to correctly align chroma when preserving interlacing
* Added AUDIO_CODEC_TRACK[1|2|3], AUDIO_LANGUAGE_TRACK[1|2|3], MKVMERGE_VERSION and DIVXENC_PARAMETERS
entries to the mkvtags_func() function
* Improved checking the availability of block devices
* Add detection of VFR content (1000 fps as reported by MPlayer)
microchip8 is offline   Reply With Quote
Old 24th October 2009, 13:52   #90  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.7
Code:
* Added new function video_subtitles_align_func() for subtitle alignment control
* Simplified a bit the audio exporting code for the first track
* Force stereo audio for Nero HE-AACv2 as it doesn't support anything else, thus it results in failure if user tries
to encode with more than two channels. This updates the audio_channels_func() function and also adds a small
new independent one called neroaac_hev2_func() which only sets the channels to two if the channels array variables
are empty, as is the case when the user did not set the channels
* Small improvements to the ABR/VBR default audio bitrates for the neroAacEnc encoder. Base the default bitrates on
the chosen AAC profile, i.e. if user chooses HE-AACv1, default bitrate will be 55 kbps or in case of quality-based VBR
encoding a value of 0.22. For LC-AAC and HE-AACv2, default bitrates and quality values will be 96 kbps or 0.35 and 25
kbps or 0.11, respectively. Note that this assumes the input audio is stereo so if it's anything else than that, it's up to
the user to decide on bitrates or quality values
* Set default to a capital letter in questions where one needs to answer with y or n
microchip8 is offline   Reply With Quote
Old 17th November 2009, 21:40   #91  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.8
Code:
* Implemented a simple telecine detector for NTSC DVDs. Currently it's a dumb solution which can't
distinguish between hard telecine and interlacing but it's enough to detect soft telecine and mixed
progressive/telecine content which is more common
* Simplified the FPS detection code
* Sed a comma at the end of resolution detection in case we're dealing with TS files. The default TS demuxer in
MPlayer has a comma at the end of the resolution info which results in errorneous behavior in the bc calculation
* Simplified the resolution detection code
* Small general code improvements and cosmetics
microchip8 is offline   Reply With Quote
Old 28th December 2009, 07:31   #92  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.4.9
Code:
* Changed all video ALLOW_* variables in the config file to ALLOW_VID_*
* When using dd to dump a DVD to an ISO, use options noerror,sync and a bs size of 2048
* Added support for sending mails. This requires the 'mailx' program and a valid .mailrc ile in the home directory.
Mail notification can be enabled in the config file of divxenc which also offers an example of a gmail setting for .mailrc
* Added support for loading custom preset files. Have a look at the preset.cfg file in the doc directory on how to write such files
* Added support for setting a custom temp dir in the config file
* Small update to the mkvtags_func() function
* Bumped config file version to 11
* Updated copyright dates
* Updated the man page
microchip8 is offline   Reply With Quote
Old 19th January 2010, 18:49   #93  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.0
Code:
* Added two new variables, DVD_DEVICE and CDROM_DEVICE, to the config file where user can set his preferred
dvd/cd block device. This updates the config file to version 12
* Merged the get_dvd_devices_func() and get_vcd_devices_func() functions into a new one called get_devices_func()
* Removed the -a52drc option for AC3 encoding
microchip8 is offline   Reply With Quote
Old 21st January 2010, 14:28   #94  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.1
Code:
* Renamed the rmconf() function to rmtemp() 
* Moved creation of temp dir, the interrupt_func() and rmtemp() functions at the beginning of the script
* Fixed a bug in the DVD part of the -scan option where lsdvd doesn't get a valid device passed. Bug was introduced due to
changes in the new get_devices_func() function
* Removed some duplication in the mencoder_opts() function
* Various small code improvements
* Updated the README.divxenc file
microchip8 is offline   Reply With Quote
Old 2nd February 2010, 13:51   #95  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.2
Code:
* Reduced duplication in the audio encode exporting code by moving it inside functions
* Reduced duplication in the MKV/MP4/OGM exporting code by moving it inside functions
* Reduced duplication in the code that prints some information before encoding starts
* Various minor code improvements
microchip8 is offline   Reply With Quote
Old 19th February 2010, 07:10   #96  |  Link
mousemurder
Registered User
 
Join Date: Jun 2007
Posts: 120
hi, i am trying to encode a dvd (i tried it with 2 different dvd's) into an mkv with flac audio. but when it gets to the end it errors. is there a problem with flac for xvidenc ?
Code:
xbmc@XBMCLive:~/win/stuff/moo-vees$ xvidenc -v
xvidenc 8.2.1
xbmc@XBMCLive:~/win/stuff/moo-vees$ xvidenc -sc

-> Checking for 'MPlayer'..................... OK
-> Checking for 'MEncoder'.................... OK
-> Xvid video support in MEncoder............. YES
-> AAC (FAAC) audio support in MEncoder....... YES
-> MP3 (LAME) audio support in MEncoder....... YES
-> AC3 (lavc) audio support in MEncoder....... YES
-> PCM audio support in MEncoder.............. YES

-> Checking for 'bc'.......................... OK
-> Checking for 'pv'.......................... OK
-> Checking for 'dd'.......................... OK
-> Checking for 'neroAacEnc'.................. FAILED! [no support for AAC+ audio]
-> Checking for 'aacplusenc'.................. FAILED! [no support for AAC+ audio]
-> Checking for 'oggenc'...................... OK
-> Checking for 'flac'........................ OK
-> Checking for 'less'........................ OK
-> Checking for 'lsdvd'....................... OK
-> Checking for 'dvdxchap' (from ogmtools).... OK
-> Checking for 'mkvmerge' (from mkvtoolnix).. OK
-> Checking for 'ogmmerge' (from ogmtools).... OK
-> Checking for 'MP4Box' (from gpac).......... OK

If you have installed a required program but the script
can't find it, run 'xvidenc -r' to reset the config file.


xbmc@XBMCLive:~/win/stuff/moo-vees$ xvidenc -1p -p ehq
...
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 16384:9208.
Setting audio delay to 0.033s.

Video stream: 1197.443 kbit/s  (149680 B/s)  size: 31748982 bytes  212.112 secs  5165 frames

Audio stream: 4608.000 kbit/s  (576000 B/s)  size: 122688000 bytes  213.000 secs

-> Track 1: Encoding audio with 'flac' to FLAC, please wait...
-> This can take a while...
-> Failed!
-> Exiting as container conversion will also fail!
thx,
congrats on the great work froggy.
mousemurder is offline   Reply With Quote
Old 19th February 2010, 07:39   #97  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
@mousemurder

Works here, just tested on a sample. Encodes and muxes without a problem and looking at the exported commands to the batchfile, I don't see something wrong being done. I can't help you much unless you post your batchfile so I can look at the stuff in there

Also, you're using a pretty outdated xvidenc version (8.2.1). Try the latest which is 8.3.1
microchip8 is offline   Reply With Quote
Old 19th February 2010, 23:11   #98  |  Link
mousemurder
Registered User
 
Join Date: Jun 2007
Posts: 120
hi, this is the version that is installed when i do a apt-get install xvidenc
this is the script that is generated:
Code:
xbmc@XBMCLive:~$ cat xvidenc-flac-5.1-batchfile.ksh
#!/bin/bash
################### START OF COMMANDS ###################

test -d "/home/xbmc/win/stuff/moo-vees" || mkdir -p "/home/xbmc/win/stuff/moo-vees"
test -d /home/xbmc/.xvidenc/job32183 || mkdir -p /home/xbmc/.xvidenc/job32183
test -e "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" && mv -f "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi.old"

/usr/bin/mencoder "dvd://1" -o "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" -vc mpeg12 -chapter 1-1 -dvd-device /home/xbmc/win/stuff/moo-vees/district-9.iso -vf softskip,harddup -aid 128 -channels 6 -oac pcm -ovc xvid -xvidencopts bitrate=1200:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect




sleep 2

test -p /home/xbmc/.xvidenc/job32183/audio.wav || mkfifo /home/xbmc/.xvidenc/job32183/audio.wav
/usr/bin/flac -5 /home/xbmc/.xvidenc/job32183/audio.wav -o /home/xbmc/.xvidenc/job32183/audio.flac &
/usr/bin/mplayer "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" -noconfig all -loop 1 -really-quiet -vc null -vo null -nocache -channels 6 -ao pcm:fast:file=/home/xbmc/.xvidenc/job32183/audio.wav
sleep 2

test -e "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.mkv" && mv -f "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.mkv" "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.mkv.old"
/usr/bin/mkvmerge  -A --title "district-9-test-5 - chapter 1-1" --track-name 0:"district-9-test-5 - chapter 1-1" "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" --track-name 0:"FLAC 5.1" --language 0:en /home/xbmc/.xvidenc/job32183/audio.flac     -o "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.mkv"
sleep 2

rm -rf /home/xbmc/.xvidenc/job32183

#################### END OF COMMANDS ####################
i will try to run it and see if something is printed to the screen that helps us determine where the trouble is.
mousemurder is offline   Reply With Quote
Old 19th February 2010, 23:19   #99  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Well, I don't see anything wrong in there and it works here too (tested 3 times by now, various samples). Run it from the batchfile as it outputs all messages instead of redirecting them to /dev/null like when running h264enc/xvidenc/divxenc directly

as for the version, Debian isn't known to be the most up to date distro wrt to multimedia
microchip8 is offline   Reply With Quote
Old 19th February 2010, 23:48   #100  |  Link
mousemurder
Registered User
 
Join Date: Jun 2007
Posts: 120
thanks froggy, i ran these commands on another ssh session:
Code:
1.:  /usr/bin/mencoder "dvd://1" -o "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" -vc mpeg12 -chapter 1-1 -dvd-device /home/xbmc/win/stuff/moo-vees/district-9.iso -vf softskip,harddup -aid 128 -channels 6 -oac pcm -ovc xvid -xvidencopts bitrate=1200:me_quality=6:vhq=4:threads=2:max_bframes=2:bvhq=1:nopacked:quant_type=h263:noqpel:nogmc:trellis:chroma_me:chroma_opt:hq_ac:nolumi_mask:rc_reaction_delay_factor=0:rc_averaging_period=100:closed_gop:autoaspect

2.:  mkdir /home/xbmc/.xvidenc/job32183

3.:  mkfifo /home/xbmc/.xvidenc/job32183/audio.wav

5.:  /usr/bin/mplayer "/home/xbmc/win/stuff/moo-vees/district-9-test-5 - chapter 1-1.avi" -noconfig all -loop 1 -really-quiet -vc null -vo null -nocache -channels 6 -ao pcm:fast:file=/home/xbmc/.xvidenc/job32183/audio.wav
before running the mplayer command, i ssh'd into another session and ran:
Code:
4.:  xbmc@XBMCLive:~$ /usr/bin/flac -5 /home/xbmc/.xvidenc/job32183/audio.wav -o /home/xbmc/.xvidenc/job32183/audio.flac

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

6.:  audio.wav: ERROR: WAVE has >2 channels but is not WAVE_FORMAT_EXTENSIBLE; cannot assign channels
the error in red came up after i started the mplayer command. i dont know what this means (google didnt return anything useful). have you come across this error before ?

Last edited by mousemurder; 20th February 2010 at 20:22.
mousemurder is offline   Reply With Quote
Old 19th February 2010, 23:58   #101  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
WAVE_FORMAT_EXTENSIBLE is something that indicates an extension to the format chunk. It's used to indicate stuff like more than 16-bits in WAV, more than 2 chans, etc. I'm not expert on that, and I didn't test with more than 2 chans on my samples, but I'll see if it can be "fixed" or worked around in the script. If not, then you may need to stick to 2chans for now, or modify the batchfile and make it dump the audio to a real WAV file (with 6chans) and encode it to flac, bypassing the pipe thing

Last edited by microchip8; 20th February 2010 at 00:01.
microchip8 is offline   Reply With Quote
Old 20th February 2010, 00:17   #102  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Well, I just did a small test here, dumping the audio to a real WAV file (6chans) with mplayer and trying to encode it with flac. It still reports the same thing so I guess it's mplayer that doesn't add the WAVE_FORMAT_EXTENSIBLE to WAVs, regardless if one uses a pipe or physical file to encode from. All one can do is report this to mplayer-dev-eng mailing list and hope someone makes a patch

EDIT: I've reported this to the list, will wait and see what answers I'll get, if any

Last edited by microchip8; 20th February 2010 at 00:27.
microchip8 is offline   Reply With Quote
Old 21st February 2010, 02:48   #103  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
@mousemurder

Here's a patch for that which fixes stuff (tested and works here). After my post on the mplayer ML, Jason picked it up and decided to hack something together.
How to patch:

1) download patch, extract and place it in the libao2 directory inside the mplayer's one
2) cd to libao2 and issue following cmd: patch -p0 < ao_pcm-waveformatextensible.diff
3) compile mplayer
4) .....
5) PROFIT!!!

Link: http://www.mediafire.com/?gjmeitg52a4
microchip8 is offline   Reply With Quote
Old 22nd February 2010, 17:47   #104  |  Link
mousemurder
Registered User
 
Join Date: Jun 2007
Posts: 120
^thanks, i'll test it out when i got some time (at work now).
fyi, for the time being i was using 6 channel ac3 sound which worked well.
mousemurder is offline   Reply With Quote
Old 22nd February 2010, 18:25   #105  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by mousemurder View Post
^thanks, i'll test it out when i got some time (at work now).
fyi, for the time being i was using 6 channel ac3 sound which worked well.
Note that the patch was committed yesterday so the above is no longer needed, provided you pull latest mplayer from SVN
microchip8 is offline   Reply With Quote
Old 27th February 2010, 14:46   #106  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.3
Code:
* Small bugfix: wrong variable used when exporting from the send_email_func() function to the batchfile
* Added new variable DEFOUTPUT to the config where user can set a default output directory. This updates the config version to 13
* Updated the set_output_filename_func() function to support the above change
* Use one variable in the presets (divxparams) for all MEncoder lavc mpeg4 encoding options. Reduces some code and simplifies things a bit
* Updated the preset.cfg file to support the "one variable for all lavc mpeg4 encoder opts"
Note: those using custom preset files for encoding should read the preset.cfg file in the doc dir and
adapt their existing preset files to be compatible with the changes. Previous older custom presets written by users will not work with this and future versions of divxenc!
microchip8 is offline   Reply With Quote
Old 12th March 2010, 15:29   #107  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.4
Code:
* Small bugfix: the $ildctme interlace variable wasn't passed on to mencoder
* Space escaped some previously missed variables
microchip8 is offline   Reply With Quote
Old 5th May 2010, 15:58   #108  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.5
Code:
* Reworked a bit the audio channels decode/output function. This function also got renamed from
audio_channels_func() to audio_channels_decode_func()
* Added support for the audio channels filter which can be used to add/remove/route channels. This updates
the config file to version 14 and adds variable ALLOW_AUD_CHANNELS
* Some various small improvements
microchip8 is offline   Reply With Quote
Old 15th May 2010, 17:35   #109  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.6
Code:
* Small bugfix in the get_devices_func() function; script exits when user hits enter to accept default device
* Updated the man page
microchip8 is offline   Reply With Quote
Old 27th June 2010, 08:05   #110  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.7
Code:
* Bugfix for the ps3 preset: autoapsect -> autoaspect. Reported by Thomas Troeger
microchip8 is offline   Reply With Quote
Old 7th August 2010, 08:52   #111  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.8
Code:
* Add -nosub to prevent auto-loading of subs
microchip8 is offline   Reply With Quote
Old 22nd September 2010, 09:25   #112  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.5.9
Code:
* Workaround mencoder stupidity. With recent versions of mencoder that have subs enabled by default
(who came up with that great idea?), in case the user selects to dump a sub for importing into mkv/mp4, during
multipass encoding the first sub will always get hardcoded due to missing -nosub option in the 2nd/3rd pass code.
This is only valid for multipass encodes so people using one pass modes (-1p or -fq) are safe.
* Small update to the -scan option. Just check if input file is there, regardless if user provides the full path or not
microchip8 is offline   Reply With Quote
Old 29th October 2010, 10:24   #113  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.0
Code:
* Added support for setting subtitle codepage during hardcoding of external subs
* Added support for the audio equalizer filter. This updates the config file version to 15
* Removed 'time' requirement
* Fixed a bug: removed a double semicolon in the hq preset which causes mencoder to exit
microchip8 is offline   Reply With Quote
Old 5th November 2010, 23:39   #114  |  Link
contador
Registered User
 
Join Date: Jul 2010
Posts: 11
Thanks Froggy
contador is offline   Reply With Quote
Old 26th November 2010, 09:53   #115  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.1
Code:
* Remove double $HOME variable in the -scan option
microchip8 is offline   Reply With Quote
Old 6th December 2010, 12:31   #116  |  Link
tolostoi
Registered User
 
Join Date: Dec 2009
Posts: 2
Hi, it's look like great app But I can't convert my video, it is blu-ray .m2ts file, failing when trying to calculate bit rate for 700 mb output file (with me gui option 0). I guess, if set custom bit rate will work, but I want exactly 700 mb .

P. S. Would be great if there was an option that offers different resolution for output file

Thanks for the script!

P.S. 2 I forgot to put the error output

Code:
Which formula to use? [default is 0]:

-> Detecting video length...
Runtime error (func=(main), adr=69): Divide by zero
(standard_in) 1: syntax error
(standard_in) 1: syntax error
-> Video length is 0 minutes or 0.00 seconds
-> Number of frames: 0
-> Chosen/detected audio bitrate is 230 kbps 

-> Estimated video bitrate for 700 MiB:  kbps
-> Bits Per Pixel value:  bpp
-> Bits Per Block value:  bpb

Specify the new video bitrate in kbps [default is ]: 946
Would you like to inspect the MEncoder options? [y/N]: y

+===========================+
| MEncoder encoding options |
+===========================+

First pass options
~~~~~~~~~~~~~~~~~~
nice -n 10 /store/1/storage/temp/mplayer/mplayer/mencoder "00000.m2ts" -o /dev/null -passlogfile "/home/tolostoi/.divxenc/job17096/DivX-17096.log" -nosub -ffourcc DX50 -vf crop=1920:1072:0:4,softskip,scale=624:352:0,unsharp=l5x5:0.2:c5x5:0.2,harddup -sws 10 -aid 4354 -oac mp3lame -lameopts q=0:aq=5:vol=2.2:mode=1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:turbo:vbitrate=946:vmax_b_frames=2:vme=4:mbd=2:v4mv:bidir_refine=4:precmp=6:cmp=6:subcmp=6:dia=-1:trell:cbp:mv0:last_pred=8:preme=2:qns=2:vlelim=-4:vcelim=9:autoaspect:threads=2

Second pass options
~~~~~~~~~~~~~~~~~~~
nice -n 10 /store/1/storage/temp/mplayer/mplayer/mencoder "00000.m2ts" -o /dev/null -passlogfile "/home/tolostoi/.divxenc/job17096/DivX-17096.log" -nosub -ffourcc DX50 -vf crop=1920:1072:0:4,softskip,scale=624:352:0,unsharp=l5x5:0.2:c5x5:0.2,harddup -sws 10 -aid 4354 -oac mp3lame -lameopts q=0:aq=5:vol=2.2:mode=1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=3:vbitrate=946:vmax_b_frames=2:vme=4:mbd=2:v4mv:bidir_refine=4:precmp=6:cmp=6:subcmp=6:dia=-1:trell:cbp:mv0:last_pred=8:preme=2:qns=2:vlelim=-4:vcelim=9:autoaspect:threads=2

Third pass options
~~~~~~~~~~~~~~~~~~
nice -n 10 /store/1/storage/temp/mplayer/mplayer/mencoder "00000.m2ts" -o "/home/tolostoi/DivX-17096.avi" -passlogfile "/home/tolostoi/.divxenc/job17096/DivX-17096.log" -nosub -ffourcc DX50 -vf crop=1920:1072:0:4,softskip,scale=624:352:0,unsharp=l5x5:0.2:c5x5:0.2,harddup -sws 10 -aid 4354 -oac mp3lame -lameopts q=0:aq=5:vol=2.2:mode=1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=3:vbitrate=946:vmax_b_frames=2:vme=4:mbd=2:v4mv:bidir_refine=4:precmp=6:cmp=6:subcmp=6:dia=-1:trell:cbp:mv0:last_pred=8:preme=2:qns=2:vlelim=-4:vcelim=9:autoaspect:threads=2

Would you like to encode a Sample? [y/N]: y
Specify the start position in hour:min:sec [default is 0:02:00]:
Specify the duration in seconds for the sample [default is 30]:

-> Encoding sample, please wait...
-> Running pass 1...
-> Done
-> Running pass 2...
Using Ubuntu 10.04 but mplayer is from another repo (because of VDPAU) I compile mplayer from svn without installing and set paths to mplayer and mencoder in dixenc's config, but error still here.

Last edited by tolostoi; 6th December 2010 at 12:49.
tolostoi is offline   Reply With Quote
Old 6th December 2010, 16:45   #117  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Quote:
Originally Posted by tolostoi View Post
Hi, it's look like great app But I can't convert my video, it is blu-ray .m2ts file, failing when trying to calculate bit rate for 700 mb output file (with me gui option 0). I guess, if set custom bit rate will work, but I want exactly 700 mb .
Sorry, m2ts/ts could be problematic in both divxenc and mencoder.

Quote:
P. S. Would be great if there was an option that offers different resolution for output file
Eh? Scaling is very much supported by the script

Quote:
Thanks for the script!

P.S. 2 I forgot to put the error output

<snip>

Using Ubuntu 10.04 but mplayer is from another repo (because of VDPAU) I compile mplayer from svn without installing and set paths to mplayer and mencoder in dixenc's config, but error still here.
Can you provide a small sample from that file?
microchip8 is offline   Reply With Quote
Old 6th December 2010, 22:35   #118  |  Link
tolostoi
Registered User
 
Join Date: Dec 2009
Posts: 2
Quote:
Originally Posted by froggy1 View Post
Eh? Scaling is very much supported by the script
Yeah, but I'm nooby and somthing like
640x480
720x400
... or whatever. I mean to offer a resolutions that match on aspect ratio, because for me is hard to calculate and divide / 16.
I know, with this info
Code:
-> Detecting FPS value...
-> Detected 25.000 FPS
-> Number of frames: 132762

Would you like to set/force the Output Frame Rate (FPS)? [y/N]: 
Would you like to do Frame Rate Conversion? [y/N]: 

-> Detecting cropped resolution...
-> Cropped resolution is: 720x560

-> Detected Aspect Ratio (AR): 1.7778:1
-> Storage Aspect Ratio (SAR): 1.2857:1
-> Pixel Aspect Ratio (PAR): 1.3827:1
-> Total pixels: 403200
can calculate the resolution, but is hard for me. If it can be set the width manualy and the script offer rest will be good.

Quote:
Originally Posted by froggy1 View Post
Can you provide a small sample from that file?
I don't know how to cut piece, can cut a part with avidemux, but output wil be another container.
Edit: I found how to cut a piece (with tsmuxer) I wil sent link on PM

Last edited by tolostoi; 6th December 2010 at 23:35.
tolostoi is offline   Reply With Quote
Old 7th December 2010, 06:42   #119  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
@tolostoi

Sorry, I don't think I'll add this for the resolution. But you can already let mencoder do it for you as the 'scale' filter supports it. From the man page of mplayer...

Quote:
0: scaled d_width/d_height
-1: original width/height
-2: Calculate w/h using the other dimension and the prescaled aspect ratio.
-3: Calculate w/h using the other dimension and the original aspect ratio.
-(n+8): Like -n above, but rounding the dimension to the closest multiple of 16.
So, for example if you want to scale the width to 720 and let the height be auto-calculated and be divisible by 16, you can provide to divxenc 720:-10. It will calculate the height taking into account the prescaled aspect ratio (which is the -2 from above) and if you add 8 to it (the -n+8, thus resulting in -10) it will give you a height divisible by 16. Note that if you use that in divxenc, you'll get errors in some of the informative functions that print stuff but you can safely ignore that. They're not critical, just print information

About the target file size calculation. I did a few testings here and it seems the default TS demuxer of mplayer does not report correctly the length (ID_LENGTH appears to always be 0.00). So I can fix that by switching over to -demuxer lavf
microchip8 is offline   Reply With Quote
Old 7th March 2011, 23:32   #120  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.3
Code:
* Fixed a bug in directory batch mode were wrong conditional was used to check for the DEFOUTPUT variable
* Display which file is currently being processed in batch mode
* Check only for files while in batch mode
* Fixed the video_deblock_func() function. Wrong vars used for some of the filters
microchip8 is offline   Reply With Quote
Old 29th March 2011, 09:28   #121  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.4
Code:
* Added support for setting the crop rounding value
microchip8 is offline   Reply With Quote
Old 2nd January 2012, 21:52   #122  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.5
Code:
* Added support for setting the default video bitrate/quantizer and default audio codec in the config file, which introduces three new variables; DEFAULT_VID_BITRATE,
DEFAULT_VID_QTZR and DEFAULT_AUD_CODEC. This bumps the config file version to 17
* Renamed variables DEFOUTPUT, DEFPATH and DEFBATCHDIR to DEFAULT_OUTPUT, DEFAULT_PATH and DEFAULT_BATCHDIR
* Replaced some if conditionals in the -sc option by using 'test' directly
* Added an option to pass additional parameters to MEncoder. Useful if user wants to pass options such as -mc 0 -noskip
* Added support for encoding to DTS audio through the dcaenc encoder which can be found at: http://aepatrakov.narod.ru/dcaenc/
* Minor changes to the video_delogo_func() function. Use $sourcetype, $device, $vid and $MPLAYEROPTS variables. Also use -nosound in MPlayer
* Improved the mkvtags file. Escape special characters like &, <, > and " in the Title field
* Use -vo dummy in MPlayer in the audio code. Seems to work better for some files
microchip8 is offline   Reply With Quote
Old 27th September 2012, 11:47   #123  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.6
Code:
* Don't append '- chapter [id]' to output filename when user encodes only specific DVD chapters
* Change bad default bitrate value in DTS audio encoding to 384kbps
microchip8 is offline   Reply With Quote
Old 10th April 2013, 15:55   #124  |  Link
mousemurder
Registered User
 
Join Date: Jun 2007
Posts: 120
hi froggy, i get a a segfault with xvidenc-8.8.4 on both fedora-18 and xbmcbuntu-12.1
if i take out this parameter it runs fine:
Code:
-vc mpeg12
mite be an upstream change from mencoder ?

regards,
mousemurder is offline   Reply With Quote
Old 10th April 2013, 16:00   #125  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
Hi mousemurder,

Yeah this is possible. I think I'll remove -vc mpeg12 from future versions as MPlayer heads to ffmpeg's native implementation for mpeg decoding. The reason I used -vc mpeg12 in the past is because it produced less errors

EDIT: I'll release a new version without it tomorrow

Last edited by microchip8; 10th April 2013 at 16:11.
microchip8 is offline   Reply With Quote
Old 11th April 2013, 15:05   #126  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.7
Code:
* Use ffmpeg's MPEG12 decoder instead of the libmpeg12 one
* Updated the man page
microchip8 is offline   Reply With Quote
Old 22nd May 2013, 18:07   #127  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.8
Code:
* Bugfix: add missing 384 kbps option for AC3 audio
* Notify the user when we first create the config file
* SAR is Sample Aspect Ratio, not Storage Aspect Ratio. Corrected this mistake
microchip8 is offline   Reply With Quote
Old 28th May 2013, 11:37   #128  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.6.9
Code:
* Use aften for AC3 audio encoding as MEncoder is currently broken. This updates the config file version to 18
microchip8 is offline   Reply With Quote
Old 29th May 2013, 08:47   #129  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.0
Code:
* Removed workarounds for older MP4Box versions. As of this release, only gpac 0.5.0 and higher are supported.
SVN version is highly recommended, though
* Use o=mpv_flags=+cbp_rd instead of cbp
* When using AC3 audio, language TID for MKV was set to 1. It should be 0
microchip8 is offline   Reply With Quote
Old 2nd September 2013, 18:44   #130  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.1
Code:
* Fix audio TID for MKV when using neroAacEnc as encoder
microchip8 is offline   Reply With Quote
Old 24th October 2013, 22:45   #131  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.2
Code:
* Allow encoding of 640 kbps AC-3 audio
* Detect and display audio codec info when input is file
* Added support for setting the Dynamic Range Compression (DRC) profile for AC-3 audio
* Fixed AC-3 audio encoding by adding -readtoeof 1 which ignores WAV header signaling
* Renamed aften $AC3 var to $AC3ENC
* Use AC-3 instead of AC3 in metadata info
microchip8 is offline   Reply With Quote
Old 28th October 2013, 11:17   #132  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.3
Code:
* Bugfix: codec detection for 2nd and 3rd audio track from DVDs did not work correctly
* Updated the man page
microchip8 is offline   Reply With Quote
Old 29th October 2013, 05:49   #133  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.4
Code:
* Added support for the Opus audio codec. Requires opusenc and a recent version of mkvtoolnix with support for Opus
* Renamed track_echo_func() to audio_track_echo_func() for consistency
* Added support for setting the AC-3 Exponent strategy search size
* Allow applying an LFE low-pass filter for AC-3 audio
* Improved aften options passing
* Updated the man page
microchip8 is offline   Reply With Quote
Old 30th October 2013, 15:02   #134  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.5
Code:
* Added -demuxer lavf for more reliable detection of audio streams in file input mode
* Implemented virtually infinite support for the amount of audio tracks. This introduces a new variable in the
config file, MAX_AMOUNT_AUD_TRACKS, where the user can specify how many audio tracks he/she wants the script to support.
* Enabled multi-channel support for Opus audio
* Moved the MKV audio filters metadata after the audio codec/language metadata
* Fixed copy and pcm audio encoding
* If user chooses PCM for subsequent audio tracks, don't error out but just skip the track
* Some minor clean-ups
microchip8 is offline   Reply With Quote
Old 31st October 2013, 13:05   #135  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.6
Code:
* Implemented support for virtually an infinite amount of subtitles. This introduces a new variable,
MAX_AMOUNT_SUBS, to the config file where the user can set the amount of subtitles he/she wants the script to support
* Added output name to the message of the mail notification feature
* Fixed the nosound audio option
* renamed the rmtemp() function to exit_func()
* Return proper exit codes. 0 on success, 1 on error and 2 on user interrupt
microchip8 is offline   Reply With Quote
Old 1st November 2013, 18:45   #136  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.7
Code:
* Merged the file and dvd audio detection/selection code
* Merged the audio code for the first track with the code for subsequent tracks
* Set a default audio ID based on input (ie, 0 for file and 128 for DVD)
* Small improvements to the subtitles code
* Updated the presets to support recent SVN MPlayer versions
* Use -demuxer lavf for file and dir encodings
* Renamed the -help switch to -h
* Improved the way audio tracks information is presented to the user
* Make destination dir if it doesn't exist for saving to the batchfile
* Updated the man page
microchip8 is offline   Reply With Quote
Old 3rd November 2013, 12:35   #137  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.8
Code:
* Placed the $demuxer variable higher. Fixes audio detection for file input
* Moved some audio selection code into a new set_audio_codec_func() function.
Reduces some code duplication and removes the default_audio_codec_func() function
microchip8 is offline   Reply With Quote
Old 11th November 2013, 18:16   #138  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.7.9
Code:
* Allow importing of PGS subtitles into the MKV container
* Added support for importing a chapters file for MKV/MP4/OGM when input is file
* Added support for setting the audio language code for MKV/MP4/OGM when input is file
* Added support for setting the subtitle language code when importing subs into MKV/MP4/OGM
microchip8 is offline   Reply With Quote
Old 5th May 2014, 19:18   #139  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 2,129
ChangeLog for version 1.8.0
Code:
* Add -nosub option to prevent auto-loading of embedded subs
* Use -mc 0 -msglevel demuxer=-1 to work around the copy issue of MEncoder
microchip8 is offline   Reply With Quote
Reply

Tags
divxenc


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.