
Recherche avancée
Autres articles (64)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (12307)
-
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


-
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 ?
-
FFMPEG combining MP4 videos with same encoding not working, only showing first video
13 avril 2020, par AyudhMy mp4 videos have the same encoding : h264



I know because I ran this command on them :



ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 a.mp4



Now I combine them using the following command :



ffmpeg -loglevel quiet -f concat -safe 0 -i video-list.txt -c copy video-final.mp4



my video-list.txt file looks like this :



file 'a.mp4'
file 'b.mp4'
file 'c.mp4'




Now the video-final.mp4 which is the combined video actually has duration which is equal to the sum of its' component videos and also is quite larger in size. The issue is that when I play the video, it only plays the first video then stops.



What's going on here ? Any insight would be appreciated.



I've looked at : ffmpeg : Combine/merge multiple mp4 videos not working, output only contains the first video and the answers suggested there are the ones I'm using : specifically, concating from a text file containing the component videos.