Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (32)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (3741)

  • ffmpeg command does not work when run from .sh file

    19 novembre 2020, par Felipe Hurtado

    I am trying to run an ffmpeg command from a shell file but I am getting the following error :

    


    'NULL @ 0x343e9c0] Unable to find a suitable output format for '


    


     : Invalid argument

    


    Below the ffmpeg commnad

    


    ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 


    


    and this is the content of the shell file :

    


    #!/bin/bash
#script streaming
ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 
        


    


    the command works if I run it manually in a terminal

    


  • How to Extract frames and set frames per seconds with .sh file

    20 août 2022, par Fraction Analytics

    I am trying to extract features from videos using a shell script file while extracting features from videos I don't know how to set frames per second.

    


    #!/bin/bash
frames_folder_path=./data
videos_folder_path=./videos
ext=mp4

mkdir "${frames_folder_path}"

for video_file_path in "${videos_folder_path}"/*."${ext}"; do
    slash_and_video_file_name="${video_file_path:${#videos_folder_path}}"
    slash_and_video_file_name_without_extension="${slash_and_video_file_name%.${ext}}"
    video_frames_folder_path="${frames_folder_path}${slash_and_video_file_name_without_extension}";
    mkdir "${video_frames_folder_path}"
    ffmpeg -i "${video_file_path}" "${video_frames_folder_path}/%d.jpg"
done


    


    I tried this code to extract the feature. I just want to extract 2 frames per second but It removes 30 frames per second with default frames rate.

    


    How to resolve this issue with shell script file.

    


  • How to catch the ffmpeg connection error on python

    6 janvier 2017, par user824624

    I am working on the ffmpeg with python.This works when the remote server is working well, however when the remote server is down, I could see the message on the shell saying
    ’Connection to tcp ://xxxxxxx failed : Connection refused, blabla’

    pro = sp.Popen(command, preexec_fn=os.setsid, shell=False, stderr=sp.PIPE, stdout=sp.PIPE)

    catch exception approach 1 :

    try:
      out = self.pro.stderr.readline()
      while out:
               print '......'
    except BrokenPipeError:
        print 'err'

    catch exception approach 2 :

    for line in self.pro.stderr:
       try:
           print line
       except BrokenPipeError:
           print 'error'

    However none of these works.