
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (63)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...)
Sur d’autres sites (6773)
-
How to split video into parts audio/video/text in one command ?
22 novembre 2020, par lockwiseI have one video file
.mkv
.
Inside this file, there is a video track, 3 audio tracks, 2 subtitles, a poster file, and a backdrop file.
Does ffmpeg know how to split.mkv
into separate parts, video / 3 audio / 2 subtitles ?

~# ffmpeg -hide_banner -i input.mkv
Input #0, matroska,webm, from 'input.mkv':
 Duration: 01:37:03.90, start: 0.000000, bitrate: 3605 kb/s
 Metadata:
 title : 01:33:51.582
 Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1024x576 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
 Metadata:
 title : Video
 Stream #0:1(rus): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
 Metadata:
 title : MVO «West Video»
 Stream #0:2(spa): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Metadata:
 title : MVO Spain-1
 Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Metadata:
 title : MVO TRK
 Stream #0:4(eng): Subtitle: subrip (default)
 Metadata:
 title : RUS
 Stream #0:5(eng): Subtitle: subrip
 Metadata:
 title : Eng
 Stream #0:6(und): Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 780x1170 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 filename : poster.jpg
 mimetype : image/jpeg
 title : poster
 LANGUAGE : und
 Stream #0:7(und): Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 1280x719 [SAR 1:1 DAR 1280:719], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 filename : backdrop.jpg
 mimetype : image/jpeg
 title : backdrop
 LANGUAGE : und



I need :


- 

- Video

- 

- input0.mp4




- Audio

- 

- input0.m4a
- input1.m4a
- input2.m4a








- Subtitle

- 

- input0.vtt
- input1.vtt














These commands do the splitting, but I need to know exactly how many audio files and how many subtitle files are in the
mkv
.

ffmpeg -y -i input.mkv \
 -map 0:v:0 -c:v libx264 output0.mp4



ffmpeg -y -i input.mkv \
 -map 0:a:0 -c:a aac output0.m4a \
 -map 0:a:1 -c:a aac output1.m4a \
 -map 0:a:2 -c:a aac output2.m4a



ffmpeg -y -i input.mkv \
 -map 0:s:0 output0.vtt \
 -map 0:s:1 output1.vtt



Is it possible to make such divisions without knowing the file number
0:a:2
,0:s:1
?

- Video

-
ffmpeg : Generate empty audio and video (working for video)
17 septembre 2021, par David FerrisI'm trying to generate a black video with FFMPEG. I have accomplished this with the following :


ffmpeg -t 5 -f lavfi -i color=c=black:s=1920x1080 -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4



Unfortunately this video doesn't have any audio tracks. Following this, I have tried to insert -i anullsrc=channel_layout=stereo:sample_rate=44100 :


ffmpeg -t 5 -i anullsrc=channel_layout=stereo:sample_rate=44100 -f lavfi -i color=c=black:s=1920x1080 -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4



Unfortunately this gives the error :




anullsrc=channel_layout=stereo:sample_rate=44100 : No such file or
directory




How can I modify my initial script to generate a video with empty audio ?


-
Video player scroll doesn't work after ffmpeg audio and video merge (NodeJS)
1er novembre 2022, par Pietro LetoI made youtube downloader to download video from youtube using nodejs library ytdl-core. If I wanted to download video with best quality I had to download them without sound. So, in my script, I download audio and video separately and I merge them into an mp4 file.
What's the problem ? Video player scroll doesn't work. I can see the video but I can't going back or move on, and I can't see video duration.


const express = require("express");
const cors = require("cors");
const app = express();
const ffmpeg = require('ffmpeg-static');
const cp = require('child_process');
const ytdl = require("ytdl-core");

app.use(cors());

app.listen(3000, () => {
 console.log("Server is working at port 3000 !!");
});

app.get('/download', (req,res) => {
 var url = req.query.URL;
 var formato = req.query.FORMAT;

 try {
 let vid = ytdl(url,{filter:'videoonly', quality:'highestvideo'})
 let aud = ytdl(url, {filter: 'audioonly', quality:'highestaudio'});

 ytdl.getInfo(url).then(info => {
 titolo = info.videoDetails.title;

 res.header("Content-Disposition", 'attachment; filename=' + titolo + '.mp4');

 const ffmpegProcess = cp.spawn(ffmpeg, [
 '-i', `pipe:3`,
 '-i', `pipe:4`,
 '-map','0:v:0',
 '-map','1:a:0',
 '-c:v', 'copy',
 '-c:a', 'aac',
 '-crf','27',
 '-preset','veryfast',
 '-movflags','frag_keyframe+empty_moov',
 '-f','mp4',
 '-loglevel','error',
 '-'
 ], {
 stdio: [
 'pipe', 'pipe', 'pipe', 'pipe', 'pipe',
 ],
 });
 
 aud.pipe(ffmpegProcess.stdio[4]);
 vid.pipe(ffmpegProcess.stdio[3]);
 ffmpegProcess.stdio[1].pipe(res);
 });
 }
 catch(err) {
 console.log("Error with URL: " + url + "\nERROR: " + err + "\n\n");
 }
});



I have not found alternatives to do this. I need a working script to download youtube videos with good quality.