Recherche avancée

Médias (91)

Autres articles (47)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

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

  • avformat/http: Add option to limit total reconnect delay

    22 avril 2024, par Derek Buitenhuis
    avformat/http: Add option to limit total reconnect delay
    

    The existing option only allows users to set the max delay for a
    single attempt, rather than the total allowed delay, which is both
    pretty unintitive, and only applicable when exponential backoff is
    used.

    The default for this option is set to 256, which is just above the
    effective total delay accomplished by the the existing
    reconnect_delay_max default of 120.

    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

    • [DH] libavformat/http.c
    • [DH] libavformat/version.h
  • UserWarning : x bytes wanted but 0 bytes read at frame index y (out of a total z frames), at time q sec. Using the last valid frame instead

    9 juillet, par Wiz

    I have a script which subclips a larger video and then stitches needed parts together using concatenate and write video file in moviepy. But the problem is everytime i run the script i get the video but the audio is off sync, usually the audio starts normally, but over time becomes delayed. I suspect it is because i want to concatenate around 220 smaller mp4 videos into one big mp4 video, but every smaller clips receives the error :'UserWarning : In file test.mp4, 1555200 bytes wanted but 0 bytes read at frame index y (out of a total y+1 frames), at time x sec. Using the last valid frame instead.'

    &#xA;

    I use moviepy v2

    &#xA;

    MY CODE (it doesnt produce any strict errors, but does give the aformentioned UserWarning when writing video_unsilenced.mp4) :

    &#xA;

    n = 0&#xA;&#xA;cuts = []&#xA;input_paths = []&#xA;vc = []&#xA;os.makedirs(r"ShortsBot\SUBCLIPS")&#xA;for timer in range(len(startsilence)-1):&#xA;   w = VideoFileClip(r"ShortsBot\output\cropped_video.mp4").subclipped(endsilence[n],(startsilence[n&#x2B;1]&#x2B;0.5))&#xA;   w.write_videofile(r"ShortsBot\SUBCLIPS\video" &#x2B; str(n) &#x2B; ".mp4")&#xA;   a = VideoFileClip(r"ShortsBot\SUBCLIPS\video" &#x2B; str(n) &#x2B; ".mp4")&#xA;   vc.append(a)&#xA;   n&#x2B;=1&#xA;&#xA;output_fname = "video_unsilenced.mp4"&#xA;clip = mpy.concatenate_videoclips(clips=vc, method= &#x27;compose&#x27;)&#xA;clip.write_videofile(filename=output_fname, fps=30)&#xA;_ = [a.close() for a in vc]&#xA;

    &#xA;

    Because moviepy is shaving off a frame or two for every video clip and at the same time writing the audio of the concatenated clip normally (without shaving off the audio that is in the missing frames), the video and audio slowly become out of sync.And the more clips i want to concatenate, the more the audio becomes out of sync, basically confirming my suspicion that it is because moviepy is using the last valid frame and writing the audio normally. The question i have is how can i fix this ?

    &#xA;

    EDIT : Full error message (although this error message appears after every clip that needs to be concatenated, usually, just like in this error message, its one or two frames that are invalid) : C :\Users\user\miniconda3\envs\myenv\Lib\site-packages\moviepy\video\io\ffmpeg_reader.py:190 : UserWarning : In file C :\Users\user\Desktop\File\Subclips\video317.mp4, 1555200 bytes wanted but 0 bytes read at frame index 99 (out of a total 100 frames), at time 3.30/3.34 sec. Using the last valid frame instead.

    &#xA;

  • How to Speed Up Two-Pass Encoding ?

    27 juillet 2017, par Matt McManis

    I have a Video file with Audio, Subtitles, Chapters, and Metadata.

    I removed Audio and Subtitles with -an -sn from -pass 1 and then inlclude them in -pass 2.

    What about for Chapters and Metadata ? And how do you apply Turbo to -pass 1 ?

    Is there anything more that can be done ?


    I have a script that will convert mpg to mp4. I’ve sorted it with linebreaks so it’s easier to read.

    Pass 1

    "C:\Videos\example.mpg"

    -vcodec libx264
    -preset medium -b:v 2500K -pix_fmt yuv420p -qcomp 0.8
    -vf scale="trunc(iw/2)*2:trunc(ih/2)*2"
    -pass 1

    -map 0:v:0? -an -sn

    -threads 8

    "C:\Videos\example.mp4"

    Pass 2

    ffmpeg -y -i

    "C:\Videos\example.mpg"

    -vcodec libx264
    -preset medium -b:v 2500K -pix_fmt yuv420p -qcomp 0.8
    -vf scale="trunc(iw/2)*2:trunc(ih/2)*2"
    -pass 2

    -acodec aac
    -b:a 320k
    -af volume=1.2

    -map 0:v:0? -map 0:a:0? -map 0:s? -c:s copy -map_metadata 0

    -threads 8

    "C:\Videos\example.mp4"