Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (65)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (8934)

  • FFMpeg - Merge multiple rtmp stream inputs to a single rtmp output

    21 juillet 2020, par Paulo Miguel Almeida

    I'm trying to combine/merge two rtmp streams and then publish 'em to another stream

    



    Ex. :

    



    ffmpeg -i rtmp://ip:1935/live/micMyStream7 -i rtmp://ip:1935/live/MyStream7  -strict -2  -f flv rtmp://ip:1935/live/bcove7


    



    The scenario is the following, I got a stream which comes from an user's microphone that 
is the first one (micMyStream7) and I also got a stream from another user but this one has audio and video(MyStream7).

    



    As they are talking to each other when a user is speaking, the other one would only be listening to and vice versa.

    



    My idea is to set up a third stream called (bcove) which would "merge" both of them so that I could have spectators who would only be listening to the entire conversation between them.

    



    This is the log that ffmpeg printed although I couldn't recognize any message which helped me out.

    



    paulo@paulo-desktop:~$ ffmpeg -re -i rtmp://ip:1935/live/micMyStream7 -i rtmp://ip:1935/live/MyStream7  -strict -2  -f flv rtmp://ip:1935/live/bcove7
ffmpeg version N-56029-g2ffead9 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep  4 2013 11:05:57 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
  configuration: 
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.100 / 55. 31.100
  libavformat    55. 16.100 / 55. 16.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 83.102 /  3. 83.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
Input #0, flv, from 'rtmp://ip:1935/live/micMyStream7':
  Metadata:
    author          : 
    copyright       : 
    description     : 
    keywords        : 
    rating          : 
    title           : 
    presetname      : Medium Bandwidth (300 Kbps) - VP6
    creationdate    : Wed Sep  4 16:41:52 2013
                    : 
    videodevice     : Built-in iSight
    videokeyframe_frequency: 5
    audiodevice     : External microphone
    audiochannels   : 1
    audioinputvolume: 75
  Duration: N/A, start: 0.000000, bitrate: 253 kb/s
    Stream #0:0: Video: vp6f, yuv420p, 320x240, 204 kb/s, 44.83 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3, 22050 Hz, mono, s16p, 49 kb/s
Input #1, flv, from 'rtmp://ip:1935/live/MyStream7':
  Metadata:
    author          : 
    copyright       : 
    description     : 
    keywords        : 
    rating          : 
    title           : 
    presetname      : Custom
    creationdate    : Wed Sep  4 12:02:24 2013
                    : 
    videodevice     : FaceTime HD Camera (Built-in)
    videokeyframe_frequency: 5
    audiodevice     : Internal microphone
    audiochannels   : 1
    audioinputvolume: 75
  Duration: N/A, start: 0.000000, bitrate: 253 kb/s
    Stream #1:0: Video: vp6f, yuv420p, 320x240, 204 kb/s, 45.08 tbr, 1k tbn, 1k tbc
    Stream #1:1: Audio: mp3, 22050 Hz, mono, s16p, 49 kb/s
Output #0, flv, to 'rtmp://ip:1935/live/bcove7':
  Metadata:
    author          : 
    copyright       : 
    description     : 
    keywords        : 
    rating          : 
    title           : 
    presetname      : Medium Bandwidth (300 Kbps) - VP6
    creationdate    : Wed Sep  4 16:41:52 2013
                    : 
    videodevice     : Built-in iSight
    videokeyframe_frequency: 5
    audiodevice     : External microphone
    audiochannels   : 1
    audioinputvolume: 75
    encoder         : Lavf55.16.100
    Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 44.83 tbc
    Stream #0:1: Audio: adpcm_swf ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 88 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (vp6f -> flv)
  Stream #0:1 -> #0:1 (mp3 -> adpcm_swf)
Press [q] to stop, [?] for help
[mp3 @ 0x3625ec0] overread, skip -9 enddists: -3 -300:14.44 bitrate= 224.0kbits/s    
[mp3 @ 0x3625ec0] overread, skip -7 enddists: -3 -30:26.39 bitrate= 203.5kbits/s  


    



    Thanks in advance

    


  • Has anyone used the speech driven animation and can you make it work ?

    16 août 2020, par hopw Jan

    I'm talking about this repo. I installed all the dependencies but I can't make it work. Any help is highly appreciated ( :

    


    I'm running python 3.7.5.

    


    This is my code :

    


    import sda
import scipy.io.wavfile as wav
from PIL import Image

va = sda.VideoAnimator(gpu=0, model_path="crema")# Instantiate the animator
fs, audio_clip = wav.read("example/audio.wav")
still_frame = Image.open("example/image.bmp")
vid, aud = va(frame, audio_clip, fs=fs)
va.save_video(vid, aud, "generated.mp4")


    


    Sadly it doesn't seem to work and it gives me this error :

    


    Warning (from warnings module):&#xA;  File "C:\Users\Alex\AppData\Local\Programs\Python\Python37\lib\site-packages\pydub\utils.py", line 170&#xA;    warn("Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;RuntimeWarning: Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Alex\Desktop\test\test.py", line 8, in <module>&#xA;    vid, aud = va(frame, audio_clip, fs=fs)&#xA;NameError: name &#x27;frame&#x27; is not defined&#xA;</module>

    &#xA;

    Spent about 2 hours and I can't do anything, I'm out of ideas.&#xA;If you take the time to help me thank you from the bottom of my heart.

    &#xA;

  • FFMPEG Webvtt m3u8 download into single vtt file, ignore the "X-TIMESTAMP-MAP=MPEGTS=" (timestamp sync problem)

    5 janvier 2021, par Panda Xia

    I want to download the subtitle of a video, it has separated m3u8 file for subtitle :

    &#xA;

    webvtt source in m3u8 format : https://sdn-global-streaming-cache.3qsdn.com/9378/files/19/05/1199332/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes.ism/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000.m3u8

    &#xA;

    looks like :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:4&#xA;## Created with Unified Streaming Platform(version=1.9.5)&#xA;#EXT-X-PLAYLIST-TYPE:VOD&#xA;#EXT-X-MEDIA-SEQUENCE:1&#xA;#EXT-X-INDEPENDENT-SEGMENTS&#xA;#EXT-X-TARGETDURATION:989&#xA;#USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z&#xA;#EXTINF:24.72, no desc&#xA;Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-1.webvtt&#xA;#EXTINF:2.56, no desc&#xA;Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-13.webvtt&#xA;#EXTINF:50.88, no desc&#xA;Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-14.webvtt&#xA;#EXTINF:3.079, no desc&#xA;Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000-40.webvtt&#xA;#EXTINF:60.401, no desc&#xA;....&#xA;

    &#xA;

    Then use the command to download the multiple webvtts into one vtt file "EN.vtt" :

    &#xA;

    ffmpeg -i  "https://sdn-global-streaming-cache.3qsdn.com/9378/files/19/05/1199332/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes.ism/Dqt6jZBkvX2nLyY4CGhxmpK89PbQRFV7-drm-aes-textstream_deu=1000.m3u8"  "DE.vtt"&#xA;

    &#xA;

    In output "DE.vtt" the X-TIMESTAMP-MAP=MPEGTS:xxxxxx,LOCAL:00:00:00.000 from each webvtt file (webvtt in m3u8) are ignored.

    &#xA;

    so that the time Synchronisation is broken, the start time of each Segment always begins from 00:00:00, looks like :

    &#xA;

    WEBVTT&#xA;&#xA;00:00.000 --> 00:02.560&#xA;So viel Macht.&#xA;&#xA;00:00.000 --> 00:03.079&#xA;Was er sagte.&#xA;&#xA;00:00.000 --> 00:04.680&#xA;oder&#xA;die Sch&#xF6;nheit&#xA;&#xA;00:00.000 --> 00:01.440&#xA;Er sagte immer:&#xA;&#xA;00:00.000 --> 00:03.840&#xA;Auf seinen Klang &#xA;&#xA;00:00.000 --> 00:07.519&#xA;Seine Paranoia.&#xA;

    &#xA;

    Could ffmpeg support the relative time stamp to convert into absolute time stamp ?&#xA;Or use other method to download perfect webvvt file ?

    &#xA;