Thanks for reply.

Burkhard Plaum wrote:
Did you make a bitwise comparison of the encoded frames and the original?

I don't make a bitwise comparison (because I don't know how make it).

But I did it:

Original file: in.mpg (AVC mpegts)
Convert in.mpg to h264_lossless.mpg (sample file) with ffmpeg -i in.mpg -vcodec libx264 -vpre lossless_slow -acodec libmp3lame -ab 256k -threads 3 -r 29.97 -t 10 h264_lossless.mov
ffmpeg -i h264_lossless.mov -target dvd-ntsc h264_lossless_to_dvd.mpg

After:
Convert in.mpg to yuv4mpeg.yuv with mplayer -vo yuv4mpeg -endpos 10
ffmpeg -i yuv4mpeg_lossless.yuv -target dvd-ntsc yuv4mpeg_lossless_to_dvd.mpg

In result files have same quality (visually)

I conclude that it is better to use lossless codecs(with h264) than lossless with yuv4mpeg.

h264 lossless file have 26.4MB. Yuv file, with same duration, have 140,4MB

The result dvd file h264 have 34,4MB, and the result dvd file yuv have 32,5MB

Reply via email to