phpvideotoolkit-v2
phpvideotoolkit-v2 copied to clipboard
please use XXX ambiguous warning
It seems that there are a few messages about -qscale/-profile/-b etc being ambiguous and use separate audio/video versions? Should the library be updated to correct these issues?
Can you post the exact warnings here please, as well as your ffmpeg version number. As there are so many different version of ffmpeg floating out there it's quite hard to keep track of all the messages.
I have checked the latest ffmpeg source on GitHub and they still have the deprecated message there. I am on ffmpeg 2.1, I know that you say you have written to 1.2 but would it not be possible to check early on in the library what version of ffmpeg is being used then switch param as required.
[root@cron-server2 console]# /tmp/ffmpeg '-i' '/tmp/input.mov' '-vf' 'movie=/tmp/logo_clean.png [wm]; [in]scale=trunc((oh*a)/2)*2:480[scale]; [scale][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]' '-y' '-progress' '/tmp/phpvideotoolkit_progress_1Bsfzt' '-qscale' '4' '-f' 'mp4' '-strict' 'experimental' '-threads' '3' '-acodec' 'aac' '-ab' '128k' '-ar' '44100' '-vcodec' 'h264' '-s' '854x480' '-aspect' '16:9' '-b:v' '500k' '-preset' 'medium' '-tune' 'film' '/tmp/output.mp4'
ffmpeg version N-60161-g5554c6d Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 25 2014 05:43:05 with gcc 4.6 (Debian 4.6.3-1)
configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
libavutil 52. 63.100 / 52. 63.100
libavcodec 55. 49.100 / 55. 49.100
libavformat 55. 26.100 / 55. 26.100
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 1.100 / 4. 1.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/input.mov':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt niko
creation_time : 2013-11-01 14:41:24
Duration: 00:00:27.43, start: 0.000000, bitrate: 22890 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080 [SAR 1:1 DAR 16:9], 21278 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2013-11-01 14:41:24
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2013-11-01 14:41:24
Please use -q:a or -q:v, -qscale is ambiguous
[swscaler @ 0x3fedc20] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x4011b40] using SAR=1280/1281
[libx264 @ 0x4011b40] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
[libx264 @ 0x4011b40] profile High, level 3.1
[libx264 @ 0x4011b40] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:-1:-1 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=3 lookahead_threads=1 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/output.mp4':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt niko
encoder : Lavf55.26.100
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=-1--1, 500 kb/s, 30k tbn, 29.97 tbc (default)
Metadata:
creation_time : 2013-11-01 14:41:24
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2013-11-01 14:41:24
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> aac)
Press [q] to stop, [?] for help
frame= 69 fps= 33 q=-1.0 Lsize= 157kB time=00:00:02.23 bitrate= 574.3kbits/s
video:121kB audio:32kB subtitle:0 global headers:0kB muxing overhead 2.296513%
[libx264 @ 0x4011b40] frame I:1 Avg QP:33.37 size: 15101
[libx264 @ 0x4011b40] frame P:33 Avg QP:34.68 size: 2525
[libx264 @ 0x4011b40] frame B:35 Avg QP:40.18 size: 722
[libx264 @ 0x4011b40] consecutive B-frames: 2.9% 84.1% 13.0% 0.0%
[libx264 @ 0x4011b40] mb I I16..4: 14.0% 60.1% 26.0%
[libx264 @ 0x4011b40] mb P I16..4: 0.5% 1.6% 0.2% P16..4: 28.5% 5.8% 2.7% 0.0% 0.0% skip:60.7%
[libx264 @ 0x4011b40] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 30.6% 1.3% 0.1% direct: 0.3% skip:67.6% L0:31.4% L1:67.2% BI: 1.4%
[libx264 @ 0x4011b40] final ratefactor: 30.48
[libx264 @ 0x4011b40] 8x8 transform intra:64.0% inter:79.7%
[libx264 @ 0x4011b40] coded y,uvDC,uvAC intra: 51.2% 65.9% 33.0% inter: 3.8% 5.1% 0.4%
[libx264 @ 0x4011b40] i16 v,h,dc,p: 41% 21% 9% 29%
[libx264 @ 0x4011b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 17% 21% 6% 5% 5% 6% 6% 12%
[libx264 @ 0x4011b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 24% 15% 4% 4% 6% 4% 4% 4%
[libx264 @ 0x4011b40] i8c dc,h,v,p: 52% 17% 25% 6%
[libx264 @ 0x4011b40] Weighted P-Frames: Y:12.1% UV:0.0%
[libx264 @ 0x4011b40] ref P L0: 65.7% 18.2% 10.8% 4.8% 0.5%
[libx264 @ 0x4011b40] ref B L0: 87.2% 12.7% 0.1%
[libx264 @ 0x4011b40] ref B L1: 99.8% 0.2%
[libx264 @ 0x4011b40] kb/s:429.77
Received signal 2: terminating.
Ive noticed an old pull request https://github.com/buggedcom/phpvideotoolkit-v2/pull/5 asking this to be changed to -qscale from -q, back then really they should have put -q:v
When I have some time I will look at doing this based on your suggestion of switching around the version number.
I'm creating a new branch called feature/stream-specifiers that will attempt to add in stream specifier functionality.