[FFmpeg-user] force/replace colors of waveform (showwaves)? (and 60fps at 720p)?
DopeLabs
dopelabs at dubstep.fm
Sun Apr 20 12:54:41 CEST 2014
working command im using is below, generates a nice output like
http://dsfm.tv/images/showwaves.png
white and grey seem to be the 2 colors generated for the waveform.
is there any way to change these colors?
-----------------------
also... when -r 60 is specified before -filter_complex, the output is 60 fps, but showwaves still only outputs at 34fps (@720p)(even if r=60 is specified in the filter_complex), but if i change to showwaves=s=720x405, showwaves outputs a proper 60fps...
not sure at what point showwaves decides to not try for 60fps anymore, but id like to avoid generating a smaller sized true 60fps file, and then scaling the rest of the way to reach my target of 720p... any ideas?
-----------------------
console stuffs:
ffmpeg -i http://domiain.com:8000 -filter_complex showwaves=s=1280x720:mode=line -c:v libx264 -preset superfast -b:v 4096k -pix_fmt yuv420p -c:a aac -strict -2 -b:a 256k -f mp4 outies.mp4
user at BCD2:/# ffmpeg -i http://domain.com:8000 -filter_complex showwaves=s=1280x720:mode=line -c:v libx264 -preset superfast -b:v 4096k -pix_fmt yuv420p -c:a aac -strict -2 -b:a 256k -f mp4 outies.mp4
ffmpeg version N-61744-g0dd4eff Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 23 2014 19:59:06 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg --docdir=/usr/local/share/doc/ffmpeg --libdir=/usr/local/lib --shlibdir=/usr/local/lib --incdir=/usr/local/include --mandir=/usr/local/share/man --enable-version3 --enable-x11grab --enable-opengl --enable-opencl --enable-openal --enable-libxvid --enable-libx264 --enable-libwavpack --enable-libvpx --enable-libvorbis --enable-libvo-aacenc --enable-libtheora --enable-libssh --enable-librtmp --enable-libopenjpeg --enable-libmp3lame --enable-libfdk-aac --enable-libfaac --enable-libass --enable-vda --enable-avresample --enable-nonfree --enable-gpl
libavutil 52. 67.100 / 52. 67.100
libavcodec 55. 52.103 / 55. 52.103
libavformat 55. 34.101 / 55. 34.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libavresample 1. 2. 0 / 1. 2. 0
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[mp3 @ 0x20d8a40] Header missing
Input #0, mp3, from 'http://domain.com:8000':
Duration: N/A, start: 0.000000, bitrate: 256 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
[libx264 @ 0x20e5a80] using SAR=1/1
[libx264 @ 0x20e5a80] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x20e5a80] profile High, level 3.2
[libx264 @ 0x20e5a80] 264 - core 123 r2189 35cf912 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=abr mbtree=0 bitrate=4096 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, mp4, to 'outies.mp4':
Metadata:
encoder : Lavf55.34.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 4096 kb/s, 17640 tbn, 34.45 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 256 kb/s
Stream mapping:
Stream #0:0 (mp3) -> showwaves (graph 0)
showwaves (graph 0) -> Stream #0:0 (libx264)
Stream #0:0 -> #0:1 (mp3 -> aac)
Press [q] to stop, [?] for help
[mp3 @ 0x20d8a40] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
frame= 605 fps= 63 q=-1.0 Lsize= 8297kB time=00:00:17.60 bitrate=3861.3kbits/s
video:7728kB audio:554kB subtitle:0 data:0 global headers:0kB muxing overhead 0.191773%
[libx264 @ 0x20e5a80] frame I:13 Avg QP:17.73 size: 15171
[libx264 @ 0x20e5a80] frame P:532 Avg QP:24.46 size: 13691
[libx264 @ 0x20e5a80] frame B:60 Avg QP:23.98 size: 7201
[libx264 @ 0x20e5a80] consecutive B-frames: 80.2% 19.8% 0.0% 0.0%
[libx264 @ 0x20e5a80] mb I I16..4: 89.2% 0.3% 10.4%
[libx264 @ 0x20e5a80] mb P I16..4: 9.4% 0.1% 5.6% P16..4: 3.7% 0.0% 0.0% 0.0% 0.0% skip:81.1%
[libx264 @ 0x20e5a80] mb B I16..4: 0.4% 0.0% 0.5% B16..8: 4.7% 0.0% 0.0% direct: 0.2% skip:94.1% L0:46.2% L1:48.6% BI: 5.2%
[libx264 @ 0x20e5a80] final ratefactor: 21.61
[libx264 @ 0x20e5a80] 8x8 transform intra:0.9% inter:9.5%
[libx264 @ 0x20e5a80] coded y,uvDC,uvAC intra: 27.2% 0.0% 0.0% inter: 2.8% 0.0% 0.0%
[libx264 @ 0x20e5a80] i16 v,h,dc,p: 88% 11% 1% 0%
[libx264 @ 0x20e5a80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 13% 27% 9% 3% 4% 2% 2% 17%
[libx264 @ 0x20e5a80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 68% 8% 13% 2% 1% 3% 1% 3% 2%
[libx264 @ 0x20e5a80] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x20e5a80] Weighted P-Frames: Y:0.4% UV:0.0%
[libx264 @ 0x20e5a80] kb/s:3604.90
More information about the ffmpeg-user
mailing list