[FFmpeg-user] Brighten dark video before reducing size?
Gilles
codecomplete at free.fr
Mon Oct 6 12:33:20 CEST 2014
On Mon, 6 Oct 2014 09:51:51 +0000 (UTC), Carl Eugen Hoyos
<cehoyos at ag.or.at> wrote:
>Please never post command lines that contain variables,
>always post actual command lines that you tested
>including their complete, uncut console output.
>
>As far as I am concerned, using -vf filter1 -vf filter2
>is either undefined behaviour or not supported, the
>filter option does support multiple filters.
This does display the video like I'd like it to look:
ffplay -i input.mp4 -vf "lutyuv=y=val*1.3"
Next, I tried combining the two "vf" commands, but it didn't work:
==========================
c:\>ffmpeg -ss 00:05:00 -t 20 -i input.mp4 -vf lutyuv=y=val*1.3
scale=640:-1 -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4
output.mp4
ffmpeg version N-66595-g1c4c78e Copyright (c) 2000-2014 the FFmpeg
developers
built on Oct 3 2014 22:01:53 with gcc 4.9.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 54. 9.100 / 54. 9.100
libavcodec 56. 2.101 / 56. 2.101
libavformat 56. 7.104 / 56. 7.104
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 1.102 / 5. 1.102
libswscale 3. 1.100 / 3. 1.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 1.100 / 53. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.18.100
Duration: 00:27:31.04, start: 0.000000, bitrate: 1415 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720
[SAR 1:1 DAR 16:9], 1283 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
(default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 12
5 kb/s (default)
Metadata:
handler_name : SoundHandler
[NULL @ 0414d840] Unable to find a suitable output format for
'scale=640:-1'
scale=640:-1: Invalid argument
ffmpeg -ss 00:05:00 -t 20 -i input.mp4 -vf "lutyuv=y=val*1.3
scale=640:-1" -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4
output.mp4
==========================
c:\>ffmpeg -ss 00:05:00 -t 20 -i input.mp4 -vf "lutyuv=y=val*1.3
scale=640:-1" -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest -f mp4
output.mp4
ffmpeg version N-66595-g1c4c78e Copyright (c) 2000-2014 the FFmpeg
developers
built on Oct 3 2014 22:01:53 with gcc 4.9.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 54. 9.100 / 54. 9.100
libavcodec 56. 2.101 / 56. 2.101
libavformat 56. 7.104 / 56. 7.104
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 1.102 / 5. 1.102
libswscale 3. 1.100 / 3. 1.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 1.100 / 53. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.18.100
Duration: 00:27:31.04, start: 0.000000, bitrate: 1415 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720
[SAR 1:1 DAR 16:9], 1283 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
(default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 12
5 kb/s (default)
Metadata:
handler_name : SoundHandler
[Parsed_lutyuv_0 @ 04054f00] [Eval @ 0022af8c] Invalid chars
'scale=640' at the
end of expression 'val*1.3 scale=640'
[Parsed_lutyuv_0 @ 04054f00] Error when parsing the expression
'val*1.3 scale=64
0' for the component 0 and color 0.
[Parsed_lutyuv_0 @ 04054f00] Failed to configure input pad on
Parsed_lutyuv_0
Error opening filters!
More information about the ffmpeg-user
mailing list