View Full Version : h264enc for Linux
Pages :
1
2
3
4
5
6
7
8
[
9]
10
11
12
13
14
15
microchip8
13th November 2009, 22:04
Have you already tried the two xbox presets available (mx and mxhq) ? They don't work? I don't see anything special in the above settings that'll make the already present xbox presets in the script incompatible. The only thing is that CABAC is disabled while I have it enabled in the xbox presets. Maybe xbox1 can't take CABAC?
mrplow
13th November 2009, 23:15
Those are xbox360 presets and to tell you the truth I tried them many revisions ago and many xbmc revisions ago and at the time it would stutter from time to time in high action scenes. But that was a while ago and I could try them again this weekend.
It seems the xbox1 can only handle CABAC if Deblocking is disabled and visa versa. With CABAC on and deblocking off the video is better quality but larger and with CABAC off and deblocking on the quality goes down slightly along with the file size.
microchip8
13th November 2009, 23:21
hmm, CABAC is supposed to increase compression more than CAVLC so I'm a bit at a loss why you get smaller file sizes when you disable it. If I add such a preset, then I'll only disable CABAC but leave deblocking on. Can you try the xbox presets again on a short sample and see if you still get problems with them on the xbox1?
daniel.pool
18th November 2009, 20:32
Hi,
I have a multi core cpu I was wondering if there is an option I need to be setting to make the encode multi-threaded? I got h264enc off the Karmic repository today (version 9.0.0) and am trying out a test encode but it is currently only using a single core. A quick search of this thread and the man pages hasn't revealed anything to me ... :-(
Thanks in advance.
~Dan
nm
18th November 2009, 20:36
First of all, I'd recommend getting MPlayer/MEncoder SVN, built against a recent libx264 version and then the latest h264enc version. Ubuntu provides oldish versions of these programs.
Multithreading should work with those versions too, but maybe froggy1 can guess what's going on.
microchip8
18th November 2009, 20:50
the threads=auto option is always used in h264enc so it should work. As nm said, get latest stuff from SVN/git/whatever
daniel.pool
18th November 2009, 21:22
Froggy1, nm,
Thanks for the really fast reply guys.
I've got the latest x264 from git, but I'm currently unable to get the latest mplayer from svn, one of the dependencies (I'm using this (http://ubuntuforums.org/showthread.php?t=1305181) guide on compiling mplayer-nogui, so maybe I'm building completely the wrong thing) has a broken deb. I've got a bug raised against it, so for now the only way I've been able to get h264enc working is to go with what is coming from rvm's ppa (https://launchpad.net/~rvm/+archive/testing).
I'll try upgrading as soon as a fix is made available for the deb (or someone points out I'm being thick and get pointed to the right guide for compiling on Karmic :))
microchip8
18th November 2009, 21:41
what is this broken dependency? Just go to mplayer's site, get SVN link, and pull from there. That's what I always to (though I have a script called getprog which accepts params about which software to pull from SVN, something small I've written to east it for me)
daniel.pool
18th November 2009, 22:16
what is this broken dependency?
To quote Andrew (http://ubuntuforums.org/showthread.php?t=1024592) from the Ubuntu forums: By default Ubuntu does not offer a particularly rich development environment so we need to download the required 'dev' files which are specific to Intrepid Ibex. (These files are loosely modelled on the results of the command 'sudo apt-get build-dep mplayer-nogui', I have removed some files and added others.)
The dep that was failing me was libopencore-amrnb0, as stated, there is a bug (https://bugs.launchpad.net/ubuntu/+source/opencore-amr/+bug/454026) raised against it.
However, as it turns out in researching these links to reply to you (and running the apt-get command again to try and get the error), the dependencies now actually install, which means my compilation should succeed! Huzzah.
So, I'll grab the latest h264enc once I've got the latest mplayer. Will update this with my results. Thanks very much for your help.
Thanks
~Dan
microchip8
18th November 2009, 22:23
This is why I don't use Ubuntu! They got to have the most incompetent packagers out there :P
I'm a packager myself but luckily not for Ubuntu...
So then... compile everything, first x264 then mplayer, and see if you get threading problems. Make sure to run h264enc -r to reset its config file
daniel.pool
18th November 2009, 23:06
Gaah, it's still only running on a single core :mad:
I'm pretty sure that it's not an option I've selected (I've attached my options file just to make sure).
I'm going to call it a day on this, but will look at it again tomorrow evening. I'm guessing the best way would be to call the encoder directly from the command line and see what is happening there. Is it mencoder called, or ffmpeg?
Cheers,
microchip8
18th November 2009, 23:08
better post attachments to an external site as it can take here some time before they get accepted by a mod
as for the threading. I don't have problems, neither other users who have reported that it works
kripz
19th November 2009, 09:52
Im getting errors after updating h264enc, mencoder, mplayer and ffmpeg.
Starting to encode in: 5 4 3 2 1
MPlayer SVN-r29809 (C) 2000-2009 MPlayer Team
Option x264encopts: Unknown suboption weightp
success: format: 0 data: 0x0 - 0x93a0a800
TS file format detected.
VIDEO VC1(pid=4113) AUDIO TRUEHD(pid=4352) NO SUBS (yet)! PROGRAM N. 1
Searching for VC1 sequence header... found
VIDEO: VC-1 1920x1080, 23.976 fps, header len: 30
[V] filefmt:29 fourcc:0x31435657 size:1920x1080 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Cannot find codec for audio format 0x44485254.
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0
Opening video filter: [harddup]
Opening video filter: [softskip]
==========================================================================
Requested video codec family [wmvvc1dmo] (vfm=dmo) not available.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvc1] vfm: ffmpeg (FFmpeg WVC1)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
FATAL: Cannot initialize video driver.
Exiting...
-> MEncoder has exited with a non-zero value!
-> Exiting in function: mencoder_exit()
Trying to convert a m2ts bluray rip ripped by anydvd. Ive tried AC3 and ACC, no luck.
microchip8
19th November 2009, 13:42
@kripz
Look at the top, your libx264 is not new enough as it's missing weightp option. Pull latest x264 from git and compile it, then you may need to recompile mplayer and make sure it's linked to it, not to another older libx264 if you have one on your system
WalterK
19th November 2009, 17:12
yeah folks dont forget to keep x264 updated as well as mencoder and mplayer.
kripz
19th November 2009, 22:56
lol i totally missed that line
edit: those patches on your website are very outdated?
edit2: Doesnt look right...
Starting to encode in: 5 4 3 2 1
MEncoder SVN-r29934-4.3.2 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x93a0a800
TS file format detected.
VIDEO VC1(pid=4113) AUDIO TRUEHD(pid=4352) NO SUBS (yet)! PROGRAM N. 1
Searching for VC1 sequence header... found
VIDEO: VC-1 1920x1080, 23.976 fps, header len: 30
[V] filefmt:29 fourcc:0x31435657 size:1920x1080 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Cannot find codec for audio format 0x44485254.
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0
Opening video filter: [harddup]
Opening video filter: [softskip]
==========================================================================
Requested video codec family [wmvvc1dmo] (vfm=dmo) not available.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvc1] vfm: ffmpeg (FFmpeg WVC1)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [warning]: NAL HRD parameters require VBV max bitrate and buffer size to be specified
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile Main, level 4.1
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...7f ( 0%) 18.56fps Trem: 0min 0mb A-V:0.000 [0:0]
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.
Pos: 16.8s 469f ( 0%) 7.93fps Trem: 838min 11200mb A-V:0.000 [6575:0]
Any tips? Conversion just stopped after about 30s.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvc1] vfm: ffmpeg (FFmpeg WVC1)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [warning]: NAL HRD parameters require VBV max bitrate and buffer size to be specified
x264 [info]: using SAR=1/1
x264 [warning]: DPB size (5 frames, 15667200 bytes) > level limit (4 frames, 12582912 bytes)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile High, level 4.1
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...9f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.
Pos: 21.3s 540f ( 0%) 8.70fps Trem: 811min 15164mb A-V:0.000 [7588:0]]
Too many audio packets in the buffer: (4096 in 10186116 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
Pos: 21.4s 541f ( 0%) 8.72fps Trem: 811min 15145mb A-V:0.000 [7574:0]
Too many audio packets in the buffer: (4096 in 10186116 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 16:9.
Video stream: 7240.165 kbit/s (905020 B/s) size: 20421072 bytes 22.564 secs 541 frames
x264 [info]: frame I:3 Avg QP:10.49 size: 64271 PSNR Mean Y:72.84 U:85.74 V:85.57 Avg:73.42 Global:60.86
x264 [info]: frame P:315 Avg QP:13.35 size: 31965 PSNR Mean Y:70.60 U:82.15 V:84.17 Avg:71.03 Global:59.38
x264 [info]: frame B:223 Avg QP:13.38 size: 45558 PSNR Mean Y:57.79 U:77.69 V:80.32 Avg:58.75 Global:57.22
x264 [info]: consecutive B-frames: 30.7% 44.6% 6.1% 5.2% 3.7% 4.5% 5.2%
x264 [info]: mb I I16..4: 85.2% 9.3% 5.5%
x264 [info]: mb P I16..4: 6.0% 9.4% 0.5% P16..4: 8.8% 2.0% 1.4% 0.0% 0.0% skip:71.9%
x264 [info]: mb B I16..4: 2.5% 7.4% 0.3% B16..8: 10.6% 0.5% 0.9% direct: 6.5% skip:71.2% L0:56.9% L1:37.1% BI: 6.0%
x264 [info]: 8x8 transform intra:61.0% inter:63.1%
x264 [info]: direct mvs spatial:89.2% temporal:10.8%
x264 [info]: coded y,uvDC,uvAC intra: 61.9% 79.2% 73.9% inter: 9.0% 11.5% 9.8%
x264 [info]: i16 v,h,dc,p: 55% 14% 15% 16%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 13% 49% 4% 4% 4% 5% 4% 7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 13% 32% 7% 8% 6% 7% 6% 9%
x264 [info]: Weighted P-Frames: Y:23.8%
x264 [info]: ref P L0: 43.3% 19.7% 7.7% 11.0% 8.9% 8.3% 1.1%
x264 [info]: ref B L0: 50.0% 19.0% 19.2% 11.8%
x264 [info]: SSIM Mean Y:0.9988253
x264 [info]: PSNR Mean Y:65.330 U:80.331 V:82.595 Avg:65.983 Global:58.363 kb/s:7240.17
-> Converting AVI file to the MKV container, please wait...
-> Done
-> AVI file size: 19.491 MiB (/storage/public/Random/Fearless.avi)
-> MKV file size: 19.485 MiB (/storage/public/Random/Fearless.mkv)
microchip8
30th November 2009, 09:36
For NAL-HRD, you need to use a preset which has vbv-bufsize and vbv-maxrate set. The blu-ray/avchd presets have these. Unless you really need HRD signaling, you shouldn't use it otherwise. Also, the HRD patches are still (very) experimental
For the audio issue, it's a known problem in the default demuxer for TS files. Configure as usual, save all to the batch file, open it up and add to the mencoder line -demuxer lavf then run your encode from the batchfile. See if this fixes it for you
kripz
30th November 2009, 23:17
Ok, ill try that next time.
I'm now having another problem with another movie, not sure what it is. I didnt save the mencoder options but here they are from within the job folder.
nice -n 10 /usr/local/bin/mencoder "/storage/public/Random/BOURNE_SUPREM_G51/BDMV/STREAM/00009.m2ts" -o /dev/null -passlogfile "/home/user/.h264enc/job4653/The Bourne Supremacy.log" -vid 4113 -vf softskip,harddup -aid 4358 -channels 6 -oac copy -ovc x264 -x264encopts pass=1:bitrate=10000:turbo=2:me=tesa:me_range=64:nodct_decimate:nointerlaced:8x8dct:nofast_pskip:trellis=2:partitions=all:mixed_refs:keyint=240:keyint_min=24:psy_rd=0.8,0.2:frameref=10:bframes=7:b_adapt=2:b_pyramid=none:weight_b:weightp=2:direct_pred=auto:subq=10:mbtree:rc_lookahead=60:chroma_me:cabac:aq_mode=1:deblock:level_idc=41:threads=auto:ssim:psnr
nice -n 10 /usr/local/bin/mencoder "/storage/public/Random/BOURNE_SUPREM_G51/BDMV/STREAM/00009.m2ts" -o "/storage/public/Random/The Bourne Supremacy.avi" -passlogfile "/home/user/.h264enc/job4653/The Bourne Supremacy.log" -vid 4113 -vf softskip,harddup -aid 4358 -channels 6 -oac copy -ovc x264 -x264encopts pass=2:bitrate=10000:me=tesa:me_range=64:nodct_decimate:nointerlaced:8x8dct:nofast_pskip:trellis=2:partitions=all:mixed_refs:keyint=240:keyint_min=24:psy_rd=0.8,0.2:frameref=10:bframes=7:b_adapt=2:b_pyramid=none:weight_b:weightp=2:direct_pred=auto:subq=10:mbtree:rc_lookahead=60:chroma_me:cabac:aq_mode=1:deblock:level_idc=41:threads=auto:ssim:psnr
Starting the second pass of the encoding process in: 5 4 3 2 1
MEncoder SVN-r29934-4.3.2 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0xf7a51000
TS file format detected.
VIDEO VC1(pid=4113) AUDIO A52(pid=4358) NO SUBS (yet)! PROGRAM N. 1
Searching for VC1 sequence header... found
VIDEO: VC-1 1920x1080, 23.976 fps, header len: 30
[V] filefmt:29 fourcc:0x31435657 size:1920x1080 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Unimplemented resampler for mode 0xA -> 6 channels conversion - Contact MPlayer developers!
Unimplemented resampler for mode 0xA -> 5 channels conversion - Contact MPlayer developers!
Unimplemented resampler for mode 0xA -> 4 channels conversion - Contact MPlayer developers!
Unimplemented resampler for mode 0xA -> 3 channels conversion - Contact MPlayer developers!
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 0
Opening video filter: [harddup]
Opening video filter: [softskip]
==========================================================================
Requested video codec family [wmvvc1dmo] (vfm=dmo) not available.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvc1] vfm: ffmpeg (FFmpeg WVC1)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=24000 sample-1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [warning]: NAL HRD parameters require VBV max bitrate and buffer size to be specified
x264 [info]: using SAR=1/1
x264 [warning]: DPB size (10 frames, 31334400 bytes) > level limit (4 frames, 12582912 bytes)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile High, level 4.1
Pos: 0.0s 1f ( 0%) 0.15fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...3f ( 0%) 4.69fps Trem: 0min 0mb A-V:0.027 [0:0]
ODML: vprp aspect is 16:9.
Setting audio delay to 0.042s.
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.042s.
Pos: 112.2s 2722f ( 1%) 0.21fps Trem:13956min 6193mb A-V:0.036 [6746:192]
I've never seen it drop down to those speeds before. This was after compiling and updating most of the required programs although its a new Bluray that i got.
Also, instead of defaulting the jobs to the home directory, can you please make it specifiable? my home directory isnt very big.
microchip8
30th November 2009, 23:21
did you compile x264 with asm? yasm enabled?
for the job directory, you can already do that in the config file. Look at the TEMPDIR variable in /home/username/.h264enc/config and set it there
microchip8
1st December 2009, 02:00
Just came back from the pub ;)
Looking again at your settings, no wonder you'll get such slow speeds (even on Quad cores). You got 10 frame references, 7 bframes with badapt=2, subq of 10, trellis of 2, me_range of 64, weigthp=2, mbtree on, me=tesa and lookahead of 60. This combined with a resolution of 1920x1080 will be pretty slow, even on quad cores and some of the settings are placebo-like (me=tesa f.ex). I bet you're using the insane high quality preset, huh? This preset is a "troll" preset, for those who think they'll see the difference between it and the EHQ preset, and of course for the Japs who love crazy settings ;)
My advice: do not go above the EHQ preset. I always use VHQ but only because my system is a bit slow. Nevertheless, it produces very nice results
kripz
1st December 2009, 09:07
Ah yep, i wanted to try a new setting. baited:devil:
did you compile x264 with asm? yasm enabled?
Well all i did was configure and make. no special options. Will those 2 enable better performance? Google doesnt have much regarding this, ill have to search around here for all the switches that will enable higher performance.
microchip8
1st December 2009, 15:22
If you haven't done so, recompile x264 with asm support by installing yasm. Without asm enabled, x264 will be DOG SLOW ;)
so after installing yasm, just do ./configure --enable-shared && make && sudo make install
kripz
3rd December 2009, 23:25
Done. I had an idea for this program, perhaps consider adding an option to send an email once conversion is done (as i run this on a headless box).
Would something like this do as i described?
if [ -f "$BATCH" ]; then
cp -f $BATCH $HOME
source $BATCH
echo ""
brown "-> Have a nice day ^_^"
echo ""
echo "Converting blah completed `date`" | mail blah@blah.com -s "h264enc conversion complete"
rmconf
else
microchip8
3rd December 2009, 23:48
Yes, but you need a working/configured smtp running on the machine you're executing the h264enc script. So you should tell it to use an external smtp server (like that of your isp) ;)
microchip8
10th December 2009, 13:59
ChangeLog for version 9.1.1
* Disabled weightp for the AppleTV presets
* Added new option sliced_threads present in latest x264 from git
* Enabled b_pyramid for some presets that use mbtree as it now works with mbtree
* Updated the preset.cfg file. Added sliced_threads option
* 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 file in the home directory.
Mail notification can be enabled in the config file of h264enc which also offers an example of a gmail setting for .mailrc
* Bumped config file version to 13
* Updated copyright dates
microchip8
23rd December 2009, 02:36
ChangeLog for version 9.1.2
* Fixed a severe bug that can cause in some cases severe data loss when using a custom temp directory.
It manifests itself when using a 'top' directory as custom temp directory such as a partition mount point or even
the user's home directory. In such cases, the top directory will be deleted upon script termination or when encoding
finishes, resulting in possible massive data loss due to rm -rf $TEMPDIR if TEMPDIR was set to, for example, /home/username
or points to a mount point or another directory that may be important to the user.
From now on, always use a job<pid> directory inside the one set in the TEMPDIR variable so it'll only delete the job<pid>
directory and not its parent one, minimizing possibility of a data loss disaster
* Set nomixed_refs for the iphq/iphhq presets
kripz
27th December 2009, 10:25
Does h264enc support decoding of a single DTS + AC3 audio stream?
microchip8
27th December 2009, 13:52
Yes, but only for DVDs at the moment. Also DTS is a bit problematic as I always get skipped frames and haven't looked much on how to fix it. For file encodings, only 1 audio track is supported but if you export the settings to the batchfile, you can modify it for two tracks and encode from there
Redsandro
6th January 2010, 15:05
Wow this is so nice, thanks!
I have one issue I'm wondering about. Pretty much always when I convert a random batch of television shows to a 320x240 mp4 using the symbian60 preset and all defaults (except for resolution), right at the start there's a bunch of random SKIPPING FRAME messages. About 5 or so. That causes a loss of AV sync. Any idea why this happens?
microchip8
6th January 2010, 15:58
No idea really, but a few skipped frames at the beginning shouldn't cause any noticeable A/V sync issues, and mencoder most of the time compensates as it adjusts its a/v sync due to this
Redsandro
13th January 2010, 11:40
Wow.. what? Who?
nm
13th January 2010, 12:12
Looks like someone's testing a chatterbot.
elektronaut
17th January 2010, 03:50
Hi,
I've got the problem that MEncoder is exiting with this message:
-a52drc is not an MEncoder option
Using latest h264enc and also latest versions (tarballs) of x264, ffmpeg and mplayer.
microchip8
17th January 2010, 03:55
Hi,
I've got the problem that MEncoder is exiting with this message:
-a52drc is not an MEncoder option
Using latest h264enc and also latest versions (tarballs) of x264, ffmpeg and mplayer.
I guess they removed dynamic range compression control. I'll have to see if they have replaced that option with something else or just removed it and then update script accordingly :)
microchip8
17th January 2010, 15:37
@elektronaut
Alright, I looked around and it seems latest mplayer from svn needs external liba52 library. If it's not detected during configure, then the -a52drc option will be disabled. However, there's a --enable-liba52-internal option in configure which enables mplayer's internal liba52 if one doesn't have or want to link against an external liba52. I've no idea why the mplayer devs have chosen to disable completely liba52 if an external liba52 is not detected instead of enabling the internal one. Maybe it's a bug in configure, no idea.
The -a52drc option is still present in cfg-common-opts.h... so either install external liba52 lib, or configure with --enable-liba52-internal and compile again.
EDIT: seems according to a guy in #mplayerdev that there was a commit which disables internal liba52 because libavcodec supports it. It also said that if no one objects, internal liba52 will be removed in a few months.... so I'm thinking of removing the -a52drc option in h264enc (it's not mandatory and one can do without DRC control anyways)
microchip8
19th January 2010, 18:48
ChangeLog for version 9.1.3
* Made the TEMPDIR variable escape spaces in directory names
* Small update to the mkvtags_func() function
* Removed the -a52drc option for AC3 encoding
* Added new x264 intra_refresh option to the script and the preset.cfg file
* Added two new variables, DVD_DEVICE and CDROM_DEVICE, to the config file where user can set a default block
device to encode from. This updates the config file to version 14
* Merged the get_dvd_devices_func() and get_vcd_devices_func() functions into a new one called get_devices_func()
Redsandro
20th January 2010, 13:33
Nice!
Any idea why MEncoder skips so many frames? ~6 frames on every video I encode for my phone, always within the first 2 seconds , just enough to make every action movie gunshot explosion badly annoying. :P
(scroll down to the end)
MEncoder SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x15e34000
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 624x464 12bpp 23.976 fps 964.5 kbps (117.7 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:624x464 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [unsharp=l5x5:1:c5x5:-0.2]
Opening video filter: [scale w=320 h=240 interlaced=0 chr-drop=0]
Opening video filter: [softskip]
Opening video filter: [pp=al:c]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
VDec: vo config request - 624 x 464 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.34:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 40 -> 20
SwScaler: reducing / aligning filtersize 40 -> 20
SwScaler: reducing / aligning filtersize 40 -> 19
SwScaler: reducing / aligning filtersize 40 -> 19
[swscaler @ 0x3e4240]Bicubic spline scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0x3e4240]using n-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x3e4240]using n-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x3e4240]using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0x3e4240]624x464 -> 320x240
unsharp: 5x5:1.00 (sharpen luma)
unsharp: 5x5:-0.20 (blur chroma)
Opening video filter: [scale]
x264 [info]: using SAR=161/160
x264 [warning]: MB rate (7192) > level limit (6000)
x264 [info]: using cpu capabilities: MMX2 SSE2 Cache64
x264 [info]: profile Baseline, level 1.2
Writing header...2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0]
ODML: vprp aspect is 16384:12211.
Writing header...
ODML: vprp aspect is 16384:12211.
Pos: 0.8s 21f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.083 [0:5]
Skipping frame!
Pos: 1.2s 31f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.083 [11:5]
Skipping frame!
Pos: 1.5s 41f ( 0%) 37.21fps Trem: 0min 0mb A-V:0.083 [9:5]]
Skipping frame!
Pos: 1.9s 51f ( 0%) 38.46fps Trem: 0min 0mb A-V:0.083 [8:27]
Skipping frame!
Pos: 2.3s 61f ( 0%) 36.24fps Trem: 0min 0mb A-V:0.083 [106:53]
Skipping frame!
Pos: 2.8s 73f ( 0%) 32.65fps Trem: 0min 0mb A-V:0.084 [394:75]
Skipping frame!
microchip8
20th January 2010, 13:40
I've no idea.... does the skipping continue throughout the whole encode or does it only occur at the beginning and for a very short period? What are your encoding settings (save to batchfile & post here). Did you force a specific framerate? Can you post a sample of the original?
Redsandro
20th January 2010, 13:57
It comes only at the beginning, usually within two seconds.
I am converting old shows to run on my Symbian phone from DVD colletions I have that were recorded in 4:3 aspect ratio because they fit nicely on my phone screen. Such as X-files and Friends. I use downloaded rips of these seasons because I use my headless server to do the encoding and it takes about 2 days for a season and I am too lazy to figure out how to use DVD's and swap them all the time.
But although downloading rips for private use of video you own is legal where I live (Netherlands), uploading is not and would violate rule 6 here.
#!/bin/bash
################### START OF COMMANDS ###################
cd "/var/media/160/01"
test -d "/home/sander/h264enc_3351" || mkdir -p "/home/sander/h264enc_3351"
for i in *; do
test -d /home/sander/.h264enc/job3351 || mkdir -p /home/sander/.h264enc/job3351
/usr/bin/mencoder "$i" -o "/home/sander/h264enc_3351/${i%.*}.avi" -vf pp=al:c,softskip,scale=320:240:0:0,unsharp=l5x5:1:c5x5:-0.2,harddup -sws 10 -af volnorm=2,lavcresample=44100:16:1 -srate 44100 -channels 2 -oac faac -faacopts mpeg=4:br=80:tns:object=2 -ovc x264 -x264encopts bitrate=384:me=hex:dct_decimate:nointerlaced:no8x8dct:nofast_pskip:trellis=0:partitions=p8x8,i4x4:mixed_refs:keyint=240:keyint_min=24:psy_rd=0.8,0.0:frameref=2:bframes=0:b_adapt=0:nob_pyramid:noweight_b:direct_pred=none:subq=6:chroma_me:nocabac:aq_mode=2:deblock:vbv_maxrate=384:vbv_bufsize=900:level_idc=12:threads=auto:ssim:psnr
test -e "/home/sander/h264enc_3351/${i%.*}.mp4" && mv -f "/home/sander/h264enc_3351/${i%.*}.mp4" "/home/sander/h264enc_3351/${i%.*}.mp4.old"
/usr/bin/mencoder "/home/sander/h264enc_3351/${i%.*}.avi" -nosound -ovc copy -of rawvideo -o /home/sander/.h264enc/job3351/h264_video.h264
sleep 2
/usr/bin/MP4Box -aviraw audio "/home/sander/h264enc_3351/${i%.*}.avi" -out /home/sander/.h264enc/job3351/aac.raw
mv -f /home/sander/.h264enc/job3351/aac_audio.raw /home/sander/.h264enc/job3351/aac_audio.aac
/usr/bin/mplayer "/home/sander/h264enc_3351/${i%.*}.avi" -noconfig all -loop 1 -identify -nosound -vo null -nocache -frames 1 2>/dev/null | grep '^ID_VIDEO_FPS' | tail -n 1 | awk -F= '{print $2}' > /home/sander/.h264enc/job3351/mp4fps
/usr/bin/MP4Box -fps $(cat /home/sander/.h264enc/job3351/mp4fps) -tmp /home/sander/.h264enc/job3351 -add /home/sander/.h264enc/job3351/h264_video.h264 -add /home/sander/.h264enc/job3351/aac_audio.aac#audio:name="LC-AAC Stereo" -itags name="${i%.*}" -mpeg4 -new "/home/sander/h264enc_3351/${i%.*}.mp4"
sleep 2
rm -f /home/sander/.h264enc/job3351/h264_video.h264
rm -f /home/sander/.h264enc/job3351/aac_audio.aac
sleep 2
rm -f "/home/sander/h264enc_3351/${i%.*}.avi"
rm -rf /home/sander/.h264enc/job3351
done
#################### END OF COMMANDS ####################
-edit-
disclaimer
Source as strikeprevention because no one ever believes dutch lawUnder the updated Dutch Copyright Act, digital copying for private purposes is allowed. However, right holders are compensated for the losses by a levy on recording media – e.g. recordable CDs and DVDs, audio- and videotapes and, possibly, hard-discs.http://www.euro-copyrights.org/index/1/10
Downloading is considered copying, while uploading is considered spreading. The latter is not legal.
microchip8
20th January 2010, 14:07
Well, this is not unusual for the first few frames to get skipped so that mencoder can adjust its A/V synchronization. It may become a problem if this continues throughout the whole encoding. When I encode DVDs, I also get at the very beginning a few frames skipped but the rest is fine. Do you get any problems with these few skipped frames at the beginning? If not, then ignore them. If yes, you can completely disable mencoder's sync by adding to its arguments -mc 0 but beware that this can cause a lot more problems that it can solve. Other than that, unless I have a sample of the original you try to encode, I can't do much. The above settings look fine to me
PS: uploading a sample of the original you own is not considered a rule 6 violation on this forum. Many people upload samples to help out development or troubleshoot problems ;)
Redsandro
20th January 2010, 14:32
Oh so it's sort of synchronization compensation! Well during speech I hardly notice it, but when shots are fired I can clearly see it's off. So I thought it was some error that introduced 0.2 seconds of audio-lack-behind.
But how can MEncoder think there's a sync issue when it has no ears? The source is good.
I thought I'd give you a sample then, for educational fair use purposes and stuff, but I cannot quickly find an example where a machine gun is fired (because then you could easily see the sync problem) and I need to go to work. In stead I found a single gunshot but with a keen eye you can clearly see a ~0.2 sec sync issue and you'd have to trust me that in some cases it will be more annoying than it looks. :)
The original, correct sync: (6 second snippet)
http://red.chillosophy.nl/trash/xfile0124/x0124orig.avi
The mp4 s60 encode, audio comes later because 6 frames are missing from the start (not included) (6 second snippet)
http://red.chillosophy.nl/trash/xfile0124/x0124s60.mp4
Here's a snip from the start of the original, because the missing frames on encodes always occur at the start: (9 second snippet)
http://red.chillosophy.nl/trash/xfile0124/x0124start.avi
microchip8
20th January 2010, 15:31
Mencoder doesn't need ears to adjust a/v sync ;) it has an internal algorithm to do this (though it's not perfect, but then what is?). I watched the mp4 (audio is a bit out of sync in the mp4 while playing under mplayer but the mp4 is not directly coming from h264enc - you used avidemux and I've no idea how it deals with sync) and the other two avi files, but I cannot spot any sync issues, though I must note that mine ears are not that fine-tuned ;)
As for what you can do, you may need to play around with -delay and/or -mc options of mencoder. Currently, h264enc doesn't support (yet) any way of adjusting these options
nm
20th January 2010, 15:33
The original, correct sync: (6 second snippet)
http://red.chillosophy.nl/trash/xfile0124/x0124orig.avi
The mp4 s60 encode, audio comes later because 6 frames are missing from the start (not included) (6 second snippet)
http://red.chillosophy.nl/trash/xfile0124/x0124s60.mp4
A/V sync is identical in these clips when played back with MPlayer or VLC. I also tried changing the sync by 0.2 seconds (to both directions) in the other file and then there was a difference. Which players have you tried?
Redsandro
20th January 2010, 15:50
Yes I used AviDemux to cut a snip out of my full encode. I used copy stream (it snaps to keyframes) and I thought it made an identical copy like that.
Thanks for the advise though. I might want to try -mc 0 on my next batch.
A/V sync is identical in these clips when played back with MPlayer or VLC. I also tried changing the sync by 0.2 seconds (to both directions) in the other file and then there was a difference. Which players have you tried?
A/V sync is not identical here when using:
MPC (win)
MPC-HC (win) (I think that one uses ffdshow internally, not sure)
VLC (win)
RealPlayer (I know! But it comes with Symbian S60 and for once it's pretty good at it. :P)
Note that you need an accurate observational A/V sync internally if you know what I mean. It's only a small difference.
I am sorry I did not try linux players because I use my server with ssh for cool stuff like h264enc but for anything other than text I use my windows machine.
nm
20th January 2010, 16:02
A/V sync is not identical here when using:
MPC (win)
MPC-HC (win) (I think that one uses ffdshow internally, not sure)
VLC (win)
RealPlayer (I know! But it comes with Symbian S60 and for once it's pretty good at it. :P)
Note that you need an accurate observational A/V sync internally if you know what I mean. It's only a small difference.
Well, I controlled my test by changing the sync, in which case I could hear a difference between the samples, but originally I didn't notice any difference. Did you try these sample clips in all those players too? Maybe they are different from your full encodes.
Redsandro
20th January 2010, 16:10
Yes I tried the samples before I uploaded and just now I tried them in VLC. I do notice the difference or I am really getting crazy. Maybe it's not 200ms because that was just a 6 frame guess. A wrong guess btw, 6 frames would be about 250ms in this case.
I watch sometimes when I need to travel by train to work, school or friends. When I come across a more obvious example I will post another example.
microchip8
21st January 2010, 06:24
ChangeLog for version 9.1.4
* Set default H.264 level to 'auto' and also accept integer numbers as levels in addition to accepting fixed point ones,
ie both 41 and 4.1 are now accepted as valid levels
* 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
* Reduced duplication in the mencoder_opts() function
* Various small code improvements
microchip8
30th January 2010, 16:47
ChangeLog for version 9.1.5
* Reduced duplication in the audio encode exporting code by moving it inside functions
* Reduced duplication in the MKV/MP4/TS/OGM exporting code by moving it inside functions
* Reduced duplication in the code that prints some information before encoding starts
* Various minor code improvements
kripz
31st January 2010, 13:29
Not sure if it's me but i just upgraded to h264enc to 9.1.5, mplayer and x264. h264enc says mencoder doesnt have h.264 support in mencoder?
h264enc -r followed by -sc
-> Checking for 'MPlayer'..................... OK
-> Checking for 'MEncoder'.................... OK
-> H.264 video support in MEncoder............ NO
-> AAC (FAAC) audio support in MEncoder....... NO
-> MP3 (LAME) audio support in MEncoder....... NO
-> AC3 (lavc) audio support in MEncoder....... NO
-> PCM audio support in MEncoder.............. NO
-> Checking for 'bc'.......................... OK
-> Checking for 'pv'.......................... OK
-> Checking for 'dd'.......................... OK
-> Checking for 'neroAacEnc'.................. OK
-> Checking for 'aacplusenc'.................. OK
-> Checking for 'oggenc'...................... FAILED! [no support for Vorbis audio]
-> 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
-> Checking for 'tsMuxeR'..................... OK
mplayer ./configure
Checking for cc version ... 4.3.4
Detected operating system: Linux
Detected host architecture: x86_64
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... AuthenticAMD (16:5:2)
Checking for CPU type ... AMD Athlon(tm) II X4 620 Processor
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of cmov ... yes
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... native
Checking for byte order ... little-endian
Checking for extern symbol prefix ...
Checking for assembler support of -pipe option ... yes
Checking for compiler support of named assembler arguments ... yes
Checking for .align is a power of two ... no
Checking for 10 assembler operands ... yes
Checking for ebx availability ... yes
Checking for PIC ... no
Checking for yasm ... yasm
Checking for bswap ... yes
Checking for -lposix ... no
Checking for -lm ... yes
Checking for langinfo ... yes
Checking for language ... messages: en - man pages: en - documentation: en
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for posix4 ... no
Checking for exp2 ... yes
Checking for exp2f ... yes
Checking for llrint ... yes
Checking for log2 ... yes
Checking for log2f ... yes
Checking for lrint ... yes
Checking for lrintf ... yes
Checking for round ... yes
Checking for roundf ... yes
Checking for truncf ... yes
Checking for mkstemp ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes
Checking for netdb.h, struct addrinfo ... yes
Checking for netdb.h, getaddrinfo() ... yes
Checking for sockaddr_storage ... yes
Checking for arpa/inet.h ... yes
Checking for inet_pton() ... yes
Checking for inet_aton() ... yes
Checking for socklen_t ... yes
Checking for closesocket() ... no
Checking for network ... yes
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for posix_memalign() ... yes
Checking for alloca.h ... yes
Checking for fastmemcpy ... yes
Checking for hard-coded tables ... no
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthread)
Checking for w32threads ... no (using pthread instead)
Checking for rpath ... no
Checking for iconv ... yes
Checking for soundcard.h ... yes (sys/soundcard.h)
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for termcap ... yes (using -lncurses)
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes
Checking for strsep() ... yes
Checking for vsscanf() ... yes
Checking for swab() ... yes
Checking for POSIX select() ... yes
Checking for audio select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for setenv() ... yes
Checking for sys/sysinfo.h ... yes
Checking for Apple IR ... yes
Checking for pkg-config ... yes
Checking for Samba support (libsmbclient) ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for wii ... no
Checking for tdfxvid ... no
Checking for xvr100 ... no
Checking for tga ... yes
Checking for md5sum support ... yes
Checking for yuv4mpeg support ... yes
Checking for bl ... no
Checking for DirectFB ... no
Checking for X11 headers presence ... no (check if the dev(el) packages are installed)
Checking for X11 ... no (check if the dev(el) packages are installed)
Checking for Xss screensaver extensions ... no
Checking for DPMS ... no
Checking for Xv ... no
Checking for XvMC ... no
Checking for VDPAU ... no
Checking for Xinerama ... no
Checking for Xxf86vm ... no
Checking for XF86keysym ... no
Checking for DGA ... no
Checking for 3dfx ... no
Checking for VIDIX ... yes
Checking for VIDIX PCI device name database ... yes
Checking for VIDIX dhahelper support ... no
Checking for VIDIX svgalib_helper support ... no
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... yes
Checking for DVB ... no
Checking for DVB HEAD ... yes
Checking for OpenGL ... no
Checking for MatrixView ... no
Checking for PNG support ... no
Checking for MNG support ... no
Checking for JPEG support ... no
Checking for OpenJPEG (JPEG2000) support ... no
Checking for PNM support ... yes
Checking for GIF support ... no
Checking for VESA support ... no
Checking for SDL ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for IVTV TV-Out (pre linux-2.6.24) ... no
Checking for V4L2 MPEG Decoder ... yes
Checking for OSS Audio ... yes
Checking for aRts ... no
Checking for EsounD ... no
Checking for NAS ... no
Checking for pulse ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... no
Checking for Sun audio ... no
Checking for VCD support ... yes
Checking for dvdread ... yes (internal)
Checking for internal libdvdcss ... yes
Checking for cdparanoia ... no
Checking for libcdio ... no
Checking for bitmap font support ... yes
Checking for freetype >= 2.0.9 ... no
Checking for fontconfig ... no (FreeType support needed)
Checking for SSA/ASS support ... no (FreeType support needed)
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for bzlib ... yes
Checking for RTC ... yes
Checking for liblzo2 support ... no
Checking for mad support ... no
Checking for Twolame ... no
Checking for Toolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... no
Checking for OggTheora support ... no
Checking for internal mp3lib support ... yes
Checking for liba52 support ... no
Checking for internal libmpeg2 support ... yes
Checking for libdca support ... no
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC support ... yes (in libavcodec: yes)
Checking for FAAD2 support ... yes (internal floating-point)
Checking for LADSPA plugin support ... no
Checking for libbs2b audio filter support ... no
Checking for Win32 codecs ... no
Checking for XAnim codecs ... yes (using /usr/local/lib/codecs)
Checking for RealPlayer codecs ... yes (using /usr/local/lib/codecs)
Checking for QuickTime codecs ... auto
Checking for Nemesi Streaming Media libraries ... no
Checking for LIVE555 Streaming Media libraries ... no
Checking for FFmpeg libavutil ... yes (static)
Checking for FFmpeg libavcodec ... yes (static)
Checking for FFmpeg libavformat ... yes (static)
Checking for FFmpeg libpostproc ... yes (static)
Checking for FFmpeg libswscale ... yes (static)
Checking for libopencore_amr narrowband ... no
Checking for libopencore_amr wideband ... no
Checking for libdv-0.9.5+ ... no
Checking for Xvid ... no
Checking for Xvid two pass plugin ... no
Checking for x264 ... yes (in libavcodec: yes)
Checking for libdirac ... no
Checking for libschroedinger ... no
Checking for libnut ... no
Checking for zr ... no
Checking for libmp3lame ... yes (in libavcodec: yes)
Checking for mencoder ... yes
Checking for UnRAR executable ... yes
Checking for TV interface ... yes
Checking for DirectShow TV interface ... no
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for Radio interface ... no
Checking for Capture for Radio interface ... no
Checking for Video 4 Linux 2 Radio interface ... no
Checking for Video 4 Linux Radio interface ... no
Checking for Video 4 Linux 2 MPEG PVR interface ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for OSD menu ... no
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for GUI ... no
Checking for automatic gdb attach ... no
Checking for compiler support for noexecstack ... yes
Checking for linker support for --nxcompat --no-seh --dynamicbase ... no
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Checking for DVD support (libdvdnav) ... yes (internal)
Creating config.mak
Creating config.h
Config files successfully generated by ./configure !
Install prefix: /usr/local
Data directory: /usr/local/share/mplayer
Config direct.: /usr/local/etc/mplayer
Byte order: little-endian
Optimizing for: native
Languages:
Messages/GUI: en
Manual pages: en
Documentation: en
Enabled optional drivers:
Input: dvdnav(internal) ftp pvr tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network
Codecs: x264 libavcodec(internal) real xanim faad2(internal) faac libmpeg2(internal) mp3lib(internal) tremor(internal)
Audio output: oss v4l2 mpegpes(dvb)
Video output: v4l2 pnm mpegpes(dvb) fbdev cvidix yuv4mpeg md5sum tga
Disabled optional drivers:
Input: vstream radio tv-dshow live555 nemesi cddb cdda smb
Codecs: libschroedinger libdirac xvid libdv libopencore_amrwb libopencore_amrnb qtx win32 musepack libdca liba52 libtheora speex toolame twolame libmad liblzo gif OpenJPEG
Audio output: sun alsa openal jack pulse nas esd arts ivtv dxr2 sdl
Video output: zr zr2 ivtv dxr3 dxr2 sdl vesa gif89a jpeg matrixview opengl svga caca aa ggi xmga mga xvidix winvidix 3dfx dga vdpau xvmc xv x11 dfbmga directfb bl xvr100 tdfx_vid wii s3fb tdfxfb
'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
compile *** DO NOT REPORT BUGS if you tweak these files ***
'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.
Please check mtrr settings at /proc/mtrr (see DOCS/HTML//video.html#mtrr)
NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.
Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).
NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.
If you suspect a bug, please read DOCS/HTML//bugreports.html.
microchip8
31st January 2010, 15:26
No problems here at all with all latest versions. Do you have multiple instances of mencoder/mplayer? If so, make sure the correct one is set in the config. Also check with ldd to see if mencoder is linked against libx264 - ldd /paht/to/bin/mencoder | grep x264. Also see with mencoder -ovc help
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.