
Recherche avancée
Autres articles (106)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)
Sur d’autres sites (6330)
-
How to lossless rotate video from Sony A7Rii in FFMPEG avoiding codec error ?
12 janvier 2020, par JeffsI have a bunch of videos filmed on a Sony A7Rii that are upside down and need to be flipped 180. I’d like to do this lossless and been trying to use the following command :
ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=180 output.mp4
I understand this updates orientation information in the metadata of the video file, avoiding the need to reencode. However, it is generating an error relating to the audio codec :
[mp4 @ 000001db6a69cd80] Could not find tag for codec pcm_s16be in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument
Stream mapping :
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)After some searching, I understand this is expected behaviour because the MP4 container isn’t supposed to have audio encoded with that codec. Unfortunately for me, that is how the Sony A7Rii produces files.
What FFMPEG command will offer the best work-around ? Ideally I’d not re-encode the audio, but that would be tolerable if there is no other way.
Thanks !
-
avcodec/libx264 : Add support for Sony XAVC Class 300 and 480
22 juin 2021, par Limin Wang -
Merge individual frame to video file using Opencv
18 août 2022, par RohitI am trying to stack a individual frame to a video file using Opencv. I want to combine two different code together to make the individual frame.
Following code help me extract the individual frame,


fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter('file_data.mp4',fourcc,20 (1920,1080),False)
while True:
 ret, frame=cap.read()
 mask = object_detector.apply(frame)
 _, mask = cv2.threshold(mask,254,255,cv2.THRESH_BINARY) 
 contours,_ = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
 res = cv2.bitwise_and(frame,frame,mask=mask)
 for cnt in contours:
 area = cv2.contourArea(cnt)
 if area>1000: 
 #print("Area of contour:", area)
 cv2.drawContours(frame, [cnt], -1, (0,255,0),2)
 cv2.imwrite("file%d.jpg"%count, frame)
 out.write(frame)
 if cv2.waitKey(1) and 0xFF == ord('q'):
 break



I tried storing the individual frame in array, but it didn't work. It doesn't show any error, but pc crash.




fps = 20,
,width = 1920
,height = 1080