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 3rd April 2011, 13:34   #541  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
ChangeLog for version 9.3.6
Code:
* Fixed the subtitles function which got broken when the get_selection_func() function got introduced
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 4th April 2011, 12:53   #542  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
I would use this tool but a few things i am unsure of, for example, how will i know what interlacing options to choose? Is there a way of scanning the stream on linux and having it tell you? Guess comming from windows i have been spoilt by MeGUI doing it all for me
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 4th April 2011, 13:02   #543  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
Quote:
Originally Posted by Carpo View Post
I would use this tool but a few things i am unsure of, for example, how will i know what interlacing options to choose? Is there a way of scanning the stream on linux and having it tell you? Guess comming from windows i have been spoilt by MeGUI doing it all for me
Not for interlacing, no. I haven't implemented that and I don't think I will. However, if you feed it an NTSC type DVD, it will try to detect whether it's (soft) telecined or not, and it will tell you. But for pure interlacing, you'd have to know your source and answer appropriate

if you want a fast and decent deinterlacer (not perfect) use yadif. You can go even higher by combining yadif + mcdeint but I don't see much difference between yadif only and yadif with mcdeint, and the latter can be much slower (depends on chosen mcdeint mode)
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 4th April 2011, 15:01   #544  |  Link
ganymede
Registered User
 
Join Date: Aug 2010
Location: Paris
Posts: 52
Quote:
Originally Posted by Carpo View Post
Is there a way of scanning the stream on linux and having it tell you?
Use mediainfo (http://mediainfo.sourceforge.net/).
ganymede is offline   Reply With Quote
Old 9th April 2011, 09:32   #545  |  Link
Rasi
Registered User
 
Join Date: Nov 2001
Posts: 121
Are there any plans to support ffmpeg in the future?

mencoder wasnt worked on for quite a while (years) and even its dev say its a hack, while ffmpeg is constantly improving... i find it odd, that there is only one tool for easy ripping with ffmpeg (handbrake)
Rasi is offline   Reply With Quote
Old 9th April 2011, 12:11   #546  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
Quote:
Originally Posted by Rasi View Post
Are there any plans to support ffmpeg in the future?

mencoder wasnt worked on for quite a while (years) and even its dev say its a hack, while ffmpeg is constantly improving... i find it odd, that there is only one tool for easy ripping with ffmpeg (handbrake)
Yes, I know about the state of mencoder

No, I don't plan in supporting ffmpeg within h264enc as it will require a major rewrite in a lot of parts in the script... Maybe I'll write a new script at some point which uses ffmpeg instead. My main problem with ffmpeg is that it can't directly read from DVDs while mencoder easily can
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 8th May 2011, 03:37   #547  |  Link
watsonalgas
Registered User
 
Join Date: Mar 2011
Posts: 3
Mencoder and -mc 0 -noskip

Do you know if there's any reason why recently it's been necessary to add -mc 0 -noskip to my h264enc encodes? It wasn't necessary before (unless if the DVDs I've done recently have all had similar aspects, which I doubt), but it seems like I have to do it to everything now. Maybe it should be added as default or at least as an option?

I've attached the config I'm using, and most recent encodes have lost audio-video sync (no matter if I have to deinterlace, IVTC, or nothing at all) without the two mentioned parameters.
Attached Files
File Type: txt high.txt (3.1 KB, 32 views)
watsonalgas is offline   Reply With Quote
Old 8th May 2011, 12:52   #548  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
that preset you attached doesn't tell me anything. it's just the x264 options. I need the batch file instead

what audio codec are you using?
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 9th May 2011, 03:04   #549  |  Link
watsonalgas
Registered User
 
Join Date: Mar 2011
Posts: 3
I don't have the encoding file anymore, if I come across another one I'll upload it. I tried all of them with either IVTC or just plain, and the audio would be out of sync and a bunch of Skipped frame! or Duplicate frame! warnings.

The audio codec was either copy (AC3), or a couple had to be encoded from LPCM to AC3. Finally I would just do -nosound and do the audio myself due to the problem I was having.
watsonalgas is offline   Reply With Quote
Old 9th May 2011, 11:12   #550  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
that's your problem right there. Recent versions of mencoder have issues with copying AC3 streams (or encoding to AC3). I suggest using a different audio codec. I always use Nero AAC and never have issues
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 9th May 2011, 13:05   #551  |  Link
watsonalgas
Registered User
 
Join Date: Mar 2011
Posts: 3
Yeah, you're right. So I just have to use -nosound to fix the problem. I use AC3 because I like a copy of the audio stream, not an encode.

It's weird that mencoder recently broke that, it seems like a big issue for encoding anyway.

POSSIBLE FIX: I know this isn't a problem with h264enc, but if you're interested a fix could be just encoding (or dumping) all audio seperately instead of during the encode. That solved my problems with AC3. So instead of dumping and encoding the audio in the same command as the video encode (as is usually done), make it -nosound and do the main audio like secondary audio streams are done.

Last edited by watsonalgas; 9th May 2011 at 18:31.
watsonalgas is offline   Reply With Quote
Old 12th May 2011, 00:59   #552  |  Link
yak_vi
Registered User
 
Join Date: Nov 2007
Posts: 2
Hi, thanks for sharing this utility! i have a VPS with Centos 5, all ok but when start to encode say this (all for command line i dont have video card), the error is:
Code:
[root@213671 html]# h264enc -2p -p fast

+=============================================================+
|<<<<<<< h264enc - the interactive shell script ripper >>>>>>>|
|-------------------------------------------------------------|
|<<<<<< version: 9.3.6 - (C) 2006-2011, Grozdan Nikolov >>>>>>|
+=============================================================+


Select the Input type [file/dir/dvd/vcd]: file
Provide the Input Video File: SAMPLE.VOB
Provide a name for the Output File [default is H264-23961]: sample

Note that you are running out of disk space in
the destination output directory and/or in the
configuration directory of h264enc!

This could be a problem if you want to convert
the final encode to MKV, OGM, TS or to the MP4
container. It is recommended to free up some disk
space or provide a different destination output
directory before continuing with the encoding
process if you intend to do some of the above
tasks!

Space left over in '/root': 2592 MiB
Space left over in '/root/.h264enc/job23961': 2592 MiB

#### Press 'Enter' to continue, CTRL+C to exit ####

Scan for multiple video streams? [y/N]: n
Would you like to use Pre/Postprocessing video filters? [y/N]: n
Would you like to Crop the Video file? [y/N]: n
Would you like to include/rip a Subtitle? [y/N]: n

-> Detecting FPS value...
-> Detected 25.000 FPS
-> Number of frames: 1722

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

-> Detecting original resolution...
-> Original resolution: 720x576

-> Detected Aspect Ratio (AR): 1.7778:1
-> Storage Aspect Ratio (SAR): 1.2500:1
-> Pixel Aspect Ratio (PAR): 1.4222:1
-> Total pixels: 414720

Specify the desired Resolution [default is 720x576]: 720x576
Specify the Expand filter parameters [press 'Enter' to skip]:
Would you like to set/force the input Video Aspect Ratio? [y/N]:

+=============================+
| H.264 Encoder Configuration |
+=============================+

Specify the desired Video Bitrate in kbps [default is 1000]:

-> Bits Per Pixel value: 0.096 bpp
-> Bits Per Block value: 24.691 bpb
-> Using "x264 fast" preset

+=====================+
| Audio Configuration |
+=====================+

Scan for multiple Audio streams? [y/N]: n

Available Audio Codecs
~~~~~~~~~~~~~~~~~~~~~~
MP3 -----> Container support: AVI, MKV, MP4, OGM, TS
AC3 -----> Container support: AVI, MKV, MP4, OGM, TS
AAC -----> Container support: MKV, MP4, TS
AAC+ ----> Container support: MP4, MKV
neroAAC -> Container support: MP4, MKV
VORBIS --> Container support: MP4, MKV, OGM
FLAC ----> Container support: MKV
PCM -----> Container support: AVI, MKV, OGM
COPY ----> Container support: Depends on audio codec
NOSOUND -> Container support: AVI, MKV, MP4, OGM, TS

Track 1: Select the Audio Codec [default is AAC]: AAC
Track 1: Specify the AAC encoding mode [ABR/VBR - default is ABR]: VBR
Track 1: Specify the AAC Quality value [10-500 - default is 150]: 96
Track 1: Enable AAC Temporal Noise Shaping? [y/N]: n
Track 1: Would you like to decode/output more than 2 Audio Channels? [y/N]: n
Track 1: Would you like to use Audio filters? [y/N]: n

+=============================+
| Miscellaneous Configuration |
+=============================+

Would you like to inspect the MEncoder options? [y/N]: n
Would you like to encode a Sample? [y/N]: n
Would you like to save the MEncoder options to a file? [y/N]: n
Would you like to convert the final encode from AVI to MKV? [y/N]: y
Specify the Release Year of the content [press 'Enter' to skip]:
Specify a Genre for the content [press 'Enter' to skip]:
Provide a Cover file in jpeg/png format [press 'Enter' to skip]:
Would you like to convert the final encode from AVI to MP4? [y/N]: y
Specify the Release Year of the content [press 'Enter' to skip]:
Specify a Genre for the content [press 'Enter' to skip]:
Provide a Cover file in jpeg/png format [press 'Enter' to skip]:
Hint the MP4 file for RTP/RTSP streaming sessions? [y/N]: n
Would you like to convert the final encode from AVI to TS? [y/N]: n

-> Starting to encode the Video file in 2-pass mode
-> Using "x264 fast" preset
-> Using '/dev/null' as output for the first pass
-> Using '/root/sample.avi' as output file for the second pass

Starting to encode in: 5 4 3 2 1
MEncoder SVN-r31628-4.1.2 (C) 2000-2010 MPlayer Team
Option x264encopts: turbo option is deprecated; use slow_firstpass to disable turbo
success: format: 0  data: 0x0 - 0x4bae000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9608.0 kbps (1201.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
==========================================================================
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]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: none!
x264_encoder_open failed.
FATAL: Cannot initialize video driver.

Exiting...
-> MEncoder has exited with a non-zero value!
-> Exiting in function: mencoder_exit()
FATAL: Cannot initialize video driver.

Always say same error!

Is possible encode with your utility in linux only in console?

Thanks!
yak_vi is offline   Reply With Quote
Old 15th May 2011, 14:36   #553  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
@yak_vi

I'm not sure what is causing this. Try updating your mencoder/mplayer. Also your x264 looks like it can't detect any CPU capabilities. Looks like broken to me

yes it is possible to encode on linux in console only. I do it all the time
__________________
ffx264 || ffhevc || ffxvid || microenc

Last edited by microchip8; 15th May 2011 at 14:45.
microchip8 is offline   Reply With Quote
Old 15th May 2011, 14:37   #554  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
ChangeLog for version 9.3.7
Code:
* Removed the ssim and psnr options from the presets. Should only be used for benchmarking
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 8th July 2011, 20:42   #555  |  Link
yak_vi
Registered User
 
Join Date: Nov 2007
Posts: 2
froggy1 is possible in the script modify to add subtitles to video? Thanks!
yak_vi is offline   Reply With Quote
Old 8th July 2011, 21:45   #556  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
@yak_vi

you can already do that
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 23rd July 2011, 10:02   #557  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
ChangeLog for version 9.3.8
Code:
* Update the mq, nq, hq, vhq, ehq, uhq and ihq presets. Increase subme by 1. For the ihq preset, this means that
it uses subme 11 now which requires latest x264 from git
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 8th August 2011, 18:31   #558  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
ChangeLog for version 9.3.9
Code:
* Bugfix: selecting the x264 internal denoiser does nothing due to missing $nr variable in the MEncoder options
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 20th August 2011, 15:06   #559  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
ChangeLog for version 9.4.0
Code:
* Disable mbtree in multipass mode to prevent segfaulting MEncoder due to differences in frames amount in
the passlog file. Disabling mbtree reduces quality but saves us a crash in MEncoder
* Notify the user that the script does not support AAC in AVI anymore. Also exit if user has not selected any of
the other supported containers
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 10th October 2011, 20:41   #560  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
ChangeLog for version 9.4.1
Code:
* Introduced two new variables in the config file, DEFAULT_VID_BITRATE and DEFAULT_AUD_CODEC.
The first one sets the default video bitrate or CRF/QP value while the second one can be used to set a
default audio codec. This change updates the config file to version 20
* Fixed a typo in man page
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 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 00:46.


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