
Recherche avancée
Autres articles (104)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (14676)
-
Adding watermark to video
27 avril 2018, par equallyheroI am able to use the moviepy library to add a watermark to a section of video. However when I do this it is taking the watermarked segment, and creating a new file with it. I am trying to figure out if it is possible to simply splice in the edited part back into the original video, as moviepy is EXTREMELY slow writing to the disk, so the smaller the segment the better.
I was thinking maybe using shutil ?
video = mp.VideoFileClip("C:\\Users\\admin\\Desktop\\Test\\demovideo.mp4").subclip(10,20)
logo = (mp.ImageClip("C:\\Users\\admin\\Desktop\\Watermark\\watermarkpic.png")
.set_duration(20)
.resize(height=20) # if you need to resize...
.margin(right=8, bottom=8, opacity=0) # (optional) logo-border padding
.set_pos(("right","bottom")))
final = mp.CompositeVideoClip([video, logo])
final.write_videofile("C:\\Users\\admin\\Desktop\\output\\demovideo(watermarked).mp4", audio = True, progress_bar = False)Is there a way to copy the 10 second watermarked snippet back into the original video file ? Or is there another library that allows me to do this ?
-
AWS MediaConvert generating double length video
1er mai 2024, par user1hjgjhgjhggjhgI am new to aws media convert. I am trying to convert the video but the final output video becomes double the length from the original one. for example if I have a video 30 seconds long, it will create 60 seconds long final video. Below is my son.


{
 "Queue": "arn:aws:mediaconvert:us-west-2:730335xxxxx:queues/Default",
 "UserMetadata": {},
 "Role": "arn:aws:iam::73033541xxxx:role/service-role/MediaConvert_Default_Role",
 "Settings": {
 "TimecodeConfig": {
 "Source": "ZEROBASED"
 },
 "OutputGroups": [
 {
 "Name": "DASH ISO",
 "Outputs": [
 {
 "ContainerSettings": {
 "Container": "MPD"
 },
 "VideoDescription": {
 "CodecSettings": {
 "Codec": "H_264",
 "H264Settings": {
 "MaxBitrate": 3500000,
 "RateControlMode": "QVBR",
 "SceneChangeDetect": "TRANSITION_DETECTION"
 }
 }
 },
 "NameModifier": "_output1"
 }
 ],
 "OutputGroupSettings": {
 "Type": "DASH_ISO_GROUP_SETTINGS",
 "DashIsoGroupSettings": {
 "SegmentLength": 30,
 "Destination": "s3://tutorial/video/",
 "FragmentLength": 2,
 "SegmentControl": "SINGLE_FILE"
 }
 }
 }
 ],
 "FollowSource": 1,
 "Inputs": [
 {
 "AudioSelectors": {
 "Audio Selector 1": {
 "DefaultSelection": "DEFAULT"
 }
 },
 "VideoSelector": {},
 "TimecodeSource": "ZEROBASED",
 "FileInput": "s3://tutorial/video/11 - video.mp4"
 }
 ]
 },
 "BillingTagsSource": "JOB",
 "AccelerationSettings": {
 "Mode": "DISABLED"
 },
 "StatusUpdateInterval": "SECONDS_60",
 "Priority": 0
}



Please help


-
How can i parse strings as the inputs to subprocess.Popen ?
26 juillet 2013, par rashHere I tried to cut first and second 30sec long video file from "path/connect.flv" to the files output1.flv and output2.flv. It works. I able to concatenate these two files to form a new file "final.flv" of 60sec long. So this works and i am getting the outputs output1.flv [30sec], output2.flv[30sec] and final.flv[1min].
Here is the python code :
import subprocess
ffmpeg_command1 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30", "/home/xincoz/test/output1.flv"]
ffmpeg_command2 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:30", "-t", "00:00:30", "/home/xincoz/test/output2.flv"]
ffmpeg_command3 = ["mencoder", "-forceidx", "-ovc", "copy", "-oac", "pcm", "-o", "/home/xincoz/test/final.flv", "/home/xincoz/test/output1.flv", "/home/xincoz/test/output2.flv"]
subprocess.call(ffmpeg_command1)
subprocess.call(ffmpeg_command2)
subprocess.Popen(ffmpeg_command3)But what i really want is to concatenate two strings out1 and out2 and concatinate these two to a file instead of concatenating "/home/xincoz/test/output1.flv" and "/home/xincoz/test/output2.flv". So how can i parse string out1 and out2 as the inputs to mencoder ? Please edit my code to achieve the result.
import subprocess,os
ffmpeg_command = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30","-f", "flv", "pipe:1"]
p = subprocess.Popen(ffmpeg_command,stdout=subprocess.PIPE)
out1, err = p.communicate()
ffmpeg_command1 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:30", "-t", "00:00:30","-f", "flv", "pipe:1"]
p1 = subprocess.Popen(ffmpeg_command1,stdout=subprocess.PIPE)
out2, err1 = p1.communicate()
ffmpeg_command2 = ["mencoder", "-forceidx", "-ovc", "copy", "-oac", "pcm", "-o", "/home/xincoz/test/final.flv", out1, out2 ]
p2=subprocess.Popen(ffmpeg_command2)Please help me. Thanks a lot in advance.