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.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd March 2010, 12:05   #461  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
Yeah, it's already applied. I downloaded it earlier. Thanks anyways
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 28th March 2010, 13:21   #462  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
ChangeLog for version 9.1.9
Code:
* Replaced sed with awk for checking available disk space. Should work better on FreeBSD systems.
Patch by ennob from doom9
* Updated interlace options and presets to support the latest x264 from git. Note that due to these changes,
h264enc's presets are incompatible with older x264 versions so please upgrade to latest x264 from git!
* Small update to the preset.cfg file
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 24th April 2010, 03:05   #463  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
ChangeLog for version 9.2.0
Code:
* Switch to using external FAAC encoder to work around an issue in mkvmerge where it flags AAC
audio taken from an AVI as being Main profile regardless if LC profile is used for encoding or not. Problem
noticed & reported by benpro. This updates the config file to version 16 and requires FAAC to be installed.
* Same small cleanups
* Updated the man page
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 29th April 2010, 15:54   #464  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
ChangeLog for version 9.2.1
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 17 and adds variable ALLOW_AUD_CHANNELS
* Bugfix: audio filters were not inserted when doing 1-pass encodes
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 15th May 2010, 17:34   #465  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
ChangeLog for version 9.2.2
Code:
* Small bugfix in the get_devices_func() function; script exits when user hits enter to accept default device
* Remove AVI menu entry as supported container when using FAAC for audio encoding
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 25th June 2010, 17:39   #466  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
ChangeLog for version 9.2.3
Code:
* Added support for x264's preset, tune and profile options. This adds two additional optional args
[-t (for tune) and -pf (for profile)] which can only be used with an x264 preset, not with the built-in script
presets. If used with those, these args will be ignored.
Examples on how to use x264 presets (which is also explained in the -help option)
h264enc -crf -p slow
h264enc -crf -p slow -t film
h264enc -crf -p slow -pf main
h264enc -crf -p slow -t film -pf high
One can also switch the -t and -pf options, eg: h264enc -crf -p slow -pf high -t film
* Updated the man page
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 18th July 2010, 02:23   #467  |  Link
swk
Registered User
 
Join Date: Nov 2005
Posts: 4
While looking for x264 cli tutorials (and not finding much) I came across h264enc today. I was hopeful but it doesn't work for me. I did a simple test (choosing all defaults). I started with:
Code:
h264enc -1p -p fast
and got the following command:

Code:
nice -n 10 /usr/bin/mencoder "dvd://2" -o "/p3/mebo - chapter 1-2.avi" -vc mpeg12 -dvd-device mebo.iso -chapter 1-2 -vf \
softskip,harddup -aid 128 -oac pcm -ovc x264 -x264encopts bitrate=1000:nointerlaced:preset=fast:keyint=300:keyint_min=30:force_cfr
with resulting:
Code:
MPlayer SVN-r31309 (C) 2000-2010 MPlayer Team
Option x264encopts: Unknown suboption preset
libdvdread: Encrypted DVD support unavailable.
There are 5 titles on this DVD.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: ja aid: 128.
number of audio channels on disk: 1.
number of subtitles on disk: 0
success: format: 2  data: 0x5EDF000 - 0x5ede800
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.970  ftime:=0.0334
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-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: [softskip]
==========================================================================
Forced video codec: mpeg12
Opening video decoder: [libmpeg2] libmpeg2 MPEG 1/2 Video decoder
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x328be40]using unscaled yuv420p -> yuv420p special converter
FATAL: Cannot initialize video driver.

Exiting...
Looking around, it seems mencoder passed x264 options to libx264 but libx264 doesn't recognize the preset option. Removing the preset=fast option from the menconder command does work. Since h264enc requires a preset, I'm confused as to how anyone gets it to work.

I'm using (all from Debian repos):
Package: libx264-98
Version: 1:0.svn20100620-0.1

Package: mencoder
Version: 2:1.0~rc3+svn20100603-0.0

Package: h264enc
Version: 9.2.3-0.0
swk is offline   Reply With Quote
Old 18th July 2010, 02:29   #468  |  Link
Redsandro
Unregistered User
 
Redsandro's Avatar
 
Join Date: Jul 2008
Location: Netherlands
Posts: 133
I use h264enc for encoding series for my nokia phone using
Code:
h264enc -1p -p nks60
and there's no problem.

Could it be that h264enc doesn't handle non-specific profiles well (anymore)?
__________________
avi + m2t -> Vdub + DGIndex -> AE CS3 -> x264 -> Hell On Earth
Woop, woop! That's the sound of the police!
Redsandro is offline   Reply With Quote
Old 18th July 2010, 07:49   #469  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
@swk

you're trying to use the native x264 presets but your x264 or mencoder version is too old and doesn't support them. Either upgrade these programs or use the script presets instead (eg, the hq, vhq, ehq, etc presets, not the x264 ones as shown in -help). The x264 presets work here in mencoder (and in h264enc) without a problem so it must be something on your side

I recommend using mplayer from svn and x264 from git, compiled yourself
__________________
ffx264 || ffhevc || ffxvid || microenc

Last edited by microchip8; 18th July 2010 at 07:54.
microchip8 is offline   Reply With Quote
Old 18th July 2010, 16:52   #470  |  Link
swk
Registered User
 
Join Date: Nov 2005
Posts: 4
I use a svn checkout from June 3, 2010. That can't be that old can it?

Anyway, I did use the script presets and it did work. I'll contact the Debian package maintainer to find out what is going on. I used to compile svn mplayer all the time but this is a new comp and I haven't had time to hunt down all needed libs. Looks like I may have to though.

Thanks to both of you for helping.
swk is offline   Reply With Quote
Old 18th July 2010, 17:22   #471  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
I'm not exactly sure when they pushed the patch to mencoder to support x264 presets, so I can't tell you if yours supports it or not. But mine does here. If mencoder didn't support these x264 presets, I wouldn't add them to the script
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 21st July 2010, 08:19   #472  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by swk View Post
I use a svn checkout from June 3, 2010. That can't be that old can it?
It's a new feature:
Quote:
r31363 | tack | 2010-06-11 00:45:20 +0300 (pe, 11 kesä** 2010) | 11 lines

ve_x264: rewrite option parsing and add support for x264's presets,
profiles, and tuning system.

No longer explicitly disable 'psnr' and 'ssim' options (they are off by
default); deprecate the 'turbo' option, enable fast first pass by
default, and introduce slow_firstpass option to disable it (provides
parity with x264).

Some ideas taken from patch submitted by Micha (mk spline de).
nm is offline   Reply With Quote
Old 21st July 2010, 09:39   #473  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
ChangeLog for version 9.2.4
Code:
* Typo fix in the display_quality_preset_func(); verslow -> veryslow. As this is an informative function,
it does not affect the encoding configuration
* Force -nosub option in case subtitles are skipped. This is to prevent auto-loading of subs
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 10th August 2010, 20:00   #474  |  Link
Goga777
Registered User
 
Join Date: Jul 2010
Posts: 14
thanks for you great job
does it possible to implement the possibility to power off computer after finishing of encoding ?
Goga777 is offline   Reply With Quote
Old 10th August 2010, 20:07   #475  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
Quote:
Originally Posted by Goga777 View Post
thanks for you great job
does it possible to implement the possibility to power off computer after finishing of encoding ?
halting requires root privileges so if you run the script as normal user (which you should), it can't be done afaik
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 11th August 2010, 20:10   #476  |  Link
Goga777
Registered User
 
Join Date: Jul 2010
Posts: 14
with sudo it's possible to find solution
Goga777 is offline   Reply With Quote
Old 11th August 2010, 20:16   #477  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
Quote:
Originally Posted by Goga777 View Post
with sudo it's possible to find solution
I don't like sudo and I don't use it. Not to mention many distros are not as fanatic sudo pushers as Ubuntu/Debian

what you can do is just see how much time is remaining for the encode to finish, add 10-15 minutes on top and in another console as root do;

sleep <remaining-time-in-min-or-hrs> && halt -p

example, if mencoder says your encoding will finish in 100 minutes, add to those 5 or 10 on top just to be sure and then

sleep 110m && halt -p
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 11th August 2010, 20:22   #478  |  Link
Goga777
Registered User
 
Join Date: Jul 2010
Posts: 14
yes, I have already used such solution


shutdown -P -h -time 04:00
Goga777 is offline   Reply With Quote
Old 11th August 2010, 20:32   #479  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,846
well, there you go

and make sure to account for audio encoding (if you use an external encoder like Nero) and for muxing, hence why I said to add 5-10 minutes (or a bit more) on top of the estimated encoding time by mencoder
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 11th August 2010, 20:51   #480  |  Link
Goga777
Registered User
 
Join Date: Jul 2010
Posts: 14
in which cases do you recommend to use deringing/deblocking filters ?
Goga777 is offline   Reply With Quote
Reply

Tags
h264enc, ipod, mencoder, ps3, xbox360

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:21.


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