Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (100)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (10616)

  • capturing x11grab display from ffmpeg giveing "segmentation fault1 q=0.0"

    26 juin 2019, par user2369563

    In Debian 9, I am trying to record screen using ffmpeg over x11grab. it’s working great but sometimes its give error as shown below.
    Any idea what causing this ?

    exec error: Error: Command failed: ffmpeg -y  -f x11grab -s 1920x1080 -framerate 30 -i :1.0+0,0 -vsync 1 -c:v libx264 -preset ultrafast -crf 0 -pix_fmt yuv444p output.mkv
    ffmpeg version 3.2.14-1~deb9u1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     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
    [x11grab @ 0x55f87adcffa0] Stream #0: not enough frames to estimate rate; consider increasing probesize
    Input #0, x11grab, from ':1.0+0,0':
     Duration: N/A, start: 1561540173.584858, bitrate: N/A
       Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc
    [libx264 @ 0x55f87adda860] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x55f87adda860] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
    [libx264 @ 0x55f87adda860] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 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=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
    Output #0, matroska, to 'output.mkv':
     Metadata:
       encoder         : Lavf57.56.101
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1920x1080, q=-1--1, 30 fps, 1k tbn, 30 tbc
       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 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    Segmentation fault1 q=0.0 size=   10942kB time=00:00:02.40 bitrate=37332.4kbits/s speed=0.923x
  • ffmpeg : Video is not start streaming in instance

    23 juillet 2019, par Sachin Shah

    I have setup the streaming code which use the ffmpeg. It works perfectly fine in my local system.

    Version in local

    ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)

    Version in live

    ffmpeg version 3.4.6 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 7 (GCC)

    GCC versions

    Local

    gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

    Live

    gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)

    Code which works fine in my local

    var args = [
               '-y',
               '-re',
               '-i', `${filePath}`,
               '-listen', '1',
               '-s', '640x480',
               '-codec:a', 'aac -strict experimental',
               '-b:a', '44.1k',
               '-preset', 'superfast',
               '-r', '15',
               '-b:v', '1000k',
               '-tune', 'zerolatency',
               '-c:a', 'aac',
               '-ar', '44100',
               '-c:v', 'libx264',
               '-f', 'flv', streamURL
     ];                    
     let ffmpeg = spawn(`ffmpeg`, args);
     ffmpeg.on('exit', (statusCode) => {
          console.log("statusCode ::::::::::::::::::::::::::::::::: ", statusCode);
          if (statusCode === 0) {
                console.log('conversion successful')
          }
      })

      ffmpeg.stderr.on('data', (err) => {
         console.log('err:', new String(err))
      })

      ffmpeg.on('close', function () {
         console.log('finished');
      });

    Error :

    ffmpeg -re -i '{MyS3URL}' -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://{{instanceIp}}/live/myStream

    err: [String: 'ffmpeg version 3.4.6']
    err: [String: ' Copyright (c) 2000-2019 the FFmpeg developers']
    err: [String: '\n']
    err: [String: '  built with gcc 7 (GCC)\n']
    err: [String: '  configuration: \n']
    err: [String: '  libavutil      55. 78.100 / 55. 78.100\n']
    err: [String: '  libavcodec     57.107.100 / 57.107.100\n']
    err: [String: '  libavformat    57. 83.100 / 57. 83.100\n  libavdevice    
    57. 10.100 / 57. 10.100\n  libavfilter     6.107.100 /  6.107.100\n  
    libswscale      4.  8.100 /  4.  8.100\n  libswresample   2.  9.100 /  
    2.  9.100\nUnrecognized option \'tune\'.\nError splitting the argument
    list: Option not found\n']
    statusCode :::::::::::::::::::::::::::::::::  1
    finished

    Note :
    As you can see I have console the URL which I have made dynamic URL.

    In addition, I directly got statusCode = 1. When I paste the same URL in my local termial and hit the enter then my streaming starts.

    So the question is why it is not working in live ?

  • Trimming videos using FFMPEG + Python : Invalid Argument

    26 juin 2019, par user2588534

    I am looking to use a short Python script to automate some video cutting for me based on a .txt file I created with timecodes. I use the following code for that :

    #!/usr/bin/env python3
    import subprocess
    first = True
    with open('VideoSlicepoints_Python.txt') as f:
     for line in f.readlines():
       if first:
           first = False
       else:
           filename, VideoDing_Timecode, Video_R4Start, Video_R4End, Video_R24Start, Video_R24End, Video_R0plus15 = line.strip().split(';')
           cmd = ['ffmpeg', '-i', filename, '-ss', Video_R4Start, '-to', Video_R4End, '-c', 'copy', '"S:/_RobotThesis/VideoRounds/' + filename[:-4] + '_r4' + filename[-4:] + '"']
           print(" ".join(cmd))
           subprocess.run(cmd, stderr=subprocess.STDOUT)

    This returns me with the following error when it is trying to loop over to videos :

    [NULL @ 0000027cddf8a100] Unable to find a suitable output format for '"S:/_RobotThesis/VideoRounds/log1_front_r4.MTS"'
    "S:/_RobotThesis/VideoRounds/log1_front_r4.MTS": Invalid argument

    Now, I thought it was a formatting issue, but when I input the command directly (as is visible in the CMD prompt), it works just fine :

    ffmpeg -i log1_front.MTS -ss 09:37.1 -to 11:37.1 -c copy "S:/_RobotThesis/VideoRounds/log1_front_r4.MTS"

    For reference, this is an excerpt of the .txt file I am using (it is based on a csv file, that’s why it has headers and I excluded the header in the script) :

    Filename;VideoDing_Timecode;Video_R4Start;Video_R4End;Video_R24Start;Video_R24End;Video_R0plus15
    log1_front.MTS;04:44.0;09:37.1;11:37.1;28:00.3;30:00.3;19:44.0
    log2_front.MTS;03:50.0;08:11.2;10:11.2;19:44.9;21:44.9;18:50.0
    log3_front.MTS;04:10.1;08:32.4;10:32.4;16:49.2;18:49.2;19:10.1
    log5_front.MTS;01:14.7;04:50.2;06:50.2;14:24.5;16:24.5;16:14.7

    Edit :

    Here is the full output in the CMD, if needed :

    ffmpeg -i log1_front.MTS -ss 09:37.1 -to 11:37.1 -c copy "S:/_RobotThesis/VideoRounds/log1_front_r4.MTS"
    ffmpeg version N-94054-gdd357d76e5 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.3.1 (GCC) 20190414
     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-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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 28.100 / 56. 28.100
     libavcodec     58. 53.100 / 58. 53.100
     libavformat    58. 27.103 / 58. 27.103
     libavdevice    58.  7.100 / 58.  7.100
     libavfilter     7. 55.100 /  7. 55.100
     libswscale      5.  4.101 /  5.  4.101
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    Input #0, mpegts, from 'log1_front.MTS':
     Duration: 00:37:35.05, start: 1.440000, bitrate: 12560 kb/s
     Program 1
       Metadata:
         service_name    : Service01
         service_provider: FFmpeg
       Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
       Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 256 kb/s
    [NULL @ 000002d1f347a100] Unable to find a suitable output format for '"S:/_RobotThesis/VideoRounds/log1_front_r4.MTS"'
    "S:/_RobotThesis/VideoRounds/log1_front_r4.MTS": Invalid argument