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 > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th July 2011, 21:24   #1  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
4:4:4

So it is here, finally

How can i encode/decode the content ?

My input is
Quote:
Format : RGB
Codec ID : RGB
Codec ID/Info : Uncompressed RGB32
Duration : 7s 958ms
Bit rate : 1 593 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 24.000 fps
Resolution : 32 bits
Bits/(Pixel*Frame) : 32.001
AVS ( installed 2.6.0 alpha 3 + the updated dll from 19.07.2011 )

Old script :

Quote:
AVIsource("D:\x264\movie.avi")
Crop(0, height%2, -width%2, 0)
ConvertToYV12()
Here i should change YV12 to YV24 no ?

As for x264 ( latest 8 bit version ) just add --profile high10 ?

thnx.
__________________
Quote:
Originally Posted by Dark Shikari View Post
If they can beat x264 in visual quality on ordinary test clips without postprocessing, I'll eat my hat.
juGGaKNot is offline   Reply With Quote
Old 24th July 2011, 23:44   #2  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 597
minimum requirement
Code:
x264 --demuxer lavf --output-csp i444 -o output.h264 input.avi
4:4:4 accepts odd resolution. and swscale convert RGB32 to i444 automatically.

Recommended players are LATEST VLC, MPlayer or MPlayer2.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 25th July 2011, 11:25   #3  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
Quote:
Originally Posted by Chikuzen View Post
minimum requirement
Code:
x264 --demuxer lavf --output-csp i444 -o output.h264 input.avi
4:4:4 accepts odd resolution. and swscale convert RGB32 to i444 automatically.

Recommended players are LATEST VLC, MPlayer or MPlayer2.
I get :

Quote:
lavf [info]: 1024x576p 0:1 @ 60/1 fps (vfr)
resize [warning]: converting from bgra to yuv444p
[swscaler @ 0190a000] full chroma interpolation for destination format 'yuv444p'
not yet implemented
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [error]: ratecontrol_init: can't open stats file
x264 [error]: x264_encoder_open failed
Quote:
--demuxer lavf --output-csp i444 --pass 1 --preset placebo --aud
__________________
Quote:
Originally Posted by Dark Shikari View Post
If they can beat x264 in visual quality on ordinary test clips without postprocessing, I'll eat my hat.
juGGaKNot is offline   Reply With Quote
Old 25th July 2011, 12:48   #4  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 597
Quote:
x264 [error]: ratecontrol_init: can't open stats file
This is not related 4:4:4 feature.
post your all command lines.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 25th July 2011, 12:59   #5  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
Yes, it was my mistake, left --pass 2 instead of --pass 1.

Quote:
lavf [info]: 1024x576p 0:1 @ 60/1 fps (vfr)
resize [warning]: converting from bgra to yuv444p
[swscaler @ 0190a000] full chroma interpolation for destination format 'yuv444p'
not yet implemented
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
[3.9%] 35/902 frames, 0.49 fps, 6238.30 kb/s, eta 0:29:35
Now i will wait to see the difference.
__________________
Quote:
Originally Posted by Dark Shikari View Post
If they can beat x264 in visual quality on ordinary test clips without postprocessing, I'll eat my hat.
juGGaKNot is offline   Reply With Quote
Old 25th July 2011, 14:22   #6  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
Quote:
lavf [info]: 1024x576p 0:1 @ 60/1 fps (vfr)
resize [warning]: converting from bgra to yuv444p
[swscaler @ 0190a020] full chroma interpolation for destination format 'yuv444p'
not yet implemented
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
x264 [info]: frame I:4 Avg QP:19.89 size: 51529
x264 [info]: frame P:282 Avg QP:23.61 size: 18198
x264 [info]: frame B:616 Avg QP:25.71 size: 6531
x264 [info]: consecutive B-frames: 6.0% 9.3% 19.6% 30.2% 34.9%
x264 [info]: mb I I16..4: 51.4% 0.0% 48.6%
x264 [info]: mb P I16..4: 30.1% 0.0% 0.0% P16..4: 47.1% 0.0% 0.0% 0.0% 0
.0% skip:22.9%
x264 [info]: mb B I16..4: 9.2% 0.0% 0.0% B16..8: 30.1% 0.0% 0.0% direct:
12.4% skip:48.3% L0:37.0% L1:42.9% BI:20.1%
x264 [info]: final ratefactor: 18.89
x264 [info]: direct mvs spatial:99.4% temporal:0.6%
x264 [info]: coded y,u,v intra: 33.5% 1.0% 0.8% inter: 22.0% 2.0% 1.0%
x264 [info]: i16 v,h,dc,p: 29% 33% 24% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 25% 13% 4% 11% 5% 12% 6% 12%
x264 [info]: Weighted P-Frames: Y:20.6% UV:19.9%
x264 [info]: kb/s:4981.58

encoded 902 frames, 4.25 fps, 4981.58 kb/s
lavf [info]: 1024x576p 0:1 @ 60/1 fps (vfr)
resize [warning]: converting from bgra to yuv444p
[swscaler @ 0190a020] full chroma interpolation for destination format 'yuv444p'
not yet implemented
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
x264 [info]: frame I:4 Avg QP:23.41 size: 44490
x264 [info]: frame P:282 Avg QP:25.06 size: 17479
x264 [info]: frame B:616 Avg QP:27.57 size: 6851
x264 [info]: consecutive B-frames: 6.0% 9.3% 19.6% 30.2% 34.9%
x264 [info]: mb I I16..4: 2.9% 88.9% 8.2%
x264 [info]: mb P I16..4: 5.9% 18.4% 1.6% P16..4: 36.9% 17.7% 0.7% 0.0% 0
.0% skip:18.8%
x264 [info]: mb B I16..4: 0.8% 3.1% 0.2% B16..8: 37.4% 9.1% 2.4% direct:
6.6% skip:40.5% L0:45.4% L1:43.6% BI:11.0%
x264 [info]: 8x8 transform intra:73.0% inter:81.6%
x264 [info]: direct mvs spatial:95.9% temporal:4.1%
x264 [info]: coded y,u,v intra: 63.8% 12.6% 9.0% inter: 23.5% 3.3% 1.9%
x264 [info]: i16 v,h,dc,p: 27% 24% 12% 37%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 7% 10% 8% 8% 14% 10% 19% 8% 16%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 12% 3% 6% 16% 10% 22% 8% 16%
x264 [info]: Weighted P-Frames: Y:20.6% UV:19.9%
x264 [info]: ref P L0: 53.5% 17.7% 14.7% 7.8% 4.7% 1.3% 0.2%
x264 [info]: ref B L0: 79.8% 14.5% 4.4% 1.3%
x264 [info]: ref B L1: 91.5% 8.5%
x264 [info]: kb/s:4963.69

encoded 902 frames, 1.95 fps, 4963.69 kb/s
AVC-H264 import - frame size 16 x 192 at 60.000 FPS
Import results: 902 samples - Slices: 4 I 282 P 616 B - 1 SEI - 4 IDR
IsoMedia import - track ID 1 - Audio (SR 44100 - 2 channels)
Saving C:\x264\Movie\1.Movie_X264_2D.mp4: 0.500 secs Interleaving


General
Complete name : C:\x264\Movie\1.Movie_X264_2D.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 9.26 MiB
Duration : 15s 92ms
Overall bit rate : 5 144 Kbps
Genre : PS3 Compatible
Encoded date : UTC 2011-07-24 13:57:21
Tagged date : UTC 2011-07-24 13:57:21

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 4:4:4 Predictive@L3.2
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15s 33ms
Bit rate mode : Variable
Bit rate : 4 900 Kbps
Maximum bit rate : 11.7 Mbps
Width : 16 pixels
Original width : 1 024 pixels
Height : 192 pixels
Original height : 576 pixels
Display aspect ratio : 0.083
Original display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 fps
Color space : YUV
Chroma subsampling : 4:4:4
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 26.584
Stream size : 8.89 MiB (96%)
Writing library : x264 core 116 r2037 f8ebd4a
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=4 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=4 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=600 / keyint_min=60 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4900 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
Encoded date : UTC 2011-07-24 13:57:21
Tagged date : UTC 2011-07-24 13:57:22

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 15s 92ms
Bit rate mode : Variable
Bit rate : 192 Kbps
Maximum bit rate : 211 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 359 KiB (4%)
Encoded date : UTC 2011-07-24 13:57:22
Tagged date : UTC 2011-07-24 13:57:22
The video has audio and a vertical strip of video.
__________________
Quote:
Originally Posted by Dark Shikari View Post
If they can beat x264 in visual quality on ordinary test clips without postprocessing, I'll eat my hat.

Last edited by juGGaKNot; 25th July 2011 at 14:54.
juGGaKNot is offline   Reply With Quote
Old 25th July 2011, 15:36   #7  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 597
Quote:
AVC-H264 import - frame size 16 x 192 at 60.000 FPS
this is wierd.
maybe, you made a mistake in the usage of mp4box.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 25th July 2011, 18:52   #8  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
Yes, used mkvtoolnix and it works.

mp4box works also with the output 4:2:0 but not 4:4:4

LE : latest version of mp4box seems to work fine.
__________________
Quote:
Originally Posted by Dark Shikari View Post
If they can beat x264 in visual quality on ordinary test clips without postprocessing, I'll eat my hat.

Last edited by juGGaKNot; 25th July 2011 at 19:29.
juGGaKNot is offline   Reply With Quote
Old 25th July 2011, 19:27   #9  |  Link
Lyris
Registered User
 
Join Date: Sep 2007
Location: Europe
Posts: 590
Out of curiosity, what's your 4:4:4 source? Video game captures?
Lyris is offline   Reply With Quote
Old 25th July 2011, 19:30   #10  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
Yes, counter strike 1.6

It looks good but not perfect so far, i will post screens.

LE : ahh, nvm, it looks the same, the prev frame had more frame blending.
__________________
Quote:
Originally Posted by Dark Shikari View Post
If they can beat x264 in visual quality on ordinary test clips without postprocessing, I'll eat my hat.

Last edited by juGGaKNot; 25th July 2011 at 19:33.
juGGaKNot is offline   Reply With Quote
Old 4th October 2013, 07:46   #11  |  Link
LilScrappy
Registered User
 
Join Date: Aug 2012
Posts: 25
Please for help i use Avisynth 2.6.0 Alpha 4 and MeGui and custom command line --output-csp i444 but have this error message any chance to fix ?

Quote:
--[Warning] [10/4/2013 9:25:16 AM] Standard error stream
---[Warning] [10/4/2013 9:25:17 AM] resize [warning]: converting from yuv420p to yuv444p
LilScrappy is offline   Reply With Quote
Old 4th October 2013, 08:01   #12  |  Link
the_weirdo
Yes, I'm weird.
 
the_weirdo's Avatar
 
Join Date: May 2010
Location: Southeast Asia
Posts: 273
Quote:
Originally Posted by LilScrappy View Post
Please for help i use Avisynth 2.6.0 Alpha 4 and MeGui and custom command line --output-csp i444 but have this error message any chance to fix ?
Are you sure your Avisynth script output is YV24? From that warning, for some reason it has been recognized as YV12.
__________________
“Never argue with stupid people, they will drag you down to their level and then beat you with experience.” — Mark Twain
the_weirdo is offline   Reply With Quote
Old 4th October 2013, 08:37   #13  |  Link
LilScrappy
Registered User
 
Join Date: Aug 2012
Posts: 25
i add now in script ConvertToYV24 after start encode from megui have message:
i click no

after that i have this message and click yes

and in megui log no have error more, all right now or ?

Quote:
--[Information] [10/4/2013 10:32:29 AM] Standard error stream
---[Information] [10/4/2013 10:32:30 AM] raw [info]: 1920x1080p 1:1 @ 24000/1001 fps (cfr)
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: using SAR=1/1
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: profile High 4:4:4 Predictive, level 5.1, 4:4:4 10-bit
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: frame I:1 Avg QP:33.01 size:110363
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: mb I I16..4: 10.3% 83.0% 6.7%
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: 8x8 transform intra:83.0%
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: coded y,u,v intra: 77.5% 54.6% 40.7%
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: i16 v,h,dc,p: 16% 13% 21% 50%
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 8% 6% 9% 11% 14% 11% 11% 10%
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 7% 2% 9% 15% 18% 13% 11% 10%
---[Information] [10/4/2013 10:32:30 AM] x264 [info]: kb/s:21168.53
---[Information] [10/4/2013 10:32:30 AM] encoded 1 frames, 1.35 fps, 21168.53 kb/s

Last edited by LilScrappy; 4th October 2013 at 08:41.
LilScrappy is offline   Reply With Quote
Old 4th October 2013, 09:27   #14  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,380
All you have actually achieved is to have the conversion from YV12 to YV24 now done inside Avisynth instead of inside x264.

But it seems to me that unless your source really is 4:4:4 (or RGB), there is little to be gained from converting the output to YV24.

What is your source and complete script?
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 4th October 2013, 10:08   #15  |  Link
LilScrappy
Registered User
 
Join Date: Aug 2012
Posts: 25
the source is YV12, my script is simple:
Quote:
FFVideoSource("F:\Program\eac3to v3.24\Star Wars The Clone Wars\episode 1\video.mkv", fpsnum=24000, fpsden=1001)
Spline36Resize(1920,1080) # Spline36 (Neutral)
ConvertToYV24
or i need more thing on script for change correctly YV12 to YV24 ?
in megui custom command line i use --output-csp i444 and for color matrix - bt709

Last edited by LilScrappy; 4th October 2013 at 10:43.
LilScrappy is offline   Reply With Quote
Old 4th October 2013, 11:04   #16  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,380
The script correctly converts YV12 to YV24, but the question is, what is the point?

Conversion to YV24 cannot magically provide any greater real chroma resolution than you have in the source, so why not leave it as YV12?
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 4th October 2013, 11:31   #17  |  Link
LilScrappy
Registered User
 
Join Date: Aug 2012
Posts: 25
You telling me what i use 4:2:2 or 4:4:4 for output, when source is 4:2:0 no see visible difference even minimal ?
LilScrappy is offline   Reply With Quote
Old 4th October 2013, 12:15   #18  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: Los Angeles, California
Posts: 2,119
http://nmm-hd.org/newbbs/viewtopic.php?f=7&t=1117
you can use this script to convert yv12 source to yv24,the quality is much better than players chroma upscaling (even better than madVR)
feisty2 is offline   Reply With Quote
Old 4th October 2013, 12:46   #19  |  Link
LilScrappy
Registered User
 
Join Date: Aug 2012
Posts: 25
feisty2
please give me simple script for test i dont understand chinese !
LilScrappy is offline   Reply With Quote
Old 4th October 2013, 12:52   #20  |  Link
the_weirdo
Yes, I'm weird.
 
the_weirdo's Avatar
 
Join Date: May 2010
Location: Southeast Asia
Posts: 273
Does it improve much and is it worth?

Converting YV12 to YV24 means you have to reencode the video (if you're going to do it anyway then this is not a problem, but YUV 4:4:4 encoding takes more time than YUV 4:2:0). You can't use hardware-accelerated decoding to decode YUV 4:4:4 H.264 (EDIT: I've just realized he's using 10-bit so this statement is irrelevant), while YUV 4:4:4 decoding in software mode needs more CPU processing power (about 40%, IIRC) comparing to YUV 4:2:0 content. MadVR has good enough chroma upsamplers, for example: Jinc. For chroma upsampling, there should not much difference between Jinc and NNEDI3, and they're both overkill. Remember that chroma doesn't have much detail to begin with.
__________________
“Never argue with stupid people, they will drag you down to their level and then beat you with experience.” — Mark Twain

Last edited by the_weirdo; 6th October 2013 at 10:05.
the_weirdo is offline   Reply With Quote
Reply

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 01:30.


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