Log in

View Full Version : Encode problem lossless 1920x1200 to x264


HolyKiller
23rd February 2011, 19:55
Hi folks,

i have a problem and i can't figure it out for a past few days, so i hope someone help me here :)

Here is a thing:
Sometimes i recording video from games via X-Fire and then using MeGUI (http://sourceforge.net/projects/megui/files/) for encode recorded video in x264 (http://x264.nl/) (64bit 8bit-depth).

I have 1920*1200 resolution and i saving it in "Half-res@30" (x-fire settings), so the source video is in XFR1 codec 960x600@30fps.

Using this AVS script:
AVISource("E:\Video\Xfire\wow-2011-02-23-15-52-21.avi", audio=false, pixel_type="RGB32")
ConvertToYV12(matrix="pc.601")

and this x264 settings:
program --preset slow --pass 2 --bitrate 2000 --stats ".stats" --slow-firstpass --qpmin 10 --output "output" "input"

In this case, results are perfect, everything is fine, no problem. Output is x264 960x600@30fps

And here is the problem:
A few days ago i changed settings in x-fire and start saving video in "Full-res@30", so the source is now XFR1 1920x1200@30fps

Now, when i use same avs script, except matrix (using pc.709) and exactly same x264 settings, output file is just broken. Player says it is 1920x480, it jumps on end, i see only black screen, no video.

Can anyone please help me, what is wrong? What should i set for correct output?

Thanks for any help with this!

MeGUI logfile:
[Information] Log
-[Information] Versions
--[Information] MeGUI Version : 1911 (svn)
--[Information] OS : Windows Seven Ultimate Edition x64 (6.1.0.7600)
--[Information] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] Avisynth Version : 2.5.8.5 (21.12.2008 21:46:54)
-[Information] Update detection
--[Information] [23.2.2011 19:51:45] Connecting to server: http://megui.org/auto/stable/
--[Information] [23.2.2011 19:51:46] All files are up to date
-[Information] AutoEncode job generation log
--[Information] Split Size : null
--[Information] Eliminating duplicate filenames
---[Information] Video output file: E:\Video\Xfire\wow-2011-02-23-15-52-21.264
---[Information] Muxed output file: E:\Video\Xfire\wow-2011-02-23-15-52-21-muxed.mp4
---[Information] Encodable audio stream 0: E:\Video\Xfire\wow-2011-02-23-15-52-21.ac3
-[Information] Log for job1 (audio, wow-2011-02-23-15-52-21.avi -> wow-2011-02-23-15-52-21.ac3)
--[Information] [23.2.2011 19:52:20] Started handling job
--[Information] [23.2.2011 19:52:20] Preprocessing
--[Information] Avisynth script
---[NoImage] AVISource("E:\Video\Xfire\wow-2011-02-23-15-52-21.avi", audio=true)
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] Trim(0,0)
---[NoImage] Normalize()
---[NoImage] return last
--[Information] Commandline used: -readtoeof 1 -b 192 - "{0}"
--[Information] [23.2.2011 19:52:20] Encoding started
--[Information] [23.2.2011 19:52:20] Encode thread started
--[Information] [23.2.2011 19:52:20] Avisynth script environment opened
--[Information] [23.2.2011 19:52:20] Script loaded
--[Information] Output Decoder
---[Information] Channels: 1
---[Information] Bits per sample: 16
---[Information] Sample rate: 48000
--[Information] Commandline: D:\Install\MeGUI\tools\aften\aften.exe -readtoeof 1 -b 192 - "E:\Video\Xfire\wow-2011-02-23-15-52-21.ac3"
--[Information] [23.2.2011 19:52:20] Encoder process started
--[Information] Output from encoder via stderr
---[NoImage] Aften: A/52 audio encoder
---[NoImage] Version git
---[NoImage] (c) 2006-2009 Justin Ruggles, Prakash Punnoor, et al.
---[NoImage] input format: Microsoft WAVE Signed 16-bit little-endian 48000 Hz mono
---[NoImage] output format: 48000 Hz mono (1/0)
---[NoImage] SIMD usage: MMX SSE SSE2 SSE3
---[NoImage] Threads: 8
---[NoImage] progress: 100% | q: 332.0 | bw: 60.0 | bitrate: 192.0 kbps
--[Information] [23.2.2011 19:52:22] Postprocessing
---[Information] Deleting intermediate files
--[Information] [23.2.2011 19:52:22] Job completed
-[Information] Log for job2 (video, wow-2011-02-23-15-52-21.avs -> )
--[Information] [23.2.2011 19:52:22] Started handling job
--[Information] [23.2.2011 19:52:22] Preprocessing
--[Information] Job commandline: "D:\Install\MeGUI\tools\x264\vfw4x264.exe" --preset slow --pass 1 --bitrate 2000 --stats "E:\Video\Xfire\wow-2011-02-23-15-52-21.stats" --slow-firstpass --qpmin 10 --sar 1:1 --output NUL "E:\Video\Xfire\wow-2011-02-23-15-52-21.avs"
--[Information] [23.2.2011 19:52:22] Encoding started
--[Information] Standard output stream
--[Information] Standard error stream
---[NoImage] raw [info]: 1920x1200p 1:1 @ 30/1 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
---[NoImage] x264 [info]: profile High, level 5.0
---[NoImage]
---[NoImage] x264 [info]: frame I:2 Avg QP:29.77 size:139961
---[NoImage] x264 [info]: frame P:156 Avg QP:36.92 size: 10013
---[NoImage] x264 [info]: frame B:167 Avg QP:39.58 size: 6255
---[NoImage] x264 [info]: consecutive B-frames: 26.8% 9.2% 14.8% 49.2%
---[NoImage] x264 [info]: mb I I16..4: 29.9% 45.7% 24.4%
---[NoImage] x264 [info]: mb P I16..4: 7.7% 6.1% 0.5% P16..4: 15.9% 1.7% 1.5% 0.0% 0.0% skip:66.6%
---[NoImage] x264 [info]: mb B I16..4: 1.2% 1.3% 0.0% B16..8: 26.7% 1.6% 0.1% direct: 0.5% skip:68.5% L0:44.2% L1:55.3% BI: 0.5%
---[NoImage] x264 [info]: final ratefactor: 34.36
---[NoImage] x264 [info]: 8x8 transform intra:44.5% inter:90.5%
---[NoImage] x264 [info]: direct mvs spatial:98.8% temporal:1.2%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 23.5% 40.0% 9.2% inter: 3.4% 5.2% 0.1%
---[NoImage] x264 [info]: i16 v,h,dc,p: 27% 38% 11% 24%
---[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 10% 18% 8% 13% 9% 15% 8% 13%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 14% 8% 8% 12% 9% 14% 9% 16%
---[NoImage] x264 [info]: i8c dc,h,v,p: 55% 30% 10% 6%
---[NoImage] x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
---[NoImage] x264 [info]: ref P L0: 62.8% 11.2% 11.7% 6.4% 5.4% 2.5%
---[NoImage] x264 [info]: ref B L0: 83.7% 9.3% 5.4% 1.6%
---[NoImage] x264 [info]: ref B L1: 95.2% 4.8%
---[NoImage] x264 [info]: kb/s:2131.49
---[NoImage] encoded 325 frames, 9.05 fps, 2131.49 kb/s
--[Information] [23.2.2011 19:52:59] Postprocessing
---[Information] Deleting intermediate files
--[Information] [23.2.2011 19:52:59] Job completed
-[Information] Log for job3 (video, wow-2011-02-23-15-52-21.avs -> wow-2011-02-23-15-52-21.264)
--[Information] [23.2.2011 19:52:59] Started handling job
--[Information] [23.2.2011 19:52:59] Preprocessing
--[Information] Job commandline: "D:\Install\MeGUI\tools\x264\vfw4x264.exe" --preset slow --pass 2 --bitrate 2000 --stats "E:\Video\Xfire\wow-2011-02-23-15-52-21.stats" --qpmin 10 --sar 1:1 --output "E:\Video\Xfire\wow-2011-02-23-15-52-21.264" "E:\Video\Xfire\wow-2011-02-23-15-52-21.avs"
--[Information] [23.2.2011 19:52:59] Encoding started
--[Information] Standard output stream
--[Information] Standard error stream
---[NoImage] raw [info]: 1920x1200p 1:1 @ 30/1 fps (cfr)
---[NoImage] x264 [info]: using SAR=1/1
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
---[NoImage] x264 [info]: profile High, level 5.0
---[NoImage]
---[NoImage] x264 [info]: frame I:2 Avg QP:31.46 size:105866
---[NoImage] x264 [info]: frame P:156 Avg QP:37.76 size: 9573
---[NoImage] x264 [info]: frame B:167 Avg QP:39.87 size: 6273
---[NoImage] x264 [info]: consecutive B-frames: 26.8% 9.2% 14.8% 49.2%
---[NoImage] x264 [info]: mb I I16..4: 34.4% 44.0% 21.5%
---[NoImage] x264 [info]: mb P I16..4: 8.6% 6.4% 0.5% P16..4: 15.3% 1.5% 1.4% 0.0% 0.0% skip:66.4%
---[NoImage] x264 [info]: mb B I16..4: 1.7% 1.7% 0.0% B16..8: 26.5% 1.4% 0.1% direct: 0.5% skip:68.2% L0:44.6% L1:54.9% BI: 0.5%
---[NoImage] x264 [info]: 8x8 transform intra:42.8% inter:91.7%
---[NoImage] x264 [info]: direct mvs spatial:100.0% temporal:0.0%
---[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 21.3% 38.9% 8.0% inter: 3.3% 5.3% 0.1%
---[NoImage] x264 [info]: i16 v,h,dc,p: 28% 37% 11% 23%
---[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 10% 19% 8% 12% 9% 15% 8% 13%
---[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 14% 10% 8% 12% 9% 13% 8% 16%
---[NoImage] x264 [info]: i8c dc,h,v,p: 56% 29% 10% 6%
---[NoImage] x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
---[NoImage] x264 [info]: ref P L0: 62.1% 9.0% 15.9% 7.4% 4.3% 1.2%
---[NoImage] x264 [info]: ref B L0: 81.1% 12.1% 5.5% 1.3%
---[NoImage] x264 [info]: ref B L1: 94.5% 5.5%
---[NoImage] x264 [info]: kb/s:2032.80
---[NoImage] encoded 325 frames, 10.65 fps, 2032.80 kb/s
--[Information] Final statistics
---[Information] Video Bitrate Desired: 2000 kbit/s
---[Information] Video Bitrate Obtained (approximate): 2032 kbit/s
--[Information] [23.2.2011 19:53:30] Postprocessing
---[Information] Deleting intermediate files
----[Information] [23.2.2011 19:53:30] Successfully deleted E:\Video\Xfire\wow-2011-02-23-15-52-21.stats
----[Information] [23.2.2011 19:53:30] Successfully deleted E:\Video\Xfire\wow-2011-02-23-15-52-21.stats.mbtree
--[Information] [23.2.2011 19:53:30] Job completed
-[Information] Log for job4 (mux, wow-2011-02-23-15-52-21.264 -> wow-2011-02-23-15-52-21-muxed.mp4)
--[Information] [23.2.2011 19:53:30] Started handling job
--[Information] [23.2.2011 19:53:30] Preprocessing
--[Information] Job commandline: "D:\Install\MeGUI\tools\mp4box\mp4box.exe" -add "E:\Video\Xfire\wow-2011-02-23-15-52-21.264:fps=30" -add "E:\Video\Xfire\wow-2011-02-23-15-52-21.ac3" -tmp "E:\\Video\\Xfire" -new "E:\Video\Xfire\wow-2011-02-23-15-52-21-muxed.mp4"
--[Information] [23.2.2011 19:53:30] Muxing started
--[Information] Standard output stream
---[NoImage] AVC-H264 import - frame size 1920 x 1200 at 30.000 FPS
---[NoImage] Import results: 325 samples - Slices: 2 I 156 P 167 B - 1 SEI - 2 IDR
---[NoImage] Stream uses B-slice references - max frame delay 2
---[NoImage] AC3 import - sample rate 48000 - 1 channel
---[NoImage] Saving E:\Video\Xfire\wow-2011-02-23-15-52-21-muxed.mp4: 0.500 secs Interleaving
--[Information] Standard error stream
--[Information] [23.2.2011 19:53:30] Postprocessing
---[Information] Deleting intermediate files
----[Information] [23.2.2011 19:53:30] Successfully deleted E:\Video\Xfire\wow-2011-02-23-15-52-21.264
----[Information] [23.2.2011 19:53:30] Successfully deleted E:\Video\Xfire\wow-2011-02-23-15-52-21.ac3
--[Information] [23.2.2011 19:53:30] Job completed

Snowknight26
24th February 2011, 07:49
It's a player problem. The video is encoded at the correct resolution.

Blue_MiSfit
26th February 2011, 05:48
---[NoImage] raw [info]: 1920x1200p 1:1 @ 30/1 fps (cfr)


Yep. x264 is definitely encoding at 1920x1200p30.

Use mediainfo on the output mp4 to verify this is being muxed correctly etc.

Derek

pandy
3rd March 2011, 15:48
Can anyone please help me, what is wrong?

MeGUI logfile:

---[NoImage] x264 [info]: profile High, level 5.0


maybe this?