Recherche avancée

Médias (91)

Autres articles (38)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (4371)

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

  • Intermitent Connection Issues for FFMPEG Stream capture

    22 novembre 2014, par Quentin Spottiswoode

    I intend to create a Python shell script to open a connection to an MP3 stream and record the stream over a specified period and save the file to a .mp3 file for distribution. ffmpeg will likely be involved through a shell command, rather than using any kind of python wrapper class.

    Occasionally, the source of the stream may encounter connection issues with the internet, resulting in the listening client (ffmpeg) losing it’s connection with the host. Currently ffmpeg discards the recording entirely and forgets about attempting to reconnect to the host.

    having had a look through ffmpeg’s extensive documentation, I found myself very confused...

    • Is there some method to retain the recording up to the point of the connection failure ?
    • Is there a method of automatically re-connecting to the stream when the host reappears, or do I have to catch the error and try a certain number of times ?
    • Is there a method of passing the error to the python script in order to create a suitable response ?

    Many thanks for your insight :)