
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (88)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (18946)
-
Is it possible to stream 2 vertically stacked videos with FFPlay ?
13 mai 2021, par ReinoI'm trying to open a remote lecture video (mp4[h264+aac]) accompanied by several slides (jpg) with
ffplay
where I would like to vertically stack both streams.

Downloading with
ffmpeg
is no problem :

ffmpeg -i \
-loop 1 -i "https://.../slide_0001.jpg" \
...
-loop 1 -i "https://.../slide_0054.jpg" \
-lavfi "
 [1:v]trim=duration=10.000[img1];
 ...
 [54:v]trim=duration=30.500[img54];
 [img1][...][img54]concat=n=54,
 crop=1454:818:224:27,
 scale=w=640:h=360:flags=spline,
 fps=25[slides];
 [slides][0:v]vstack
"
-c:v ... -c:a copy output.mp4



I thought of piping to
ffplay
...

-lavfi "..." -c:v rawvideo -c:a copy -f nut - | ffplay -i -



...but despite
-c:v rawvideo
there still must be a conversion going on of some sort, because it puts quite a tax on the cpu.

ffplay
only accepts 1 input, so obviously the slides have to be opened with themovie
-filter. I've never used this filter before to open urls and that shows :

ffplay -f lavfi "movie='https\://.../slide_0001.jpg'"
[image2 @ 05773900] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[Parsed_movie_0 @ 057733c0] Empty pixel format list
movie='https\://.../slide_0001.jpg': Invalid argument



What is this
pixel format list
?

Downloading this first slide and opening it locally does work :


ffplay -f lavfi "movie='slide_0001.jpg',crop=1454:818:224:27,scale=w=640:h=360:flags=spline"



What doesn't work is to set a duration. I've tried the following without success :


ffplay -f lavfi "movie='slide_0001.jpg':loop=0,crop=1454:818:224:27,scale=w=640:h=360:flags=spline,fps=25,trim=duration=10.000"
--> No response and cpu at 100%.

ffplay -f lavfi "movie='slide_0001.jpg',crop=1454:818:224:27,scale=w=640:h=360:flags=spline,loop=loop=-1,fps=25,trim=duration=10.000"
[Parsed_loop_3 @ 05783b80] Number of frames to loop is not set!
...
[Parsed_movie_0 @ 057734c0] EOF timestamp not reliable
...



In the end I'm trying to do something like...


ffplay -vf "
 movie='https\://.../slide_0001.jpg',trim=duration=10.000[img1];
 ...
 movie='https\://.../slide_0054.jpg',trim=duration=30.500[img54];
 [img1][...][img54]concat=n=54,
 crop=1454:818:224:27,
 scale=w=640:h=360:flags=spline,
 fps=25[slides];
 [slides][0:v]vstack
" 



Is this possible at all ?


-
Ubuntu reduce video size with ffmepg and change format
27 juillet 2015, par Arnas PečelisI want to watermark, reduce weigth, resize and change format for selected videos.
Also I need to keep quality as high as it possible.Now what I have :
ffmpeg -i prepared/video.mp4 -i units/video_watermark.png -filter_complex overlay=10:10 -codec:a copy moved/video_test.mp4
and I’m watermarking video, but the quality drops a lot. Also I have :
ffmpeg -i prepared/video.mp4 -s 1280x720 -b 512k -vcodec mpeg1video -acodec copy
but also I need to reduce weight also as lot as possible. The reconstructed videos will be shown as movies online. My question would be - is it possible to do it one line and change format to .mp4 ?
PS. I have constructed command :
ffmpeg -i downloaded/movie/movie.avi -c:v libx264 -acodec libfaac -b:a 64k -preset ultrafast -vf "movie=units/video_watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" -movflags faststart prepared/movie.mp4
but it returns me error :
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration:
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
Unrecognized option 'preset'.
Error splitting the argument list: Option not found -
Android Studio - Append two videos but showing black screen
6 septembre 2020, par DarkhmarFirst of all hello,


When I add another mp4 file at the end of an mp4 file, the video looks completely black screen but I can get the video sounds.


If I add a copy of a video to the end of it, I saw that there was no problem, but this is not a scenario I want.


I am getting the "text relocations" error when merging with the FFmpeg library. (This problem is fixed when I change this library version, but I have other problems. Therefore, mp4parser is an alternative I see.)


The piece of code that allows the videos to be merged is as follows. Thank you from now.


private void appendTwoVideos(String firstVideoPath, String secondVideoPath) {
 try {
 Movie[] inMovies = new Movie[2];

 inMovies[0] = MovieCreator.build(firstVideoPath);
 inMovies[1] = MovieCreator.build(secondVideoPath);

 List<track> videoTracks = new LinkedList<>();
 List<track> audioTracks = new LinkedList<>();

 for (Movie m : inMovies) {
 for (Track t : m.getTracks()) {
 if (t.getHandler().equals("soun")) {
 audioTracks.add(t);
 }
 if (t.getHandler().equals("vide")) {
 videoTracks.add(t);
 }
 }
 }

 Movie result = new Movie();

 if (audioTracks.size() > 0) {
 result.addTrack(new AppendTrack(audioTracks
 .toArray(new Track[audioTracks.size()])));
 }
 if (videoTracks.size() > 0) {
 result.addTrack(new AppendTrack(videoTracks
 .toArray(new Track[videoTracks.size()])));
 }

 BasicContainer out = (BasicContainer) new DefaultMp4Builder().build(result);

 @SuppressWarnings("resource")
 FileChannel fc = new RandomAccessFile(DIRECTORY_PATH + "output.mp4", "rw").getChannel();
 out.writeContainer(fc);
 fc.close();
 } catch (FileNotFoundException e) {
 e.printStackTrace();
 } catch (IOException e) {
 e.printStackTrace();
 }
}
</track></track>