
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (67)
-
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 -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (9249)
-
Converting bat to bash script [on hold]
15 juillet 2019, par dezxelaPlease help me with coversion this script from here to bash :
https://stackoverflow.com/a/38291960/11786146This part of the code seems to be reconciled in me, but I’m not sure that it’s correct :
# path to ffmpeg
export ffmpeg='/home/user/bin'
# source movies from
export movieSource='/mnt/dev1/radio/Masha'
# tmp dir
export tmpDir='/mnt/dev1/radio/Masha'
# setup positon, color, background, font for the text overlays
# filterComplex, quotes have to be escaped! -> \"
# BITC - Burned In Time Code
export filterComplexTimecode='drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSerif.ttf': timecode='10\:00\:00\:00': timecode_rate=24: x=(w-tw)/2: y=h-(1*lh)-3: fontsize=20: fontcolor=white@0.4: box=1: boxcolor=0x00000000@0.4: boxborderw=4'
# Date
export filterComplexDate='drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSerif.ttf': text='%{localtime\:%X}': x=(w-tw-3): y=h-(1*lh)-3: fontsize=20: fontcolor=white@0.4: box=1: boxcolor=0x00000000@0.4: boxborderw=4'
# Shotname
export filterComplexShotname='drawtext=fontfile='/usr/share/fonts/truetype/freefont/FreeSerif.ttf': x=0: y=h-(1*lh)+1: fontsize=20: fontcolor=white@0.4: box=1: boxcolor=0x00000000@0.4: boxborderw=4:'
# create a list of all files
find "$movieSource" -name "*.mp4" -type f | sort -R | while read j; do echo "file '$j'" >> $tmpDir/filelist.txt; done
echo filename, durationInSeconds > $tmpDir/fileNameDuration.txt
for file in $movieSource/*.mp4; do
# Reset current duration to 0 (zero) for each loop
export curDuration=0
# get the filename without file extenion
export fileName=${file##*/}
# get the duration of a single clip
# and write it to a tmp textfile
$ffmpeg/ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$file" > $tmpDir/fileTempDuration.txt
# read the textfile again into a variable
read -p < $tmpDir/fileTempDuration.txt last curDuration
# write the filename and the duration to a new list of all files
echo $fileName,$curDuration >> $tmpDir/fileNameDuration.txt ;done
# concate a filter complex string for ffmpeg with all clipnames as textlayer with a inpoint and outpoint
export filterComplexShotnameCombined=
# floating numbers are not supported by batch, so we need to work-around that
source :IntAsFP b=0.000000
for i in $tmpDir/fileNameDuration.txt; do
source :IntAsFP a=$j
source :IntToFP inPoint=$b 6
export c=$(expr a + b)
export b=c
source :IntToFP outPoint=$c 6
# just to check whats going on...
echo name: $i duration: $j inPoint: $inPoint outPoint: $outPoint
export filterComplexShotnameCombined='$filterComplexShotnameCombined, $filterComplexShotname text=$i: enable=between(t\,$inPoint\,$outPoint^^^)';done -
FFMPEG display video supported resolution formats only
10 juillet 2014, par user3361920I am working on a site in which there is video listings display section. On click of a video the video detail page opens. In that detail page the video can be downloaded in the following resolutions :-
4K RESOLUTION
HD 1080P RESOLUTION
HD 720P RESOLUTION
SD 720 RESOLUTION
640X360 WEB
The user can select any one of these resolution format via radio button and video will be downloaded in that resolution after getting converted on the fly. I am using FFMPEG and h264 library for conversion. While uploading the original resolution is fetched using this same ffmpeg and is saved in the database.
Now what I need is out of these resolutions only those resolutions should display on the detail page for a particular video which the video supports. For ex. if the video displaying on the page does not support HD 1080P Resolution (2nd one above) then it should not be displayed and hence will not be available for the video to be converted and downloaded in this resolution and similarly for other ones. Please let me know is it possible bcoz I am not a pro in php and especially to ffmpeg and not sure whether this is even possible or not and if yes then how ?. Any help will be most appreciated and thanks in advance. -
How to make FFmpeg automatically inject mp3 audio tracks in the single cycled muted video ?
5 décembre 2020, par Grrzlyeverybody here ! So basically this is what I want to achieve :


I have a muted video about 3 minutes long.
I have a list of audio tracks in mp3 format (40 songs in a folder with duration 2 to 6 mins each one)


I want this video to play cycled automatically taking songs from playlist and injecting them to the video one by one. Every time a song finishes the next one from the list should start playing at the moment. Video continues playing and doesn't care duration of tracks.


I consider it as the first step on the way to broadcast radio with a video background on youtube in 24/7 mode with ability to put additional tracks to playlist without need to stop translation.


My problem is that I'm new in FFmpeg and I would appreciate any suggestions regarding which FFMpeg topic to start investigate with in order to achieve my goal