Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (21)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (4634)

  • Mp4 Video File not playing after downloading using Content Disposition php but it plays when it streams directly from the server

    1er juin 2021, par Razor Rassh

    I'm trying to combine a video and audio file using the FFMPEG and it worked successfully for me. The FFMPEG successfully created the MP4 file in the target destination folder. When I'm trying to download the Video file from the destination folder using Content-Disposition in Php. The server successfully downloads the Video file from the exact target folder.

    


    The problem is that when I'm trying to play the video using VLC or any other player, nothing happened. The VLC player just launched and do nothing. I checked the downloaded file size with the video file located on the server and found that they both are the same size.

    


    The code I used for creating Video file and content disposition is,

    


          
      $downloadFolderPath = "/var/www/html/temp/{$downloadFolderName}";
      $result = mkdir($downloadFolderPath, 0777);     
      $downloadFileName = "$downloadFolderPath/$filename";
      //echo $downloadFileName;
      $command = $ffmpeglocation." -i $audio_link -i $link -c:v copy -c:a aac -preset fast -crf 20 $downloadFileName 2>&1";
      shell_exec($command);

      $file=fopen($downloadFileName,'r');
      header("Content-Type:video/mp4");
    
      header("Content-Disposition: attachment; filename=$filename");
         
      header('Content-Description: File Transfer');
      header('Content-Type: application/octet-stream');
       
      header('Content-Disposition: attachment; filename="'.basename($downloadFileName).'"');
      header('Expires: 0');
      header('Cache-Control: must-revalidate');
      header('Pragma: public'); 
      header('Content-Length: ' . filesize($downloadFileName)); 
      flush(); // Flush system output buffer
      readfile($downloadFileName);    
      die();


    


    The above code did its purpose by properly downloading the video file hosted on the server. But after downloading, the video file is not playing. I tried to access the file directly through the URL of the file in the browser and it plays fluently in the browser.

    


    Help me out. Sorry for the bad english.

    


  • Can Linux buffer UDP packets to correct the sequence

    6 avril 2021, par QuickPrototype

    Good Day,

    


    I am transmitting MP3 audio using UDP through the Internet. Yes, it's most likely a bad idea for various reasons, however my use case limits me to this setup. To expand further based on comments below, my source device connects over a very high latency link with low and limited throughput as these devices are located in rural/remote areas. My latency is up to 1 seconds (shocking yes). Using TCP will therefore degrade my service due to its two way coms, acks, resends and the likes.

    


    The issue I'm trying to resolve is that on the receiver server (Linux Ubuntu 18.04), I am seeing all the packets but many times slightly out of sequence. I.e. packet 5 comes before packet 4.

    


    Is there a way in Linux to buffer the incoming UDP stream such that consumers (FFMPEG in my case) is able to get stream in order (being a buffer, with an expected delay, that would be linked to buffer size).

    


    Tcpdump example of issue (note : ids are out of sequence) :

    


    16:04:48.648448 IP (tos 0x0, ttl 24, id 25335, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:48.648503 IP (tos 0x0, ttl 24, id 25334, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:48.884324 IP (tos 0x0, ttl 24, id 25336, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:48.884357 IP (tos 0x0, ttl 24, id 25337, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:49.145213 IP (tos 0x0, ttl 24, id 25339, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:49.145257 IP (tos 0x0, ttl 24, id 25338, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:49.406068 IP (tos 0x0, ttl 24, id 25340, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:49.406125 IP (tos 0x0, ttl 24, id 25341, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:49.667095 IP (tos 0x0, ttl 24, id 25342, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:49.667175 IP (tos 0x0, ttl 24, id 25343, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:49.929139 IP (tos 0x0, ttl 24, id 25344, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:49.929200 IP (tos 0x0, ttl 24, id 25345, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:50.164307 IP (tos 0x0, ttl 24, id 25346, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:50.164385 IP (tos 0x0, ttl 24, id 25347, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80
16:04:50.425221 IP (tos 0x0, ttl 24, id 25348, offset 0, flags [DF], proto UDP (17), length 1228)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 1200
16:04:50.425285 IP (tos 0x0, ttl 24, id 25349, offset 0, flags [DF], proto UDP (17), length 108)
    xx.xx.xx.xx.2011 > 172.xx.xx.xx.2011: UDP, length 80


    


  • avcodec/h264 : fix stride calculation in slice_table for multi-slice field video deblo...

    24 décembre 2024, par Lingyi Kong
    avcodec/h264 : fix stride calculation in slice_table for multi-slice field video deblocking
    

    fix for https://trac.ffmpeg.org/ticket/11360
    A new fate test case is added to validate the fix, the smaple file is located at https://trac.ffmpeg.org/attachment/ticket/11360/slice2_field_aurora4.264.

    Signed-off-by : Lingyi Kong <konglingyi@visionular.com>

    • [DH] libavcodec/h264_mb.c
    • [DH] tests/fate/h264.mak
    • [DH] tests/ref/fate/h264-conformance-slice2_field_aurora4