
Recherche avancée
Autres articles (104)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (3220)
-
How to reproject and join these two clips with ffmpeg ?
20 janvier 2023, par jumpjackI have two videoclips embedded in this single video :


https://sci.esa.int/web/cassini-huygens/-/39218-huygens-descent-to-titan-surface


Download lo-res : link


The timings which I calculated to sync the two clips are :


- 

- 01:33.233 - 02:24.133
- 02:33.700 - 03:24.600






I want to join them into a single view ; I thought that cropping the video between the dots which mark east and west was enough, but it is not : I tried this, but with terrible results :


#echo off
# Cut east and west clips:
@echo cut east...
ffmpeg -ss 01:33.233 -to 02:24.133 -i %1 -vf "crop=900:450:73:0, pad=w=iw:h=2*ih:x=0:y=ih:color=black" -y east-crop.mp4
@echo cut west...
ffmpeg -ss 02:33.700 -to 03:24.600 -i %1 -vf "crop=900:450:73:0, pad=w=iw:h=2*ih:x=0:y=ih:color=black" -y west-crop.mp4

@echo merge...
ffmpeg -i west-crop.mp4 -i east-crop.mp4 -filter_complex hstack=inputs=2 -y combined.mp4



I think I have also to reproject... but I have no idea of which is the projection used.


Any suggestion ?


Example east/west frames :






I would like to obtain a single equirectangular image which reprojects into a full sphere when seen into a VR viewer.


Instead, I am getting this :




-
Using hwaccel ffmpeg option with moviepy library
12 octobre 2022, par Nicola LepetitI am trying to add the hwaccel option of ffmpeg to a script I am working on in Python, based on the moviepy library, by passing the options via the
ffmpeg_params
parameter :

from moviepy.editor import VideoFileClip

ASSETS_FOLDER = "./assets/backgrounds/road/"
video_file_name = "12386.mp4"
start_time = 5
end_time = 20
target_file = "output.mp4"

video = VideoFileClip(f"{ASSETS_FOLDER}{video_file_name}")
new = video.subclip(start_time, end_time)
new.fps = 25
new.write_videofile(target_file, ffmpeg_params= ['-hwaccel','cuda'])



The problem is that these ffmpeg_params are added at the end of the ffmpeg command line, so I am getting the following error :


[Errno 22] Invalid argument

MoviePy error: FFMPEG encountered the following error while writing file 
 ./assets/temp/3/cut1.mp4:

 b'Option hwaccel (use HW accelerated decoding) cannot be applied to output url 
 ./assets/temp/3/cut1.mp4 -- you are trying to apply an input option to an output file
 or vice versa. Move this option before the file it belongs to.\r\nError parsing
 options for output file ./assets/temp/3/cut1.mp4.\r\nError opening output files:
 Invalid argument\r\n'



Is there another way to use the option with moviepy


-
How to avoid ffmpeg failing to add chapters to mov file ?
27 septembre 2022, par BabaGI've been trying all day to get ffmpeg to add chapters to a prores mov file. It does add the first two, but then it fails with the name of the text file and an error message :


chapterstest_orig.txt: Invalid data found when processing input



I see lots of online references to the format of both the ffmpeg command, as well as the text file containing the chapter metadata. Here are mine :


ffmpeg -i chapterstest_orig.mov -i chapterstest_orig.txt -map_metadata 1 -codec copy chapterstest.mov



i've also tried it with -map_chapters :


ffmpeg -i chapterstest_orig.mov -i chapterstest_orig.txt -map_metadata 1 -map_chapters 1 -codec copy chapterstest.mov



Here's a copy of my text file, containing the chapter info :


;FFMETADATA1
title=Angel's Gate Cultural Center
artist=Buzzworld

[CHAPTER]
TIMEBASE=1/1000
START=0
END=6999
title=Buzzworld 10-10-1997

[CHAPTER]
TIMEBASE=1/1000
START=7000
END=290999
title=The Road To Lisdoonvarna

[CHAPTER]
TIMEBASE=1/1000
START=291000
END=739999
title=Jack Orion

[CHAPTER]
TIMEBASE=1/1000
START=740000
END=992999
title=The Frieze Britches

[CHAPTER]
TIMEBASE=1/1000
START=993000
END=1295999
title=The Blackleg Miner

[CHAPTER]
TIMEBASE=1/1000
START=1296000
END=1559999
title=Johnny Jump Up

[CHAPTER]
TIMEBASE=1/1000
START=1560000
END=1867999
title=Tom Billy's

[CHAPTER]
TIMEBASE=1/1000
START=1868000
END=2143999
title=When Will We Be Married?

[CHAPTER]
TIMEBASE=1/1000
START=2144000
END=2500999
title=The Old Bush

[CHAPTER]
TIMEBASE=1/1000
START=2501000
END=2839000
title=Niamh's Capers



If I delete everything after the second chapter, the file processes. It always fails if I add more chapters.


I've also tried using things like :


-map 0:v -map 0:a -map 0:s



Any help is much appreciated. I'm kind of at my wits end here.


Thanks.