Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (25)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (7197)

  • how to merge audio and video file in python using ffmpeg ?

    5 août 2020, par arvind8

    I am trying to create a python script which merge the audio and video file in one (audio+video) file.

    


    And i am using ffmpeg to achieve this but it is not working and i am getting a errors.
while running this script here is my script.

    


    import os
import subprocess
import time
from datetime import datetime
def merge_all():
    
 global p
 p =subprocess.Popen('ffmpeg -i temp_vid.mp4 -i temp_voice.wav -c:v copy -c:a aac -strict experimental - 
 strftime 1 ' + dt_file_name ,stdin=subprocess.PIPE,creationflags = subprocess.CREATE_NO_WINDOW)
  time.sleep(2)
  print('merging done')
  os.remove('temp_vid.mp4')
  os.remove('temp_voice.wav')
  print('file delete done')>


    


    here is the error

    


    Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\kp\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1883, in __call__
    return self.func(*args)

  File "C:\Users\kp\Desktop\test.py", line 179, in change_icon
    merge_all()

  File "C:\Users\kp\Desktop\test.py", line 104, in merge_all
 
p =subprocess.Popen('ffmpeg -i temp_vid.mp4 -i temp_voice.wav -c:v copy -c:a aac -strict experimental -strftime 1 ' + dt_file_name ,stdin=subprocess.PIPE,creationflags = subprocess.CREATE_NO_WINDOW)

  File "C:\Users\kp\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,

  File "C:\Users\kp\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child

hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified


    


  • Produce an adaptive multi-resolution mpeg-dash file from an input video file

    1er mars 2021, par Tariq Hasan

    I can produce different resolution mpeg-dash videos from running these commands separately and get one .mpd file for each of the resolutions :

    


    ffmpeg -i /path/to/input.mp4 -vf scale=1920:1080 /path/to/output.mpd
ffmpeg -i /path/to/input.mp4 -vf scale=1280:720 /path/to/output.mpd
ffmpeg -i /path/to/input.mp4 -vf scale=720:480 /path/to/output.mpd
ffmpeg -i /path/to/input.mp4 -vf scale=640:360 /path/to/output.mpd


    


    The question is, how do I get a single .mpd file that maps to all these different resolution videos which would be adaptive in resolution when streamed over the network ?

    


  • How to merge a segmented webvtt subtitle file and output a single srt file ?

    24 janvier 2019, par Dobbelina

    How to merge a segmented webvtt subtitle file and output a single srt file ?,
    m3u8 looks like this example :

    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-MEDIA-SEQUENCE:1
    #EXT-X-INDEPENDENT-SEGMENTS
    #EXT-X-TARGETDURATION:4
    #USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-1.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-2.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-3.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-4.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-5.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-6.webvtt
    #EXT-X-ENDLIST

    I noticed that each segment is not synchronized/cued against total playing time, but against the individual ts segments.
    If ffmpeg could be used to do this, what magic input do i need to give it ?

    A single correctly cued vtt file would work to.
    Thanks for any replies you lovely people !