
Recherche avancée
Autres articles (51)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (3159)
-
ffmpeg, add static image to beginning and end with transitions
14 mars 2021, par CreateChangeffmpeg noob here, trying to help my mother with some videos for real estate walkthroughs. I'd like to set up a simple pipeline that I can run videos through and have outputted as such :


- 

- 5 second (silent) title card ->
- xfade transition ->
- property walk through ->
- xfade transition ->
- 5 second (silent) title card












Considerations :


- 

- The intro / outro card will be the same content.
- The input walkthrough videos will be of variable length so, if possible, a dynamic solution accounting for this would be ideal. If this requires me to script something using
ffprobe
, I can do that - just need to gain an understanding of the syntax and order of operations. - The video clip will come in with some audio already overlaid. I would like for the title cards to be silent, and have the video/audio clip fade in/out together.








I have gotten a sample working without the transitions :


ffmpeg -loop 1 -t 5 -i title_card.jpg \
 -i walkthrough.MOV \
 -f lavfi -t 0.1 -i anullsrc \
 -filter_complex "[0][2][1:v][1:a][0][2]concat=n=3:v=1:a=1[v][a]" \
 -map "[v]" -map "[a]" \
 -vcodec libx265 \
 -crf 18 \
 -vsync 2 \
 output_without_transitions.mp4



I have been unable to get it to work with transitions. See below for the latest iteration :


ffmpeg -loop 1 -t 5 -r 60 -i title_card.jpg \
 -r 60 -i walkthrough.MOV \
 -f lavfi -t 0.1 -i anullsrc \
 -filter_complex \
 "[0][1:v]xfade=transition=fade:duration=0.5:offset=4.5[v01]; \
 [v01][0]xfade=transition=fade:duration=0.5:offset=12.8[v]" \
 -map "[v]" \
 -vcodec libx265 \
 -crf 18 \
 -vsync 2 \
 output_with_transitions.mp4



This half-works, resulting in the initial title card, fading into the video, but the second title card never occurs. Note, I also removed any references to audio, in an effort to get the transitions alone to work.


I have been beating my head against the wall on this, so help would be appreciated :)


-
ffmpeg jpg batch script with timestamp
3 juillet 2021, par ChrisI currently have this batch script using ffmpeg to scale images and place in a new location with the same folder structure. How do i include the timestamp from the original jpg file in the filename of the new scaled jpg file ?


This gives files named m-H-S_IMG_0305


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 setlocal enabledelayedexpansion
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 -strftime 1 "!targetfolder!%Y-%m-%d_%H-%M-%S_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



Working version for file modify date :


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 echo which has a timestamp of "%%~ta" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 set "timestamp=%%~ta"
 setlocal enabledelayedexpansion
 set "timestamp=!timestamp: =_!"
 set "timestamp=!timestamp::=-!"
 set "timestamp=!timestamp:/=-!"
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



File Creation date option attempt using exiftool (This works but it stops frequently so there is an error somewhere) :


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 echo which has a timestamp of "%%~ta" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 set "timestamp=('exiftool -d %%Y%%m%%d_%%H%%M%%S -CreateDate %%~a')"
 for /f "tokens=1,2 delims=x" %%a in ('exiftool -T -d %%Y%%m%%d_%%H%%M%%S -CreateDate "%%a"') do (
 set "timestamp=%%a"
 )
 setlocal enabledelayedexpansion
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



-
lavc/aarch64 : port HEVC SIMD idct NEON
16 janvier 2021, par Reimar Döffingerlavc/aarch64 : port HEVC SIMD idct NEON
Makes SIMD-optimized 8x8 and 16x16 idcts for 8 and 10 bit depth
available on aarch64.
For a UHD HDR (10 bit) sample video these were consuming the most time
and this optimization reduced overall decode time from 19.4s to 16.4s,
approximately 15% speedup.
Test sample was the first 300 frames of "LG 4K HDR Demo - New York.ts",
running on Apple M1.Signed-off-by : Josh Dekker <josh@itanimul.li>