Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (87)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (15417)

  • Python/FFMPEG command line issues

    1er mars 2019, par 12hys

    I have a problem with running an FFMPEG command from within a Python script. When I run the following command from the terminal, I can stream video and audio from my attached webcam (Logitech C310) and output to file "out.avi" without any errors.

    ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi

    When I run the same command in a Python script below,

    def call_command(command):
       subprocess.Popen(command.split(' '))

    call_command("ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi")

    it gives me the error :

    Input #0, alsa, from 'default':
     Duration: N/A, start: 1317762562.695397, bitrate: N/A
     Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
    [video4linux2 @ 0x165eb10]Cannot find a proper format for codec_id 0, pix_fmt -1.
    /dev/video0: Input/output error

    Could anyone shed some light on what could be going on here ? I’ve tried using os.system() as well as subprocess.call() and it gives me the same errors. I’m not sure where to start on what could be going wrong here. I tried searching for the "video4linux2 Cannot find a proper format for codec_id 0, pix_fmt -1" error, but couldn’t find anything consistent.

    I’ve also tried putting the "ffmpeg -f..." command in a shell script "test.sh", and giving it executable permissions. I then open terminal, and run "./test.sh", and it works. When I try calling the command "./test.sh" from within my Python script, I’m left with the original error as before. This is the Python command I tried with the test.sh script :

    subprocess.call(["./test.sh"])
  • Python/FFMPEG command line issues

    5 octobre 2011, par 12hys

    I have a problem with running an FFMPEG command from within a Python script. When I run the following command from the terminal, I can stream video and audio from my attached webcam (Logitech C310) and output to file "out.avi" without any errors.

    ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi

    When I run the same command in a Python script below,

    def call_command(command):
       subprocess.Popen(command.split(' '))

    call_command("ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi")

    it gives me the error :

    Input #0, alsa, from 'default':
     Duration: N/A, start: 1317762562.695397, bitrate: N/A
     Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
    [video4linux2 @ 0x165eb10]Cannot find a proper format for codec_id 0, pix_fmt -1.
    /dev/video0: Input/output error

    Could anyone shed some light on what could be going on here ? I've tried using os.system() as well as subprocess.call() and it gives me the same errors. I'm not sure where to start on what could be going wrong here. I tried searching for the "video4linux2 Cannot find a proper format for codec_id 0, pix_fmt -1" error, but couldn't find anything consistent.

    I've also tried putting the "ffmpeg -f..." command in a shell script "test.sh", and giving it executable permissions. I then open terminal, and run "./test.sh", and it works. When I try calling the command "./test.sh" from within my Python script, I'm left with the original error as before. This is the Python command I tried with the test.sh script :

    subprocess.call(["./test.sh"])
  • m3u8 on ios and safari, firefox

    9 octobre 2013, par user2741735

    I'm implementing the HTTP Live Streaming protocol. I have successfully created .ts and .m3u8 files using ffmpeg and mediastreamsegmenter(using terminal) from IP Camera input. Now, when I play these files on ios using MPMoviePlayerViewController the m3u8 file doesn't play. Do I need to do some additional stuffs to play these files so that the simulator and browser could understand those file types.