Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (78)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’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, par

    The 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 (7977)

  • ffmpeg (IMAGE THUMBNAIL 1 frame) how to "choose" compression quality when we use -vframes 1 (how to do like convert -quality 60....)

    25 juillet 2021, par jini

    • PRE-CONTEXT : with ImageMagick, I'm use to do convert -quality 60 1.jpg 1.webp here "quality 60" affect the final size of the output

    


    • CONTEXT : create a poster.webp OR poster.jpg of a movie.mp4

    


    • QUESTION : how can we "achieve" the same compression level choice with ffmpeg when we want 1 frame

    


    • WHAT I TRIED [1] :

    


    ffmpeg -i movie.mp4 -vframes 1 -qmin 0 -qmax 1  0.webp

    


    and ffmpeg -i movie.mp4 -vframes 1 -qmin 50 -qmax 51 50.webp

    


    ==>> both gives the exact same size for the output.

    


    • WHAT I TRIED [2] :

    


    ffmpeg -i movie.mp4 -vframes 1 -b:v 9k bv9k.webp

    


    and ffmpeg -i movie.mp4 -vframes 1 -b:v 1k bv1k.webp

    


    ==>> both gives the exact same size for the output.

    


    what I'm I missing or miss using here ?

    


    Thanks

    


  • swscale/utils : Use full chroma interpolation for rgb4/8 and dither none

    8 juillet 2021, par Michael Niedermayer
    swscale/utils : Use full chroma interpolation for rgb4/8 and dither none
    

    Dither none is only implemented in full chroma interpolation for these rgb formats
    Its also a obscure choice (producing less nice images) that implementing it in the
    other code-paths makes no sense

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libswscale/utils.c
  • Low latency video player on android

    20 mai 2021, par Louis Blenner

    I'd like to be able to stream the video from my webcam to an Android app with a latency below 500ms, on my local network.

    &#xA;

    To capture and send the video over the network, I use ffmpeg.

    &#xA;

    ffmpeg -f v4l2 -i /dev/video0 -preset ultrafast -tune zerolatency -vcodec libx264 -an -vf format=yuv420p -f mpegts  udp://192.168.1.155:5000&#xA;

    &#xA;

    This command takes the webcam as an input, convert it and send it to a device using the mpegts protocol.
    &#xA;This is not a requirement, if another technique could work, I could change the way I send the video.

    &#xA;

    I am able to read the video on another PC from the local network with a latency below 500 ms, using commands like

    &#xA;

    gst-launch-1.0 -v udpsrc port=5000 ! video/mpegts ! tsdemux ! h264parse ! avdec_h264 ! fpsdisplaysink sync=false&#xA;

    &#xA;

    or

    &#xA;

    mpv udp://0.0.0.0:5000 --no-cache --untimed --no-demuxer-thread --video-sync=audio --vd-lavc-threads=1 &#xA;

    &#xA;

    So it is possible to have this range of latency.
    &#xA;I'd like to have the same thing on Android.

    &#xA;

    Here are my tries to do that.

    &#xA;

    Exoplayer

    &#xA;

    After looking at the different players available on Android studio, it seems like Exoplayer is the go-to choice.
    &#xA;I tried different options indicated in the live-streaming documentation, but I always end up with a stream taking seconds to start and with a latency of seconds.
    &#xA;I tried to add a Button to seek to the default position of the windows, but it results in a loading of several seconds.

    &#xA;

    DefaultExtractorsFactory extractorsFactory =&#xA;                new DefaultExtractorsFactory()&#xA;                        .setTsExtractorFlags(DefaultTsPayloadReaderFactory.FLAG_IGNORE_AAC_STREAM);&#xA;&#xA;        player = new SimpleExoPlayer.Builder(this)&#xA;                .setMediaSourceFactory(&#xA;                        new DefaultMediaSourceFactory(this, extractorsFactory))&#xA;                .setLoadControl(new DefaultLoadControl.Builder()&#xA;                        .setBufferDurationsMs(DefaultLoadControl.DEFAULT_MIN_BUFFER_MS, DefaultLoadControl.DEFAULT_MAX_BUFFER_MS, 200, 200)&#xA;                        .build())&#xA;                .build();&#xA;        MyPlayerView playerView = findViewById(R.id.player_view);&#xA;        // Bind the player to the view.&#xA;        playerView.setPlayer(player);&#xA;        // Build the media item.&#xA;        MediaItem mediaItem = new MediaItem.Builder()&#xA;                .setUri(Uri.parse("udp://0.0.0.0:5000"))&#xA;                .setLiveMaxOffsetMs(500)&#xA;                .setLiveTargetOffsetMs(0)&#xA;                .setLiveMinOffsetMs(0)&#xA;                .build();&#xA;        // Set the media item to be played.&#xA;        player.setMediaItem(mediaItem);&#xA;        // Prepare the player.&#xA;        player.setPlayWhenReady(true);&#xA;        player.prepare();&#xA;        //player.seekToDefaultPosition();&#xA;

    &#xA;

    This issue is about the same issue and the conclusion was that Exoplayer was not fit for this use case.

    &#xA;

    &#xA;

    I'll be honest, ultra low-latency like this isn't ExoPlayer's main use-case

    &#xA;

    &#xA;

    Vlc

    &#xA;

    Another try was to use the Vlc library.
    &#xA;But I was unable to have the same low latency stream as with the two previous players with Vlc.
    &#xA;I tried changing the preferences of Vlc to stream as fast as possible as described here

    &#xA;

    Input/Codecs -> x264 preset: ultrafast - zerolatency&#xA;Input/Codecs -> Access Module: UDP input&#xA;Input/Codecs -> Clock Jitter: 500&#xA;Audio: disable audio&#xA;

    &#xA;

    I also tried reducing the different buffers.
    &#xA;However, I still have a latency of more than 1 seconds with that.

    &#xA;

    Gstreamer

    &#xA;

    Another try was to create a react-native project to use the different players available here.
    &#xA;One player that seemed promising was react-native-gstreamer because it uses gstreamer which is able to stream with low latency (gst-launch command).
    &#xA;But the library is now outdated.

    &#xA;

    Question

    &#xA;

    There were other tries, but none were successful.
    &#xA;Is there a problem with one of my approaches ?
    &#xA;And if not, Is there a player on Android (that I missed) which is able to achieve low latency stream like gstream or mpv on linux ?

    &#xA;