Recherche avancée

Médias (91)

Autres articles (64)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (7893)

  • ffmpeg : audio + image to video : reduce time and space it takes

    9 septembre 2019, par Yashasvi

    I am using FFMPEG to convert an image and an audio to a video.

    I am able to achieve the final video using the following command (Attaching the output of the command too) :

    time ffmpeg -loop 1 -i inputImage.jpg -i inputAudio.mp3 -c:v libx264 -
    c:a copy -shortest output1.mp4
    ffmpeg version 4.1.3-0york1~16.04 Copyright (c) 2000-2019 the FFmpeg
    developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
     configuration: --prefix=/usr --extra-version='0york1~16.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-nonfree --enable-libfdk-aac --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, image2, from 'inputImage.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 32003 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 4160x2340 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    [mp3 @ 0x55cd4bed0f80] Estimating duration from bitrate, this may be inaccurate
    Input #1, mp3, from 'inputAudio.mp3':
     Duration: 00:00:23.77, start: 0.000000, bitrate: 127 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, mono, fltp, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [libx264 @ 0x55cd4bee9c80] using SAR=1/1
    [libx264 @ 0x55cd4bee9c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x55cd4bee9c80] profile High, level 6.0
    [libx264 @ 0x55cd4bee9c80] 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=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 'output1.mp4':
     Metadata:
       encoder         : Lavf58.20.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 4160x2340 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc58.35.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s
    frame=  647 fps= 21 q=28.0 Lsize=    1302kB time=00:00:23.76 bitrate= 449.0kbits/s speed=0.778x    
    video:908kB audio:371kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.797463%
    [libx264 @ 0x55cd4bee9c80] frame I:3     Avg QP:12.36  size:235361
    [libx264 @ 0x55cd4bee9c80] frame P:163   Avg QP:17.66  size:   469
    [libx264 @ 0x55cd4bee9c80] frame B:481   Avg QP:20.95  size:   336
    [libx264 @ 0x55cd4bee9c80] consecutive B-frames:  0.8%  0.3%  0.0% 98.9%
    [libx264 @ 0x55cd4bee9c80] mb I  I16..4: 60.6% 37.5%  1.9%
    [libx264 @ 0x55cd4bee9c80] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.3%  0.0%  0.0%  0.0%  0.0%    skip:99.7%
    [libx264 @ 0x55cd4bee9c80] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.2%  0.0%  0.0%  direct: 0.0%  skip:99.8%  L0:46.7% L1:53.3% BI: 0.0%
    [libx264 @ 0x55cd4bee9c80] 8x8 transform intra:36.9% inter:94.7%
    [libx264 @ 0x55cd4bee9c80] coded y,uvDC,uvAC intra: 29.0% 60.8% 5.5% inter: 0.0% 0.1% 0.0%
    [libx264 @ 0x55cd4bee9c80] i16 v,h,dc,p: 19% 67% 14%  0%
    [libx264 @ 0x55cd4bee9c80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 42% 41%  1%  0%  0%  0%  0%  8%
    [libx264 @ 0x55cd4bee9c80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 60%  5%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0x55cd4bee9c80] i8c dc,h,v,p: 24% 56% 16%  5%
    [libx264 @ 0x55cd4bee9c80] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x55cd4bee9c80] ref P L0: 96.2%  0.0%  1.8%  2.0%
    [libx264 @ 0x55cd4bee9c80] ref B L0: 87.7%  8.6%  3.7%
    [libx264 @ 0x55cd4bee9c80] ref B L1: 98.5%  1.5%
    [libx264 @ 0x55cd4bee9c80] kb/s:291.81

    real    0m30.671s
    user    1m50.724s
    sys 0m0.348s

    Here are the respected sizes of inputs and output :

    inputImage.jpg : 160kb

    inputAudio.mp3 : 380.3kb

    output1.mp4 : 1.3MB

    The size of output video is pretty large as compared to the input audio. This is my first issue.

    Secondly, as you can see, this process takes 30sec, which is too much I think.

    How do I solve this two problems ?

    • reducing the output video file size

    • reducing the time this process takes.

    I’ve gone through numerous online links, including a lot of questions on this forum for the past several hours but still not able to solve this.
    Tried playing with framerate but disturbs the duration of the output video.

    Can someone please help here. Let me know if any other information is needed.

    1 thing that helped me reduce the size of final video from 3MB to 1.2MB was to compress the image that I am using.

  • FFMPEG commands isn't working in Android Q

    5 février, par Krupali Shingala

    Try this command for merge two audio files, but its not working in Android 10.0(Q) while targeting sdk 29.
But, this command is completely working on targeting sdk 24 to 28.

    



    I am using this library of FFMPEG implementation 'nl.bravobit:android-ffmpeg:1.1.7'

    



    "-y", "-i", path1, "-i", path2, "-filter_complex", "[0:0][1:0] amix=inputs=2:duration=longest", "-c:a", "libmp3lame", savedPath&#xA;&#xA;my Error log:&#xA;2019-09-28 13:48:32.037 16041-16166/com.merger.cut E/FFmpeg: Exception while trying to run: [/data/user/0/com..merger.cut/files/ffmpeg, -y, -i, /storage/emulated/0/Music/song1.mp3, -i, /storage/emulated/0/Music/song2.mp3, -filter_complex, [0:0][1:0] amix=inputs=2:duration=longest, -c:a, libmp3lame, /storage/emulated/0/merger/Merge_1569658695254.mp3]&#xA;    java.io.IOException: Cannot run program "/data/user/0/com.merger.cut/files/ffmpeg": error=13, Permission denied&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)&#xA;        at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:43)&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:12)&#xA;        at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA;        at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA;        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA;        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA;        at java.lang.Thread.run(Thread.java:919)&#xA;     Caused by: java.io.IOException: error=13, Permission denied&#xA;        at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;        at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)&#xA;        at java.lang.ProcessImpl.start(ProcessImpl.java:141)&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)&#xA;        at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)&#xA0;&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:43)&#xA0;&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:12)&#xA0;&#xA;        at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA0;&#xA;        at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA0;&#xA;        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA0;&#xA;        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA0;&#xA;        at java.lang.Thread.run(Thread.java:919)&#xA0;&#xA;2019-09-28 13:48:32.146 16041-16041/com.merger.cut E/FFMPEG&#xA0;:: on finish&#xA;</init>

    &#xA;&#xA;

    Give me solution for above problem.

    &#xA;

  • Rotate 360 video with ffmpeg

    9 septembre 2019, par Leos Literak

    I have 360° video and I want to fine tune its orientation with ffmpeg. I need to rotate it by 90° clockwise horizontally (turn it left). I found some helpful resources stating that the rotate filter would do the trick. So I tried :

    ffmpeg -i Petr_doskok.mp4 -vf "scale=2048x1024,rotate=-PI/2"  -r 30 -c:v libx265 -b:v 15M -pix_fmt yuv420p -c:a aac -b:a 192K Petr_doskok_rotated.mp4
    ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Petr_doskok.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
    Duration: 00:00:29.06, start: 0.000000, bitrate: 58095 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 4096x2048, 57948 kb/s, SAR 1:1 DAR 2:1, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 184 kb/s (default)
    Metadata:
     handler_name    : SoundHandler
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    x265 [info]: Slices                              : 1
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : ABR-15000 kbps / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
    x265 [info]: tools: lslices=6 deblock sao
    Output #0, mp4, to 'Petr_doskok_rotated.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
    Stream #0:0(und): Video: hevc (libx265) (hev1 / 0x31766568), yuv420p, 2048x1024 [SAR 1:1 DAR 2:1], q=2-31, 15000 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
     handler_name    : VideoHandler
     encoder         : Lavc58.35.100 libx265
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
     handler_name    : SoundHandler
     encoder         : Lavc58.35.100 aac
    frame=  841 fps=9.8 q=-0.0 Lsize=   54721kB time=00:00:28.03     bitrate=15991.5kbits/s speed=0.326x
    video:54028kB audio:659kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.062856%
    x265 [info]: frame I:      4, Avg QP:15.99  kb/s: 39026.34
    x265 [info]: frame P:    214, Avg QP:16.15  kb/s: 30083.41
    x265 [info]: frame B:    623, Avg QP:19.72  kb/s: 10727.28
    x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
    x265 [info]: consecutive B-frames: 0.5% 0.9% 17.9% 73.9% 6.9%

    encoded 841 frames in 86.02s (9.78 fps), 15787.22 kb/s, Avg QP:18.80
    [aac @ 000001faa3ead7c0] Qavg: 289.921

    Well, the video was really rotated - vertically ! The documentation does not reference the 360° video production : http://ffmpeg.org/ffmpeg-filters.html#rotate. What is the correct parameter value for my case ?