• Welcome to PHPVIBE Forums. Please log in.

Video that I've uploaded needs to have that value in admin to upload

Started by spirog,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

spirogTopic starter

Video that I've uploaded needs to have that value in ADMIN>> FFPEG CONVERSION /moderator/?sk=ffmpeg (ie. 480-720-1080 etc) in  order to upload.

Should this be correct.

I tried uploading a .avi video and my settings were only 720.
it would not show up or play - only image displayed..
Then I added 480 720 and 1080 in Video qualities
Enabled qualities: and now it worked...

is this the way it works ??

here is ffmpeg conversion seems video is 480 and only did 480
ffmpeg version 2.8.6 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --enable-shared --enable-libmp3lame --disable-mmx --enable-gpl --enable-nonfree --enable-avfilter --enable-libxvid --enable-libx264 --enable-libfaac --enable-libtheora --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libvorbis --enable-pthreads --disable-runtime-cpudetect --disable-postproc --enable-libfdk-aac
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/greekvideos/public_html/rawmedia/3a1337b639eceab619c3fa3deff8473d.avi':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1mp42
creation_time : 2015-11-25 02:34:00
Duration: 00:02:28.74, start: 0.000000, bitrate: 693 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 564 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2015-11-25 02:33:30
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 126 kb/s (default)
Metadata:
creation_time : 2015-11-25 02:33:30
[libx264 @ 0xb817f0] using SAR=1/1
[libx264 @ 0xb817f0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0xb817f0] profile High, level 3.0
[libx264 @ 0xb817f0] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 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=2 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=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=28.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/greekvideos/public_html/media/3a1337b639eceab619c3fa3deff8473d-480.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1mp42
encoder : Lavf56.40.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
Metadata:
creation_time : 2015-11-25 02:33:30
encoder : Lavc56.60.100 libx264
Stream #0:1(und): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s (default)
Metadata:
creation_time : 2015-11-25 02:33:30
encoder : Lavc56.60.100 libfaac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
Press [q] to stop, [?] for help
frame= 114 fps=0.0 q=33.0 size= 232kB time=00:00:04.86 bitrate= 391.2kbits/s frame= 187 fps=185 q=33.0 size= 477kB time=00:00:08.25 bitrate= 473.0kbits/s frame= 259 fps=171 q=33.0 size= 757kB time=00:00:11.45 bitrate= 541.3kbits/s frame= 367 fps=182 q=33.0 size= 960kB time=00:00:15.89 bitrate= 494.8kbits/s frame= 476 fps=189 q=33.0 size= 1226kB time=00:00:20.18 bitrate= 497.5kbits/s frame= 598 fps=199 q=33.0 size= 1414kB time=00:00:25.68 bitrate= 451.1kbits/s frame= 724 fps=206 q=33.0 size= 1601kB time=00:00:30.72 bitrate= 427.0kbits/s frame= 804 fps=200 q=33.0 size= 1831kB time=00:00:33.94 bitrate= 441.9kbits/s frame= 931 fps=206 q=33.0 size= 2041kB time=00:00:39.44 bitrate= 423.8kbits/s frame= 1052 fps=209 q=33.0 size= 2241kB time=00:00:44.50 bitrate= 412.5kbits/s frame= 1192 fps=216 q=33.0 size= 2432kB time=00:00:50.00 bitrate= 398.5kbits/s frame= 1328 fps=220 q=33.0 size= 2586kB time=00:00:55.95 bitrate= 378.6kbits/s frame= 1465 fps=224 q=33.0 size= 2763kB time=00:01:01.46 bitrate= 368.3kbits/s frame= 1599 fps=227 q=33.0 size= 2953kB time=00:01:07.28 bitrate= 359.5kbits/s frame= 1740 fps=231 q=33.0 size= 3118kB time=00:01:12.93 bitrate= 350.2kbits/s frame= 1876 fps=234 q=33.0 size= 3275kB time=00:01:18.89 bitrate= 340.1kbits/s frame= 2017 fps=236 q=33.0 size= 3436kB time=00:01:24.43 bitrate= 333.4kbits/s frame= 2156 fps=239 q=33.0 size= 3615kB time=00:01:30.36 bitrate= 327.7kbits/s frame= 2295 fps=241 q=33.0 size= 3769kB time=00:01:36.34 bitrate= 320.5kbits/s frame= 2413 fps=240 q=33.0 size= 3950kB time=00:01:40.94 bitrate= 320.6kbits/s frame= 2538 fps=241 q=33.0 size= 4106kB time=00:01:46.43 bitrate= 316.1kbits/s frame= 2661 fps=241 q=33.0 size= 4305kB time=00:01:51.46 bitrate= 316.4kbits/s frame= 2809 fps=243 q=33.0 size= 4434kB time=00:01:57.73 bitrate= 308.5kbits/s frame= 2946 fps=244 q=33.0 size= 4625kB time=00:02:03.41 bitrate= 307.0kbits/s frame= 3074 fps=245 q=33.0 size= 4832kB time=00:02:08.91 bitrate= 307.1kbits/s frame= 3216 fps=246 q=33.0 size= 5000kB time=00:02:14.67 bitrate= 304.2kbits/s frame= 3353 fps=247 q=33.0 size= 5191kB time=00:02:20.37 bitrate= 303.0kbits/s frame= 3473 fps=247 q=33.0 size= 5404kB time=00:02:25.42 bitrate= 304.4kbits/s [mp4 @ 0xc43e90] Starting second pass: moving the moov atom to the beginning of the file
frame= 3565 fps=249 q=-1.0 Lsize= 5568kB time=00:02:28.73 bitrate= 306.7kbits/s
video:3167kB audio:2301kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.830346%
[libx264 @ 0xb817f0] frame I:47 Avg QP:20.86 size: 17370
[libx264 @ 0xb817f0] frame P:1175 Avg QP:26.71 size: 1647
[libx264 @ 0xb817f0] frame B:2343 Avg QP:26.99 size: 209
[libx264 @ 0xb817f0] consecutive B-frames: 10.9% 2.5% 5.6% 81.0%
[libx264 @ 0xb817f0] mb I I16..4: 44.1% 24.0% 31.9%
[libx264 @ 0xb817f0] mb P I16..4: 2.8% 1.8% 0.2% P16..4: 10.7% 5.0% 2.1% 0.0% 0.0% skip:77.3%
[libx264 @ 0xb817f0] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 2.0% 0.8% 0.1% direct: 0.3% skip:96.7% L0:37.7% L1:46.5% BI:15.9%
[libx264 @ 0xb817f0] 8x8 transform intra:31.9% inter:29.1%
[libx264 @ 0xb817f0] coded y,uvDC,uvAC intra: 36.4% 37.8% 14.1% inter: 1.3% 1.7% 0.1%
[libx264 @ 0xb817f0] i16 v,h,dc,p: 52% 30% 13% 5%
[libx264 @ 0xb817f0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 35% 20% 3% 3% 3% 4% 3% 5%
[libx264 @ 0xb817f0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 25% 13% 6% 7% 7% 7% 6% 6%
[libx264 @ 0xb817f0] i8c dc,h,v,p: 54% 28% 14% 4%
[libx264 @ 0xb817f0] Weighted P-Frames: Y:2.7% UV:1.8%
[libx264 @ 0xb817f0] kb/s:174.44


if video is quality 240 do we need to have 240 active in settings so it will upload ? and  is it suppose to encode anything above 240  so it should update that to 240 360 480 720 1080 etc ??

or is it the reverse 1080 video quality will encode backwards need 1080 in settings and then 720 480 360 240 etc will downgrade video to that ??

right now i have 480 - 720 - 1080 in settings but did not encode anything other than 480 for the video above


i did not try just 480 720 by itself or 360 480 by itself

Is this working correctly ?


Thanks

Spiro
  •  

spirogTopic starter

More on FFMPEG here >> http://www.phpvibe.com/forum/231/dealing-with-ffmpeg-on-v5/

also found this video helpful easy understanding of FFMPEG for videos audios simple settings >> https://www.youtube.com/watch?v=MPV7JXTWPWI
  •  

spirogTopic starter

Quote from: spirog on
More on FFMPEG here >> http://www.phpvibe.com/forum/231/dealing-with-ffmpeg-on-v5/

also found this video helpful easy understanding of FFMPEG for videos audios simple settings >> https://www.youtube.com/watch?v=MPV7JXTWPWI

For   avi:      ffmpeg -i <input-name> -q <quality> <output>
For mp4:      ffmpeg -i <input-name> -crf <quality> <output>

@Mario ---  Can we have both someone uploads a mp4 or avi
ffmpeg -i <input-name> -q <quality> -crf <quality> <output>

just an easy example ??

thanks for your respone in advance

Spiro
  •  

spirogTopic starter

I now have 360 480 720 seems to work good....

we need to add lowest number, first. i think 360 should be good start then 480 and if you want to go more then add 720 also and more add 1080.

start with 360 480 upload a video see if your happy. then if you have server you can try to add 720 see what happens then add 1080 and see ---- its up to you. but I know we need to add lowest number first because if quality (size) is more than the number you have to start then it wont upload anything   good luck trying :)
  •  

Marius P.

Make sure you've also applied the patch I did for video qualities.
The only limit is that it won't scale up. It won't convert a 240p video to 720p (cause it will be unwatchable anyways), so have a fail safe small sd.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)