
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (76)
-
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 (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (4968)
-
-vf unrecognized with php exec() function
29 septembre 2011, par RajatI am using php to create a video with fade effects. But exec() function gives following output :
array(19)
[0]=>
string(67) "FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers"[1]=>
string(74) " built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)"[2]=>
string(649) " configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —mandir=/usr/share/man —incdir=/usr/include —disable-avisynth —extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' —enable-avfilter —enable-avfilter-lavf —enable-libdirac —enable-libfaac —enable-libfaad —enable-libfaadbin —enable-libgsm —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libx264 —enable-gpl —enable-nonfree —enable-postproc —enable-pthreads —enable-shared —enable-swscale —enable-vdpau —enable-version3 —enable-x11grab"[3]=>
string(35) " libavutil 50.15. 1 / 50.15. 1"[4]=>
string(35) " libavcodec 52.72. 2 / 52.72. 2"[5]=>
string(35) " libavformat 52.64. 2 / 52.64. 2"[6]=>
string(35) " libavdevice 52. 2. 0 / 52. 2. 0"[7]=>
string(35) " libavfilter 1.19. 0 / 1.19. 0"[8]=>
string(35) " libswscale 0.11. 0 / 0.11. 0"[9]=>
string(35) " libpostproc 51. 2. 0 / 51. 2. 0"[10]=>
string(122) "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/slideshow/frame1.mp4' :"[11]=>
string(11) " Metadata :"[12]=>
string(26) " major_brand : isom"[13]=>
string(25) " minor_version : 512"[14]=>
string(35) " compatible_brands : isomiso2mp41"[15]=>
string(33) " encoder : Lavf52.64.2"[16]=>
string(58) " Duration : 00:00:05.00, start : 0.000000, bitrate : 31 kb/s"[17]=>
string(107) " Stream #0.0(und) : Video : mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 29
kb/s, 1 fps, 1 tbr, 1 tbn, 1 tbc"[18]=>
string(24) "Unrecognized option 'vf'"
Why it is giving unrecognized option 'vf' while it works fine when run directly on server.My command is : "ffmpeg -i /usr/slideshow/frame1.mp4 -vf 'fade=out:0:5' /usr/slideshow/fade1.mp4"
I am executing it with exec() function. Why the error is coming and what should i use to apply filter to my input video. I am working on CentOS server.
Please guide me...
-
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-python lib's 'run' function works locally but doesn't work in server
27 décembre 2023, par Fire DeusI am using ffmpeg-python library to process video, specifically I had to add watermark to video. Code is very simple :


def set_watermark_to_video(
 video_url: str,
 directory: str,
 filename: str,
 extension: str,
):
 video_input = ffmpeg.input(video_url)
 output_path: str = f"/tmp/{filename}_watermarked.mp4"
 logo_input = ffmpeg.input(vid_mycar_logo_path)
 video_probe = ffmpeg.probe(video_url)
 video_stream = next(
 (
 stream
 for stream in video_probe["streams"]
 if stream["codec_type"] == "video"
 ),
 None,
 )

 logo_probe = ffmpeg.probe("my_logo_path")
 logo_stream = next(
 (stream for stream in logo_probe["streams"] if stream["codec_type"] == "video"),
 None,
 )
 ffmpeg.filter(
 [video_input, logo_input],
 "overlay",
 10,
 video_stream["height"] - logo_stream["height"] - 10,
 ).output(output_path).run(overwrite_output=True)



Exception occurs when
.run(overwrite_output=True)
function is called.

Exception looks like this : ffmpeg._run.Error : ffmpeg error (see stderr output for detail).

When I print exc.stderr the only warning I can see is "Unknown cover type : 0x1."


But this code works perfectly when I run it locally. I am using docker to build my service, so dependencies, versions, etc all the same in both environments.


The version of ffmpeg I'm using is
5.1.4-0+deb12u1


I tried to run code line by line in server and local machine to compare all parameters and values that have been generated. And still they are the same, so I don't understand why this error happens in server