
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (97)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (5748)
-
Nextjs/React/JS How compress video file uploaded by user through input (client side preferred)
1er novembre 2022, par vana22I have made a basic app where the user can upload a video file through an input.
As you can see in the code i also retrieve the duration and the size of the initial video.


Now the question is, how i can compress the video file in the function "compressvid" so that the size of the video becomes massively smaller (at later stage i want to upload these videos to firebase firestore).
I'e read something about ffmpeg but wasn't able to figure out how to use it here.
I prefer it to be client side as the videos a client can upload are at max 30sec long.
If client side is not possible how would it work server side ?


import Head from 'next/head'
import styles from '../styles/Home.module.css'
import { useState, useEffect } from 'react'

export default function Home() {

 const [videofile, setVideo] = useState("")
 const [viddur, setviddur] = useState("")


 useEffect(() => {
 // only run this if videofile exists
 if (videofile != "") {
 console.log("compress video now ")
 console.log(videofile.type)


 // get duration of video by creating a theoretical video component
 var video = document.createElement('video');
 video.preload = 'metadata';
 video.onloadedmetadata = function() {
 window.URL.revokeObjectURL(video.src);
 // here now can check if video is too long
 setviddur(video.duration)
 }
 video.src = URL.createObjectURL(videofile)
 
 }
 }, [videofile]);

 const clickedvideo = () => {
 console.log("clicked video")
 }

 const compressvid = () => {
 // here need to compress the video so that the size is smaller: preferred client-side; if that's not possible howis it posssible server side or with a cheap api
 }

 return (
 <div classname="{styles.container}">
 
 
 
 
 

 <main classname="{styles.main}">
 <h1 classname="{styles.title}">
 Video compressor
 </h1>
 <p>Size of video before: {videofile.size}</p>
 <p>Duration of video: {viddur}</p>
 <p>Size of video after: { }</p>
 <input classname="{styles.videoinput}" type="file" accept="video/mp4,video/x-m4v,video/*" />> setVideo(e.target.files[0])}>
 <div>
 {(videofile != "") ? <video autoplay="autoplay" loop="loop" src="{URL.createObjectURL(videofile)}" width="300px" height="300px"></video> : null}
 </div>
 </main>
 </div>
 )
}



I tried to compress a video uploaded by a user but didn't figure out how to solve it.


-
FFMPEG concatenate multiply files with various extensions and properties
28 juillet 2022, par KRUKI'm trying to create a movie on Windows using ffmpeg from files that are from different devices and in different extensions (.mp4, .mov). Is there any way to combine any file extensions into one final movie that will play properly ?


I'm thinking of such an approach, to first normalize all files to the same format (What is the recommended final format ?) and only then combine them into a final file.


I am experimenting with this approach :


ffmpeg -i [input.anyFormatX] outputX.mp4



and then


ffmpeg -f concat -i [List of files] output.mp4



But unfortunately this does not work for all files, should pay attention to the codecs or maybe some other intermediate format ? The biggest problem appears with files recorded with Iphone and in extension .mov. After the first stage, these videos look overburnt, as if they have a lot of raised brightness, how to correct this ?


Do you know perhaps any generic solution, which would allow the assembly of videos from different devices (including Iphone) and with different parameters such as frame rate or resolution ?


-
Need To Laravel Scenario php [closed]
28 juillet 2022, par Yns KzyI need to This Scenario PHP Code ;


STEPS ;


1.Select Laravel "SELF" Menu, Drag&Drop Upload any Video(mp4,mpeg,avi) (Process Bar [Circular] ---FRONTEND---


2.Backend (ffmpeg or any encoder) process converting video to VP9 .webm (Process Bar-Frontend)


3.Delete temporary file first upload Video(mp4,mpeg,avi)


4.Unique name created .webm vp9 file (Backend) (CUZ COMPLEXITY) and .webm to HLS .m3u8 converting playlist.(Backend)(Also, need to Unique .m3u8 name.


5.(Frontend) Finish Message %100- Completed.


- 

- This file created. this file below form(Upload subtitle) .vtt file. —FRONTEND— drag&drop .vtt file (Process Bar) [Circular] and %100 Completed.




7.And this two file combine any video player.("SELF"=For choosing the first Option.) this video player subtitle options. and quality select (144p,720p,1080p etc.)


8. In The Last Stage ; After These Conversions Have Been Made
1(One) Video File(.m3u8 ; Multiple .webm files.) .m3u8 a playlist file. Will Be Played In A Video Player With Multiple Language And Video Quality Options.


**This "Self" Menu Is Currently Working.But Mediocre. (Video Player) When Other Menus Are Opened, A Different Form Appears.(YOUTUBE,VIMEO,VDOCIPHER etc.) "SELF" Form Does Not Change. For Your Information. PANEL is "LARAVEL". Thank You. Best Regards.