Recherche avancée

Médias (91)

Autres articles (105)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (12101)

  • FFmpeg filter complex add audio file to video at specific points

    4 juin 2020, par steve

    atrim=0:2 starts fine when I play the video it plays the mp3 now how do I add a working end time say finish at 9 seconds ?

    



    Summary I want to start at 2 seconds and finish at 9 seconds.

    



    ffmpeg -y -i "C:\Users\test\Desktop\vidz\New folder (2)\target\vaastav song .mp4" -i "C:\Users\test\Desktop\vidz\New folder (2)\target\2.mp3" -filter_complex "[0]atrim=0:2[Apre];[0]atrim=5,asetpts=PTS-STARTPTS[Apost];[Apre][1][Apost]concat=n=3:v=0:a=1" -vcodec copy -y "C:\Users\test\Desktop\vidz\New folder (2)\target\output1.mp4"


    



    log file

    



    ffmpeg version git-2020-04-13-59e3a9a Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200328
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 42.102 / 56. 42.102
  libavcodec     58. 78.102 / 58. 78.102
  libavformat    58. 42.100 / 58. 42.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 77.101 /  7. 77.101
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\test\Desktop\vidz\New folder (2)\target\vaastav song .mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2018-09-02T04:28:46.000000Z
  Duration: 00:05:08.80, start: 0.000000, bitrate: 2289 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2160 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2018-09-02T04:28:46.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 09/01/2018.
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-09-02T04:28:46.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 09/01/2018.
Input #1, mp3, from 'C:\Users\test\Desktop\vidz\New folder (2)\target\2.mp3':
  Metadata:
    genre           : Electronic;Indie
    title           : A Distorted Noise With A Little Bit Of Sense
    artist          : Lenin Was A Zombie
    encoder         : Lavf56.19.100
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
  Duration: 00:00:54.00, start: 0.025057, bitrate: 192 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
    Metadata:
      encoder         : Lavc56.21
Stream mapping:
  Stream #0:1 (aac) -> atrim
  Stream #0:1 (aac) -> atrim
  Stream #1:0 (mp3float) -> concat:in1:a0
  concat -> Stream #0:0 (aac)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
Output #0, mp4, to 'C:\Users\test\Desktop\vidz\New folder (2)\target\output1.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf58.42.100
    Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc58.78.102 aac
    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 2160 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      creation_time   : 2018-09-02T04:28:46.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 09/01/2018.
frame=  737 fps=0.0 q=-1.0 size=    7936kB time=00:00:29.44 bitrate=2208.1kbits/s speed=58.9x    
[out_0_0 @ 000000000312c900] 100 buffers queued in out_0_0, something may be wrong.
[out_0_0 @ 000000000312c900] 1000 buffers queued in out_0_0, something may be wrong.
frame= 1401 fps=876 q=-1.0 size=   16640kB time=00:01:46.85 bitrate=1275.7kbits/s speed=66.8x    
frame= 2281 fps=1086 q=-1.0 size=   26112kB time=00:02:22.01 bitrate=1506.3kbits/s speed=67.6x    
frame= 3152 fps=1212 q=-1.0 size=   35584kB time=00:02:56.58 bitrate=1650.8kbits/s speed=67.9x    
frame= 4011 fps=1294 q=-1.0 size=   45824kB time=00:03:31.32 bitrate=1776.4kbits/s speed=68.2x    
frame= 4882 fps=1356 q=-1.0 size=   56320kB time=00:04:06.03 bitrate=1875.2kbits/s speed=68.3x    
frame= 5753 fps=1403 q=-1.0 size=   66560kB time=00:04:40.79 bitrate=1941.8kbits/s speed=68.5x    
frame= 6622 fps=1440 q=-1.0 size=   77056kB time=00:05:15.37 bitrate=2001.6kbits/s speed=68.6x    
frame= 7482 fps=1467 q=-1.0 size=   85248kB time=00:05:50.20 bitrate=1994.1kbits/s speed=68.7x    
frame= 7720 fps=1479 q=-1.0 Lsize=   87248kB time=00:05:59.79 bitrate=1986.5kbits/s speed=68.9x    
video:81451kB audio:5634kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.186449%
[aac @ 0000000003017ac0] Qavg: 648.065


    



    I tried messing about with the line of code but no success so I turn to you for additional support

    


  • Node-JS convert mp4 to m3u8 with FFMPEG : Unable to find a suitable output format for 'v:1,a:1"'

    18 mars 2021, par Jérémy Gachon

    I am writing a server-side function to convert a mp4 file to m3u8, but there is an error with the differents video size. I want to have my video in differents sizes (4k UHD, 2k, 1080p, 720p...) but, with this line : "-var_stream_map", "'v:0,a:0 v:1,a:1'",, there is an error :

    


    


    [NULL @ 0x7fe9de00d800] Unable to find a suitable output format for 'v:1,a:1"'
v:1,a:1" : Invalid argument

    


    


    When I delete this line, all work, but I have just the v0 in 640x360 and not the v1 (960x540).

    


    How can I bypass this error to have all the video sizes ?

    


    const ffmpeg = require('fluent-ffmpeg');
var infs = new ffmpeg

infs.addInput(doc.data().url).outputOptions([
            '-preset slow', '-g 48', '-sc_threshold 0',
            '-map 0:0', '-map 0:1', '-map 0:0', '-map 0:1',
            '-s:v:0 640x360', '-c:v:0 libx264', '-b:v:0 365k',
            '-s:v:1 960x540', '-c:v:1 libx264', '-b:v:1 2000k',
            "-var_stream_map", "'v:0,a:0 v:1,a:1'",
            '-master_pl_name master.m3u8',
            '-f hls', '-hls_time 6', '-hls_list_size 0',
            '-hls_segment_filename fileSequence%d|v%v.ts',
            '-max_muxing_queue_size 1024',
        ]).output('./video.m3u8')
            .on('start', function (commandLine) {
                console.log('Spawned Ffmpeg with command: ' + commandLine);
            })
            .on('error', function (err, stdout, stderr) {
                console.log('An error occurred: ' + err.message, err, stderr);
            })
            .on('progress', function (progress) {
                console.log('Processing: ' + progress.percent + '% done')
            })
            .on('end', function (err, stdout, stderr) {
                console.log('Finished processing!' /*, err, stdout, stderr*/)
            })
            .run() 


    


  • OpenSuse - Cannot find installation of real FFmpeg

    27 août 2020, par Harry Boy

    I have OpenSuse Leap 15.1 and have installed ffmpeg and checked that its installed as follows :

    


    pip install ffmpeg
pip list | grep ffmpeg
ffmpeg                 1.4


    


    Now when I run the following code :

    


    import skvideo.io
import skvideo.datasets
bbb = skvideo.datasets.bigbuckbunny()
v = skvideo.io.vread(bbb)


    


    I get this error :

    


    Traceback (most recent call last):&#xA;File "<stdin>", line 1, in <module>&#xA;File "/usr/lib/python3.6/site-packages/skvideo/io/io.py", line 133, in vread&#xA;assert _HAS_FFMPEG, "Cannot find installation of real FFmpeg (which comes with ffprobe)."&#xA;AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).&#xA;</module></stdin>

    &#xA;

    I have also tried to set the ffmpeg path as follows but I get another error :

    &#xA;

    import skvideo.io&#xA;skvideo.setFFmpegPath(&#x27;/usr/lib/python3.6/site-packages/ffmpeg/&#x27;)&#xA;/usr/lib/python3.6/site-packages/skvideo/__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: /usr/lib/python3.6/site-packages/ffprobe/&#xA;  warnings.warn("ffmpeg/ffprobe not found in path: " &#x2B; str(path), UserWarning)&#xA;

    &#xA;

    How can I get this to work on OpenSuse ?

    &#xA;

    This is similar to this question but its Ubuntu : Cannot find installation of real FFmpeg (which comes with ffprobe)

    &#xA;