Recherche avancée

Médias (0)

Mot : - Tags -/tags

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (112)

  • 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 (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (12490)

  • fate/vpx : Move webm-dash-manifest tests to a new file

    28 avril 2022, par Andreas Rheinhardt
    fate/vpx : Move webm-dash-manifest tests to a new file
    

    These tests have basically nothing to do with VPX (they do not even
    require the decoder).

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] tests/Makefile
    • [DH] tests/fate/vpx.mak
    • [DH] tests/fate/webm-dash-manifest.mak
  • MPEG-DASH MPD file not playing correctly

    24 juin 2017, par CMOS

    So I am working on generating a very simple MPD manifest file for my MPEG-DASH videos and I cannot figure out what is wrong. Here is my current manifest file

    &lt;?xml version="1.0" ?>
    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H9M21.795S" maxsegmentduration="PT0H0M1.001S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
       <period>
           <baseurl>https://mysite/uploads/sources/resolution_640/bitrate_1400/</baseurl>
           <adaptationset mimetype="video/mp4">
               <contentcomponent contenttype="video"></contentcomponent>
               <representation bandwidth="1400000">
                 <segmentlist duration="119">
                   <initialization sourceurl="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_0.mp4"></initialization>
                   <segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_1.mp4"></segmenturl>
                   <segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_2.mp4"></segmenturl>
                   <segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_3.mp4"></segmenturl>
                 </segmentlist>
               </representation>
           </adaptationset>
       </period>
    </mpd>

    This MPD file validates using every validator I can find. The urls for the segments are obscured for security reasons but they are all open, public and viewable individually. But when I try to run the manifest file, depending on the player I get. "No supported source found within manifest" or simply nothing happens.

    Any idea how this could be wrong ? I am currently using media url’s as absolute paths but I have also tried paths relative to the BaseURL with no luck. Any info on how I can make a very simple MPEG-Dash manifest structure would be great. I am using FFMPEG to split my video up into 150 frame segments. Thanks !

  • How to play ffmpeg dash ?

    30 janvier 2024, par Roshan Ojha

    I have following code to create chunk of video.

    &#xA;

    permission_classes=[AllowAny]&#xA;video_serializer = serializers.video_serializer&#xA;&#xA;def process_video(self, video_path, video_id):&#xA;    # Set the path where the processed videos will be saved&#xA;    output_dir = os.path.join(settings.MEDIA_ROOT, &#x27;processed_videos&#x27;)&#xA;&#xA;     # Create the output directory if it doesn&#x27;t exist&#xA;    os.makedirs(output_dir, exist_ok=True)&#xA;&#xA;    # Add your ffmpeg_streaming code here to process the video&#xA;    full_video_path =  os.path.join(settings.MEDIA_ROOT, str(video_path))&#xA;    print(video_path)&#xA;    video = ffmpeg_streaming.input(full_video_path)&#xA;    print(video)&#xA;&#xA;      # Add your ffmpeg_streaming code here to process the video&#xA;    _144p  = Representation(Size(256, 144), Bitrate(95 * 1024, 64 * 1024))&#xA;    _240p  = Representation(Size(426, 240), Bitrate(150 * 1024, 94 * 1024))&#xA;    _360p  = Representation(Size(640, 360), Bitrate(276 * 1024, 128 * 1024))&#xA;    _480p  = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))&#xA;    _720p  = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))&#xA;&#xA;    dash = video.dash(Formats.h264())&#xA;    dash.representations(_144p, _240p, _360p, _480p, _720p)&#xA;    dash.output(os.path.join(output_dir, f&#x27;dash-stream-{video_id}.mpd&#x27;))&#xA;&#xA;&#xA;def post(self,request):&#xA;    try:&#xA;        video_data = self.video_serializer(data=request.data)&#xA;        video_data.is_valid(raise_exception=True)&#xA;        data = video_data.validated_data&#xA;&#xA;        video_instance = Video.objects.create(&#xA;            id = data.get(&#x27;id&#x27;),&#xA;            saved_location = data.get(&#x27;video&#x27;)&#xA;        )&#xA;        video_instance.save()&#xA;&#xA;        self.process_video(video_instance.saved_location, video_instance.id)&#xA;        return Response({"success":True})&#xA;    except Exception as e:&#xA;        return Response({"success":False,"message":str(e)})&#xA;

    &#xA;

    This code is working well as it has created different chunk files as well as a .mpd file of a video inside media/processed_video folder.

    &#xA;

    Then I wrote following code to stream that video using that .mpd folder.

    &#xA;

        def get (self,request,video_id):&#xA;    try:&#xA;        mpd_path = os.path.join(settings.MEDIA_ROOT, &#x27;processed_videos&#x27;, f&#x27;dash-stream-{video_id}.mpd&#x27;)&#xA;        &#xA;        with open(mpd_path, &#x27;rb&#x27;) as f:&#xA;            mpd_content = f.read()&#xA;            response = HttpResponse(mpd_content, content_type=&#x27;application/dash&#x2B;xml&#x27;)&#xA;&#xA;            # Set Content-Disposition header to make the response downloadable&#xA;            response[&#x27;Content-Disposition&#x27;] = f&#x27;attachment; filename="dash-stream-{video_id}.mpd"&#x27;&#xA;            &#xA;            # Optionally set Content-Length header to specify the size of the file&#xA;            response[&#x27;Content-Length&#x27;] = len(mpd_content)&#xA;            &#xA;            return response&#xA;        &#xA;    except Exception as e:&#xA;        return Response({"success":False,"message":str(e)})&#xA;

    &#xA;

    When I make get request to the api it returns content of .mpd as it is (i.e xml). When I used that api in vlc network stream, vlc couldn't play the video. But when I dragged .mpd file directly to vlc, the video gets played with 144p only. I don't know where I got wrong in GET. Please help.

    &#xA;