Recherche avancée

Médias (91)

Autres articles (63)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8546)

  • Mpeg Dash code having compilation issues and want to know what to do after the code is built and how to play the .mpd file generated

    11 avril 2013, par niuuuu

    I'm trying to build the DashEncoder code which I downloaded from github https://github.com/slederer/DASHEncoder. Well, I followed all the instructions given in the how to compile dash file. installed Gpac n X264 and compiled both successfully. Then did make of Dashencoder and ran it as ./Dashencoder. But I found some issues in it. Got this log :

    ==========DASH ENCODER===============
    Unknown option in resourcefile : sql-pw :
    current encoder x264
    YES
    x264 encoding @ 300 kbps: Pass 1
    x264: x264 --profile baseline --preset slow --verbose --fps 24 --vbv-maxrate 300 --vbv-bufsize 600 --scenecut 0 --keyint 48 --output /opt/lampp/htdocs/tests_updates/sintel_trailer_2k_480p24_300kbit.h264 /home/niu/sintel_trailer_2k_480p24.y4m >out.txt 2>&1
    mkdir: cannot create directory `/opt/lampp/htdocs/tests_updates/sintel_300kbit': File exists
    cp: omitting directory `/opt/lampp/htdocs/tests_updates/'
    copy audio: cp /opt/lampp/htdocs/tests_updates/ /opt/lampp/htdocs/tests_updates/sintel_300kbit/MP4Box multiplexing Video: /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.h264  
    mp4box: MP4Box -add /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.h264  /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4
    AVC-H264 import - frame size 854 x 480 at 24.000 FPS
    AVC Import results: 1253 samples - Slices: 27 I 1226 P 0 B - 1 SEI - 27 IDR
    Saving to /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4: 0.500 secs Interleaving
    MP4Box multiplexing Audio:/opt/lampp/htdocs/tests_updates/sintel_300kbit/
    mp4box: MP4Box -add /opt/lampp/htdocs/tests_updates/sintel_300kbit/ /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4
    Unknown input file type
    Unknown input file type
    Error importing /opt/lampp/htdocs/tests_updates/sintel_300kbit/: Bad Parameter
    MP4Box Cleaning ...
    mp4box: MP4Box -no-sys  /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4
    Saving /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4: 0.500 secs Interleaving
    MP4Box segmentation: /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.h264  
    mp4box: MP4Box -frag 2000 -dash 2000 -rap -segment-name /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4
    DASH-ing file: 2.00s segments 2.00s fragments single sidx per segment
    Spliting segments at GOP boundaries
    [DASH] Generating MPD at time 2013-03-16T16:40:03Z
    DASHing file /opt/lampp/htdocs/tests_updates/sintel_300kbit/sintel_trailer_2k_480p24_300kbit.mp4
    terminate called after throwing an instance of 'std::out_of_range'
     what():  basic_string::substr
    Error: Unable to open MPD file!Aborted

    Why is this error at the end ?
    and also one folder got created in my /opt/lampp/htdocs/tests_updates/sintel_300kbit.
    which has two types of files :
    27 files of .m4s extension
    1 file -sintelinit.mp4
    1 file- sintel_trailer_2k_480p24_300kbit.mp4 , which when played in vlc player played the video bt no audio ! &

    1 file- sintel_trailer_2k_480p24_300kbit.h264 which cannot be opened.

    No .mpd file was created.

    Also I want to know aft creating that .mpd file how will i be able to test it on my android client say media player.

    I am damn confused with all this happening. Please help.

  • How to concatenate multiple init segments and chunks from the DASH video stream ?

    17 novembre 2022, par Umakant

    I'have written a dash player in python that receives chunks from the DASH server using adaptive bitrate algorithm. Once entire video streaming is over, I need to concatenate all following received segments into one single mp4 file.

    


    root@cap31:~/don# ls
chunk0-00001.m4s  chunk2-00015.m4s  chunk2-00035.m4s  chunk2-00055.m4s  chunk2-00075.m4s  chunk3-00010.m4s  chunk3-00030.m4s  chunk3-00050.m4s  chunk3-00070.m4s
chunk0-index.m4s  chunk2-00017.m4s  chunk2-00037.m4s  chunk2-00057.m4s  chunk2-00077.m4s  chunk3-00012.m4s  chunk3-00032.m4s  chunk3-00052.m4s  chunk3-00072.m4s
chunk1-00002.m4s  chunk2-00019.m4s  chunk2-00039.m4s  chunk2-00059.m4s  chunk2-00079.m4s  chunk3-00014.m4s  chunk3-00034.m4s  chunk3-00054.m4s  chunk3-00074.m4s
chunk1-index.m4s  chunk2-00021.m4s  chunk2-00041.m4s  chunk2-00061.m4s  chunk2-00081.m4s  chunk3-00016.m4s  chunk3-00036.m4s  chunk3-00056.m4s  chunk3-00076.m4s
chunk2-00003.m4s  chunk2-00023.m4s  chunk2-00043.m4s  chunk2-00063.m4s  chunk2-00083.m4s  chunk3-00018.m4s  chunk3-00038.m4s  chunk3-00058.m4s  chunk3-00078.m4s
chunk2-00005.m4s  chunk2-00025.m4s  chunk2-00045.m4s  chunk2-00065.m4s  chunk2-00085.m4s  chunk3-00020.m4s  chunk3-00040.m4s  chunk3-00060.m4s  chunk3-00080.m4s
chunk2-00007.m4s  chunk2-00027.m4s  chunk2-00047.m4s  chunk2-00067.m4s  chunk2-index.m4s  chunk3-00022.m4s  chunk3-00042.m4s  chunk3-00062.m4s  chunk3-00082.m4s
chunk2-00009.m4s  chunk2-00029.m4s  chunk2-00049.m4s  chunk2-00069.m4s  chunk3-00004.m4s  chunk3-00024.m4s  chunk3-00044.m4s  chunk3-00064.m4s  chunk3-00084.m4s
chunk2-00011.m4s  chunk2-00031.m4s  chunk2-00051.m4s  chunk2-00071.m4s  chunk3-00006.m4s  chunk3-00026.m4s  chunk3-00046.m4s  chunk3-00066.m4s  chunk3-index.m4s
chunk2-00013.m4s  chunk2-00033.m4s  chunk2-00053.m4s  chunk2-00073.m4s  chunk3-00008.m4s  chunk3-00028.m4s  chunk3-00048.m4s  chunk3-00068.m4s


    


    I tried all the solutions mentioned on following links :
https://trac.ffmpeg.org/wiki/Concatenate
ffmpeg converting m4s to mp4

    


    Most common solution was to append the cat files in mp4 :

    


    for x in *index* *-*[0-9]*.m4s; do cat $x >> output.mp4; done


    


    But this video does not play after the second init segment starts rendering resulting into video getting stuck. I believe maybe because in my case, I have multiple init segments pointing to different chunks.

    


    Hence, I'm looking for some way to get the one single mp4 video file by concatanating all these init segments and chunks correctly.

    


  • MPEG DASH SRD : How to properly re-assemble multiple tiles into a single tile [closed]

    21 juin 2024, par ATrashInTheWorld

    I am trying to build a web player that is able to stream MPEG DASH, but with SRD information in the manifest. I have a problem at the "gluing" of the tiles part.

    


    How the data is set :

    


    I have a video of a resolution of XxY, which I've divided in tiles of NxM, meaning that I now have the NxM videos of the same duration as the original one, but which is reduced to a smaller resolution, a portion from the original (seeing only the upper left corner for example).

    


    I have fragmented those tiles for the MPEG DASH streaming format, meaning an init.mp4 and the m4s fragments for each tile. To note that I have the tiles in multiple bitrate, in order to imitate some adaptive streaming.

    


    The "gluing" part :

    


    The gluing part consists of gluing the tile togheter into 1 big tile, aka the original video. The SRD information allows me to know where each tile should be position to reconstruct the original video shape. Once I have the spatial information from the manifest, I use this command to glue the tiles togheter :

    


    ffmpeg.exe -i v1 -i v2 -i v3 -i .v4 -i v5 -i v6 -i v7 -i v8 -i v9 -filter_complex "[0:v][1:v][2:v][3:v][4:v][5:v][6:v][7:v][8:v]xstack=inputs=9:layout=0_0|w0_0|w0+w1_0|0_h0|w3_h0|w3+w4_h0|0_h0+h3|w6_h0+h3|w6+w7_h0+h3" out.mp4


    


    The command above allows me to "glue" together tiles from a grid of 3x3 tiles, into 1 big tile.

    


    The web streaming method :

    


    To stream, I use JavaScript MediaSource, and I am appending the fragments to the buffer continuously, like this reference

    


    The issue :

    


    The issue is that the FFMPEG gluing command only works on proper mp4 videos, not with fragments (m4s). I cannot glue the wanted m4s tiles back into a bigger one. However, the JavaScript player only takes fragments, meaning that I cannot just send continuous mp4 video.

    


    I have tried many things with fragments and full videos, but the only solution I found for this chicken-egg problem is to :

    


      

    1. Create video clips with smaller duration for each tile, at each bitrate.
    2. 


    3. Glue the desired video clips tiles together with the FFMpeg command.
    4. 


    5. Convert that glued video in one big fragment, and send it.
    6. 


    


    However, I feel that it is not a clean method and I fear that I am missing something.
Is there a better solution that I am not aware of ?
Any idea suggestions are welcome.

    


    Thank you for your time.