Advanced search

Medias (1)

Tag: - Tags -/ipad

Other articles (100)

  • MediaSPIP 0.1 Beta version

    25 April 2011, by

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

  • HTML5 audio and video support

    13 April 2011, by

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 March 2010, by

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3); le plugin champs extras v2 nécessité par (...)

On other websites (12332)

  • FFMPEG - frame PTS and DTS increasing faster than it should

    20 July 2022, by hi im Bacon

    I am pulling footage from an RTSP camera, standardising it, and then segmenting the footage for processing. I am standardising by reducing the resolution and setting the frame rate to 12 fps.

    


    I am encoding in the PTS times the wall time of each frame as the camera is a live source and I'd like to be able to know exactly when a frame is occurring (I'm not fussed that it's not going to be perfectly on, if it's all out by a second or two because of latency that is fine by me)

    


    FFMPEG is run from python subprocessing using the following command:

    


    command = [
    "ffmpeg", "-y",
    "-rtsp_transport", "tcp", URL,
    "-pix_fmt", "yuvj422p",
    "-c:v", "libx264", # Change the video codec to the kinesis required codec
    "-an", # Remove any audio channels
    "-vf", "scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease",
    "-r", "12",
    "-vsync", "cfr",
    "-x264opts", "keyint=12:min-keyint=12",,
    "-f", "segment",  # Set the output format as chuncked segments
    "-segment_format", segment_format,  # Set each segments format E.G. matroska, mp4
    "-segment_time", str(segment_length),  # Set the length of the segment in seconds
    "-initial_offset", str(initial_pts_offset),
    "-strftime", "1",  # Use the strformat notication in naming of the video segements
    "{}/%Y-%m-%dT%H%M%S.{}".format(directory, extension)  # Define the name and location of the segments,
    '-loglevel', 'error'
]


    


    The problem I am having is that the timestamps of the frames increase at a faster than real time rate. The initial offset is set to the time that FFMPEG is kicked off, the frames received should always be less than right now. I am using a segment length of 30 seconds and after only 5 minutes, finished segments will have a start timestamp greater than the present wall time.

    


    The rate of increase looks around 3-4 times faster than it should.

    


    Why is this the case? how can I avoid this? is my understand of -r right?

    


    I believed that -r drops extra frames, evens out the frame times creating new frames where needed, but not actually changing the perceived speed of the footage. The final frame time should not be greater than the segment length away from the first frame time.

    


    I have tried using a system (filter) that sets the PTS time according to the consumer wall time setpts='time(0)/TB' but this has led to quite choppy footage as the frames can be received/processed at different rates based on the connection.

    


    The quality of the segments is great, all the data is there... just getting the times right is seeming impossible.

    


  • Is there a way to get FFprobe to return codec_name from firs first video, audio, and subtitle stream in a video in a single call to FFprobe?

    26 August 2023, by Chase Westlye
    ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 (filename) 


    


    is how to retrieve the codec_name of the first video stream in a file via FFprobe.

    


    Replace v:0 with a:0 to get the first audio stream, and it returns the codec_name of the first audio stream in the file.

    


    And replace v:0 with s:0 to get the codec_name of the first subtitle stream in the file.

    


    Awesome.

    


    What isn't awesome, is having to call FFprobe three times for these operations and having to hit the file three times.

    


    Is there a way to call FFProbe once, and have FFProbe return the codec_name of the first video, audio, and subtitle stream (instead of separate calls)?

    


  • Anomalie #2316 (Nouveau): SPIP ne marche pas avec l’authentification http

    11 September 2011, by Yohann Prigent

    Quand j’active l’authentification d’apache avec un simple AuthType Basic AuthName "Login obligatoire" AuthUserFile /home/web/spip/web/site.prigents.com/tmp/.htpasswd require valid-user j’ai un accès interdit pour toutes les pages d’administration : vider le cache, activer/désactiver un plugin, (...)