Recherche avancée

Médias (91)

Autres articles (103)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (8354)

  • FFMPEG:merging Image and Audio duration getting increased [migrated]

    21 juin 2016, par Saikat Dey

    I am trying to create a video using a still image(.png) with audio(.wav) file using FFMPEG with video duration equal to audio duration but even keeping ’-shortest’ & ’-loop 1’ as flag, pegstill video duration is always 2 seconds more than audio duration.

    This is causing problem because, after the video creation i am merging several videos together to create a final video. Now what is happening is that in that 2 seconds extra time, the next video’s audio comes which is causing video-audio unsync. Even if I delay the audio stream, there is a blank sound while transition from one video to another.

    So i wanted to ask why there is extra 2 seconds and how can i remove it.
    My ffmpeg command :

    ffmpeg -loop 1 -i imgPath -i audioPath -c:v libx264 -c:a aac -strict experimental -pix_fmt yuv420p -vf resolution -b:a 192k -shortest videoPath

    Console Output :

    ffmpeg version N-78598-g98a0053 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 5.3.0 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
    libavutil      55. 18.100 / 55. 18.100
    libavcodec     57. 24.103 / 57. 24.103
    libavformat    57. 25.101 / 57. 25.101
    libavdevice    57.  0.101 / 57.  0.101
    libavfilter     6. 34.100 /  6. 34.100
    libswscale      4.  0.100 /  4.  0.100
    libswresample   2.  0.101 /  2.  0.101
    libpostproc    54.  0.100 / 54.  0.100
    Input #0, png_pipe, from 'image.png':
    Duration: N/A, bitrate: N/A
     Stream #0:0: Video: png, rgb24(pc), 1058x794 [SAR 3779:3781 DAR 621141:466396], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Guessed Channel Layout for  Input Stream #1.0 : stereo
    Input #1, wav, from 'audio.wav':
    Duration: 00:00:15.25, bitrate: 1411 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    [libx264 @ 0068f820] using SAR=2587/2590
    [libx264 @ 0068f820] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0068f820] profile High, level 3.1
    [libx264 @ 0068f820] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'video.mp4':
    Metadata:
    encoder         : Lavf57.25.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 800x600 [SAR 5997273:6004228 DAR 621141:466396], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
     encoder         : Lavc57.24.103 libx264
    Side data:
     cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 192 kb/s
    Metadata:
     encoder         : Lavc57.24.103 aac
    Stream mapping:
    Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame=   47 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   66 fps= 66 q=28.0 size=      16kB time=00:00:00.56 bitrate= 234.8kbits/s speed=0.559x    
    frame=   91 fps= 60 q=28.0 size=      40kB time=00:00:01.56 bitrate= 211.2kbits/s speed=1.04x    
    frame=  123 fps= 61 q=28.0 size=      72kB time=00:00:02.84 bitrate= 206.6kbits/s speed=1.41x    
    frame=  160 fps= 64 q=28.0 size=     108kB time=00:00:04.32 bitrate= 203.9kbits/s speed=1.72x    
    frame=  197 fps= 65 q=28.0 size=     143kB time=00:00:05.80 bitrate= 201.8kbits/s speed=1.92x    
    frame=  231 fps= 66 q=28.0 size=     176kB time=00:00:07.16 bitrate= 201.3kbits/s speed=2.03x    
    frame=  270 fps= 67 q=28.0 size=     214kB time=00:00:08.72 bitrate= 200.6kbits/s speed=2.17x    
    frame=  307 fps= 68 q=28.0 size=     252kB time=00:00:10.20 bitrate= 202.6kbits/s speed=2.25x    
    frame=  343 fps= 68 q=28.0 size=     286kB time=00:00:11.64 bitrate= 201.6kbits/s speed=2.31x    
    frame=  380 fps= 69 q=28.0 size=     323kB time=00:00:13.12 bitrate= 201.6kbits/s speed=2.37x    
    frame=  416 fps= 69 q=28.0 size=     357kB time=00:00:14.56 bitrate= 200.9kbits/s speed=2.41x    
    frame=  433 fps= 68 q=-1.0 Lsize=     391kB time=00:00:17.24 bitrate= 185.6kbits/s speed= 2.7x    
    video:18kB audio:358kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.837568%
    [libx264 @ 0068f820] frame I:2     Avg QP: 7.83  size:  2710
    [libx264 @ 0068f820] frame P:109   Avg QP: 9.51  size:    35
    [libx264 @ 0068f820] frame B:322   Avg QP:12.67  size:    27
    [libx264 @ 0068f820] consecutive B-frames:  0.7%  0.5%  0.0% 98.8%
    [libx264 @ 0068f820] mb I  I16..4: 97.9%  0.1%  2.1%
    [libx264 @ 0068f820] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
    [libx264 @ 0068f820] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:65.9% L1:34.1% BI: 0.0%
    [libx264 @ 0068f820] 8x8 transform intra:0.1% inter:28.6%
    [libx264 @ 0068f820] coded y,uvDC,uvAC intra: 1.6% 2.1% 2.1% inter: 0.0% 0.0% 0.0%
    [libx264 @ 0068f820] i16 v,h,dc,p: 97%  0%  3%  0%
    [libx264 @ 0068f820] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50%  0% 50%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0068f820] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 18% 19%  3%  6%  4%  6%  2%  5%
    [libx264 @ 0068f820] i8c dc,h,v,p: 98%  1%  1%  0%
    [libx264 @ 0068f820] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0068f820] ref P L0: 70.5% 11.4%  9.1%  9.1%
    [libx264 @ 0068f820] ref B L0: 50.2% 49.8%
    [libx264 @ 0068f820] ref B L1: 99.2%  0.8%
    [libx264 @ 0068f820] kb/s:8.23
    [aac @ 0067e4c0] Qavg: 439.702

    You can see here that my audio.wav Duration : 00:00:15.25, but output video.mp4 is 00:00:17.24.

  • ffmpeg overlay timing issue

    22 avril 2020, par Mario Iannotta

    I'm trying to add a png as overlay to a mov video with ffmpeg (version 4.2.2) using the following command :

    



    ffmpeg -i ./input.mov -i ./overlay.png -y -filter_complex "overlay=enable='between(t,1,4)'" ./output.mp4

    



    Now my understanding of overlay=enable='between(t,1,4) is that the overlay will be added at one second and will be removed at 4 seconds since the begin of the video but the output is somehow different.

    



    The overlay is added at roughly 2:66 and it is removed at 5:14.

    



    Trying with different values result in even more confusing outputs.

    



    eg :

    



      

    • between(t,3,10) —> 3:12 | 11:05

    • 


    • between(t,2,7) —> 2:65 | 7:22

    • 


    • between(t,1,2) —> the overlay is not added ad all

    • 


    



    The metadata of the input video are the following

    



      Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    creation_time   : 2020-04-19T08:09:00.000000Z
  Duration: 00:00:14.84, start: 0.053333, bitrate: 849 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt709/unknown), 828x1792 [SAR 1:1 DAR 207:448], 848 kb/s, 23.34 fps, 600 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      creation_time   : 2020-04-19T08:09:00.000000Z
      handler_name    : Core Media Video
      encoder         : H.264


    



    I also tried to convert the video to mp4 (with ffmpeg -i input.mov -vcodec copy -acodec copy out.mp4) before applying the overlay but the issue is still there.

    



    Edit : I downloaded a test mp4 video and the command is working as expected so it is definitely something wrong with my input video. Any idea what it is ?

    



    Edit 2 : Here's the output of ffmpeg command :

    



    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './input.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    creation_time   : 2020-04-22T07:49:31.000000Z
  Duration: 00:00:17.80, start: 0.051667, bitrate: 1097 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/unknown/unknown), 750x1334 [SAR 1:1 DAR 375:667], 1097 kb/s, 12.96 fps, 60 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      creation_time   : 2020-04-22T07:49:31.000000Z
      handler_name    : Core Media Video
      encoder         : H.264
Input #1, png_pipe, from './overlay.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 83x128, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (h264) -> overlay:main
  Stream #1:0 (png) -> overlay:overlay
  overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 0x7fcad0001200] using SAR=1/1
[libx264 @ 0x7fcad0001200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fcad0001200] profile High, level 4.0
[libx264 @ 0x7fcad0001200] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to './output.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    encoder         : Lavf58.29.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 750x1334 [SAR 1:1 DAR 375:667], q=-1--1, 60 fps, 15360 tbn, 60 tbc (default)
    Metadata:
      encoder         : Lavc58.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=  326 fps=0.0 q=31.0 size=       0kB time=00:00:04.35 bitrate=   0.1kbits/frame=  499 fps=461 q=31.0 size=     256kB time=00:00:07.23 bitrate= 290.0kbits/frame=  830 fps=494 q=31.0 size=     512kB time=00:00:12.75 bitrate= 329.0kbits/frame=  956 fps=491 q=-1.0 Lsize=     593kB time=00:00:15.88 bitrate= 306.0kbits/s dup=726 drop=0 speed=8.16x
video:581kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.030694%
[libx264 @ 0x7fcad0001200] frame I:6     Avg QP:18.73  size: 30783
[libx264 @ 0x7fcad0001200] frame P:288   Avg QP:21.57  size:  1150
[libx264 @ 0x7fcad0001200] frame B:662   Avg QP:30.94  size:   119
[libx264 @ 0x7fcad0001200] consecutive B-frames:  4.9%  6.9%  4.1% 84.1%
[libx264 @ 0x7fcad0001200] mb I  I16..4: 19.1% 64.5% 16.4%
[libx264 @ 0x7fcad0001200] mb P  I16..4:  0.8%  0.9%  0.5%  P16..4:  2.4%  0.4%  0.1%  0.0%  0.0%    skip:94.9%
[libx264 @ 0x7fcad0001200] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8:  1.8%  0.0%  0.0%  direct: 0.0%  skip:98.0%  L0:43.8% L1:55.9% BI: 0.3%
[libx264 @ 0x7fcad0001200] 8x8 transform intra:53.9% inter:64.1%
[libx264 @ 0x7fcad0001200] coded y,uvDC,uvAC intra: 18.2% 20.8% 13.9% inter: 0.1% 0.4% 0.1%
[libx264 @ 0x7fcad0001200] i16 v,h,dc,p: 35% 63%  1%  1%
[libx264 @ 0x7fcad0001200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 17% 29%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x7fcad0001200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 32% 15%  3%  4%  4%  3%  3%  3%
[libx264 @ 0x7fcad0001200] i8c dc,h,v,p: 71% 21%  7%  1%
[libx264 @ 0x7fcad0001200] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fcad0001200] ref P L0: 74.6%  4.0% 13.4%  8.0%
[libx264 @ 0x7fcad0001200] ref B L0: 80.0% 17.6%  2.3%
[libx264 @ 0x7fcad0001200] ref B L1: 97.6%  2.4%
[libx264 @ 0x7fcad0001200] kb/s:298.58


    


  • Video cropping with FFMpeg on Android is very slow [duplicate]

    7 avril 2017, par Rami Jemli

    This question already has an answer here :

    What i tried :

    I am trying to implement video cropping on android using FFMpeg (ffmpeg-android).

    Here is the command I use :

    String[] complexCommand = {"-i", inputPath, "-strict", "experimental", "-vf", "crop=1080:1080:0:0", "-threads", "5", "-c:v", "libx264", "-preset", "ultrafast", filePath};

    The problem :

    Video cropping is working, but even though I am using all needed options to make the operation fast, it still takes a 1min long video the same duration to crop.

    How can I achieve better speeds ?
    Will I need to implement video cropping on server instead of device ?
    Is there another way to implement video cropping on Android instead of FFMpeg ?

    I understand that I can achieve better UX by letting the user edit a cropped TextureView/SurfaceView while doing the actual cropping in background, but I want to avoid this way as it takes more time.

    UPDATE

    Here is FFMpeg’s log output :

    SUCCESS with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
       built with gcc 4.8 (GCC)
       configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
       libavutil      55. 17.103 / 55. 17.103
       libavcodec     57. 24.102 / 57. 24.102
       libavformat    57. 25.100 / 57. 25.100
       libavdevice    57.  0.101 / 57.  0.101
       libavfilter     6. 31.100 /  6. 31.100
       libswscale      4.  0.100 /  4.  0.100
       libswresample   2.  0.101 /  2.  0.101
       libpostproc    54.  0.100 / 54.  0.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/100ANDRO/MOV_0066.mp4':
       Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2017-04-02 11:58:58
       com.android.version: 6.0.1
       Duration: 00:00:59.60, start: 0.000000, bitrate: 17759 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17498 kb/s, SAR 1:1 DAR 16:9, 29.90 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
       Metadata:
       rotate          : 90
       creation_time   : 2017-04-02 11:58:58
       handler_name    : VideoHandle
       Side data:
       displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 155 kb/s (default)
       Metadata:
       creation_time   : 2017-04-02 11:58:58
       handler_name    : SoundHandle
       [libx264 @ 0xb5bc4400] using SAR=1/1
       [libx264 @ 0xb5bc4400] using cpu capabilities: none!
       [libx264 @ 0xb5bc4400] profile High 4:4:4 Predictive, level 3.2, 4:2:0 8-bit
       [libx264 @ 0xb5bc4400] 64 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x1 me=dia subme=1 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=5 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
       Output #0, mp4, to '/storage/emulated/0/Download/compress_video1.mp4':
       Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 6.0.1
       encoder         : Lavf57.25.100
       Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1080x1080 [SAR 1:1 DAR 1:1], q=-1--1, 29.92 fps, 11488 tbn, 29.92 tbc (default)
       Metadata:
       handler_name    : VideoHandle
       creation_time   : 2017-04-02 11:58:58
       encoder         : Lavc57.24.102 libx264
       Side data:
       unknown side data type 10 (24 bytes)
       Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
       creation_time   : 2017-04-02 11:58:58
       handler_name    : SoundHandle
       encoder         : Lavc57.24.102 aac
       Stream mapping:
       Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
       Stream #0:1 -> #0:1 (aac (native) -> aac (native))
       Press [q] to stop, [?] for help
       frame=    6 fps=0.0 q

    Any help is greatly appreciated !