
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (19)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (6844)
-
How to overlay 2 videos at different time over another video in single ffmpeg command ?
17 mars 2018, par Qandeel AbbasiUsing ffmpeg command line I want to overlay 2 different videos on top of another (main video) at different time for different duration. I have successfully overlayed 1 video over the main video at specific time and for specific duration using following command :
ffmpeg -i main.mp4 -i first.mp4 \
-filter_complex "[1:v]setpts=PTS-32/TB[a]; \
[0:v][a]overlay=enable=gte(t\,5):eof_action=pass[out]; \
[1] scale=480:270 [over]; [0][over] overlay=400:400" \
-map [out] -map 0:a \
-c:v libx264 -crf 18 -pix_fmt yuv420p \
-c:a copy \
output.mp4How can i modify the same command to apply the same operations on two secondary videos at the same time ?
-
I'm trying to merge videos using fluent-ffmpeg, but some times it merges videos , but whenever we tries to merge videos second time it shows error
9 janvier 2024, par Asif Mujawarconst express =require('express')
const app = express()
const ffmpeg = require('fluent-ffmpeg')
const ffmpegPath = require('@ffmpeg-installer/ffmpeg')
const ffprobe = require('@ffprobe-installer/ffprobe')

const first = './videos/first.mp4'
const second = './videos/second.mp4'
const third = './videos/third.mp4'
const fourth = './videos/fourth.mp4'

ffmpeg.setFfprobePath(ffprobe.path)
ffmpeg.setFfmpegPath(ffmpegPath.path)

app.use(express.json())

app.use("/",(req,res)=>{
 res.send("hello")

 ffmpeg()
 .input(first)
 .input(second)
 
 .on('end', function() {
 console.log('files have been merged succesfully');
 })
 .on('error', function(err) {
 console.log('an error happened: ' + err.message);
 })
 .mergeToFile("final.mp4")
 })
 

app.listen(8800,()=>{
 console.log("backend is running 8800")
})




but it shows error whenever we try to merge videos second time


an error happened : ffmpeg exited with code 1 : Cannot find a matching stream for unlabeled input pad 3 on filter Parsed_concat_0


an error happened : ffmpeg exited with code 1 : Cannot find a matching stream for unlabeled input pad 3 on filter Parsed_concat_0


-
ffmpeg auto scaling problem - Picture width must be an integer multiple of the specified chroma subsampling [closed]
19 juin 2024, par kaliApparently one of my input files have a wonky aspect ratio and it lands on a "non - integer" auto scaled width. which produces an error message about chroma multiples (naturally)


ffmpeg -i "1.mp4" -vf "scale=-1:1920" -c:v libx265 -c:a aac -preset slow -x265-params "crf=22:min-keyint=25:keyint=50" "2.mp4"


ffmpeg version 4.4-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 8 (Debian 8.3.0-6)
 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
 libavutil 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2mp41
 encoder : Lavf58.65.101
 Duration: 00:46:25.43, start: 0.000000, bitrate: 29507 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 5120x2880 [SAR 1:1 DAR 16:9], 29238 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 59.94 tbc (default)
 Metadata:
 handler_name : ?Mainconcept Video Media Handler
 vendor_id : [0][0][0][0]
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 257 kb/s (default)
 Metadata:
 handler_name : #Mainconcept MP4 Sound Media Handler
 vendor_id : [0][0][0][0]
File '2.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (hevc (native) -> hevc (libx265))
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 8.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [error]: Picture width must be an integer multiple of the specified chroma subsampling
[libx265 @ 0x58180c0] Cannot open libx265 encoder.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x58a7e00] Qavg: 12426.497
[aac @ 0x58a7e00] 2 frames left in the queue on closing



I think what's happening is ffmpeg internally converts "5120x2880" resolution to "3413.33x1920" hence the error message. Is there a way to tell ffmpeg to round up/down to nearest "chroma acceptable ratio" (for yuv420 this 2) These files are converted via a script and it does not really matter if the width is a few pixels longer or shorter.