Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (24)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5425)

  • How to swap package configuration for environment

    24 juillet 2018, par Finn Maunsell

    I’d like to change the location that I get ffmpeg from for my anaconda environment. The problem has occured because I want to use the ffmpeg configuration for my base system instead of the configuration meant for the environment.

    If I use ffmpeg in ubuntu bash then I get this for my active environment :

     ffmpeg version N-91510-gd134b8d Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/home/notebook/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/notebook/ffmpeg_build/include --extra-ldflags=-L/home/notebook/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/notebook/bin --enable-gpl --enable-libaom --enable-openssl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree

    and for non-environment :

    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-15)
     configuration: --prefix=/home/notebook/anaconda2/envs/tensorflow --disable-doc --enable-shared --enable-static --extra-cflags='-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC -I/home/notebook/anaconda2/envs/tensorflow/include' --extra-cxxflags='=-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC' --extra-libs=
    '-L/home/notebook/anaconda2/envs/tensorflow/lib -lz' --enable-pic --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --enable-libx264

    Solving this will allow me to use the 2nd ffmpeg installation in my conda environment.

  • How to reduce conversion/compression time in FFmpeg and How to merge command ?

    21 novembre 2018, par Patel Pinkal

    I want to reduce time taken to create new video after adding text in original video using FFmpeg
    I had tried to search and I found this code given below for reducing time.

    -y -i /sdcard/videokit/in.mp4 -strict experimental -vcodec libx264 -preset ultrafast -crf 24 -acodec aac -ar 44100 -ac 2 -b 36000k -s 1280x720 -aspect 16:9 -metadata:s:v:0 rotate=0 /sdcard/videokit/out3.mp4

    Now, I want to add text in video and it is done in FFmpeg, by this command and its 100% working.

     String[] addTextCommand = {
               "-i",
               "" + realFilePath,
               "-vf",
               "drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
                       + strText +
                       "':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
               "-strict",
               "-2",
               outputFilePath};

    Now my problem is how do I merge this two code and make one single command to make an edited video and also take less time to create a new video. In this, I have tried this command but it’s not working.

      String[] addTextCommand = {
               "-i",
               "" + realVideoPath,
               "-vf",
               "-c:v", "libx264",
               "-preset", "ultrafast",
               "-crf", "24",
               "-acodec", "aac",
               "-ar", "44100",
               "-ac", "2",
               "-b", "36000k",
               "-s", "1280x720",
               "-aspect", "16:9",
               "-metadata:s:v:0 rotate=0",
               "drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
                       + strText +
                       "':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
               "-strict",
               "-2",
               outputFilePath};

    If anyone has an idea how to make command of FFmpeg please describe it and explain how to use it.

    Using command of @Mulvya I got this in the console.

        D/MainActivity: FAILED with output : WARNING: linker: /data/user/0/com.inheritx.videoprocessing/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
                      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/i686-linux-android- --arch=x86 --cpu=i686 --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/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --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
                      Unrecognized option '2'.
                      Error splitting the argument list: Option not found
      D/MainActivity: Finished command : ffmpeg -i
      D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Download/spacetestSMALL_512kb.mp4
      D/MainActivity: Finished command : ffmpeg -vf
      D/MainActivity: Finished command : ffmpeg drawtext=fontsize=50:fontfile=/system/fonts/DroidSans.ttf:fontcolor=red:text='Hello':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2
      D/MainActivity: Finished command : ffmpeg -c:v
      D/MainActivity: Finished command : ffmpeg libx264
      D/MainActivity: Finished command : ffmpeg -preset
      D/MainActivity: Finished command : ffmpeg ultrafast
      D/MainActivity: Finished command : ffmpeg -crf
      D/MainActivity: Finished command : ffmpeg 24
      D/MainActivity: Finished command : ffmpeg -acodec
      D/MainActivity: Finished command : ffmpeg aac
      D/MainActivity: Finished command : ffmpeg -ar
      D/MainActivity: Finished command : ffmpeg 44100
      D/MainActivity: Finished command : ffmpeg -s
      D/MainActivity: Finished command : ffmpeg 1280x720
      D/MainActivity: Finished command : ffmpeg -aspect
      D/MainActivity: Finished command : ffmpeg 16:9
      D/MainActivity: Finished command : ffmpeg -metadata:s:v:0 rotate=0
      D/MainActivity: Finished command : ffmpeg -strict
      D/MainActivity: Finished command : ffmpeg -2
      D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Movies/add_text25.mp4
  • FFmpeg saving rtmp live stream cuts off after 3 minutes

    29 octobre 2022, par user1636922

    I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is :

    



    ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -f h264 test.flv&#xA;</ip>

    &#xA;&#xA;

    However, I have tested this twice, and both times ffmpeg stops after grabbing 3:28 worth of live video.

    &#xA;&#xA;

    The entire output is here :

    &#xA;&#xA;

    bash-4.2$ ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -vcodec libx264 -f h264 test.flv&#xA;WARNING: gnome-keyring:: couldn&#x27;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory&#xA;ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers&#xA;  built on Jul 20 2012 22:01:52 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)&#xA;  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags=&#x27;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables&#x27; --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect&#xA;  libavutil      51. 35.100 / 51. 35.100&#xA;  libavcodec     53. 61.100 / 53. 61.100&#xA;  libavformat    53. 32.100 / 53. 32.100&#xA;  libavdevice    53.  4.100 / 53.  4.100&#xA;  libavfilter     2. 61.100 /  2. 61.100&#xA;  libswscale      2.  1.100 /  2.  1.100&#xA;  libswresample   0.  6.100 /  0.  6.100&#xA;  libpostproc    52.  0.100 / 52.  0.100&#xA;WARNING: gnome-keyring:: couldn&#x27;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory&#xA;Metadata:&#xA;  videocodecid          avc1&#xA;  width                 320.00&#xA;  height                240.00&#xA;  frameWidth            320.00&#xA;  frameHeight           240.00&#xA;  displayWidth          320.00&#xA;  displayHeight         240.00&#xA;  framerate             29.97&#xA;trackinfo:&#xA;  timescale             90000.00&#xA;  language              eng&#xA;sampledescription:&#xA;  sampletype            H264&#xA;  type                  video&#xA;  profile-level-id      42e00c&#xA;  sprop-parameter-sets  Z0LgDNoFB&#x2B;wEQAAC7sAAr8gh,aM4zyA==&#xA;  description           {H264CodecConfigInfo: profile: "Baseline", level: 1.2, frameSize: 320x240, displaySize: 320x240, PAR: 1:1, frameRate: 29.97}&#xA;rtpsessioninfo:&#xA;  name                  H264 Stream 1&#xA;  origin                - 1486490083 118668671 IN IP4 10.93.183.3&#xA;  timing                0 0&#xA;  protocolversion       0&#xA;attributes:&#xA;  range                 npt=now-&#xA;[flv @ 0x9578ee0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, flv, from &#x27;rtmp://<ip addr="addr">/livestream live=1&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 14.99 tbr, 1k tbn, 59.94 tbc&#xA;[buffer @ 0x99ee900] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:&#xA;[libx264 @ 0x9584540] using SAR=1/1&#xA;[libx264 @ 0x9584540] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2&#xA;[libx264 @ 0x9584540] profile High, level 1.2&#xA;Output #0, h264, to &#x27;test.flv&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf53.32.100&#xA;    Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 14.99 tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 -> libx264)&#xA;Press [q] to stop, [?] for help&#xA;RTMP_ReadPacket, failed to read RTMP packet body. len: 16582bitrate= 212.1kbits/s    &#xA;frame= 3111 fps= 15 q=-2.0 Lsize=    5385kB time=00:03:27.47 bitrate= 212.6kbits/s    &#xA;video:5385kB audio:0kB global headers:0kB muxing overhead 0.000000%&#xA;[libx264 @ 0x9584540] frame I:13    Avg QP:18.70  size: 31866&#xA;[libx264 @ 0x9584540] frame P:1908  Avg QP:22.29  size:  2392&#xA;[libx264 @ 0x9584540] frame B:1190  Avg QP:29.24  size:   451&#xA;[libx264 @ 0x9584540] consecutive B-frames: 39.5% 24.0% 13.0% 23.4%&#xA;[libx264 @ 0x9584540] mb I  I16..4:  0.2%  1.2% 98.6%&#xA;[libx264 @ 0x9584540] mb P  I16..4:  0.0%  0.0%  0.7%  P16..4: 22.0%  3.5%  2.6%  0.0%  0.0%    skip:71.2%&#xA;[libx264 @ 0x9584540] mb B  I16..4:  0.0%  0.0%  0.2%  B16..8: 15.6%  2.8%  1.1%  direct: 1.3%  skip:78.9%  L0:47.0% L1:42.2% BI:10.8%&#xA;[libx264 @ 0x9584540] 8x8 transform intra:2.2% inter:8.5%&#xA;[libx264 @ 0x9584540] coded y,uvDC,uvAC intra: 98.0% 94.9% 73.9% inter: 14.5% 16.0% 11.3%&#xA;[libx264 @ 0x9584540] i16 v,h,dc,p:  0% 50% 17% 33%&#xA;[libx264 @ 0x9584540] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 21% 11%  3% 13%  6% 21%  4% 14%&#xA;[libx264 @ 0x9584540] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 21% 14%  5% 11%  7% 14%  5% 12%&#xA;[libx264 @ 0x9584540] i8c dc,h,v,p: 65% 15% 10% 10%&#xA;[libx264 @ 0x9584540] Weighted P-Frames: Y:0.5% UV:0.1%&#xA;[libx264 @ 0x9584540] ref P L0: 80.8% 10.4%  7.6%  1.2%  0.0%&#xA;[libx264 @ 0x9584540] ref B L0: 94.9%  4.8%  0.2%&#xA;[libx264 @ 0x9584540] ref B L1: 96.4%  3.6%&#xA;[libx264 @ 0x9584540] kb/s:212.48&#xA;</ip></ip>

    &#xA;&#xA;

    Although I don't see any errors. It just looks like ffmpeg thought the stream had ended ? But that's not possible since it's a live stream.

    &#xA;