Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (88)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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, par

    MediaSPIP 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 2013

    Jolie 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 Reino

    I'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 the movie-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čelis

    I 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 Darkhmar

    First 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) {&#xA;    try {&#xA;        Movie[] inMovies = new Movie[2];&#xA;&#xA;        inMovies[0] = MovieCreator.build(firstVideoPath);&#xA;        inMovies[1] = MovieCreator.build(secondVideoPath);&#xA;&#xA;        List<track> videoTracks = new LinkedList&lt;>();&#xA;        List<track> audioTracks = new LinkedList&lt;>();&#xA;&#xA;        for (Movie m : inMovies) {&#xA;            for (Track t : m.getTracks()) {&#xA;                if (t.getHandler().equals("soun")) {&#xA;                    audioTracks.add(t);&#xA;                }&#xA;                if (t.getHandler().equals("vide")) {&#xA;                    videoTracks.add(t);&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        Movie result = new Movie();&#xA;&#xA;        if (audioTracks.size() > 0) {&#xA;            result.addTrack(new AppendTrack(audioTracks&#xA;                    .toArray(new Track[audioTracks.size()])));&#xA;        }&#xA;        if (videoTracks.size() > 0) {&#xA;            result.addTrack(new AppendTrack(videoTracks&#xA;                    .toArray(new Track[videoTracks.size()])));&#xA;        }&#xA;&#xA;        BasicContainer out = (BasicContainer) new DefaultMp4Builder().build(result);&#xA;&#xA;        @SuppressWarnings("resource")&#xA;        FileChannel fc = new RandomAccessFile(DIRECTORY_PATH &#x2B; "output.mp4", "rw").getChannel();&#xA;        out.writeContainer(fc);&#xA;        fc.close();&#xA;    } catch (FileNotFoundException e) {&#xA;        e.printStackTrace();&#xA;    } catch (IOException e) {&#xA;        e.printStackTrace();&#xA;    }&#xA;}&#xA;</track></track>

    &#xA;