
Recherche avancée
Autres articles (41)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP 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 (5334)
-
ffmpeg : Make output file duration that of the file with the longest length [closed]
27 février 2024, par losercantcodeI'm going crazy trying to figure this out.


Essentially I'm trying to apply sidechain compression using ffmpeg (for the sake of speed and automation). a2.mp3 in this example is the full length track and a1.wav is a short 5 second, spoken-word clip. The code currently applies the sidechain compression well, but the output file is only that of the spoken-word clips length, so 5 seconds. Is it at all possible to make the output match that of a2.mp3's length instead ? Switching around the input order is not something that's possible as it'll apply the compression to the incorrect track.


Essentially, i'm trying to make it so i'm just layering the spoken-word file on top of the audio track without having to pre-pad the file. I'd rather, if it's possible, this just happen with one block of code within the in one program. I'm interested to see if this is at all possible within ffmpeg.


ffmpeg -i a2.mp3 -i a1.wav -filter_complex "[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress=threshold=0.000976563:ratio=10:level_sc=0.015625:release=100:attack=10[compr];[compr][mix]amix=duration=longest[aout]" -map "[aout]" output.wav



a1.wav is mon, a2.mp3 is stereo.


Attempted to implement amix=duration=longest to no avail. Research similar problems on the Stack Exchange that gave unrelated answers.


-
how to merge audio and video file in python using ffmpeg ?
5 août 2020, par arvind8I 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 HasanI 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 ?