I have a TIFF-Image, which i want to convert into a JPG. While on my local machine (Ubuntu 19.10LTS), I have ImageMagick 6.9 installed, the targeted system (Alpine 3.12.4) will have 7.0 installed.
I use this command to convert the image:
convert 100U.TIF 100U.JPG
While on my local machine the image comes out correct, on the targeted system only the red channel is converted.
identify on my local machine gives me this output on the image:
$ identify -verbose 100U.TIF ⬡ 12.18.3
Image: 100U.TIF
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 288x213+0+0
Resolution: 75x75
Print size: 3.84x2.84
Units: PixelsPerInch
Colorspace: sRGB
Type: TrueColor
Endianess: LSB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 61344
Red:
min: 0 (0)
max: 255 (1)
mean: 2.78762 (0.0109319)
standard deviation: 23.7277 (0.0930497)
kurtosis: 87.1252
skewness: 9.22018
entropy: 0.0306475
Green:
min: 0 (0)
max: 255 (1)
mean: 2.04869 (0.00803409)
standard deviation: 21.3045 (0.0835469)
kurtosis: 115.249
skewness: 10.7066
entropy: 0.0185803
Blue:
min: 0 (0)
max: 255 (1)
mean: 81.2182 (0.318503)
standard deviation: 62.7872 (0.246224)
kurtosis: -1.32139
skewness: -0.234594
entropy: 0.679964
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 28.6848 (0.11249)
standard deviation: 35.9398 (0.14094)
kurtosis: 1.38693
skewness: 1.63363
entropy: 0.243064
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 288x213+0+0
Dispose: Undefined
Iterations: 0
Compression: LZW
Orientation: TopLeft
Properties:
date:create: 2021-04-08T09:06:20+02:00
date:modify: 2021-04-08T08:27:56+02:00
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: RGB
tiff:rows-per-strip: 4
Artifacts:
filename: 100U.TIF
verbose: true
Tainted: False
Filesize: 65350B
Number pixels: 61344
Pixels per second: 6.1344MB
User time: 0.010u
Elapsed time: 0:01.009
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
whereas identify on the targeted system gives me this:
# magick identify -verbose 100U.TIF -set type TrueColor
Image:
Filename: 100U.TIF
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 288x213+0+0
Resolution: 75x75
Print size: 3.84x2.84
Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: TrueColor
Endianness: LSB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 1-bit
Blue: 1-bit
Channel statistics:
Pixels: 61344
Red:
min: 0 (0)
max: 255 (1)
mean: 17.95 (0.0703921)
median: 0 (0)
standard deviation: 43.4868 (0.170536)
kurtosis: 3.56005
skewness: 2.22319
entropy: 0.223782
Green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
median: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 0
Blue:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
median: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 0
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 5.98333 (0.023464)
median: 0 (0)
standard deviation: 14.4956 (0.0568454)
kurtosis: 19.9054
skewness: 4.51667
entropy: 0.074594
Colors: 238
Histogram:[...]
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 288x213+0+0
Dispose: Undefined
Iterations: 0
Compression: LZW
Orientation: TopLeft
Convex hull: 263,2 278,2 287,4 287,167 276,192 255,193 171,193 29,156 8,47 80,13 113,6 161,4 263,2
Minimum bounding box: 287,2 287,193 8,193 8,2
Properties:
date:create: 2021-04-08T07:06:20+00:00
date:modify: 2021-04-08T06:27:56+00:00
minimum-bounding-box:_p: 263,2
minimum-bounding-box:_q: 278,2
minimum-bounding-box:_v: 255,193
minimum-bounding-box:angle: 0
minimum-bounding-box:area: 53289
minimum-bounding-box:height: 279
minimum-bounding-box:unrotate: -0
minimum-bounding-box:width: 191
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: RGB
tiff:rows-per-strip: 4
Artifacts:
verbose: true
Tainted: False
Filesize: 65350B
Number pixels: 61344
Pixels per second: 5.60942MP
User time: 0.010u
Elapsed time: 0:01.010
Version: ImageMagick 7.0.10-48 Q16 x86_64 2020-12-12 https://imagemagick.org
I tried different values for parameters "-type", "-colorspace" and "-alpha", which always resulted in a red-only image.
Could it be, that I'm missing dependencies?
EDIT:
After i found out, i can reproduce this for all tiff files, i generated one myself and analyzed with debug-switch on (on the alpine-system).
The tiff-file, generated from https://www.freeimages.com/de/photo/butterfly-1390152 is located here: https://ibb.co/ZH1sgmK. The generated jpg-file here: https://ibb.co/1qYvkcs
# identify -debug all -verbose butterfly-1390152.tiff
2021-04-09T07:07:38+00:00 0:00.000 0.000u 7.0.10 Configure identify[112]: utility.c/ExpandFilenames/971/Configure
Command line: identify {-debug} {all} {-verbose} {butterfly-1390152.tiff}
2021-04-09T07:07:38+00:00 0:00.000 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
Domain: Module; rights=Read; pattern="TIFF" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1273/Module
Searching for module "TIFF" using filename "tiff.la"
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/GetMagickModulePath/546/Module
Searching for coder module file "tiff.la" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1282/Module
Opening module at path "/usr/lib/ImageMagick-7.0.10/modules-Q16HDRI/coders/tiff.la"
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1309/Module
Method "RegisterTIFFImage" in module "TIFF" at address 0x7f243e4edbc5
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Module identify[112]: module.c/OpenModule/1323/Module
Method "UnregisterTIFFImage" in module "TIFF" at address 0x7f243e4edf30
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
Domain: Path; rights=Read; pattern="butterfly-1390152.tiff" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Blob identify[112]: blob.c/OpenBlob/3430/Blob
read 3 magic header bytes
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Map: 4.83943MiB/4.83943MiB/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Map: 4.83943MiB/0B/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
Domain: Path; rights=Read; pattern="butterfly-1390152.tiff" ...
2021-04-09T07:07:38+00:00 0:00.001 0.000u 7.0.10 Blob identify[112]: blob.c/OpenBlob/3430/Blob
read 3 magic header bytes
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
Domain: Coder; rights=Read; pattern="TIFF" ...
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Policy identify[112]: policy.c/IsRightsAuthorized/635/Policy
Domain: Path; rights=Read; pattern="butterfly-1390152.tiff" ...
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Blob identify[112]: blob.c/OpenBlob/3430/Blob
read 3 magic header bytes
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Map: 4.83943MiB/4.83943MiB/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1520/Coder
Geometry: 1600x1057
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1522/Coder
Interlace: 1
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1524/Coder
Bits per sample: 8
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1526/Coder
Min sample value: 0
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1528/Coder
Max sample value: 255
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1530/Coder
Photometric interpretation: RGB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Coder identify[112]: tiff.c/ReadTIFFImage/1538/Coder
Image depth: 8
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1691200B/0B/30.6038GiB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 20294400B/20294400B/15.3019GiB
2021-04-09T07:07:38+00:00 0:00.002 0.000u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1057x3 20294400B)
2021-04-09T07:07:38+00:00 0:00.016 0.010u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Map: 4.83943MiB/0B/30.6038GiB
Image:
Filename: butterfly-1390152.tiff
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 1600x1057+0+0
Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: TrueColor
Endianness: LSB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 1-bit
Blue: 1-bit
Channel statistics:
Pixels: 1691200
Red:
min: 135 (0.529412)
max: 194 (0.760784)
mean: 158.434 (0.621309)
median: 144 (0.564706)
standard deviation: 12.4204 (0.0487073)
kurtosis: -0.118189
skewness: 1.07827
entropy: 0.852599
Green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
median: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 0
Blue:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
median: 0 (0)
standard deviation: 0 (0)
kurtosis: -3
skewness: 0
entropy: 0
Image statistics:
Overall:
min: 0 (0)
max: 194 (0.760784)
mean: 52.8113 (0.207103)
median: 48 (0.188235)
standard deviation: 4.14012 (0.0162358)
kurtosis: -1.40876
skewness: 0.737647
entropy: 0.2842
Colors: 60
Histogram:
2021-04-09T07:07:40+00:00 0:01.359 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
Searching for configure file: "/usr/share/ImageMagick-7/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
Searching for configure file: "/usr/lib/ImageMagick-7.0.10//config-Q16HDRI/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
Searching for configure file: "/etc/ImageMagick-7/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-7/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: configure.c/GetConfigureOptions/675/Configure
Searching for configure file: "/root/.config/ImageMagick/colors.xml"
2021-04-09T07:07:40+00:00 0:01.360 1.350u 7.0.10 Configure identify[112]: color.c/LoadColorCache/1983/Configure
Loading color file "/etc/ImageMagick-7/colors.xml" ...
[histogram left out]
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 1600x1057+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: TopLeft
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.362 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.363 1.350u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
Convex hull: 0,0 1599,0 1599,1055 1598,1056 0,1056 0,0
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.412 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/SetPixelChannelMask/6294/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6178/Pixel
butterfly-1390152.tiff[07ffffff]
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
0: red (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
1: green (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Pixel identify[112]: pixel.c/LogPixelChannels/6275/Pixel
2: blue (update)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Area: 1600B/0B/30.6038GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Resource identify[112]: resource.c/AcquireMagickResource/390/Resource
Memory: 19200B/20313600B/15.3019GiB
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/OpenPixelCache/3794/Cache
open butterfly-1390152.tiff[0] (Heap Memory, 1600x1x3 19200B)
2021-04-09T07:07:40+00:00 0:01.413 1.400u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.414 1.400u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 19200B/20294400B/15.3019GiB
Minimum bounding box: 1599,0 1599,1056 0,1056 0,0
Profiles:
Profile-8bim: 12 bytes
8bim(12):
0x00000000: 42494d04 04000000 00000000 8BIM--------
Profile-icc: 560 bytes
icc(560):
0x00000000: 00023041 44424502 1000006d 6e747252 47422058 ---0ADBE----mntrRGB
0x00000190: 595a2007 d0000800 0b001300 33003b61 63737041 XYZ ---------3-;acsp
0x00000320: 50504c00 0000006e 6f6e6500 00000000 00000000 APPL----none--------
0x000004b0: 00000000 00000100 00f6d600 01000000 00d32d41 --------------------
0x00000640: 44424500 00000000 00000000 00000000 00000000 ADBE----------------
0x000007d0: 00000000 00000000 00000000 00000000 00000000 --------------------
0x00000960: 00000000 00000000 00000a63 70727400 0000fc00 ------------cprt----
0x00000af0: 00003264 65736300 00013000 00006b77 74707400 ---2desc---0---kwtpt
0x00000c80: 00019c00 00001462 6b707400 0001b000 00001472 --------bkpt--------
0x00000e10: 54524300 0001c400 00000e67 54524300 0001d400 rTRC--------gTRC----
0x00000fa0: 00000e62 54524300 0001e400 00000e72 58595a00 ----bTRC--------rXYZ
0x00001130: 0001f400 00001467 58595a00 00020800 00001462 --------gXYZ--------
0x000012c0: 58595a00 00021c00 00001474 65787400 00000043 bXYZ--------text----
0x00001450: 6f707972 69676874 20323030 30204164 6f626520 Copyright 2000 Adobe
0x000015e0: 53797374 656d7320 496e636f 72706f72 61746564 Systems Incorporate
0x00001770: 00000064 65736300 00000000 00001141 646f6265 d---desc--------Adob
0x00001900: 20524742 20283139 39382900 00000000 00000000 e RGB (1998)--------
0x00001a90: 00000000 00000000 00000000 00000000 00000000 --------------------
0x00001c20: 00000000 00000000 00000000 00000000 00000000 --------------------
0x00001db0: 00000000 00000000 00000000 00000000 00000000 --------------------
0x00001f40: 00000000 00000000 00000058 595a2000 00000000 ------------XYZ ----
0x000020d0: 00f35100 01000000 0116cc58 595a2000 00000000 ---Q--------XYZ ----
0x00002260: 00000000 00000000 00000063 75727600 00000000 ------------curv----
0x000023f0: 00000102 33000063 75727600 00000000 00000102 -----3--curv--------
0x00002580: 33000063 75727600 00000000 00000102 33000058 -3--curv---------3--
0x00002710: 595a2000 00000000 009c1800 004fa500 0004fc58 XYZ ----------O-----
0x000028a0: 595a2000 00000000 00348d00 00a02c00 000f9558 XYZ ------4----,----
0x00002a30: 595a2000 00000000 00263100 00102f00 00be9c00 XYZ ------&1---/----
Properties:
date:create: 2021-04-09T07:01:47+00:00
date:modify: 2021-04-09T07:01:47+00:00
icc:copyright: Copyright 2000 Adobe Systems Incorporated
icc:description: Adobe RGB (1998)
minimum-bounding-box:_p: 0,0
minimum-bounding-box:_q: 1599,0
minimum-bounding-box:_v: 1598,1056
minimum-bounding-box:angle: 0
minimum-bounding-box:area: 1.68854e+06
minimum-bounding-box:height: 1599
minimum-bounding-box:unrotate: -0
minimum-bounding-box:width: 1056
signature: 272a8b584aacf8e2b7d61d0b8fa608768f9fe5ce1ee34eca2f62dfd8d1885e60
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: RGB
tiff:rows-per-strip: 208
Artifacts:
verbose: true
Tainted: False
Filesize: 4.83943MiB
Number pixels: 1691200
Pixels per second: 114.282MP
User time: 0.010u
Elapsed time: 0:01.014
Version: ImageMagick 7.0.10-48 Q16 x86_64 2020-12-12 https://imagemagick.org
2021-04-09T07:07:40+00:00 0:01.462 1.450u 7.0.10 Cache identify[112]: cache.c/DestroyPixelCache/1057/Cache
destroy butterfly-1390152.tiff[0]
2021-04-09T07:07:40+00:00 0:01.463 1.450u 7.0.10 Resource identify[112]: resource.c/RelinquishMagickResource/1070/Resource
Memory: 20294400B/0B/15.3019GiB
It's very hard to help without access to your file! Here are a few suggestions:
Try running ImageMagick with debug switched on to see if you can spot the difference:
magick identify -debug all -verbose 100U.tif
Try with exiftool to see what it makes of your file:
exiftool -v -v 100U.tif
If you have docker, you can very quickly run up a disposable Alpine instance and install ImageMagick on it and try like this:
docker run --rm -it -v "$(pwd)":/work alpine:latest
/ # apk add --no-cache imagemagick
/ # cd work
/work # magick 100U.TIF 100U.JPG
This issue like my issue. I resolve after update imagemagick version
How to convert a TIFF to a JPG with ImageMagick
As fmw42 pointed out, 7.0.10-48 seems to have a bug (will try to find it in the issue tracker). Updating to 7.0.10-57 fixed the issue.
Related
I want to download a video from eventive but the tag contains a blob url (blob:https://watch.eventive.org/**************).
I have been reading some answers to similar questions but they all assume that the video has a mp3u8 file extension, which in my case doesn't.
I have also tried to directly download that url (removing the blob:) with curl, but I obtained a html code which I cant really understand, which contains a lot of references to javascript files.
Any tip would be really helpful.
Edit:
I have been doing some more tests and I have been able to found a url to a manifest file which points apparently to the video data. I have tried to open that url using VLC and it loads some info about the video, and it even plays it, but the screen is completely black.
I have also tried to download it using ffmpeg but it gives a bunch of errors.
ffmpeg -i https://eventiveprod-usea.streaming.media.azure.net/02968382-069a-4f02-ab3b-67c0b5a8d5b7/5f427f2d65a569006ebd326c.ism/manifest\(format\=mpd-time-csf\) output.mp4
ffmpeg output
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[h264 # 0x556c1e280bc0] top block unavailable for requested intra mode
[h264 # 0x556c1e280bc0] error while decoding MB 34 0, bytestream 41478
[h264 # 0x556c1e280bc0] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
[h264 # 0x556c1e2ce440] top block unavailable for requested intra mode -1
[h264 # 0x556c1e2ce440] error while decoding MB 34 0, bytestream 22093
[h264 # 0x556c1e2ce440] concealing 3600 DC, 3600 AC, 3600 MV errors in I frame
[h264 # 0x556c1e2f9f40] top block unavailable for requested intra mode -1
[h264 # 0x556c1e2f9f40] error while decoding MB 24 0, bytestream 15117
[h264 # 0x556c1e2f9f40] concealing 2040 DC, 2040 AC, 2040 MV errors in I frame
[h264 # 0x556c1e333bc0] top block unavailable for requested intra mode -1
[h264 # 0x556c1e333bc0] error while decoding MB 17 0, bytestream 8716
[h264 # 0x556c1e333bc0] concealing 920 DC, 920 AC, 920 MV errors in I frame
[aac # 0x556c1e3745c0] channel element 2.8 is not allocated
Input #0, dash, from 'https://eventiveprod-usea.streaming.media.azure.net/02968382-069a-4f02-ab3b-67c0b5a8d5b7/5f427f2d65a569006ebd326c.ism/manifest(format=mpd-time-csf)':
Duration: 00:21:18.00, start: 0.066000, bitrate: 0 kb/s
Program 0
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1317 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Metadata:
variant_bitrate : 1770930
id : 1_V_video_1
Stream #0:1: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 686 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Metadata:
variant_bitrate : 904295
id : 1_V_video_2
Stream #0:2: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 495 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Metadata:
variant_bitrate : 572685
id : 1_V_video_3
Stream #0:3: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 308 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Metadata:
variant_bitrate : 301036
id : 1_V_video_4
Stream #0:4(en): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
variant_bitrate : 127999
id : 5_A_aac_eng_2_127999
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:4 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[aac # 0x556c1e392dc0] channel element 2.8 is not allocated
Error while decoding stream #0:4: Invalid data found when processing input
[h264 # 0x556c1e3da900] top block unavailable for requested intra mode
[h264 # 0x556c1e3da900] error while decoding MB 34 0, bytestream 41478
[aac # 0x556c1e392dc0] Reserved bit set.
[aac # 0x556c1e392dc0] Number of bands (13) exceeds limit (11).
[h264 # 0x556c1e3da900] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
Error while decoding stream #0:4: Invalid data found when processing input
[aac # 0x556c1e392dc0] channel element 2.4 is not allocated
Error while decoding stream #0:4: Invalid data found when processing input
[aac # 0x556c1e392dc0] Multiple frames in a packet.
...
[libx264 # 0x5588338c2d00] frame I:1 Avg QP: 4.13 size: 421
[libx264 # 0x5588338c2d00] frame P:32 Avg QP:14.06 size: 1216
[libx264 # 0x5588338c2d00] frame B:96 Avg QP:20.52 size: 306
[libx264 # 0x5588338c2d00] consecutive B-frames: 0.8% 0.0% 0.0% 99.2%
[libx264 # 0x5588338c2d00] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 # 0x5588338c2d00] mb P I16..4: 0.6% 0.6% 0.0% P16..4: 9.4% 0.3% 0.3% 0.0% 0.0% skip:88.9%
[libx264 # 0x5588338c2d00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 3.7% 0.0% 0.0% direct: 0.0% skip:96.2% L0:53.5% L1:46.3% BI: 0.2%
[libx264 # 0x5588338c2d00] 8x8 transform intra:13.0% inter:86.8%
[libx264 # 0x5588338c2d00] coded y,uvDC,uvAC intra: 1.3% 0.8% 0.2% inter: 0.2% 0.2% 0.0%
[libx264 # 0x5588338c2d00] i16 v,h,dc,p: 98% 0% 2% 0%
[libx264 # 0x5588338c2d00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 2% 64% 0% 0% 0% 0% 0% 0%
[libx264 # 0x5588338c2d00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 18% 42% 3% 1% 1% 2% 2% 1%
[libx264 # 0x5588338c2d00] i8c dc,h,v,p: 99% 0% 0% 0%
[libx264 # 0x5588338c2d00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 # 0x5588338c2d00] ref P L0: 86.7% 1.2% 8.8% 3.3%
[libx264 # 0x5588338c2d00] ref B L0: 62.7% 35.4% 1.9%
[libx264 # 0x5588338c2d00] ref B L1: 96.1% 3.9%
[libx264 # 0x5588338c2d00] kb/s:127.70
Conversion failed!
I encoded a series of 16-bit grayscale PNGs to a lossless video with the following command:
ffmpeg -i image%04d.png -crf 0 -c:v libx264 -preset veryslow output.mp4
I am now trying to verify that the conversion to video was truly lossless by pulling out the PNGs at the same quality. The command I'm using:
ffmpeg -i output.mp4 image%04d.png
However, this is outputting 8-bit PNGs. I've tried various options I've read about such as -vcodec png and -qscale 0 but so far nothing appears to make it output 16-bit PNGs.
How do I extract all frames from the video at the same quality as they were going in? Or did I make a mistake in creating the lossless video in the first place?
Edit: I get this error message when trying to use -pix_fmt gray16be.
[swscaler # 0x7fef1a8f0800] deprecated pixel format used, make sure
you did set range correctly
Full output:
ffmpeg -i output.mp4 -pix_fmt gray16be image%04d.png
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.71.100
Duration: 00:00:09.76, start: 0.000000, bitrate: 1337 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc), 512x512, 1336 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
[swscaler # 0x7fef1a8f0800] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'image%04d.png':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.71.100
Stream #0:0(und): Video: png, gray16be, 512x512, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.89.100 png
frame= 244 fps=0.0 q=-0.0 Lsize=N/A time=00:00:09.76 bitrate=N/A speed= 21x
video:4038kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
I'm happy to use a non-ffmpeg solution if there is one.
Your lossless video is 8-bit, as that's what x264 has encoded to. And in any case, x264 does not go above 10-bit (for which you would need a standalone encoder, or a different ffmpeg binary).
-c:v ffv1 is lossless and can encode to 16-bit gray (gray16le) or 16-bit RGB (e.g. rgb48le)
That swscaler line is a warning, not an error. FFmpeg does report the output as 16-bit per channel,
Stream #0:0(und): Video: png, gray16be, 512x512 ...
but you've already lost fidelity with the downgrade of the bit depth when you encoded to H.264.
I'm unclear on what the pixel format of the input PNGs is - RGB with no hint of hue, or a monochannel encoding? I suspect the former, in which case, use
ffmpeg -i image%04d.png -c:v ffv1 output.nut
Then you can do a compare with
ffmpeg -i output.nut -i image%04d.png -filter_complex ssim -f null -
A readout of
SSIM R:1.000000 (inf) G:1.000000 (inf) B:1.000000 (inf) All:1.000000 (inf)
indicates full fidelity.
I need to compute the frame differences between a source video and a compressed one.
For now I'm using OpenCV with Java, by extracting each frame and doing a simple difference, but it's quite slow (working a 0.5 fps, meaning that a 500 frames video will take more than 15 mins) so I was thinking to move to FFMPEG.
FFMPEG feels a lot faster (everything's done under 1 minute) but it has one big issue that makes the results useless: when compressing the source file, done with FFMPEG too, an extra gray frame is added at the beginning and this fakes the results because different frames are compared.
This is what I'm doing now (knowing that the extra frame messes it all):
ffmpeg -y -i src.avi -i compressed.avi -filter_complex "blend=all_mode=difference,hue=s=0" -c:v libx264 -crf 18 -c:a copy difference.avi
To fix the frame issue I was trying to remove the first frame by re-encoding the compressed video with this command
ffmpeg -y -ss 0.02 -i compressed.mpg -an -f mpeg2video compressed-cut.mpg"
(Note that -ss is 0.02 because it's a 50 fps video, so I did 1/FPS as suggested here)
But I get this response
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
So, finally, the question is: since extracting all the frames and then compute differences with OpenCV is really slow, how can I use FFMPEG to produce a video containing the difference between two sources while keeping in mind that one of them has an extra frame at the beginning?
EDIT: I wanted to avoid posting endless console outputs but since you asked for it, here we go.
1) Encoding
Input
ffmpeg -i "720p50_mobcal_ter.avi" -an -f mpeg2video -y "720p50_mobcal_ter.mpg"
Output
ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, avi, from '720p50_mobcal_ter.avi':
Metadata:
encoder : Lavf57.14.100
Duration: 00:00:10.08, start: 0.000000, bitrate: 552974 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 554059 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 50 tbn, 50 tbc
Output #0, mpeg2video, to '720p50_mobcal_ter.mpg':
Metadata:
encoder : Lavf57.14.100
Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 fps, 50 tbn, 50 tbc
Metadata:
encoder : Lavc57.15.100 mpeg2video
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame= 41 fps=0.0 q=31.0 size= 984kB time=00:00:00.78 bitrate=10330.5kbits/frame= 80 fps= 78 q=31.0 size= 1323kB time=00:00:01.56 bitrate=6948.1kbits/frame= 124 fps= 80 q=31.0 size= 1725kB time=00:00:02.44 bitrate=5790.0kbits/frame= 168 fps= 81 q=31.0 size= 2084kB time=00:00:03.32 bitrate=5142.8kbits/frame= 212 fps= 81 q=31.0 size= 2482kB time=00:00:04.20 bitrate=4841.4kbits/frame= 255 fps= 82 q=31.0 size= 2840kB time=00:00:05.06 bitrate=4597.2kbits/frame= 296 fps= 82 q=31.0 size= 3133kB time=00:00:05.88 bitrate=4364.5kbits/frame= 338 fps= 82 q=24.8 size= 3453kB time=00:00:06.72 bitrate=4209.2kbits/frame= 382 fps= 82 q=31.0 size= 3723kB time=00:00:07.60 bitrate=4013.4kbits/frame= 426 fps= 83 q=31.0 size= 4005kB time=00:00:08.48 bitrate=3869.1kbits/frame= 470 fps= 83 q=24.8 size= 4276kB time=00:00:09.36 bitrate=3742.5kbits/frame= 504 fps= 83 q=31.0 Lsize= 4469kB time=00:00:10.06 bitrate=3639.3kbits/s
video:4469kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
This adds the extra grey frame at the beginning, it just duplicates the first one
2) Removing first frame
Input
ffmpeg -y -i "720p50_mobcal_ter.mpg" -an -f mpeg2video -vf select=gte(n\,1) "CUT-720p50_mobcal_ter.mpg"
Output
ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mpegvideo, from '720p50_mobcal_ter.mpg':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], max. 104857 kb/s, 50 fps, 50 tbr, 1200k tbn, 100 tbc
Output #0, mpeg2video, to 'CUT-720p50_mobcal_ter.mpg':
Metadata:
encoder : Lavf57.14.100
Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 fps, 50 tbn, 50 tbc
Metadata:
encoder : Lavc57.15.100 mpeg2video
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame= 255 fps=0.0 q=31.0 size= 2781kB time=00:00:05.10 bitrate=4467.3kbits/frame= 503 fps=0.0 q=31.0 Lsize= 4415kB time=00:00:10.08 bitrate=3588.5kbits/s
video:4415kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
3) Frame difference
Input
ffmpeg -y -i "720p50_mobcal_ter.avi" -i "CUT-720p50_mobcal_ter.mpg" -filter_complex "blend=all_mode=difference,hue=s=0" -c:v libx264 -crf 18 -c:a copy "DIFF-720p50_mobcal_ter.mpg"
Output
ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, avi, from '720p50_mobcal_ter.avi':
Metadata:
encoder : Lavf57.14.100
Duration: 00:00:10.08, start: 0.000000, bitrate: 552974 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 554059 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 50 tbn, 50 tbc
Input #1, mpegvideo, from 'CUT-720p50_mobcal_ter.mpg':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: mpeg2video (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], max. 104857 kb/s, 50 fps, 50 tbr, 1200k tbn, 100 tbc
[libx264 # 000002784dbeb980] using SAR=1/1
[libx264 # 000002784dbeb980] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 # 000002784dbeb980] profile High, level 3.2
[mpeg # 000002784dbeaf20] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'D:\DOWNLOADS\TMP\Video TDI\AVI\DIFF-720p50_mobcal_ter.mpg':
Metadata:
encoder : Lavf57.14.100
Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 50 fps, 90k tbn, 50 tbc (default)
Metadata:
encoder : Lavc57.15.100 libx264
Stream mapping:
Stream #0:0 (rawvideo) -> blend:top
Stream #1:0 (mpeg2video) -> blend:bottom
hue -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
frame= 504 fps= 39 q=-1.0 Lsize= 32182kB time=00:00:10.04 bitrate=26258.5kbits/s
video:32061kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.377054%
[libx264 # 000002784dbeb980] frame I:30 Avg QP:19.69 size:149974
[libx264 # 000002784dbeb980] frame P:299 Avg QP:23.28 size: 69423
[libx264 # 000002784dbeb980] frame B:175 Avg QP:24.48 size: 43280
[libx264 # 000002784dbeb980] consecutive B-frames: 30.6% 69.4% 0.0% 0.0%
[libx264 # 000002784dbeb980] mb I I16..4: 18.3% 51.4% 30.4%
[libx264 # 000002784dbeb980] mb P I16..4: 0.6% 5.6% 2.4% P16..4: 35.9% 22.9% 15.6% 0.0% 0.0% skip:17.0%
[libx264 # 000002784dbeb980] mb B I16..4: 0.2% 0.5% 0.3% B16..8: 49.5% 12.4% 5.6% direct:15.5% skip:16.1% L0:47.8% L1:42.1% BI:10.1%
[libx264 # 000002784dbeb980] 8x8 transform intra:57.5% inter:38.5%
[libx264 # 000002784dbeb980] coded y,uvDC,uvAC intra: 90.7% 0.0% 0.0% inter: 50.3% 0.0% 0.0%
[libx264 # 000002784dbeb980] i16 v,h,dc,p: 32% 23% 35% 10%
[libx264 # 000002784dbeb980] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 11% 41% 7% 5% 6% 5% 6% 8%
[libx264 # 000002784dbeb980] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 14% 23% 8% 7% 7% 7% 7% 8%
[libx264 # 000002784dbeb980] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 # 000002784dbeb980] Weighted P-Frames: Y:33.8% UV:0.0%
[libx264 # 000002784dbeb980] ref P L0: 58.1% 16.3% 14.2% 9.4% 2.0%
[libx264 # 000002784dbeb980] ref B L0: 79.3% 20.7%
[libx264 # 000002784dbeb980] kb/s:26056.02
The second command made everything work while the second one in the first part didn't (the one with the -ss option), so I could be quite happy about it but I'm not that sure if FFMPEG duplicates the first frame for every video or if it's just related to the one I'm using now, so it could be better to start off with a compressed video that has the same frame count of the original one.
So let's get to one final question: why does FFMPEG add a duplicated first frame at the beginning of the compressed video and how can I avoid that?
Encoding with
ffmpeg -i "720p50_mobcal_ter.avi" -c:v mpeg2video "720p50_mobcal_ter.mpg"
instead of
ffmpeg -i "720p50_mobcal_ter.avi" -an -f mpeg2video -y "720p50_mobcal_ter.mpg"
prevents the creation of the duplicate frame and makes everything work correctly.
How to read binary image file in julia?
imread(file) gives following error:
ERROR: type: Gray: in T, expected T<:Union(FixedPoint,FloatingPoint), got Type{Bool}
in imread at C:\Users\Harsh\.julia\v0.3\Images\src\io.jl:259
in imread at C:\Users\Harsh\.julia\v0.3\Images\src\io.jl:113
Output of versioinfo(true):
julia> versioninfo(true)
Julia Version 0.3.0
Commit 7681878 (2014-08-20 20:43 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-3632QM CPU # 2.20GHz
WORD_SIZE: 64
Microsoft Windows [Version 6.3.9600]
uname: MINGW32_NT-6.2 1.0.12(0.46/3/2) 2012-07-05 14:56 i686 unknown
Memory: 7.948513031005859 GB (4763.9375 MB free)
Uptime: 111087.5328943 sec
Load Avg: 0.0 0.0 0.0
Intel(R) Core(TM) i7-3632QM CPU # 2.20GHz:
speed user nice sys idle irq ticks
#1 2195 MHz 13078796 0 2444890 22142265 348375 ticks
#2 2195 MHz 10343718 0 1964375 25357578 165765 ticks
#3 2195 MHz 15137796 0 1628015 20899875 89390 ticks
#4 2195 MHz 15702750 0 1140187 20822718 73968 ticks
#5 2195 MHz 12287718 0 1952390 23425562 52781 ticks
#6 2195 MHz 9467671 0 1546562 26651421 49406 ticks
#7 2195 MHz 13431750 0 1668484 22565437 36375 ticks
#8 2195 MHz 12820796 0 1473484 23371359 30500 ticks
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Environment:
ANT_HOME = C:\PROGRA~1\APACHE~1.2
CUDA_BIN_PATH = C:\CUDA\bin64
CUDA_INC_PATH = C:\CUDA\include
CUDA_LIB_PATH = C:\CUDA\lib64
HOMEDRIVE = C:
HOMEPATH = \Users\Harsh
JAVA_HOME = C:\Progra~1\Java\jre6
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
Package Directory: C:\Users\Harsh\.julia\v0.3
3 required packages:
- DataFrames 0.5.7
- DecisionTree 0.3.4
- Images 0.4.10
14 additional packages:
- ArrayViews 0.4.6
- BinDeps 0.3.5
- Color 0.3.8
- DataArrays 0.2.1
- FixedPointNumbers 0.0.4
- GZip 0.2.13
- Reexport 0.0.1
- SHA 0.0.3
- SIUnits 0.0.2
- SortingAlgorithms 0.0.1
- StatsBase 0.6.5
- TexExtensions 0.0.2
- URIParser 0.0.2
- Zlib 0.1.7
file is this binary file:
Image Link
Original RGB image is this, (which has been processed to obtain the above file) This does not give error.:
This was a bug, thanks for reporting it. It should be fixed if you do a Pkg.update().
I'm trying to convert a video to be played in a tag in a WebView in iOS. I've tried the options at this link but it still doesn't seem to play. I've found videos that do successfully play, though, so I'm sure it's possible, I just can't seem to get any working. Here's the ffmpeg -i output for something that works.
Here's what I tried from the wiki:
ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipad.mp4
But the file doesn't play in the WebView.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.m4v':
Metadata:
major_brand : M4V
minor_version : 1
compatible_brands: M4V M4A mp42isom
creation_time : 2005-12-20 20:20:15
Duration: 00:01:25.50, start: 0.000000, bitrate: 209 kb/s
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 115 kb/s
Metadata:
creation_time : 2005-12-20 20:20:15
handler_name : Apple Sound Media Handler
Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240, 90 kb/s, 10 fps, 10 tbr, 1k tbn, 2k tbc
Metadata:
creation_time : 2005-12-20 20:20:15
handler_name : Apple Video Media Handler
And here's the output for my input file:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cheerfulness.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-07-31 00:47:22
Duration: 00:00:06.00, start: 0.000000, bitrate: 120849 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1200x1920, 120823 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
Metadata:
creation_time : 2013-07-31 00:48:33
handler_name : Apple Alias Data Handler
edit: Here's the full output of the command:
wlue:$ ffmpeg -i cheerfulness.mov -acodec aac -ac 2 -strict experimental -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 output.ipad.mp4
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 18 2013 18:44:15 with Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cheerfulness.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-07-31 00:47:22
Duration: 00:00:06.01, start: 0.000000, bitrate: 120849 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1200x1920, 120823 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
Metadata:
creation_time : 2013-07-31 00:48:33
handler_name : Apple Alias Data Handler
Please use -b:a or -b:v, -b is ambiguous
[libx264 # 0x7fa67401fa00] frame MB size (75x120) > level limit (1620)
[libx264 # 0x7fa67401fa00] DPB size (5 frames, 17280000 bytes) > level limit (0 frames, 3110400 bytes)
[libx264 # 0x7fa67401fa00] MB rate (269730) > level limit (40500)
[libx264 # 0x7fa67401fa00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 # 0x7fa67401fa00] profile Constrained Baseline, level 3.0
[libx264 # 0x7fa67401fa00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=abr mbtree=1 bitrate=1200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=10000 vbv_bufsize=10000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.ipad.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf54.63.104
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1200x1920, q=-1--1, 1200 kb/s, 30k tbn, 29.97 tbc
Metadata:
creation_time : 2013-07-31 00:48:33
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
frame= 180 fps= 16 q=-1.0 Lsize= 828kB time=00:00:06.00 bitrate=1129.2kbits/s
video:826kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.177851%
[libx264 # 0x7fa67401fa00] frame I:2 Avg QP:32.23 size: 20942
[libx264 # 0x7fa67401fa00] frame P:178 Avg QP:41.03 size: 4515
[libx264 # 0x7fa67401fa00] mb I I16..4: 90.1% 0.0% 9.9%
[libx264 # 0x7fa67401fa00] mb P I16..4: 6.8% 0.0% 0.0% P16..4: 16.8% 0.6% 0.2% 0.0% 0.0% skip:75.5%
[libx264 # 0x7fa67401fa00] final ratefactor: 37.56
[libx264 # 0x7fa67401fa00] coded y,uvDC,uvAC intra: 1.2% 16.4% 2.1% inter: 0.1% 3.4% 0.1%
[libx264 # 0x7fa67401fa00] i16 v,h,dc,p: 49% 23% 4% 24%
[libx264 # 0x7fa67401fa00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 8% 36% 8% 12% 9% 8% 4% 2%
[libx264 # 0x7fa67401fa00] i8c dc,h,v,p: 88% 6% 5% 1%
[libx264 # 0x7fa67401fa00] ref P L0: 47.7% 22.0% 16.7% 5.7% 7.9%
[libx264 # 0x7fa67401fa00] kb/s:1126.21