Am 11.03.19 um 20:14 schrieb Carl Eugen Hoyos: > 2019-03-11 20:05 GMT+01:00, Ulf Zibis <[email protected]>: >> Am 09.03.19 um 10:58 schrieb Carl Eugen Hoyos: >>> 2019-03-09 10:44 GMT+01:00, Ulf Zibis <[email protected]>: >>>> Which format should I use with option -f ? >>> You should never need the option -f (except when reading >>> raw g.729 and similar rare raw formats), what did you try? >> When I use >> $ ffmpeg -i 16.jpg -vf fillborders=25:25:25:25:mirror 16_mirror-25.jpg >> then the output is 8-bit rgb. > This seems unlikely as our "jpg" encoder does not support > encoding rgb. Oops, I partly was in error. But the output is 8-bit instead 16-bit and yuv instead y.
What I have to do, if I want the same format for the output, as it is for the input? $ ./ffmpeg -i debug/16.jpg -vf fillborders=25:25:25:25:mirror debug/16_mirror-25.jpg ffmpeg version N-93301-gf95aee2b72 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.103 / 58. 47.103 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 Input #0, image2, from 'debug/16.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 103852 kb/s Stream #0:0: Video: mjpeg (Lossless), gray16le(bt470bg/unknown/unknown), 640x480 [SAR 96:96 DAR 4:3], lossless, 25 tbr, 25 tbn, 25 tbc File 'debug/16_mirror-25.jpg' already exists. Overwrite ? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native)) Press [q] to stop, [?] for help [swscaler @ 0x555de22ba600] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to 'debug/16_mirror-25.jpg': Metadata: encoder : Lavf58.26.101 Stream #0:0: Video: mjpeg, yuvj444p(pc), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.47.103 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1 frame= 1 fps=0.0 q=6.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.448x video:33kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown $ mediainfo debug/16.jpg General Complete name : debug/16.jpg Format : JPEG File size : 507 KiB Image Format : JPEG Width : 640 pixels Height : 480 pixels Color space : Y Bit depth : 16 bits Compression mode : Lossy Stream size : 507 KiB (100%) $ mediainfo debug/16_mirror-25.jpg General Complete name : debug/16_mirror-25.jpg Format : JPEG File size : 33.5 KiB Image Format : JPEG Width : 640 pixels Height : 480 pixels Color space : YUV Bit depth : 8 bits Compression mode : Lossy Stream size : 33.5 KiB (100%) -Ulf _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
