Log in

View Full Version : h264enc for Linux


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

]Lexx[
17th February 2009, 07:05
HQ presets for Blu-ray/AVCHD [x264] HP@Level 4.1 encoding

--pass 1 --bitrate XXXX --stats ".stats" --ref 4 --mixed-refs --no-fast-pskip --bframes 5
--b-pyramid --weightb --direct auto --deblock -3:-3 --subme 9 ---analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --trellis 2 --aq-strength 0.8
--psy-rd 1.0:0.0 --b-adapt 2 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output NUL

--pass 2 --bitrate XXXX --stats ".stats" --ref 4 --mixed-refs --no-fast-pskip --bframes 5 --b-pyramid --weightb
--direct auto --deblock -3:-3 --subme 9 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --trellis 2 --aq-strength 0.8 --psy-rd 1.0:0.0 --me umh
--threads auto --thread-input --progress --no-psnr --no-ssim --output "yourmovie.mkv" "avs encode.avs"


Level 4.1 Compliances

Number of allowed reference frames to make your encode L4.1 compatible.

|-----------|---------|
|Resolution | no. ref |
|-----------|---------|
| 1280x544 | 12 |
| 1280x720 | 9 |
| 1920x800 | 5 |
| 1920x816 | 5 |
| 1920x1080 | 4 |
|-----------|---------|

microchip8
17th February 2009, 14:33
I don't change frame references according to resolution for the bd/avchd presets

liquidator87
19th February 2009, 12:49
Where did you find the documentation for mencoder "x264encopts" parameter?

buzzqw
19th February 2009, 13:06
mencoder man pages ?

BHH

nm
19th February 2009, 13:14
Looks like the manual web page (http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html) is currently empty, probably because of some bug in automatic generation.

But if you have MPlayer/MEncoder properly installed, just run "man mplayer" in a terminal. Search by typing "/x264encopts" and hit enter. Next and previous hits can be searched with keys "n" and "N", respectively.

"x264 --longhelp" is also useful since the x264encopts parameters from MEncoder are parsed by libx264, so the syntax is mostly the same except for delimiters.

liquidator87
19th February 2009, 13:42
thank you, I found what I need

WalterK
23rd February 2009, 21:17
hey froggy1 have you seen the latest svn mplayer?
Its now shipping with vdpau without the need for patches and therein lies the problem.
Trying to re-encode vc-1 hidef files to x264 leads to a
Starting to encode in: 5 4 3 2 1
MEncoder SVN-r28674-4.3.2 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x80e0f0c
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WVC1] 480x360 24bpp 1000.000 fps 512.0 kbps (62.5 kbyte/s)
[V] filefmt:6 fourcc:0x31435657 size:480x360 fps:1000.000 ftime:=0.0010
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8005->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [softskip]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvc1vdpau] vfm: ffmpeg (FFmpeg WVC1 (VDPAU))
==========================================================================
Forcing output FourCC to 30355844 [DX50].
MP3 audio selected.
VDec: vo config request - 480 x 360 (preferred colorspace: VC1 VDPAU acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Segmentation fault
-> MEncoder has exited with a non-zero status!
-> Exiting in function: mencoder_exit()
Lack of colorspace conversion with mplayer for vdpau-vc1, theres a nvidia patch but this requires you disable x264 so maybe add a bit that for now vdpau should be disabled with --disable-vdpau for the latest svn of mplayer (its enabled by default if the driver is detected)

PS i tried the vc-1 encoded files with all the tools divxenc, h264enc and xvidenc to see if it was limited to one but its a mplayer/vdpau bug

microchip8
23rd February 2009, 21:46
Walter,

No I have not seen that yet and I'll have to upgrade my svn. Honestly I'm tired of adding workarounds in my scripts just to fix some of the buggy code in mplayer/mencoder that developers are either too lazy to fix or just don't care.

Can you post a VC1 sample somewhere as I don't have one here?

WalterK
24th February 2009, 16:09
try this sample http://dvbportal.dyn1.de/ts/thenotebook-vc1-1080p.wmv

ranger0293
6th March 2009, 19:55
Hi, I really love the script.

I'm looking to use it to rip my dvd collection (mostly television shows), and I was curious what you would recommend for quality and file sizes. I guess I was thinking of using the vhq preset. Should I go for a size like 350MB per 30 minutes of show? I don't need anything fancy, just nice quality rips. Any suggestions would be welcome.

microchip8
6th March 2009, 23:01
Hi, I really love the script.

I'm looking to use it to rip my dvd collection (mostly television shows), and I was curious what you would recommend for quality and file sizes. I guess I was thinking of using the vhq preset. Should I go for a size like 350MB per 30 minutes of show? I don't need anything fancy, just nice quality rips. Any suggestions would be welcome.

I always use vhq preset (mostly due to my older CPU) but you can use ehq if you have a fast enough system. As for file size, it depends on the type of content you're dealing with (low-motion/fast-motion/etc). It's best to do a few tests to find out yourself what suits you better. If you don't care about file size that much, just use CRF encoding instead of 2-pass. For CRF I use a value of 23-24 and it suits my needs

ranger0293
9th March 2009, 00:31
I always use vhq preset (mostly due to my older CPU) but you can use ehq if you have a fast enough system. As for file size, it depends on the type of content you're dealing with (low-motion/fast-motion/etc). It's best to do a few tests to find out yourself what suits you better. If you don't care about file size that much, just use CRF encoding instead of 2-pass. For CRF I use a value of 23-24 and it suits my needs

Hey, thanks a lot for the crf recommendation. The file sizes are surprisingly small for the excellent quality I get. I was nearly doubling them by setting my own file sizes.

Now I can set up my own scripts with the batchfiles and just let it all run.

I wish I had a robot to insert all my dvds to convert them to isos, though. :(

cooool
29th March 2009, 13:31
First of all, I thank froggy1 for creating such a wonderful shell script. It has really helped me a lot. I faced a few problems though.

Firstly, the mp4 output was not complete. If my input file was 2 hours 22 minutes, the mp4 output file was only 2 hours in length. This has happened three times so far. But the avi output has no problems. So i need some help here.
Since the avi file is complete, can somebody please tell me how to put it into an mp4 container? I dont want to do the encoding process all over again.

My second problem is related to converting dvds. My dvd's are all widescreen and have black bars in the top and bottom. I am converting the videos for my ipod whose aspect ratio is 4:3.
When i run h264enc, i first crop the file to remove the black bars. There are no problems there. Then i set the output resolution to 640x480 and force the input aspect ratio to 4:3. But the output file does not have the dimensions i want. It is still rectangular and when i play it on the ipod, i get black bars in the top and bottom again (since the ipod has a squarish screen).
Then i used the expand filter and put aspect=4/3. But this does not help. The output file has the dimensions i want but the black bars are there again.

I think i am doing something wrong here. Can somebody help me out with the settings? Basically, I have a widescreen dvd with black bars. I need a file with 640x480 resolution and 4:3 aspect ratio with correct file dimensions (i mean width and height). Thank you.

microchip8
31st March 2009, 11:06
First of all, I thank froggy1 for creating such a wonderful shell script. It has really helped me a lot. I faced a few problems though.

Firstly, the mp4 output was not complete. If my input file was 2 hours 22 minutes, the mp4 output file was only 2 hours in length. This has happened three times so far. But the avi output has no problems. So i need some help here.
Since the avi file is complete, can somebody please tell me how to put it into an mp4 container? I dont want to do the encoding process all over again.

That's odd. I never had such problem with mp4, not even with movies over 3 hours long. I'm not really sure if it's a mp4box or mencoder problem. I'll have to investigate that myself

To remux your existing AVI encodes to MP4, do the following

MP4Box -aviraw video file.avi
MP4Box -aviraw audio file.avi

if the audio is AAC, mp4box will use the .raw extension for it. Rename it to use .aac extension . Then to add the audio & video stream, do as follows

MP4Box -fps <value> -add video.h264 -add audio.aac -new output.mp4

Replace <value> with the FPS value of the AVI (if -fps is not specified, mp4box defaults to 25 fps)

If you still get shorter files than the original length, then mp4box is screwing up and you should dump the audio & video with mencoder instead, like this


mencoder file.avi -oac copy -ovc copy -of rawvideo -o output.h264
mencoder file.avi -oac copy -ovc copy -of rawaudio -o output.aac

My second problem is related to converting dvds. My dvd's are all widescreen and have black bars in the top and bottom. I am converting the videos for my ipod whose aspect ratio is 4:3.
When i run h264enc, i first crop the file to remove the black bars. There are no problems there. Then i set the output resolution to 640x480 and force the input aspect ratio to 4:3. But the output file does not have the dimensions i want. It is still rectangular and when i play it on the ipod, i get black bars in the top and bottom again (since the ipod has a squarish screen).
Then i used the expand filter and put aspect=4/3. But this does not help. The output file has the dimensions i want but the black bars are there again.

I think i am doing something wrong here. Can somebody help me out with the settings? Basically, I have a widescreen dvd with black bars. I need a file with 640x480 resolution and 4:3 aspect ratio with correct file dimensions (i mean width and height). Thank you.

umm, I'm not really sure how to do that and I'm no expert on the expand filter (never use it). I only added support for it since it was requested by a few users. Maybe someone else with more knowledge than me of the expand filter can answer that question? I will do some tests on my own though, see if I can get a combination that works

nm
31st March 2009, 12:53
I think i am doing something wrong here. Can somebody help me out with the settings? Basically, I have a widescreen dvd with black bars. I need a file with 640x480 resolution and 4:3 aspect ratio with correct file dimensions (i mean width and height).
And you don't want any black bars in the output? Then you would need to either crop the left and right sides of the frame away or change the aspect ratio to make the video narrower (people get thinner, circles squeeze to ovals etc.).

If you want to crop the widescreen DVD video to display it on a 4:3 screen while keeping the correct frame/movie aspect ratio, follow these steps:


1. Determine the crop height, as you already did before. I haven't used h264enc, but I have understood that it uses MPlayer's cropdetect filter and also allows the user to specify the cropping parameters manually. So, we use automatic detection to find out the crop height and get rid of possible letterboxing. Then we calculate a smaller crop width so that left and right sides of the widescreen frame also get discarded.


2. Find out whether the DVD is anamorphic (its display aspect ratio is 16:9) or plain 4:3. This can be done by playing the disc with some desktop media player app that displays the video with the correct aspect ratio and doesn't crop black bars automatically. If the video is played in a wide window, it is 16:9. MPlayer can also tell you this automatically (just make sure you select the correct title):mplayer -identify -vo null -ao null -frames 10 -really-quiet dvd://TITLE_NUM | grep ASPECT
If the DVD is anamorphic, define SOURCE_DAR=16/9~=1.7778. Otherwise SOURCE_DAR=4/3~=1.3333


3.Now you can calculate the crop width by using this formula: crop_width = crop_height * TARGET_DAR * SOURCE_WIDTH / (SOURCE_HEIGHT * SOURCE_DAR)



For example, having an anamorphic PAL DVD with letterboxed 2.40:1 video as a source, the crop width would be about: 416 * 4/3 * 720 / (576 * 16/9) = 390
Crop a 390x416 rectangle from the center of the frame and scale that to a square-pixel resolution like 640x480 if the player can't handle anamorphic video.

cooool
3rd April 2009, 05:57
Hi. @froggy1 and @nm, thanks for your replies. Sorry for my late reply.

@froggy1, i used the MP4Box commands you mentioned and they worked fine.

@nm, your formula worked perfectly. However i was wondering if it is possible to do this without cropping the sides. I understand i will lose the original aspect ratio (circles become ovals etc). But i have some files for which i don't want to crop the sides. Anyway to do it?

nm
3rd April 2009, 09:30
@nm, your formula worked perfectly. However i was wondering if it is possible to do this without cropping the sides. I understand i will lose the original aspect ratio (circles become ovals etc). But i have some files for which i don't want to crop the sides. Anyway to do it?
I don't know if h264enc supports this, but you need to add dsize filter before the scale filter like this:crop=w:h:x:y,dsize=640:480,scale=640:480

cheerow
5th April 2009, 16:20
Hi froggy, thanks for your script, I'm using it all the time :)
I was wondering if you could implement VBR encoding for faac? The current ABR solution is not really optimal...

faac -faacopts mpeg=4:br=256:object=2
If I'm not mistaken br=x could be substituted with quality=y

regards

microchip8
6th April 2009, 15:39
Hi froggy, thanks for your script, I'm using it all the time :)
I was wondering if you could implement VBR encoding for faac? The current ABR solution is not really optimal...

faac -faacopts mpeg=4:br=256:object=2
If I'm not mistaken br=x could be substituted with quality=y

regards

vbr aac is not compatible with target size calculation since I can't get any numbers on quality -> bitrate mappings like I did for vorbis and lame/mp3

nm
6th April 2009, 15:54
vbr aac is not compatible with target size calculation since I can't get any numbers on quality -> bitrate mappings like I did for vorbis and lame/mp3
How about encoding audio first at the chosen quality and then calculating the video bitrate required to reach the target size? Or do you want to approximate the audio size for informational purposes before encoding?

I was wondering if you could implement VBR encoding for faac? The current ABR solution is not really optimal...
It it's quality you are worrying about, why don't you use a better encoder too, like NeroAacEnc for AAC, or if you can use other formats, LAME, Vorbis, ...?

microchip8
6th April 2009, 16:05
How about encoding audio first at the chosen quality and then calculating the video bitrate required to reach the target size? Or do you want to approximate the audio size for informational purposes before encoding?


this will complicate the codebase and may introduce A/V sync problems, especially when using frame rate doubling or halving video filters (bobbing, interlacing, etc). It's much easier for him to just save the settings to the batch file and change br= to quality= or whatever and then start encoding from the batch file

cheerow
6th April 2009, 18:55
What about allowing quantizer based audio encoding for encodes without target size e.g. crf/qp modes?

microchip8
6th April 2009, 21:29
What about allowing quantizer based audio encoding for encodes without target size e.g. crf/qp modes?

I will look into it but not right now. I have a lot of stuff to do and currently h264enc is not my top priority

cheerow
7th April 2009, 09:08
I will look into it but not right now. I have a lot of stuff to do and currently h264enc is not my top priority

I understand and thanks for considering it!

microchip8
12th April 2009, 17:02
ChangeLog for version 8.7.3
* Optimize output file naming for file/vcd encodings. Based on a patch by Jouni Suorsa
* Added support for the dsize video filter
* 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

crazee_canuck
13th April 2009, 20:33
First: Excellent script, I find it to be very, very useful.

I have a suggestion/request for the next release though:

Would it be possible to add -noconfig all (or something comparable) to the mplayer command lines? Experimenting with some of the mplayer configs (notably msgcolor), I managed to get h264enc to fail with output like the following:


$ h264enc -scan

Would you like to scan a video file or a DVD? [file/dvd]: file
Provide the input video file: /path/to/video/file.mpg
-> Scanning the file...

MPlayer Demuxer:
Video Format:
(standard_in) 1: syntax error
Video Bitrate: kbps
Video FPS:
Video Resolution:
Video Aspect:
(standard_in) 1: syntax error
Video Length: seconds or minutes (May not be accurate)
(standard_in) 1: syntax error
Number Of Frames: (May not be accurate)

Audio Codec:
/usr/local/bin/h264enc: line 589: /1000: syntax error: operand expected (error token is "/1000")
-> No preset specified!
-> Use: h264enc -help


it failed because ~/.h264enc/info_* contained ANSI sequences like the following:

[0;37mID_VIDEO_HEIGHT=576
[0;37mID_VIDEO_FPS=25.000
[0;37mID_VIDEO_ASPECT=0.0000
[0;37mID_AUDIO_FORMAT=80
[0;37mID_AUDIO_BITRATE=0
[0;37mID_AUDIO_RATE=0
[0;37mID_AUDIO_NCH=0
[0;37mID_LENGTH=4719.32
[0;37mID_SEEKABLE=1
[0;37mID_CHAPTERS=0
[0;37mID_VIDEO_CODEC=mpegpes
[0;37mID_AUDIO_BITRATE=224000


:thanks:

microchip8
14th April 2009, 00:55
First: Excellent script, I find it to be very, very useful.

I have a suggestion/request for the next release though:

Would it be possible to add -noconfig all (or something comparable) to the mplayer command lines? Experimenting with some of the mplayer configs (notably msgcolor), I managed to get h264enc to fail with output like the following:


Sure, I can add it as an option in the config file. I can add something like a MPLAYEROPTS variable where you can also set other options in there, not just the one you proposed

microchip8
14th April 2009, 11:00
ChangeLog for version 8.7.4
* Proper file extension handling for directory batch encodings
* Removed workaround for bug present in old versions of tsMuxeR. Please upgrade to tsMuxeR version 1.9.1(b).
The previous one is no longer supported
* Optimizations to the Blu-ray and AVCHD muxing code
* Add video fps value to the tsMuxeR meta file for TS/Blu-ray/AVCHD muxing
* User request: add an mplayer variable to the config file where the user can set custom mplayer options.
One should be careful which options he uses as some of them may introduce problems and make h264enc
behave badly. The default option set in the new MPLAYEROPTS variable is '-noconfig all' which disables
parsing of the mplayer config file
* Made the VCD device scanning code a function -> get_vcd_devices_func()
* Updated the -scan option to also support VCD scanning
* Small cleanups

microchip8
22nd April 2009, 09:19
ChangeLog for version 8.7.5 - small improvement/fix
* Dump first subtitle during the first pass of a multipass encode to avoid possible delay problems

microchip8
26th April 2009, 09:47
ChangeLog for version 8.7.6
* 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
26th April 2009, 22:43
Hi all

Just to inform people, I've activated my repository at the openSUSE build service and as of today, h264enc is available from there. It's automatically being packaged for SUSE 10.3, 11.0, 11.1, Fedora 9 and Fedora 10. I may add Debian and Ubuntu in the future

http://download.opensuse.org/repositories/home:/microchip8/

nickolasemp
27th April 2009, 08:46
Please, please, do ubuntu (64bit)! I have dependency problems that I don't know how to resolve...

microchip8
27th April 2009, 09:09
Please, please, do ubuntu (64bit)! I have dependency problems that I don't know how to resolve...

I'll try when I solve some minor problems. The build service is still in beta stage and sometimes acts strange, though it's pretty good as it can build packages for SUSE, SLES/SLED, Fedora, Mandriva, RHEL, CentOS and Debain/Ubuntu. It takes lots of work off my hands. It's acting strange now as I've added Ubuntu and Debian build targets, but is excluding them for some reason. Currently trying to resolve the problem

microchip8
28th April 2009, 09:30
ChangeLog for version 8.7.7
* Optimize some variables by replacing piping to sed with VARIABLE1="${VARIABLE2%.*}.ext"
* Move out the built-in -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)
* Silence possible dvdxchap warnings
* Updated the man page

cooool
28th April 2009, 13:05
Hi

I am trying to install h264enc in ubuntu 9.04 32-bit. I have installed aacplusenc and gpac. But when i perform sanity check through h264enc -sc, it says they are not installed. I know they are installed as I can use MP4Box command for example. Any idea how to resolve this?

microchip8
28th April 2009, 15:54
Hi

I am trying to install h264enc in ubuntu 9.04 32-bit. I have installed aacplusenc and gpac. But when i perform sanity check through h264enc -sc, it says they are not installed. I know they are installed as I can use MP4Box command for example. Any idea how to resolve this?

Have a look at the -r option :)

cooool
28th April 2009, 18:06
Have a look at the -r option :)

That worked !! Thanks a lot!

microchip8
29th April 2009, 09:58
ChangeLog for version 8.7.8
- Small bugfix: video filters variables in the config file were not respected when one chooses to encode VCDs.
- Add video title meta-data for MKV and OGM when doing directory batch encodings

microchip8
7th May 2009, 10:42
ChangeLog for version 8.7.9
* Automatically add the shebang line to batch files and make them executable
* Added new variable ALLOW_AUTOCROP to the config file which allows the user to enable or disable automatic cropping
* Added MP3 presets and updated target file size code to support them (requested by Rogério Brito)
* Some minor adjustments to the hq, vhq, ehq, uhq and ihq presets; decrease b-frames by one

microchip8
12th May 2009, 03:37
ChangeLog for version 8.8.0
* 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 16 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_TS_MUXING, ALLOW_OGM_MUXING,
ALLOW_SAMPLE_ENCODING, ALLOW_SCAN_MULTIPLE_VIDSTREAMS and ALLOW_SCAN_MULTIPLE_AUDSTREAMS, the
last two are only effective on file and directory batch encodings
* Updated the man page

mrplow
12th May 2009, 20:53
I'm getting this error upon trying crop detect. I get errors on detecting fps aswell, the last version which doesn't have this problem is 8.7.3
/usr/local/bin/h264enc: line 2447: /2: syntax error: operand expected (error token is "/2")
this happens no matter what type of input file I'm trying

christine@christine-desktop:~/h264enc-8.8.0$ h264enc -r
-> Resetting the config file values
christine@christine-desktop:~/h264enc-8.8.0$ h264enc -sc

-> Checking for 'MPlayer'..................... OK
-> Checking for 'MEncoder'.................... OK
-> H.264 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
-> FLAC (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'.................. OK
-> Checking for 'aacplusenc'.................. OK
-> Checking for 'oggenc'...................... 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
-> Checking for 'tsMuxeR'..................... FAILED! [no support for the TS container]

microchip8
12th May 2009, 21:29
which mplayer version are you using?

the only change in the crop detection code between version 8.7.3 and 8.8.0 is that 8.8.0 has the MPLAYEROPTS variable from the config file. Everything else is the same and all works here without a problem, including fps detection. In fact, the fps detection code hasn't changed at all and I wonder why 8.7.3 works for you but 8.8.0 doesn't. Try reinstalling h264enc and also open up the config file in /home/username/.h264enc (you can directly edit it with the -e option) and remove everything from the MPLAYEROPTS variable

The error from line 2447 indicates that it can't find the length of the file/DVD thus it fails to divide it by 2. Have you tried other files or DVDs?

mrplow
13th May 2009, 20:28
MPlayer 1.0rc2-4.3.3.
removing '-noconfig all' from the config file resolves the issue, thanks

microchip8
13th May 2009, 20:37
MPlayer 1.0rc2-4.3.3.
removing '-noconfig all' from the config file resolves the issue, thanks

that's a VERY old version (a few years). You really should update to SVN if you can. I do not really support 1.0rc2

mrplow
13th May 2009, 23:10
gotta love Ubuntu, even the new 9.04 is using that old version, I'll see if I can find a newer version in 3rd party ppa

mrplow
14th May 2009, 01:07
build mplayer svn and it works just like it should now
MPlayer SVN-r29308-4.3.3 (C) 2000-2009 MPlayer Team
I guess Ubuntu overwrote my svn mplayer when I did the 9.04 upgrade

microchip8
24th May 2009, 17:21
ChangeLog for version 8.8.1
* 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
* Some small code cosmetics

Rasi
28th May 2009, 21:58
wow.. i created a mkv with h264enc today...

source was a .dv file where audio started after around 1 minute.

final file has sound without the delay for some reason the 1st few minutes of the actual sound data is simply missing...

so original file is like this:

"SILENCE-----HALLO BLA BLA"

the mkv is like this:

"BLA BLA"



i have no clue how h264enc managed to do this :)

microchip8
28th May 2009, 22:53
Rasi, no idea. I don't do anything special. Maybe mkvmerge itself is responsible for that... dunno really

microchip8
8th June 2009, 09:26
ChangeLog for version 8.8.2 - tiny update
* Add iTunes video title name to MP4 files