Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (69)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7838)

  • ffmpeg replace part of audio file with looped audio

    1er décembre 2015, par user1202648

    I am quite new to ffmpeg and I am trying to replace a part of a first audio file with another second file. The second file can be too short, so some sort of loop should exist.

    After some research I came up with the following command arguments and it gives me the output as long as I only do one replacement. But I would like to do multiple replacements. So any help on what I am doing wrong ? Any suggestions/remarks on the way of working are also very welcome.

    (Any typos in the commands below can be ignored, I generate the command by script and for ease of use I simplified the names.)

    Works (One replacement) :

    "ffmpeg.exe" -y -i "first.wav" -i "second.wav" -filter_complex "[1:a][1:a][1:a]concat=n=3:v=0:a=1,asetpts=PTS-STARTPTS[replaceBase];[0:a]atrim=0:3,asetpts=PTS-STARTPTS[partA];[replaceBase]atrim=0:2,asetpts=PTS-STARTPTS[replaceA];[0:a]atrim=start=5,asetpts=PTS-STARTPTS[partB];[partA][replaceA][partB]concat=n=3:v=0:a=1[aout]" -map "[aout]" Out.wav

    Works Not (Multiple replacements) :

    "ffmpeg.exe" -y -i "first.wav" -i "second.wav" -filter_complex "[1:a][1:a][1:a]concat=n=3:v=0:a=1,asetpts=PTS-STARTPTS[replaceBase];[0:a]atrim=0:3,asetpts=PTS-STARTPTS[partA];[replaceBase]atrim=0:2,asetpts=PTS-STARTPTS[replaceA];[0:a]atrim=5:4,asetpts=PTS-STARTPTS[partB];[replaceBase]atrim=0:2,asetpts=PTS-STARTPTS[replaceB];[0:a]atrim=start=6,asetpts=PTS-STARTPTS[partC];[partA][replaceA][partB][replaceB][PartC]concat=n=4:v=0:a=1[aout]" -map "[aout]" Out.wav

    ffmpeg version N-76860-g72eaf72 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 5.2.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-aacenc —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. 9.100 / 55. 9.100
    libavcodec 57. 16.100 / 57. 16.100
    libavformat 57. 19.100 / 57. 19.100
    libavdevice 57. 0.100 / 57. 0.100
    libavfilter 6. 15.100 / 6. 15.100
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from ’3897583stereo.wav’ :
    Duration : 00:00:12.07, bitrate : 256 kb/s
    Stream #0:0 : Audio : pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 2 channels, s16, 256 kb/s
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, wav, from ’beep-021.wav’ :
    Metadata :
    encoder : Lavf57.19.100
    Duration : 00:00:00.30, bitrate : 1413 kb/s
    Stream #1:0 : Audio : pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    [wav @ 057242c0] Invalid stream specifier : replaceBase.
    Last message repeated 1 times
    Stream specifier ’STREAM CUT matches no streams.

    Thanks in advance !

  • Add black video to video with sound

    4 février 2017, par garrettlynch

    I’m trying to insert 13 seconds of black video at the start of a video that has sound using ffmpeg like so :

    ffmpeg -f lavfi -i "color=c=black:s=720x406:r=25:sar=1/1" -i input.mp4 -filter_complex \
    "[0:v] trim=end=13,setpts=PTS-STARTPTS [blackstart]; \
    [blackstart] [1:v] concat=n=2:v=1:a=0[out]" \
    -map "[out]" -c:a copy output.mp4

    However the sound is not being maintained. What am I doing incorrectly ? -c:a copy does not seem to work should I be using a [1:a] somewhere ?

    garrett-retina:~ garrett-macbookretina$ ffmpeg -f lavfi -i "color=c=red:s=720x406:r=25:sar=1/1" -i input.mp4 -filter_complex \
    > "[0:v] trim=end=13,setpts=PTS-STARTPTS [blackstart]; \
    > [blackstart] [1:v] concat=n=2:v=1:a=0[out]" \
    >  -map "[out]" -c:a copy output.mp4
    ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 34.100 / 55. 34.100
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.100 / 57. 56.100
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    Input #0, lavfi, from 'color=c=red:s=720x406:r=25:sar=1/1':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x406 [SAR 1:1 DAR 360:203], 25 tbr, 25 tbn, 25 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.56.100
     Duration: 33:59:47.32, start: 0.000000, bitrate: 179 kb/s
       Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x406 [SAR 1:1 DAR 360:203], 62 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, stereo, fltp, 114 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    [libx264 @ 0x7fa344048400] using SAR=1/1
    [libx264 @ 0x7fa344048400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x7fa344048400] profile High, level 3.0
    [libx264 @ 0x7fa344048400] 264 - core 148 r2748 97eaef2 - 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=12 lookahead_threads=2 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 '/Users/garrett-macbookretina/Desktop/Best of Luck With the Wall/exports/test.mp4':
     Metadata:
       encoder         : Lavf57.56.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x406 [SAR 1:1 DAR 360:203], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc57.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
     Stream #0:0 (rawvideo) -> trim
     Stream #1:0 (h264) -> concat:in1:v0
     concat -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    frame=3060008 fps=432 q=-1.0 Lsize=  957795kB time=34:00:00.20 bitrate=  64.1kbits/s speed=17.3x    
    video:921972kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.885564%
    [libx264 @ 0x7fa344048400] frame I:16585 Avg QP:13.67  size: 49743
    [libx264 @ 0x7fa344048400] frame P:770518 Avg QP:16.48  size:    91
    [libx264 @ 0x7fa344048400] frame B:2272905 Avg QP:25.11  size:    22
    [libx264 @ 0x7fa344048400] consecutive B-frames:  0.9%  0.1%  0.4% 98.6%
    [libx264 @ 0x7fa344048400] mb I  I16..4: 10.2% 39.7% 50.1%
    [libx264 @ 0x7fa344048400] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.7%  0.0%  0.0%  0.0%  0.0%    skip:99.1%
    [libx264 @ 0x7fa344048400] 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.9% L1:53.1% BI: 0.1%
    [libx264 @ 0x7fa344048400] 8x8 transform intra:39.9% inter:52.0%
    [libx264 @ 0x7fa344048400] coded y,uvDC,uvAC intra: 86.1% 77.1% 60.4% inter: 0.0% 0.1% 0.0%
    [libx264 @ 0x7fa344048400] i16 v,h,dc,p: 66% 10% 13% 11%
    [libx264 @ 0x7fa344048400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 20% 14%  6%  7%  7%  7%  7% 11%
    [libx264 @ 0x7fa344048400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 19% 11%  7%  9%  8%  8%  7%  9%
    [libx264 @ 0x7fa344048400] i8c dc,h,v,p: 59% 19% 17%  5%
    [libx264 @ 0x7fa344048400] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fa344048400] ref P L0: 53.9%  4.0% 16.6% 25.5%  0.0%
    [libx264 @ 0x7fa344048400] ref B L0: 27.9% 71.6%  0.5%
    [libx264 @ 0x7fa344048400] ref B L1: 97.6%  2.4%
    [libx264 @ 0x7fa344048400] kb/s:61.71
    garrett-retina:~ garrett-macbookretina$
  • Python : How to clip/trim required part from the video and move the trimmed video file to other directory

    4 avril 2021, par saurabh

    I'm trying to remove duplicate segments from videos from a directory and paste these trimmed videos to other directory.

    


    For example :

    


    I've following directory structure for saving live rtsp stream (each 1 min long) :-

    


    Live_videos
------2021-04-04
      ------stream1
            -------14 36 08.avi( 1 min)
                   14 37 08.avi( Saved only till 14 37 39 mark due to disconnect with stream1 camera)
                   14 38 35.avi( 1 min)
            stream2
            -------14 36 15.avi( 1 min)
                   14 37 15.avi( 1 min)
                   14 38 14.avi( 1 min)


    


    So, the disconnect and reconnect time are 14 37 40 and 14 38 34 respectively which will be sent to some other server and that server will search for videos saved in their machine which contains segments from the given timestamps and sends the video file in following directory structure : -

    


    Edge_videos
-----------2021-04-04
           ----------stream1
                     -------14 36 35.avi
                     -------14 37 35.avi


    


    Now, you can see that the received video files have the required segments from disconnect period as well as duplicate segments which are already saved in Live_videos directory.

    


    How do I remove the duplicate segments from the received videos and move only the required trimmed video file to the Live_videos----> stream1 directory and delete all the files from Edge_videos afterwards.