
Recherche avancée
Autres articles (26)
-
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 -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (6008)
-
when I filter a frame with "fps=fps=30" my code starts consuming a lot of ram until it crashes, but if I use "scale=250:250" it works fine
23 août 2021, par Gabriel AyalaWhen I apply the filter "scale=250:250" my code works, it outputs a rescalated video
but when I apply the filter "fps=fps=30000/1000", the code asks for ram until it crashes, I think the problem is in the applyFilter function
PasteBin of complete code https://pastebin.com/tcgwFmTz this part starts at line 257


int applyFilter(filterCtx* filter, AVFrame* inFrame, AVFrame* outFrame)
{
 int ret;
 /* push the decoded frame into the filtergraph */
 if (av_buffersrc_add_frame_flags(filter->buffersrc_ctx, inFrame, AV_BUFFERSRC_FLAG_KEEP_REF) < 0)
 {
 return 0;
 }

 /* pull filtered frames from the filtergraph */
 for (EVER)
 {
 ret = av_buffersink_get_frame(filter->buffersink_ctx, outFrame);
 if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
 {
 return 3;
 }
 if (ret < 0)
 {
 return -1;
 }
 return 0;
 }
 return 0;
}



char filterDesc = "fps=fps=30000/1000"; // THIS DOESN'T WORK
 //char filterDesc = "scale=1200:1200"; THIS WORKS
 filter = initFilter(filterDesc, params);
 
 for (EVER)
 {
 getFrame(decoder, frame, packet);
 if(decoder->container->streams[packet->stream_index]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
 {
 if (filter != NULL)
 {
 response = applyFilter(filter, frame, filterFrame);
 if (response < 0)
 {
 printf("Error while applying a filter");
 return -1;
 }
 tmp = frame;
 av_frame_unref(frame);
 frame = filterFrame;
 filterFrame = tmp;
 if(response == 3)
 {
 continue;
 }
 }
 
 }
 encode(decoder, encoder, frame, packet->stream_index);

 }



-
Output a video with "slide up" transition using more than 100 images in FFMPEG ?
9 juillet 2021, par Joseph Ladera FugataI have more than a hundred images of the same size and format that my company wants to display at the big 9:16 (rotated 16:9) screen outside the front gate. It's supposed to be easy but they required me to have it slide from top to bottom, meaning that it should look like a smooth auto scroll effects. I searched here and there but no luck.


I have tried xfade like this :


ffmpeg -loop 1 -i input.txt -filter_complex
"xfade=transition=slideup:duration=10:offset=0,format=yuv420p" output.mp4



It didn't do anything just a bunch of error referring to the inputs. Which is supposed to be just 2 images in the first place.


The next thing I tried was using Concat from someone named @Gyan at his reply HERE and here's my version of the code :


ffmpeg -y -f concat -safe 0 -i input.txt
-vf tile=1x%img_count%,loop=%_my_loop_count_var%:1:0,
crop=iw:ih/%img_count%:0:clip((t-%_start_time%)/%sec_per_img%*ih/%img_count%\,0\,ih*%img_count_minus_one%/%img_count%)
-r 25 -c:v libx264 -preset ultrafast output.mp4



When I played with it, it gives a different output even do the image are all the same dimensions.


I found someone on youtube used this but it is using bash and I am on windows. Unless someone here can convert it to a batch script would be great. I look into it and it seems like he's just V-stacking them kinda like what I did but there's more. I know I could have gone through win bash but I doubt the script will run on a non-Unix environment just by having bash, and I'm not yet familiar with Cygwin either.


I also did tried other options posted by others here, I just forgot to bookmark them, but non of them works on more than a hundred images.


I love to hear a response if anyone can help.


-
"connection reset by peer" error when streaming from ffmpeg to ffserver
7 juillet 2021, par g KishoreI'm trying to stream a static video file using ffmpeg to ffserver in androidv7.1.2 embedded board.


- 

- Started ffserver with command "ffserver -d /etc/ffserver.conf &"
- ffmpeg command used to stream :
ffmpeg -i ./sample_960x400_ocean_with_audio.3gp -f flv http://192.168.47.174:8090/feed1.ffm






ffserver.conf file content


HTTPPort 8090
HTTPBindAddress 192.168.47.174
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 100000

#NoDaemon
#UseDefaults
#NoDefaults

<feed>
File /data/local/tmp/feed1.ffm
FileMaxSize 5M
</feed>

<stream>
Feed feed1.ffm
Format flv

VideoCodec libx264
VideoFrameRate 24
VideoBufferSize 80000
VideoBitRate 512
VideoQMin 1
VideoQMax 5
VideoSize 960x418
PreRoll 0
Noaudio
</stream>



Error :


Thu Jan 1 00:20:04 2015 192.168.47.174 - - [POST] "/feed1.ffm HTTP/1.1" 200 415
av_interleaved_write_frame(): Connection reset by peer
 Last message repeated 1 times
[flv @ 0x41be1d40] Failed to update header with correct duration.
[flv @ 0x41be1d40] Failed to update header with correct filesize.
Error writing trailer of http://192.168.47.174:8090/feed1.ffm: Connection reset by peer
frame= 1 fps=0.0 q=1.6 Lsize= 0kB time=00:00:00.09 bitrate= 33.0kbits/s speed=1.68x 
video:10kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!



Any help is greatly appreciated.