
Recherche avancée
Autres articles (101)
-
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 (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (6202)
-
Problems getting real width and height of videos
1er mai 2022, par EduardoI'm having a problem when I upload videos. The thing is that I record my videos with my cellphone in vertical way and when I download them to my computer or pass them through whatsapp they still look vertical, I can still watch them in vertical way as I recorded them, but when I try to upload them on my website using PHP and FFMPEG I always get horizontal resolutions.


I use this command to get the width of my videos :


$width = $video_attributes['width'] ;


The variable $video_attributes is an array that comes from a FFMPEG function that returns an array with the data related to the video.


Somebody could help me out with some ideas about what I'm doing wrong ?


I need to get the vertical resolution so my videos will be displayed in vertical containers in my website.


Thanks in advance :)


-
How to scroll long picture(big height) scrolling with background image in ffmpeg,Text in video products will flicker
15 juin 2022, par user18550619use overlay or scoll filter,the result of video still flicker !
ffmepg cmd as follow :


1.scoll filter


ffmpeg -y -loop 1 -i input.png -i bg.png -filter_complex "[0]scroll=vertical=0.000819672131147541,crop=iw:1280:0:0,format=yuva444p[scrollView] ;[1][scrollView]overlay=0:0:enable='between (t,0,27.466666666666665)'" -t 27.466666666666665 E :\output1.mp4


2.overlay with time change y position


ffmpeg -y -r 1 -loop 1 -t 27.466666666666665 -i input.png -filter_complex "color=white:s=720x1280,fps=fps=30[bg] ;movie=bg.png[bg1] ;[bg][bg1]overlay=0:0[bg2] ;[bg2][0]overlay=y=-'t*60':shortest=1[video]" -preset ultrafast -b:v 1989k -map [video] E :\output2.mp4






-
ffmpeg DASH - Include the stream's width and height (WxH) in the outputted filenames
20 juillet 2022, par JaradGiven this :


ffmpeg -i test.mp4 -c:a aac -c:v libx264 ^
-map v:0 -s:0 960x540 -b:v:0 800k ^
-map v:0 -s:1 320x170 -b:v:0 300k ^
-map 0:a ^
-f dash dash/master.mpd



Produces this :


chunk-stream0-00001.m4s
chunk-stream0-00002.m4s
...
chunk-stream0-00044.m4s
chunk-stream0-00045.m4s
chunk-stream1-00001.m4s
chunk-stream1-00002.m4s
...
chunk-stream1-00044.m4s
chunk-stream1-00045.m4s
chunk-stream2-00001.m4s
chunk-stream2-00002.m4s
...
chunk-stream2-00074.m4s
chunk-stream2-00075.m4s
init-stream0.m4s
init-stream1.m4s
init-stream2.m4s
master.mpd



Inspection shows :
ffprobe master.mpd


Input #0, dash, from 'master.mpd':
 Duration: 00:06:11.00, start: -0.021333, bitrate: 0 kb/s
 Program 0
 Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 960x540 [SAR 1:1 DAR 16:9], 152 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
 Metadata:
 variant_bitrate : 300000
 id : 0
 Stream #0:1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 320x170 [SAR 17:18 DAR 16:9], 21 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
 Metadata:
 variant_bitrate : 28227
 id : 1
 Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 110 kb/s (default)
 Metadata:
 variant_bitrate : 128000
 id : 2



I want output instead like this :


chunk-stream0-960x540-00001.m4s
chunk-stream0-960x540-00002.m4s
...
chunk-stream0-960x540-00044.m4s
chunk-stream0-960x540-00045.m4s
chunk-stream1-320x170-00001.m4s
chunk-stream1-320x170-00002.m4s
...
chunk-stream1-320x170-00044.m4s
chunk-stream1-320x170-00045.m4s
chunk-stream2-???????-00001.m4s
chunk-stream2-???????-00002.m4s
...
chunk-stream2-???????-00074.m4s
chunk-stream2-???????-00075.m4s
init-stream0-960x540.m4s
init-stream1-320x170.m4s
init-stream2-???????.m4s
master.mpd



where
???????
could be justaudio
or48000hz
or whatever.

The Question


Is there a way to include the stream's width and height (its size) in the outputted filenames from the command-line interface ? If no, how could it be accomplished using a shell script for example.