Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (25)

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (4616)

  • writing mp4 file from binary string python

    29 juin 2019, par Irakli Mchedlishvili

    I have a Binary string of mp4 video file and want to convert it back to mp4 file, to get single frame out of there with openCV library

    import cv2
    import tempfile

    temp_path = tempfile.gettempdir()
    video_binary_string = 'AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAQC0ttZGF0AQIUGRQmM...'

    with open(temp_path+'/video.mp4', 'wb') as wfile:
      wfile.write(video_binary_string)
    cap = cv2.VideoCapture(temp_path+'/video.mp4')
    success, frame = cap.read()

    print success
    >>> False

    If frame was read correctly, it would be True

    I understand that this is not the correct way of writing video file. I tried to do it with FFMPEG but I can’t understand it’s documentation.

    Please give an example with simple explanations how to convert binary string back to video, with this or other way.

  • How can I split a series of clips from a video and then stitch them together without audio or video gaps ?

    16 avril 2020, par Dr. Cyber Sec

    I'm developing an application where I take a video and (1) split it up into a bunch of 1 second chunks. Then, I need to (2) stitch a subset of those chunks back together, resulting in a slice of the original video.

    



    For example, let's say I have an original, 10s clip. I split it up into 1s chunks for each second (a clip from 0s to 1s, a clip from 1s to 2s, etc.). I now need to stitch, say, seconds 2-4 together into one video.

    



    I'm currently attempting both steps using ffmpeg.

    



    For clip-cutting :

    



    ffmpeg -ss 33 -i video.ts -t 1 33to34.ts


    



    This should seek to second 33 and output a 1s clip duration, yielding a video clip containing seconds 33-34 of the original video. I noticed that ffmpeg doesn't always seek accurately, so after following the instructions in this post, which says to manually add keyframes to the parts of the video you want to cut, I tried this :

    



    First, setting the keyframes :

    



    ffmpeg -i video.ts -force_key_frames 00:00:01.000,00:00:02.000,00:00:03.000,00:00:04.000 out.ts


    



    And then cutting the clips as I did before with the new output clip.

    



    While this did get the videos to be exactly 1s long each, (which I wanted) there is a small gap (just a slight jitter) in audio when I combine the clips back together. I cannot have this, and am looking for a solution.

    



    Can anyone help me understand why this is happening and help me find a solution ? Thank you so much in advance.

    


  • How to use ffmpeg to split a video and then merge it smoothly ? [duplicate]

    16 juin 2017, par leandro moreira

    This question is an exact duplicate of :

    The idea is to split a video into n segments and process them separated and when the process is done to merge the segments into a full video.

    I tried using the following approach :

    ```

    // spliting
    ffmpeg -i video.mp4 -c:v copy -c:a copy -ss 0 -t 10 video_0_10.mp4
    ffmpeg -i video.mp4 -c:v copy -c:a copy -ss 10 -t 20 video_10_20.mp4

    vim video_list.txt (with all files)

    // joining (merging them)
    ffmpeg -f concat -safe 0 -i video_list.txt -c:v copy -c:a copy new_video.mp4

    ```

    But when I tried to play the new_video.mp4 it didn’t play (using VLC) smooth, it froze seemly at the moment of the joining.

    What’s the best way to split a bigger video into several smaller, work on them and after joining the smaller into a new ?