Log in

View Full Version : Encode mpeg with lossless setting


errantkkn
24th June 2014, 14:59
Hi all. I have some trouble need help.
I encoded a .VOB file which has below mediainfo:

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Duration : 44mn 16s
Bit rate mode : Variable
Bit rate : 5 208 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.503
Time code of first frame : 00:01:49:00
Time code source : Group of pictures header
Stream size : 1.61 GiB (91%)

I encoded by x264 with the setting:

x264 1.vob --input-res 720x480 --fps 3000/1001 --crf 0 --tff --output 1.mkv

The output is 7GB. And the result in MPC is not smooth. I don't know what was wrong.
Thank you.

poisondeathray
24th June 2014, 16:03
--fps 3000/1001


3 FPS won't be very smooth

It probably should be 30000/1001

errantkkn
24th June 2014, 16:08
3 FPS won't be very smooth

It probably should be 30000/1001

Thank poisondeathray, that's my wrong typing, I've just reencoded again, the output is now smooth, but the file size is still big. I guess the h264 output should be smaller than mpeg source.

Guest
24th June 2014, 16:26
I'm not an expert but I don't see how crf 0 could be smaller than compressed MPEG2 from a DVD.

nevcairiel
24th June 2014, 16:31
Thank poisondeathray, that's my wrong typing, I've just reencoded again, the output is now smooth, but the file size is still big. I guess the h264 output should be smaller than mpeg source.

crf 0 is a lossless encoding, it'll use lots and lots of space.
If you want to save space, use a higher crf value, something around above 16 at least, if not even more.

poisondeathray
24th June 2014, 16:31
crf 0 is lossless compared to the uncompressed source (MPEG2 => uncompressed YUV), not the original compressed source (MPEG2). So it will always be larger than the original compressed source by many times.

Leave it as is

errantkkn
24th June 2014, 17:18
I see. Thank you all :thanks: