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. |
27th January 2010, 04:31 | #21 | Link | |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,993
|
Let's get this sorted. It doesn't need to be complicated or dramatic.
Quote:
ABR and CRF are similar in terms of speed, though CRF will give vastly superior quality at the cost of unpredictable file sizes. Now, as I understand it, you want to use mplayer to decode your sources so you can take advantage of its error fixing magic, and pipe the result into x264's CLI interface. That should work perfectly fine, and will enable you to "use the presets", as we've all been screaming at you to do Do throw everything you know about settings out the window, and make another evaluation of quality:speed using only the presets Much changes, and the presets are very well chosen. ~MiSfit
__________________
These are all my personal statements, not those of my employer :) |
|
27th January 2010, 08:04 | #22 | Link |
Registered User
Join Date: Oct 2008
Posts: 25
|
@Asmodian
Thank you. I was hoping for something a bit more like that. I can understand the built up frustration that takes place by incessant postings like this, but that doesn't excuse the lack of civility. I have deblocking turned up dues to the nature of MPEG-2 video from my local networks. What is broadcast in my area always has some minor blocking issues and depending on which network I'm recording from, it can actually be pretty bad. That seems to be my optimal range from the tests I've done and it doesn't affect quality more than the visible macroblocks already present. I turned bframes off due to platform issues. I would like to maintain iPod/iPhone compatibility. I have my server setup with http access... I'm trying to keep up. Thank you for a this for that take on various setitngs. I was hoping for information such as that to work from. @Blue_MiSfit Generally true, but I see VBV as a two fold option. As kinda hinted at, I have this setup for friends/coworkers that don't have their own DVR and would like to grab shows to watch. I'm mostly targeting the Xbox 360 and the iPhone/iPod Classic. Since this kind of requires web access, I thought I might as well make things streaming compatible if I could. That and if I can guarantee that a CRF encode won't surprise me with a large file size, then VBV will serve a purpose there. Unless you have a better suggestion. If you can provide some help with me getting mplayer to pipe to x264, I'm all for it. My current attempts have failed, but there has to be a way. Each revision I basically did that. If I have to do it again, I will. I have about 36 hours to play with this until I have to go back to work |
27th January 2010, 10:38 | #23 | Link | |||
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Quote:
Quote:
Quote:
Code:
mkfifo pipe.y4m x264 --preset fast --crf 22 -o output.264 pipe.y4m & mplayer -really-quiet -vo yuv4mpeg:file=pipe.y4m input.ts Or just copy the preset settings over to MEncoder as Dark Shikari suggested. Remember that the defaults (no settings) are the same as the medium preset, also in MEncoder, so you only need to add settings listed by x264 --fullhelp for each preset. For example, to encode with the fast preset, put rc_lookahead=30:ref=2:subme=6 to x264encopts. The following command does the same thing as the piping procedure did above: Code:
mencoder -ovc x264 -x264encopts crf=22:rc_lookahead=30:ref=2:subme=6 -nosound -of rawvideo -o output.264 input.ts |
|||
27th January 2010, 21:59 | #24 | Link | |
Registered User
Join Date: Feb 2005
Location: São Paulo, Brazil
Posts: 392
|
Quote:
The best you can do is to use and deblocking/denoising filter before the encoding, in order to feed a cleaner video to x264. And then lower a little your deblock, depending on your taste for bluriness vs noise. |
|
27th January 2010, 23:28 | #25 | Link | |
Registered User
Join Date: Oct 2008
Posts: 25
|
Quote:
Unless you have a way to solve my A/V issues, audio and video get encoded at the same time. My current implementation outputs audio to raw PCM and then I encode that to aac after normalizing and compressing the dynamic range a bit. I then mux everything back together into a mpeg-4 container. Can x264 just ignore a video with audio already in it? @Caroliano This would be the pp video filter using vb and hb or va and ha subfilters, yes? I'll start playing with it when I settle on my CRF settings to get the speed I need for my existing video. How much of a slowdown would I be expecting from the extra processing would you guess? |
|
27th January 2010, 23:51 | #26 | Link |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,993
|
VBV will not clamp down the average bitrate of a CRF encode! It can only control bitrate peaks.
Do not expect VBV to save you from having occasionally oversized files. It will not do this! Its sounds like you need to have some shell scripting logic to determine whether a file is actually "too big", and re-encode it at a higher CRF or whole hog two pass as a fallback. Do use VBV set to the profile and level you're using. For example, if you're making an iPod encode at Baseline @ L3, then set the vbv-bufsize and vbv-maxrate to 10000. This will ensure that the encoder will never use more than 10,000,000 bits in any given second, but still allow for instantaneous spikes etc. If you are doing encodes at High @ 4.1, then you can increase this to 62500 for each - as High 4.1 allows for 62.5mbps. You can see the specs for each profile and level on Wikipedia: http://en.wikipedia.org/wiki/H.264#Levels Also, I second the notion of using MPlayer's deblocking / denoising filters in place of increasing the deblocker settings in x264. If you can set this up correctly, you will get better overall results, and a sharper overall output. ~MiSfit
__________________
These are all my personal statements, not those of my employer :) |
28th January 2010, 01:00 | #27 | Link | ||||
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Quote:
Quote:
Quote:
Quote:
|
||||
28th January 2010, 02:09 | #28 | Link | ||||
Registered User
Join Date: Oct 2008
Posts: 25
|
Quote:
Quote:
Quote:
Quote:
So far, using CRF and defaults is saving me about 20-30% the number of bits, but encoding times are slower. I still have more test encodes to work on. |
||||
28th January 2010, 02:20 | #29 | Link | |
Registered User
Join Date: Feb 2005
Location: São Paulo, Brazil
Posts: 392
|
Quote:
|
|
28th January 2010, 11:30 | #30 | Link |
Registered User
Join Date: Oct 2008
Posts: 25
|
Preliminary results seem okay. I had to pick a couple options from --preset faster. On my first test video, with deblocking from mplayer, I come closer to my time limit for a 60 minute recording for 1080i to 720p, but according to metrics, and perceptible quality all looks to be okay.
old: Code:
x264 [info]: SSIM Mean Y:0.9863154 x264 [info]: PSNR Mean Y:46.807 U:50.211 V:51.402 Avg:47.680 Global:46.693 kb/s:5054.81 real 58m52.206s Code:
x264 [info]: SSIM Mean Y:0.9880604 x264 [info]: PSNR Mean Y:47.307 U:51.002 V:52.043 Avg:48.217 Global:47.523 kb/s:3704.70 real 59m36.614s Now please correctly my thinking here as I'm finding it hard to find information on why weighted P frames was introduced recently. Some searches I've tried don't reveal much for me unfortunately, but it's is supposed to help fades out, correct? As I'm dealing with sources that tend to need a fair amount of deblocking on scene changes and fades (to black or crosses) and especially those scene changes, the benefits of having weightp on would then be lost (if memory serves). I chose to turn it off over --mixed-refs to help speed up encoding. Is this wise? I still need to test the combination of settings with other sources/channels, though a fairly noticeable bump in visible quality while droping the bitrate by ~25% is kind of awesome. This is about 50% less bits than when I originally started Last edited by Digital Corpus; 28th January 2010 at 11:36. |
28th January 2010, 12:51 | #31 | Link | ||
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Quote:
You could also try mplayer -vo null -ao pcm:file=out.wav to decode and pipe audio to NeroAACEnc and then pipe video to x264 in another run with mplayer -ao null -vo yuv4mpeg. If that doesn't work well enough, just use MEncoder as you did before. Quote:
|
||
28th January 2010, 19:49 | #32 | Link |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,993
|
Don't use PSNR / SSIM for real quality analysis!!! Especially with psy options turned on. You need to make a visual comparison in cases like this.
Also, don't pick and choose options from --preset faster or --preset fast. Use one or the other If you need more granularity, then we can discuss what can be dropped to be least harmful to quality. ~MiSfit
__________________
These are all my personal statements, not those of my employer :) |
29th January 2010, 07:48 | #33 | Link | ||
Registered User
Join Date: Oct 2008
Posts: 25
|
Quote:
Quote:
I need that granularity which is a partial reason why I started this thread. Shall I provide a sample of the source in the form of screen to show the lack of quality I have to combat to help ease the decision making? Last edited by Digital Corpus; 29th January 2010 at 07:56. Reason: removed offering partial copy of OTA broadcast. |
||
29th January 2010, 16:31 | #34 | Link | |
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
FAAC is pretty bad. NeroAACEnc distribution includes Linux binaries (x86 only), or you can run Windows binaries with Wine. Both alternatives work very well.
Quote:
Last edited by nm; 29th January 2010 at 16:35. |
|
29th January 2010, 21:14 | #35 | Link |
Registered User
Join Date: Oct 2008
Posts: 25
|
I don't have time to check this atm, but does NeroAAC allow CLI interaction? I have everything setup via bash scripts since this is automated with many hours of video each week.
Here is a 5 minute clip of NCIS. It weighs in a 525MB: http://atlas.selfip.net/NCIS-5min.ts House, 508MB: http://atlas.selfip.net/House-5min.ts Castle, 407MB: http://atlas.selfip.net/Castle-5min.ts Each of these are a different network and are the networks I deal with primarily. I should mention that these are on a 25Mbps up pipe so usually there won't be bandwidth limitations on my end. Last edited by Digital Corpus; 29th January 2010 at 21:42. Reason: available bandwidth addition... |
Tags |
crf, ota, real time, realtime, x264 |
Thread Tools | Search this Thread |
Display Modes | |
|
|