[FFmpeg-user] ffmpeg and mpeg4 compression oddities

Donald McLachlan Donald.McLachlan at crc.ca
Mon Dec 12 15:38:33 CET 2011


Hi All,

While trying to transcode some 4k content to use as test images on our 
SAGE wall. (see www.sagecommons.org.)

I saw some something funny with the resulting file size versus the 
qscale value.  I used the following script to generate the files:

    @ i=1
    while ($i < 33)
         ffmpeg -i 'Lupe (4k resolution).mp4' -vcodec mpeg4 -qscale $i
    Lupe.4kq${i}.mp4
         @ i+=1
    end

The result was not what I expect.

    crc at crc-fsmanager:/sage/crc/sageMedia> ls -lat Lupe.4kq*
    -rw-r--r-- 1 crc users 149070003 Dec  9 13:51 Lupe.4kq32.mp4
    -rw-r--r-- 1 crc users 150523202 Dec  9 13:47 Lupe.4kq31.mp4
    -rw-r--r-- 1 crc users 149615371 Dec  9 13:42 Lupe.4kq30.mp4
    -rw-r--r-- 1 crc users 148865216 Dec  9 13:37 Lupe.4kq29.mp4
    -rw-r--r-- 1 crc users 150809565 Dec  9 13:33 Lupe.4kq28.mp4
    -rw-r--r-- 1 crc users 151622865 Dec  9 13:28 Lupe.4kq27.mp4
    -rw-r--r-- 1 crc users 150404994 Dec  9 13:23 Lupe.4kq26.mp4
    -rw-r--r-- 1 crc users 150606055 Dec  9 13:18 Lupe.4kq25.mp4
    -rw-r--r-- 1 crc users 150568060 Dec  9 13:13 Lupe.4kq24.mp4
    -rw-r--r-- 1 crc users 152113205 Dec  9 13:08 Lupe.4kq23.mp4
    -rw-r--r-- 1 crc users 153299368 Dec  9 13:03 Lupe.4kq22.mp4
    -rw-r--r-- 1 crc users 155767800 Dec  9 12:58 Lupe.4kq21.mp4
    -rw-r--r-- 1 crc users 156515015 Dec  9 12:54 Lupe.4kq20.mp4
    -rw-r--r-- 1 crc users 160217174 Dec  9 12:49 Lupe.4kq19.mp4
    -rw-r--r-- 1 crc users 162110154 Dec  9 12:44 Lupe.4kq18.mp4
    -rw-r--r-- 1 crc users 324925893 Dec  9 12:39 Lupe.4kq17.mp4
    -rw-r--r-- 1 crc users 328444737 Dec  9 12:34 Lupe.4kq16.mp4
    -rw-r--r-- 1 crc users 333311560 Dec  9 12:28 Lupe.4kq15.mp4
    -rw-r--r-- 1 crc users 337991031 Dec  9 11:35 Lupe.4kq14.mp4
    -rw-r--r-- 1 crc users 345101916 Dec  9 11:27 Lupe.4kq13.mp4
    -rw-r--r-- 1 crc users 348555853 Dec  9 11:22 Lupe.4kq12.mp4
    -rw-r--r-- 1 crc users 355701217 Dec  9 11:17 Lupe.4kq11.mp4
    -rw-r--r-- 1 crc users 364827366 Dec  9 11:12 Lupe.4kq10.mp4
    -rw-r--r-- 1 crc users 374580661 Dec  9 11:07 Lupe.4kq9.mp4
    -rw-r--r-- 1 crc users 389301775 Dec  9 11:02 Lupe.4kq8.mp4
    -rw-r--r-- 1 crc users 407061843 Dec  9 10:56 Lupe.4kq7.mp4
    -rw-r--r-- 1 crc users 276467924 Dec  9 10:50 Lupe.4kq6.mp4
    -rw-r--r-- 1 crc users 309350328 Dec  9 10:45 Lupe.4kq5.mp4
    -rw-r--r-- 1 crc users 362690494 Dec  9 10:40 Lupe.4kq4.mp4
    -rw-r--r-- 1 crc users 455177388 Dec  9 10:36 Lupe.4kq3.mp4
    -rw-r--r-- 1 crc users 663858946 Dec  9 10:31 Lupe.4kq2.mp4
    -rw-r--r-- 1 crc users 668366746 Dec  9 10:25 Lupe.4kq1.mp4

Can anyone explain the step in the file size between Lupe.4kq6.mp4 and 
Lupe.4kq7.mp4, and why the file sizes between q7 to q17 are larger than 
for q6?

Thanks,
Don



More information about the ffmpeg-user mailing list