Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (66)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (8624)

  • Flutter chewie video player shows incorrect duration for HLS stream

    29 mai 2022, par magackame

    Im using SRS and ffmpeg to create a HLS video stream
    
I run SRS using docker command

    


    docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 ossrs/srs:4 ./objs/srs -c conf/docker.conf


    


    And then post a stream using ffmpeg command

    


    ffmpeg -re -i video.mp4 -c copy -f flv rtmp://localhost/live/livestream


    


    To playback a video in flutter I use Chewie video player (chewie: ^1.3.2 in pubspec.yaml) and this widget code :

    


    import &#x27;package:video_player/video_player.dart&#x27;;&#xA;import &#x27;package:chewie/chewie.dart&#x27;;&#xA;import &#x27;package:flutter/material.dart&#x27;;&#xA;&#xA;class RoomView extends StatefulWidget {&#xA;  const RoomView({Key? key}) : super(key: key);&#xA;&#xA;  @override&#xA;  _RoomViewState createState() => _RoomViewState();&#xA;}&#xA;&#xA;class _RoomViewState extends State<roomview> {&#xA;  late VideoPlayerController _videoController;&#xA;  late ChewieController _controller;&#xA;&#xA;  @override&#xA;  void dispose() {&#xA;    _controller.dispose();&#xA;    _videoController.dispose();&#xA;&#xA;    super.dispose();&#xA;  }&#xA;&#xA;  @override&#xA;  void initState() {&#xA;    super.initState();&#xA;&#xA;    _videoController = VideoPlayerController.network(&#x27;http://localhost/live/livestream.m3u8&#x27;)&#xA;      ..initialize().then((_) {&#xA;        setState(() {});&#xA;      });&#xA;&#xA;    _controller = ChewieController(videoPlayerController: _videoController);&#xA;  }&#xA;&#xA;  @override&#xA;  Widget build(BuildContext context) {&#xA;    return AspectRatio(&#xA;        aspectRatio:&#xA;        _controller.aspectRatio == null ? 16 / 9 : _controller.aspectRatio!,&#xA;        child: Chewie(controller: _controller));&#xA;  }&#xA;}&#xA;</roomview>

    &#xA;

    The video plays fine and seeking using the playback bar also works, but the video duration is incorrect. I tried streaming videos with different duration(the two minute and twenty minute ones), tried using mp4 and mkv formats as source and/or streaming using mpegts as output container(instead of flv) but all of them had a duration of either one minute or sometimes 10 seconds and the playbar will overflow when reaching the limit(showing something like 2:11/1:05).
    &#xA;When playing some public HLS streams(https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/master.m3u8) the video duration is shown correctly so I guess the problem is either the SRS or the ffmpeg.
    &#xA;The question is what am I doing wrong, what parameters should I use for ffmpeg or SRS, and what are other options that I can use to provide a working HLS stream for the player

    &#xA;

  • Conversion of individual mp4 files to ts yields unexpected playback

    3 août 2021, par MorenoGentili

    I'm converting three mp4 files (h264, no audio, each with a duration of three seconds) to the mpeg-ts format like so.

    &#xA;

    ffmpeg -i 1.mp4 -c copy 1.ts&#xA;ffmpeg -i 2.mp4 -c copy 2.ts&#xA;ffmpeg -i 3.mp4 -c copy 3.ts&#xA;

    &#xA;

    Please note : I can't combine the mp4 files beforehand. Each one has to be converted individually as shown above since they're being generated by a live recorder.

    &#xA;

    Then, I manually created a .m3u8 manifest like this one, so I could play those 3 ts files in sequence :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-MEDIA-SEQUENCE:0&#xA;#EXT-X-PLAYLIST-TYPE:VOD&#xA;#EXT-X-TARGETDURATION:3&#xA;#EXTINF:3,&#xA;1.ts&#xA;#EXTINF:3,&#xA;2.ts&#xA;#EXTINF:3,&#xA;3.ts&#xA;#EXT-X-ENDLIST&#xA;

    &#xA;

    When I run the ffplay index.m3u8 command :

    &#xA;

      &#xA;
    • 1.ts is played for three seconds as expected ;
    • &#xA;

    • 2.ts is played "for a split second" (maybe just a frame) ;
    • &#xA;

    • 3.ts is played for three seconds as expected.
    • &#xA;

    &#xA;

    Can someone explain why 2.ts is shown for such a brief time ? When I run ffmpeg -i 2.ts, the output is correctly displaying a duration of three seconds.

    &#xA;

    Input #0, mpegts, from &#x27;2.ts&#x27;:&#xA;  Duration: 00:00:03.00, start: 1.480000, bitrate: 49 kb/s&#xA;

    &#xA;

    How can I change my mp4 -> ts conversion commands so that each file can play for their whole duration (i.e. three seconds each) ? I'd like to avoid reencoding if possible.

    &#xA;

    Thank you, I'm adding a link to the three files and the manifest for completeness.

    &#xA;

  • FFMPEG segmented radio stream shows incorrect duration after a concat

    27 juillet 2021, par darbid

    On MacOS using Automator I am recording a radio stream. I thought the best way to do this so as to avoid an internet drop out was to segment it as follows.

    &#xA;

    /opt/homebrew/Cellar/ffmpeg/4.4_2/bin/ffmpeg -i http://s2.viastreaming.net:7100 -t 02:10:00 -c copy -f segment -segment_time 1800 -segment_list /Volumes/BackUp/Radio/segmentlist.txt -segment_list_entry_prefix "file /Volumes/BackUp/Radio/" /Volumes/BackUp/Radio/Segments_%d.m4a&#xA;

    &#xA;

    I then bring it all together with the following command.

    &#xA;

    /opt/homebrew/Cellar/ffmpeg/4.4_2/bin/ffmpeg -f concat -safe 0 -i /Volumes/BackUp/Radio/segmentlist.txt -c copy /Volumes/BackUp/Radio/capture.m4a&#xA;

    &#xA;

    Looking at the get info of the capture.m4a file it shows a duration of 2 hours 10 minutes, however, when I play it in for example iTunes it shows exactly 5:10. It also shows 5:10 for example in Emby (a local media server solution).

    &#xA;

    Can someone please point me in the right direction on fixing my ffmpeg commands ?

    &#xA;