Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (108)

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (11805)

  • swr : split out DSP functions.

    14 juin 2014, par Ronald S. Bultje
    swr : split out DSP functions.
    

    DSP bits of swri_resample go into their own mini-DSP functions ; DSP
    init goes from a per-call branch in multiple_resample to a proper
    DSP init routine ; x86 bits go into x86/ ; swri_resample() moves out of
    resample_template.c into resample.c because it’s independent of DSP
    code or sample type ; multiple_resample() is simplified.

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libswresample/Makefile
    • [DH] libswresample/resample.c
    • [DH] libswresample/resample.h
    • [DH] libswresample/resample_dsp.c
    • [DH] libswresample/resample_template.c
    • [DH] libswresample/x86/Makefile
    • [DH] libswresample/x86/resample_x86_dsp.c
  • Video streaming FFMPEG - VLC video starts black

    7 novembre 2020, par xKedar

    I am trying to stream my webcam when an event occurs to another machine.&#xA;Giving the fact that FFMPEG needs around 2 seconds since I call it to when it starts streaming I'm running it in background sending everything to a local socket that consumes it until the event happens and then I reverse the data to the other machine

    &#xA;

    Here I capture the camera

    &#xA;

    class ffmpegThread (Thread):&#xA;    def __init__(self):&#xA;        Thread.__init__(self)&#xA;     &#xA;    def run(self):&#xA;        cam, mic = detect_devices()&#xA;        command = &#x27;ffmpeg -f dshow -i video=&#x27;&#x2B;cam&#x2B;&#x27;:audio=&#x27;&#x2B;mic&#x2B;&#x27; -profile:v high -pix_fmt yuvj420p -level:v 4.1 -preset ultrafast -tune zerolatency -vcodec libx264 -r 14 -b:v 512k -s 240x160 -acodec aac -ac 2 -ab 32k -ar 44100 -f mpegts -flush_packets 0 udp://127.0.0.1:&#x27;&#x2B;str(config.ffmpeg_port)&#x2B;&#x27;?pkt_size=1316&#x27;&#xA;        p = Popen(command , stderr=PIPE)&#xA;        for line in iter(p.stderr.readline,&#x27;&#x27;):&#xA;           if config.end: break&#xA;        p.terminate()&#xA;        return 0&#xA;

    &#xA;

    This is where I receive and forward the video

    &#xA;

    &#xA;class sendVideoThread (Thread):&#xA;    def __init__(self, UDPsenderSocket):&#xA;        Thread.__init__(self)&#xA;        self.UDPsenderSocket = UDPsenderSocket&#xA; &#xA;    def run(self):&#xA;        sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)&#xA;        sock.bind(("127.0.0.1", config.ffmpeg_port))&#xA;        bufferSize  = 1348&#xA;        firstData = sock.recvfrom(bufferSize)&#xA;        while True:&#xA;            data = sock.recvfrom(bufferSize)&#xA;            if config.event == True:&#xA;                startTime = time.time()&#xA;                self.UDPsenderSocket.sendto(firstData[0], config.address)&#xA;                while time.time() - startTime &lt; 14:&#xA;                    self.UDPsenderSocket.sendto(data[0], config.address) &#xA;                    data = sock.recvfrom(bufferSize)                    &#xA;                config.event= False&#xA;            if config.end: sys.exit()&#xA;&#xA;

    &#xA;

    And those are the vlc options on the other machine(not the whole code)

    &#xA;

        def play(self):&#xA;        self.player = vlc.Instance(["--file-caching=0 --network-caching=0"]).media_player_new()&#xA;        self.player.set_mrl(&#x27;udp://@0.0.0.0:&#x27;&#x2B;str(config.vlcPlayer_port))&#xA;        self.player.set_hwnd(self.frame.winfo_id())&#xA;        self.player.audio_set_mute(False)&#xA;        self.player.play()&#xA;&#xA;

    &#xA;

    The video reaches the other machine but it starts black with audio-only for some seconds then it starts working fine. I guess that by sending the video from a random moment(frame) when the event happens it may happen that vlc will miss some information about the video and needs the next frame with information to come in order to show the video, I was looking to something in order to have more frames with that info but I was not able to find it.

    &#xA;

  • ffmpeg segments only the first part of my audio file

    30 juin 2012, par hammat

    I'm implementing a http live streaming server to send audio file to iOS devices.
    No problem with Apple's tools, mediafilesegmenter, my files are valid and it works fine.

    I'm trying now to segment the same file using ffmpeg. I've downloaded the last stable version which is the 0.10.2 for now.

    Here is how I try to segment my mp3 file :

    ./ffmpeg -re -i input.mp3 -f segment -segment_time 10 -segment_list outputList.m3u8 -acodec libmp3lame -map 0 output%03d.mp3

    It starts the mapping like expected but finish with only one .mp3 file.

    Did I miss something in the process ?
    Thanks in advance.

    edit

    Ok here is my latest command line :

    ffmpeg -i input.mp3 -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mp3 &#39;output%03d.mp3&#39;

    It still gives me only one file but the file is the hole song, not only one part.
    Here is the output of ffmpeg :

    ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
    built on Apr 20 2012 07:08:29 with gcc 4.5.2  
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libmp3lame  
       libavutil      51. 35.100 / 51. 35.100  
       libavcodec     53. 61.100 / 53. 61.100  
       libavformat    53. 32.100 /
           53. 32.100  
       libavdevice    53.  4.100 / 53.  4.100  
       libavfilter     2. 61.100 /  2. 61.100  
       libswscale      2.  1.100 /  2.  1.100  
       libswresample   0.  6.100 /  0.  6.100  
       libpostproc    52.  0.100 /  52.  0.100
       [mp3 @ 0x8e4f120] max_analyze_duration 5000000 reached at 5015510
    Input #0, mp3, from &#39;BeachHouse-Myth.mp3&#39;:  
       Metadata:
               title           : Myth
               artist          : Beach House
               track           : /
               album           : Bloom
               disc            : /
               genre           : Alternative
               TSRC            : USSUB1296501  
       Duration: 00:04:18.69, start: 0.000000, bitrate: 320 kb/s
               Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s Output #0, segment, to &#39;stream%03d.mp3&#39;:   Metadata:
               title           : Myth
               artist          : Beach House
               track           : /
               album           : Bloom
               disc            : /
               genre           : Alternative
               TSRC            : USSUB1296501
               encoder         : Lavf53.32.100
               Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:  
       Stream #0:0 -> #0:0 (mp3 -> libmp3lame)
       Press [q] to stop, [?] for help
       Truncating packet of size 1024 to 105ate=   0.0kbits/s    
       Truncating packet of size 1024 to 1
       size=       0kB time=00:04:18.71 bitrate=   0.0kbits/s     video:0kB audio:4042kB global headers:0kB muxing overhead -100.000000%