Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (43)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (6237)

  • orangepi zero 2w, ubuntu, using a usb webcam ffmpeg to record videos, low FPS [closed]

    28 janvier, par Qingfu Shi

    I use a OrpangePi zero 2w, USB HIK 2K Cam, to record videos.
Ubuntu, ffmpeg installed,
the cmd

    


    ffmpeg -f v4l2 -video_size 1920x1080 -r 25 -input_format mjpeg -i /dev/video1 -vf "transpose=1" -c:v libx264 -preset fast -crf 23 output.mp4


    


    I want the fps to be at least 25, so it looks smooth, but I only got about 4.7 fps.

    


    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 428045.804407, bitrate: N/A
  Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
File 'output.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0xaaab1677ccd0] using cpu capabilities: ARMv8 NEON
[libx264 @ 0xaaab1677ccd0] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0xaaab1677ccd0] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 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:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt470bg/unknown/unknown, progressive), 1080x1920, q=2-31, 25 fps, 12800 tbn
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=  264 fps=4.7 q=-1.0 Lsize=    6301kB time=00:00:10.44 bitrate=4944.2kbits/s speed=0.185x      
video:6297kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.063708%
[libx264 @ 0xaaab1677ccd0] frame I:2     Avg QP:22.43  size:140174
[libx264 @ 0xaaab1677ccd0] frame P:69    Avg QP:22.70  size: 54079
[libx264 @ 0xaaab1677ccd0] frame B:193   Avg QP:24.00  size: 12620
[libx264 @ 0xaaab1677ccd0] consecutive B-frames:  1.5%  2.3%  2.3% 93.9%
[libx264 @ 0xaaab1677ccd0] mb I  I16..4:  6.6% 85.8%  7.6%
[libx264 @ 0xaaab1677ccd0] mb P  I16..4:  3.6% 12.5%  0.4%  P16..4: 26.9% 10.6%  7.1%  0.0%  0.0%    skip:39.0%
[libx264 @ 0xaaab1677ccd0] mb B  I16..4:  0.8%  8.0%  0.1%  B16..8: 10.8%  3.0%  0.2%  direct:11.1%  skip:66.0%  L0:41.1% L1:42.2% BI:16.7%
[libx264 @ 0xaaab1677ccd0] 8x8 transform intra:84.4% inter:78.9%
[libx264 @ 0xaaab1677ccd0] coded y,uvDC,uvAC intra: 47.4% 51.8% 7.8% inter: 11.8% 11.9% 0.1%
[libx264 @ 0xaaab1677ccd0] i16 v,h,dc,p: 43% 17% 13% 28%
[libx264 @ 0xaaab1677ccd0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 15% 51%  3%  3%  3%  3%  3%  4%
[libx264 @ 0xaaab1677ccd0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 22% 18%  6%  7%  8%  6%  6%  7%
[libx264 @ 0xaaab1677ccd0] i8c dc,h,v,p: 63% 19% 16%  2%
[libx264 @ 0xaaab1677ccd0] Weighted P-Frames: Y:11.6% UV:8.7%
[libx264 @ 0xaaab1677ccd0] ref P L0: 50.0% 50.0%
[libx264 @ 0xaaab1677ccd0] ref B L0: 74.0% 26.0%
[libx264 @ 0xaaab1677ccd0] ref B L1: 93.8%  6.2%
[libx264 @ 0xaaab1677ccd0] kb/s:4884.46


    


    If change resolution to 1280720, fps increase to 12-13, change to 640360, fps increase to 27-28

    


    the webcam supports the following fmts

    


    v4l2-ctl --device=/dev/video1 --list-formats-ext


    


    ioctl: VIDIOC_ENUM_FMT
    Type: Video Capture

    [0]: 'YUYV' (YUYV 4:2:2)
        Size: Discrete 640x360
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 640x480
            Interval: Discrete 0.040s (25.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
    [1]: 'MJPG' (Motion-JPEG, compressed)
        Size: Discrete 640x360
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 1280x720
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 1280x960
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 1920x1080
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 2048x1536
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 2560x1440
            Interval: Discrete 0.040s (25.000 fps)
        Size: Discrete 640x480
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.040s (25.000 fps)


    


    but I want the video at least 1080p@30fps. What's the bottleneck ? is it possible to modify the cmd to achieve this ?
OrangePi zero 2w, use an AllWinner H618 cpu, with 1G RAM, 64G v10 sd-card.

    


  • Stream to Azure Media Service from ffmpeg, stream can not be played

    24 juillet 2015, par Simon

    i try to send a stream from my RaspberryPI with debian wheezy to the AzureMediaService.
    I followed the instructions of this nice post.
    http://gtrifonov.com/2015/07/02/streaming-live-video-from-raspberrypi-to-azure-media-services/

    After a lot of trouble with the ffmpeg and libx264 builds i think i have it working now, to stream to the rtmp urls.

    INGESTURI="rtmp://office-klokklokmediastream.channel.mediaservices.windows.net:1935/live/3e541bc149754ebd975b95ec3583c949/mystream1"
    ffmpeg -framerate 30 -r 30 -s 640x480 -i /dev/video0 -vcodec libx264 -preset ultrafast -acodec libfaac -ab 48k -b:v 500k -maxrate 500k -bufsize 500k -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -f flv $INGESTURI

    But when i try to watch the link in azure portal publish link or with the azure amsmediaplayer it tells me (i have reseted the channel already) :

    "The video could not be loaded, either because the server or network failed or because the format is not supported."

    The public stream url is :

    http://klokklokmediastream.streaming.mediaservices.windows.net/30c3920e-420a-4d33-8938-e79d0db240ff/c9fd3479-0d4b-4643-a3f9-5fd5831985d0.ism/Manifest

    In the linux shell i see the following output while streaming, looks for me as send stream is working :

    "root@raspberrypi:/home/pi/klokklok# ./azure_ffmpeg
    ffmpeg version N-73894-g830d3a0 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.6 (Debian 4.6.3-14+rpi1)
     configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
     libavutil      54. 28.100 / 54. 28.100
     libavcodec     56. 50.101 / 56. 50.101
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 25.100 /  5. 25.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, video4linux2,v4l2, from '/dev/video0':
     Duration: N/A, start: -140462028.282167, bitrate: 110592 kb/s
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, 110592 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
    [libx264 @ 0x3321920] using cpu capabilities: none!
    [libx264 @ 0x3321920] profile Constrained Baseline, level 3.0
    [libx264 @ 0x3321920] 264 - core 146 r2538 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=60 keyint_min=31 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=500 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
    Output #0, flv, to 'rtmp://office-klokklokmediastream.channel.mediaservices.windows.net:1935/live/3e501bc149754ebd975b95ec3583c949/mystream1':
     Metadata:
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x480, q=-1--1, 500 kb/s, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc56.50.101 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    DTS 140462610481701, next:33333 st:0 invalid dropping
    PTS 140462610481701, next:33333 invalid dropping st:0
    DTS 140462610515017, next:66666 st:0 invalid dropping
    PTS 140462610515017, next:66666 invalid dropping st:0
    DTS 140462610548333, next:99999 st:0 invalid dropping
    PTS 140462610548333, next:99999 invalid dropping st:0
    frame=    4 fps=0.0 q=31.0 size=       7kB time=00:00:00.10 bitrate= 554.6kbits/DTS 140462610581650, next:133332 st:0 invalid dropping
    PTS 140462610581650, next:133332 invalid dropping st:0
    DTS 140462610614965, next:166665 st:0 invalid dropping
    PTS 140462610614965, next:166665 invalid dropping st:0
    frame=    6 fps=5.1 q=29.0 size=       9kB time=00:00:00.16 bitrate= 462.5kbits/DTS 140462610648281, next:199998 st:0 invalid dropping
    PTS 140462610648281, next:199998 invalid dropping st:0
    DTS 140462610681598, next:233331 st:0 invalid dropping
    PTS 140462610681598, next:233331 invalid dropping st:0
    DTS 140462610714914, next:266664 st:0 invalid dropping
    PTS 140462610714914, next:266664 invalid dropping st:0
    frame=   14 fps=4.6 q=23.0 size=      21kB time=00:00:00.43 bitrate= 396.0kbits/DTS 140462610914810, next:466662 st:0 invalid dropping
    PTS 140462610914810, next:466662 invalid dropping st:0
    [flv @ 0x3320ae0] Failed to update header with correct duration.
    [flv @ 0x3320ae0] Failed to update header with correct filesize.
    frame=   15 fps=3.9 q=22.0 Lsize=      25kB time=00:00:00.50 bitrate= 407.8kbits/s
    video:24kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.373589%
    [libx264 @ 0x3321920] frame I:1     Avg QP:31.00  size:  2777
    [libx264 @ 0x3321920] frame P:14    Avg QP:26.68  size:  1531
    [libx264 @ 0x3321920] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0x3321920] mb P  I16..4: 12.4%  0.0%  0.0%  P16..4: 29.7%  0.0%  0.0%  0.0%  0.0%    skip:57.9%
    [libx264 @ 0x3321920] coded y,uvDC,uvAC intra: 6.3% 13.9% 0.5% inter: 5.7% 21.4% 0.1%
    [libx264 @ 0x3321920] i16 v,h,dc,p: 52% 17% 16% 14%
    [libx264 @ 0x3321920] i8c dc,h,v,p: 63% 14% 20%  3%
    [libx264 @ 0x3321920] kb/s:387.47
    Exiting normally, received signal 2.
    "

    I cant find a solution for that so thanks a lot for any advice.

  • FFMPEG Video Cropping slower [duplicate]

    23 juin 2016, par syed imty

    This question already has an answer here :

    I am trying to crop rectangular video into a square one using FFMPEG. The video conversion take too much time.

    For a video of 30 secs, it takes around 60-70secs to convert

    FFMPEG Command

    String commandStr =" -i "+videoPath+"  -vcodec libx264 -b:v 880k -vf crop=" + videoSize.height + ":"+ videoSize.height + ":" + cropStart +":0 -preset ultrafast -strict -2 " +compressedVideoPath;

    Progress Log

    D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
    I/System.out: Video converison : /storage/emulated/0/IHH_y/147.mp4 /storage/emulated/0/IHH_y/147upload.mp4  wxh1080:1080:420
    I/System.out: FFMpeg lib onStart
    D/FFmpeg: Running publishing updates method
    I/System.out: FFMpeg lib onProgressWARNING: linker: /data/data/com.x.y/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
    I/System.out: FFMpeg lib onProgressffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    I/System.out: FFMpeg lib onProgress  built on Oct  7 2014 15:08:46 with gcc 4.8 (GCC)
    I/System.out: FFMpeg lib onProgress  configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --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/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    I/System.out: FFMpeg lib onProgress  libavutil      54.  7.100 / 54.  7.100
    I/System.out: FFMpeg lib onProgress  libavcodec     56.  1.100 / 56.  1.100
    I/System.out: FFMpeg lib onProgress  libavformat    56.  4.101 / 56.  4.101
    I/System.out: FFMpeg lib onProgress  libavdevice    56.  0.100 / 56.  0.100
    I/System.out: FFMpeg lib onProgress  libavfilter     5.  1.100 /  5.  1.100
    I/System.out: FFMpeg lib onProgress  libswscale      3.  0.100 /  3.  0.100
    I/System.out: FFMpeg lib onProgress  libswresample   1.  1.100 /  1.  1.100
    I/System.out: FFMpeg lib onProgress  libpostproc    53.  0.100 / 53.  0.100
    I/System.out: FFMpeg lib onProgressInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/IHH_y/147.mp4':
    I/System.out: FFMpeg lib onProgress  Metadata:
    I/System.out: FFMpeg lib onProgress    major_brand     : mp42
    I/System.out: FFMpeg lib onProgress    minor_version   : 0
    I/System.out: FFMpeg lib onProgress    compatible_brands: isommp42
    I/System.out: FFMpeg lib onProgress    creation_time   : 2016-06-23 20:00:50
    I/System.out: FFMpeg lib onProgress  Duration: 00:00:08.92, start: 0.000000, bitrate: 8966 kb/s
    I/System.out: FFMpeg lib onProgress    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 8983 kb/s, 16.66 fps, 16.67 tbr, 90k tbn, 180k tbc (default)
    I/System.out: FFMpeg lib onProgress    Metadata:
    I/System.out: FFMpeg lib onProgress      rotate          : 90
    I/System.out: FFMpeg lib onProgress      creation_time   : 2016-06-23 20:00:50
    I/System.out: FFMpeg lib onProgress      handler_name    : VideoHandle
    I/System.out: FFMpeg lib onProgress    Side data:
    I/System.out: FFMpeg lib onProgress      displaymatrix: rotation of -90.00 degrees
    I/System.out: FFMpeg lib onProgress    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 254 kb/s (default)
    I/System.out: FFMpeg lib onProgress    Metadata:
    I/System.out: FFMpeg lib onProgress      creation_time   : 2016-06-23 20:00:50
    I/System.out: FFMpeg lib onProgress      handler_name    : SoundHandle
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] using cpu capabilities: none!
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] profile Constrained Baseline, level 3.2
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=16 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=880 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    I/System.out: FFMpeg lib onProgressOutput #0, mp4, to '/storage/emulated/0/IHH_y/147upload.mp4':
    I/System.out: FFMpeg lib onProgress  Metadata:
    I/System.out: FFMpeg lib onProgress    major_brand     : mp42
    I/System.out: FFMpeg lib onProgress    minor_version   : 0
    I/System.out: FFMpeg lib onProgress    compatible_brands: isommp42
    I/System.out: FFMpeg lib onProgress    encoder         : Lavf56.4.101
    I/System.out: FFMpeg lib onProgress    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1080x1080, q=-1--1, 880 kb/s, 16.67 fps, 12800 tbn, 16.67 tbc (default)
    I/System.out: FFMpeg lib onProgress    Metadata:
    I/System.out: FFMpeg lib onProgress      rotate          : 90
    I/System.out: FFMpeg lib onProgress      creation_time   : 2016-06-23 20:00:50
    I/System.out: FFMpeg lib onProgress      handler_name    : VideoHandle
    I/System.out: FFMpeg lib onProgress      encoder         : Lavc56.1.100 libx264
    I/System.out: FFMpeg lib onProgress    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    I/System.out: FFMpeg lib onProgress    Metadata:
    I/System.out: FFMpeg lib onProgress      creation_time   : 2016-06-23 20:00:50
    I/System.out: FFMpeg lib onProgress      handler_name    : SoundHandle
    I/System.out: FFMpeg lib onProgress      encoder         : Lavc56.1.100 aac
    I/System.out: FFMpeg lib onProgressStream mapping:
    I/System.out: FFMpeg lib onProgress  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    I/System.out: FFMpeg lib onProgress  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    I/System.out: FFMpeg lib onProgressPress [q] to stop, [?] for help
    I/System.out: FFMpeg lib onProgressframe=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.96 bitrate=   0.4kbits/s    
    I/System.out: FFMpeg lib onProgressframe=    7 fps=6.8 q=0.0 size=       0kB time=00:00:01.05 bitrate=   0.4kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   15 fps=9.7 q=35.0 size=      87kB time=00:00:01.07 bitrate= 660.5kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   15 fps=7.3 q=35.0 size=      87kB time=00:00:01.88 bitrate= 376.7kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   25 fps=9.6 q=35.0 size=     154kB time=00:00:02.05 bitrate= 613.4kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   32 fps= 10 q=35.0 size=     199kB time=00:00:02.07 bitrate= 784.7kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   32 fps=8.8 q=35.0 size=     199kB time=00:00:02.93 bitrate= 556.4kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   42 fps= 10 q=35.0 size=     263kB time=00:00:03.06 bitrate= 705.2kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   49 fps= 10 q=36.0 size=     328kB time=00:00:03.08 bitrate= 870.9kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   50 fps=9.5 q=36.0 size=     341kB time=00:00:04.06 bitrate= 687.2kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   59 fps= 10 q=36.0 size=     407kB time=00:00:04.06 bitrate= 821.2kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   66 fps= 10 q=36.0 size=     462kB time=00:00:04.10 bitrate= 922.7kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   66 fps=9.7 q=36.0 size=     462kB time=00:00:05.00 bitrate= 757.4kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   77 fps= 10 q=35.0 size=     534kB time=00:00:05.06 bitrate= 864.0kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   83 fps= 11 q=34.0 size=     566kB time=00:00:05.44 bitrate= 850.2kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   89 fps= 11 q=34.0 size=     600kB time=00:00:06.06 bitrate= 810.6kbits/s    
    I/System.out: FFMpeg lib onProgressframe=   95 fps= 11 q=35.0 size=     636kB time=00:00:06.06 bitrate= 859.0kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  100 fps= 11 q=34.0 size=     676kB time=00:00:06.28 bitrate= 881.8kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  104 fps= 11 q=33.0 size=     702kB time=00:00:07.07 bitrate= 812.8kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  114 fps= 11 q=34.0 size=     765kB time=00:00:07.07 bitrate= 885.7kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  117 fps= 11 q=33.0 size=     787kB time=00:00:07.26 bitrate= 887.7kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  117 fps= 10 q=33.0 size=     787kB time=00:00:08.03 bitrate= 802.8kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  129 fps= 11 q=33.0 size=     857kB time=00:00:08.07 bitrate= 869.1kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  138 fps= 11 q=34.0 size=     922kB time=00:00:08.07 bitrate= 935.1kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  140 fps= 11 q=33.0 size=     937kB time=00:00:08.58 bitrate= 894.1kbits/s    
    I/System.out: FFMpeg lib onProgressframe=  144 fps= 11 q=-1.0 Lsize=    1032kB time=00:00:08.96 bitrate= 943.0kbits/s    
    I/System.out: FFMpeg lib onProgressvideo:889kB audio:138kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.512610%
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] frame I:1     Avg QP:33.00  size: 21090
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] frame P:143   Avg QP:34.49  size:  6217
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] mb I  I16..4: 100.0%  0.0%  0.0%
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] mb P  I16..4: 10.3%  0.0%  0.0%  P16..4: 21.2%  0.0%  0.0%  0.0%  0.0%    skip:68.5%
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] final ratefactor: 34.56
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] coded y,uvDC,uvAC intra: 16.9% 5.8% 0.1% inter: 6.2% 0.9% 0.0%
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] i16 v,h,dc,p: 55% 30%  8%  7%
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] i8c dc,h,v,p: 55% 18% 24%  3%
    I/System.out: FFMpeg lib onProgress[libx264 @ 0xb5e08800] kb/s:842.72
    I/System.out: FFMpeg lib onSuccessWARNING: linker: /data/data/com.x.y/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
    I/System.out: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    I/System.out:   built on Oct  7 2014 15:08:46 with gcc 4.8 (GCC)
    I/System.out:   configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --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/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    I/System.out:   libavutil      54.  7.100 / 54.  7.100
    I/System.out:   libavcodec     56.  1.100 / 56.  1.100
    I/System.out:   libavformat    56.  4.101 / 56.  4.101
    I/System.out:   libavdevice    56.  0.100 / 56.  0.100
    I/System.out:   libavfilter     5.  1.100 /  5.  1.100
    I/System.out:   libswscale      3.  0.100 /  3.  0.100
    I/System.out:   libswresample   1.  1.100 /  1.  1.100
    I/System.out:   libpostproc    53.  0.100 / 53.  0.100
    I/System.out: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/IHH_y/147.mp4':
    I/System.out:   Metadata:
    I/System.out:     major_brand     : mp42
    I/System.out:     minor_version   : 0
    I/System.out:     compatible_brands: isommp42
    I/System.out:     creation_time   : 2016-06-23 20:00:50
    I/System.out:   Duration: 00:00:08.92, start: 0.000000, bitrate: 8966 kb/s
    I/System.out:     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 8983 kb/s, 16.66 fps, 16.67 tbr, 90k tbn, 180k tbc (default)
    I/System.out:     Metadata:
    I/System.out:       rotate          : 90
    I/System.out:       creation_time   : 2016-06-23 20:00:50
    I/System.out:       handler_name    : VideoHandle
    I/System.out:     Side data:
    I/System.out:       displaymatrix: rotation of -90.00 degrees
    I/System.out:     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 254 kb/s (default)
    I/System.out:     Metadata:
    I/System.out:       creation_time   : 2016-06-23 20:00:50
    I/System.out:       handler_name    : SoundHandle
    I/System.out: [libx264 @ 0xb5e08800] using cpu capabilities: none!
    I/System.out: [libx264 @ 0xb5e08800] profile Constrained Baseline, level 3.2
    I/System.out: [libx264 @ 0xb5e08800] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=16 scenecut=0 intra_refresh=0 rc=abr mbtree=0 bitrate=880 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    I/System.out: Output #0, mp4, to '/storage/emulated/0/IHH_y/147upload.mp4':
    I/System.out:   Metadata:
    I/System.out:     major_brand     : mp42
    I/System.out:     minor_version   : 0
    I/System.out:     compatible_brands: isommp42
    I/System.out:     encoder         : Lavf56.4.101
    I/System.out:     Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1080x1080, q=-1--1, 880 kb/s, 16.67 fps, 12800 tbn, 16.67 tbc (default)
    I/System.out:     Metadata:
    I/System.out:       rotate          : 90
    I/System.out:       creation_time   : 2016-06-23 20:00:50
    I/System.out:       handler_name    : VideoHandle
    I/System.out:       encoder         : Lavc56.1.100 libx264
    I/System.out:     Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    I/System.out:     Metadata:
    I/System.out:       creation_time   : 2016-06-23 20:00:50
    I/System.out:       handler_name    : SoundHandle
    I/System.out:       encoder         : Lavc56.1.100 aac
    I/System.out: Stream mapping:
    I/System.out:   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    I/System.out:   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    I/System.out: Press [q] to stop, [?] for help
    I/System.out: frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.96 bitrate=   0.4kbits/s    
    I/System.out: frame=    7 fps=6.8 q=0.0 size=       0kB time=00:00:01.05 bitrate=   0.4kbits/s    
    I/System.out: frame=   15 fps=9.7 q=35.0 size=      87kB time=00:00:01.07 bitrate= 660.5kbits/s    
    I/System.out: frame=   15 fps=7.3 q=35.0 size=      87kB time=00:00:01.88 bitrate= 376.7kbits/s    
    I/System.out: frame=   25 fps=9.6 q=35.0 size=     154kB time=00:00:02.05 bitrate= 613.4kbits/s    
    I/System.out: frame=   32 fps= 10 q=35.0 size=     199kB time=00:00:02.07 bitrate= 784.7kbits/s    
    I/System.out: frame=   32 fps=8.8 q=35.0 size=     199kB time=00:00:02.93 bitrate= 556.4kbits/s    
    I/System.out: frame=   42 fps= 10 q=35.0 size=     263kB time=00:00:03.06 bitrate= 705.2kbits/s    
    I/System.out: frame=   49 fps= 10 q=36.0 size=     328kB time=00:00:03.08 bitrate= 870.9kbits/s    
    I/System.out: frame=   50 fps=9.5 q=36.0 size=     341kB time=00:00:04.06 bitrate= 687.2kbits/s    
    I/System.out: frame=   59 fps= 10 q=36.0 size=     407kB time=00:00:04.06 bitrate= 821.2kbits/s    
    I/System.out: frame=   66 fps= 10 q=36.0 size=     462kB time=00:00:04.10 bitrate= 922.7kbits/s    
    I/System.out: frame=   66 fps=9.7 q=36.0 size=     462kB time=00:00:05.00 bitrate= 757.4kbits/s    
    I/System.out: frame=   77 fps= 10 q=35.0 size=     534kB time=00:00:05.06 bitrate= 864.0kbits/s    
    I/System.out: frame=   83 fps= 11 q=34.0 size=     566kB time=00:00:05.44 bitrate= 850.2kbits/s    
    I/System.out: frame=   89 fps= 11 q=34.0 size=     600kB time=00:00:06.06 bitrate= 810.6kbits/s    
    I/System.out: frame=   95 fps= 11 q=35.0 size=     636kB time=00:00:06.06 bitrate= 859.0kbits/s    
    I/System.out: frame=  100 fps= 11 q=34.0 size=     676kB time=00:00:06.28 bitrate= 881.8kbits/s    
    I/System.out: frame=  104 fps= 11 q=33.0 size=     702kB time=00:00:07.07 bitrate= 812.8kbits/s    
    I/System.out: frame=  114 fps= 11 q=34.0 size=     765kB time=00:00:07.07 bitrate= 885.7kbits/s    
    I/System.out: frame=  117 fps= 11 q=33.0 size=     787kB time=00:00:07.26 bitrate= 887.7kbits/s    
    I/System.out: frame=  117 fps= 10 q=33.0 size=     787kB time=00:00:08.03 bitrate= 802.8kbits/s    
    I/System.out: frame=  129 fps= 11 q=33.0 size=     857kB time=00:00:08.07 bitrate= 869.1kbits/s    
    I/System.out: frame=  138 fps= 11 q=34.0 size=     922kB time=00:00:08.07 bitrate= 935.1kbits/s    
    I/System.out: frame=  140 fps= 11 q=33.0 size=     937kB time=00:00:08.58 bitrate= 894.1kbits/s    
    I/System.out: frame=  144 fps= 11 q=-1.0 Lsize=    1032kB time=00:00:08.96 bitrate= 943.0kbits/s    
    I/System.out: video:889kB audio:138kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.512610%
    I/System.out: [libx264 @ 0xb5e08800] frame I:1     Avg QP:33.00  size: 21090
    I/System.out: [libx264 @ 0xb5e08800] frame P:143   Avg QP:34.49  size:  6217
    I/System.out: [libx264 @ 0xb5e08800] mb I  I16..4: 100.0%  0.0%  0.0%
    I/System.out: [libx264 @ 0xb5e08800] mb P  I16..4: 10.3%  0.0%  0.0%  P16..4: 21.2%  0.0%  0.0%  0.0%  0.0%    skip:68.5%
    I/System.out: [libx264 @ 0xb5e08800] final ratefactor: 34.56
    I/System.out: [libx264 @ 0xb5e08800] coded y,uvDC,uvAC intra: 16.9% 5.8% 0.1% inter: 6.2% 0.9% 0.0%
    I/System.out: [libx264 @ 0xb5e08800] i16 v,h,dc,p: 55% 30%  8%  7%

    As you can see from the log, the conversion fps is very low
    Need help to make it faster.

    Note : The source file is MP4 and output file is MP4 as well