Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (41)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • 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 (5484)

  • Conversion for WebM file format using FFMPEG

    23 mars 2012, par user974435

    I am using followng command to convert video to webm format

    ffmpeg -i video/ds2.mp4 -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b:a 345k -s 640x360 video/ds2.webm

    I am receiving following errors :

    1) incompatible sample format 's16' for codec 'libvorbis'

    2) strptime() unavailable on this system, cannot convert the data string

    Do you any idea why I cannot convert, tested conversion to FLV and it's working very well

    Console output

    C:\inetpub\wwwroot>ffmpeg -i video/testavi.avi video/ds2.webm
    ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
     built on Dec 12 2011 13:56:52 with gcc 4.6.2
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
    ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
    ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
    able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
    -enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
    c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
    libxvid --enable-zlib
     libavutil    51. 32. 0 / 51. 32. 0
     libavcodec   53. 43. 0 / 53. 43. 0
     libavformat  53. 24. 0 / 53. 24. 0
     libavdevice  53.  4. 0 / 53.  4. 0
     libavfilter   2. 53. 0 /  2. 53. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, avi, from 'video/testavi.avi':
     Metadata:
       encoder         : Lavf51.12.1
     Duration: 00:00:13.03, start: 0.000000, bitrate: 36427 kb/s
       Stream #0:0: Video: msmpeg4 (MP43 / 0x3334504D), yuv420p, 1920x1080, 30 tbr,
    30 tbn, 30 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 192 kb
    /s
    File 'video/ds2.webm' already exists. Overwrite ? [y/N] y
    w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
    [libvpx @ 0000000001CA9BB0] v0.9.7-p1
    Output #0, webm, to 'video/ds2.webm':
     Metadata:
       encoder         : Lavf53.24.0
       Stream #0:0: Video: vp8, yuv420p, 1920x1080, q=-1--1, 200 kb/s, 1k tbn, 30 t
    bc
       Stream #0:1: Audio: vorbis, 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (msmpeg4 -> libvpx)
     Stream #0:1 -> #0:1 (mp3 -> libvorbis)
    Press [q] to stop, [?] for help

    Problem signature:
     Problem Event Name:   APPCRASH
     Application Name: ffmpeg.exe
     Application Version:  0.0.0.0
     Application Timestamp:    4ee64f02
     Fault Module Name:    ffmpeg.exe
     Fault Module Version: 0.0.0.0
     Fault Module Timestamp:   4ee64f02
     Exception Code:   c0000005
     Exception Offset: 000000000091e090
     OS Version:   6.1.7601.2.1.0.272.7
     Locale ID:    1033
     Additional Information 1: ab8f
     Additional Information 2: ab8f35a907f8f11a8d2e787a8e40efbd
     Additional Information 3: f4d5
     Additional Information 4: f4d524f8bf76a4b71cc6a7afa6412ca9

    Read our privacy statement online:
     http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

    If the online privacy statement is not available, please read our privacy statement offline:
     C:\Windows\system32\en-US\erofflps.txt

    And Console Uncut Output

    C:\inetpub\wwwroot>ffmpeg.exe -i "video/testavi.avi" -acodec libvorbis -b:a 96k
    -ac 2 -vcodec libvpx -b:v 400k -f webm -s 384x216 "video/testavi.webm"
    ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
     built on Dec 12 2011 13:56:52 with gcc 4.6.2
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
    ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
    ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
    able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
    -enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
    c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
    libxvid --enable-zlib
     libavutil    51. 32. 0 / 51. 32. 0
     libavcodec   53. 43. 0 / 53. 43. 0
     libavformat  53. 24. 0 / 53. 24. 0
     libavdevice  53.  4. 0 / 53.  4. 0
     libavfilter   2. 53. 0 /  2. 53. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, avi, from 'video/testavi.avi':
     Metadata:
       encoder         : Lavf51.12.1
     Duration: 00:00:13.03, start: 0.000000, bitrate: 36427 kb/s
       Stream #0:0: Video: msmpeg4 (MP43 / 0x3334504D), yuv420p, 1920x1080, 30 tbr,
    30 tbn, 30 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 192 kb
    /s
    [buffer @ 0000000001D7FF60] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:0/1 sw
    s_param:
    [scale @ 0000000001D7E9E0] w:1920 h:1080 fmt:yuv420p -> w:384 h:216 fmt:yuv420p
    flags:0x4
    [libvpx @ 0000000001BF7C10] v0.9.7-p1
    Output #0, webm, to 'video/testavi.webm':
     Metadata:
       encoder         : Lavf53.24.0
       Stream #0:0: Video: vp8, yuv420p, 384x216, q=-1--1, 400 kb/s, 1k tbn, 30 tbc

       Stream #0:1: Audio: vorbis, 44100 Hz, 2 channels, s16, 96 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (msmpeg4 -> libvpx)
     Stream #0:1 -> #0:1 (mp3 -> libvorbis)
    Press [q] to stop, [?] for help
  • FFMPEG and libavfilter

    21 mars 2012, par Sergio

    With the currently installed ffmpeg I can't post watermark on converted videos. Can the reason for that be that I have not installed libavfilter library ?

    Currently # ffmpeg -v looks like :

    FFmpeg version SVN-r20374, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    built on Oct 26 2009 22:47:01 with gcc 4.1.2 20080704 (Red Hat 4.1.2-46)
    configuration: --enable-libmp3lame --enable-libopencore-amrnb --enable-version3 -   enable-libopencore-amrwb --enable-version3 --enable-nonfree --enable-libfaad --enable-gpl - -disable-mmx --enable-shared --enable-libfaac --enable-libvorbis
    libavutil     50. 3. 0 / 50. 3. 0
    libavcodec    52.37. 1 / 52.37. 1
    libavformat   52.39. 2 / 52.39. 2
    libavdevice   52. 2. 0 / 52. 2. 0

    As you can see I'm missing libavfilter ? How can I add that library to FFMPEG and successfully add watermark on videos ?

    Thanks for any help.

  • Nginx rtmp module - on_publish fires multiple time instead of once

    29 juillet 2017, par Stephen Wright

    This is copy and pasted from the bug report I created on the rtmp-module by Arut, I am not completely sure if it is a bug or me not understanding how the module works, I have read the whole directives of module as from https://github.com/arut/nginx-rtmp-module/wiki/Directives

    Proper explanation, if code is not displayed properly I will edit and fix

    Hi, been using the module and finding it very very good !

    Think I have found a issue though, although it may be me misunderstanding the directives.

    Essentially I wish to fire a script (/usr/local/bin/make_thumbnail.sh) which creates a thumbnail automatically from a stream (using ffmpeg), the idea is to have this done for every stream as soon as it is published in order to create a function a bit like twitch tv where the streamer will not have to specify any thumbnail image, authenticated users simply start a stream (which will later be authenticated but is not yet) The script does also write data into the database however this stage works fine and I don’t believe the issue is related, if I comment out these lines then the thumbnail creation still works and my issue continues.

    Initially this was done using the "exec" command as I believe I mis-read the documentation and I believe the exec command doesn’t work for my problem as ". When publishing stops the process is terminated." does this mean it will continually execute until stream stops ?

    I have started using the exec_publish command to try and fix this issue however the same issue seems to occur. The entire script repeats approximately every 15-17 seconds, a new thumbnail is created and a new database entry is create with all the correct information.

    Below is the nginx.conf line. Please ignore if indentation is incorrect couldn’t see a way to indent blocks of code and it’s late here, assume all code is indented correctly unless you believe that could be the issue in which case I will post it indented as early as I can.

    application live {
    allow play all;
    live on;
    record all;
    record_path /var/stream/video_recordings/;
    record_unique on;
    hls on;
    hls_nested on;
    hls_path /var/stream/HLS/live;
    hls_fragment 10s;

    #on publish create thumbnail using first second of stream and save in
    /var/stream/video_recordings/thumbnails
    exec_publish usr/local/bin/make_thumbnail.sh $name;

    The rest can be pasted or attached if needed but is working nginx config for rtmp + website

    The most simple version of the make_thumbnail..sh is pasted below, I have omitted the variables that I have used for database entryys obviously but as the script works without fail from terminal I believe this to be an nginx issue (if I run the command manually under the nginx user e.g. sudo -u nginx /usr/local/bin/make_thumbnail.sh with a name the same as any running stream, it works and only executes once as would expect, all permissions in script are ok and tested.

    make_thumbnail.sh

    #!/bin/bash

    TIME=$(date +%s)
    NAME=$1
    echo "time: "
    FILENAME=${TIME}_${NAME}

    ffmpeg -i rtmp://192.168.0.98:1935/live/$1 -vframes 1 -s 150x150 -ss 10 -
    strftime 1 /var/stream/video_recordings/thumbnails/"$FILENAME.jpg";

    #Writes path to video into database
    mysql --user=$DB_USER --password=$DB_PASSWD $DB_NAME << EOF
    INSERT INTO $TABLE3 (thumbnailfile) VALUES ('$FILENAME');
    set @last_id_in_thumbnails = LAST_INSERT_ID();
    INSERT INTO $TABLE (created_at, updated_at, thumnailID) VALUES
    (NOW(),NOW(),@last_id_in_thumbnails);
    SET @last_id_in_livestreams = LAST_INSERT_ID();
    INSERT INTO $TABLE2 (created_at, updated_at, filename,liveID) VALUES
    (NOW(),NOW(),'$FILENAME',@last_id_in_livestreams);
    EOF

    I have not got the nginx rtmp logs installed, I can obviously do this however some of the logs appear in the nginx error.log, strangely the latest stream I tried did not update in the access log, however I think this is because I did not attempt to connect to it via any method. I don’t fully understand the error.log, in my stupidity I decided to use nginx with which I am quite inexperienced and I am finding it very difficult to troubleshoot this issue, it appears to me that as part of the RTMP protocol or my streaming software (OBS) is either directly pinging the rtmp stream or is being pinged by the server to ensure the connection is still there. And this ping is

    I have left a stream running from approx 4 minutes without interacting with the server, streaming software, computer running the stream, I have ensured the internet connection is constant as my first though was the connection dropped, however on inspecting the database the executing is done always after at least 11 seconds however usually this is 16, I can’t seem to figure out how to select the closest dates from the database however there has been at least a few 17 second differences (potentially when
    I am unsure if this is an issue or if it is intended behavior but I do require this to finish a university degree, I’m not asking for answers but if it is a legitimate issue then I would be happy to spend as much time I can commit to it if some insight into what is causing it, or if there is a workaround I believe it should be documented somewhere, I have googled into making any exec commands run only once on publish

    I can’t seem to pinpoint where in the log the issue is happening however think it is something to do with the below exceprts I would attach the file but can’t seem to select all lines after the timestamp upon starting a stream

    2017/07/26 18:17:35 [info] 1451#0: *2229 exec: starting managed child
    'ffmpeg', client: 192.168.0.78, server: 0.0.0.0:1935
    2017/07/26 18:17:35 [info] 1451#0: *2412 client connected '192.168.0.98'
    2017/07/26 18:17:35 [info] 1451#0: *2412 connect: app='live' args=''
    flashver='LNX 9,0,124,2' swf_url='' tc_url='rtmp://192.168.0.98:1935/live'
    page_url='' acodecs=4071 vcodecs=252 object_encoding=0, client:
    192.168.0.98, server: 0.0.0.0:1935
    2017/07/26 18:17:35 [info] 1451#0: *2412 createStream, client: 192.168.0.98,
    server: 0.0.0.0:1935
    2017/07/26 18:17:35 [info] 1451#0: *2412 play: name='newname' args=''
    start=-2000 duration=0 reset=0 silent=0, client: 192.168.0.98, server:  
    0.0.0.0:1935
    2017/07/26 18:17:36 [info] 1451#0: *2410 recv() failed (104: Connection  
    reset by peer), client: 192.168.0.98, server: 0.0.0.0:1935
    2017/07/26 18:17:36 [info] 1451#0: *2410 disconnect, client: 192.168.0.98,
    server: 0.0.0.0:1935
    2017/07/26 18:17:36 [info] 1451#0: *2410 deleteStream, client: 192.168.0.98,
    server: 0.0.0.0:1935
    2017/07/26 18:17:36 [notice] 1451#0: signal 17 (SIGCHLD) received
    2017/07/26 18:17:36 [notice] 1451#0: unknown process 10487 exited with code
    0
    2017/07/26 18:17:36 [info] 1451#0: *2229 exec: child 10487 exited; ignoring,
    client: 192.168.0.78, server: 0.0.0.0:1935

    ver: 0.0.0.0:1935
    2017/07/26 18:17:41 [info] 1451#0: *2229 exec: starting managed child
    'usr/local/bin/make_thumbnail.sh', client: 192.168.0.78, server:  
    0.0.0.0:1935
    2017/07/26 18:17:41 [info] 1451#0: *2413 client connected '192.168.0.98'
    2017/07/26 18:17:41 [info] 1451#0: *2413 connect: app='live' args=''
    flashver='LNX 9,0,124,2' swf_url='' tc_url='rtmp://192.168.0.98:1935/live'
    page_url='' acodecs=4071 vcodecs=252 object_encoding=0, client:
    192.168.0.98,
    server: 0.0.0.0:1935
    2017/07/26 18:17:41 [info] 1451#0: *2413 createStream, client: 192.168.0.98,
    server: 0.0.0.0:1935
    2017/07/26 18:17:41 [info] 1451#0: *2413 play: name='newname' args=''
    start=-2000 duration=0 reset=0 silent=0, client: 192.168.0.98, server:
    0.0.0.0:1935
    2017/07/26 18:17:43 [info] 1451#0: *2229 exec: starting managed child
    'ffmpeg',
    client: 192.168.0.78, server: 0.0.0.0:1935
    2017/07/26 18:17:43 [info] 1451#0: *2414 client connected '192.168.0.98'
    2017/07/26 18:17:43 [info] 1451#0: *2414 connect: app='live' args=''
    flashver='LNX 9,0,124,2' swf_url='' tc_url='rtmp://192.168.0.98:1935/live'
    page_url='' acodecs=4071 vcodecs=252 object_encoding=0, client:
    192.168.0.98,
    server: 0.0.0.0:1935
    @