Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

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

Autres articles (71)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7819)

  • Produce an adaptive multi-resolution mpeg-dash file from an input video file

    1er mars 2021, par Tariq Hasan

    I can produce different resolution mpeg-dash videos from running these commands separately and get one .mpd file for each of the resolutions :

    


    ffmpeg -i /path/to/input.mp4 -vf scale=1920:1080 /path/to/output.mpd
ffmpeg -i /path/to/input.mp4 -vf scale=1280:720 /path/to/output.mpd
ffmpeg -i /path/to/input.mp4 -vf scale=720:480 /path/to/output.mpd
ffmpeg -i /path/to/input.mp4 -vf scale=640:360 /path/to/output.mpd


    


    The question is, how do I get a single .mpd file that maps to all these different resolution videos which would be adaptive in resolution when streamed over the network ?

    


  • How to merge a segmented webvtt subtitle file and output a single srt file ?

    24 janvier 2019, par Dobbelina

    How to merge a segmented webvtt subtitle file and output a single srt file ?,
    m3u8 looks like this example :

    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-MEDIA-SEQUENCE:1
    #EXT-X-INDEPENDENT-SEGMENTS
    #EXT-X-TARGETDURATION:4
    #USP-X-TIMESTAMP-MAP:MPEGTS=900000,LOCAL=1970-01-01T00:00:00Z
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-1.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-2.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-3.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-4.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-5.webvtt
    #EXTINF:4, no desc
    0ghzi1b2cz5(11792107_ISMUSP)-textstream_swe=2000-6.webvtt
    #EXT-X-ENDLIST

    I noticed that each segment is not synchronized/cued against total playing time, but against the individual ts segments.
    If ffmpeg could be used to do this, what magic input do i need to give it ?

    A single correctly cued vtt file would work to.
    Thanks for any replies you lovely people !

  • ffmpeg error : Could not write header for output file #0 (incorrect codec parameters ?) : No such file or directory

    6 mars 2021, par Syed Uddin

    I have the following files in the Convert_video_to_HLS folder on my Desktop :

    


      

    • input
    • 


    • output
    • 


    • script.sh
    • 


    • video.key
    • 


    • video.key.info
    • 


    


    The command I'm running is :

    


    bash ./Desktop/Convert_video_to_HLS/script.sh ./Desktop/Convert_video_to_HLS/input ./Desktop/Convert_video_to_HLS/video.key.info ./Desktop/Convert_video_to_HLS/video.key ./Desktop/Convert_video_to_HLS/output


    


    The contents of script.sh

    


    #!/bin/sh
DIR=$1
DIR_KEY_INFO=$2
DIR_KEY=$3
OUTPUT=$4
echo $DIR
# List all mp4 files on folder
MP4_DIRS=$(find $DIR -type f | grep -E "\.mp4$")
mkdir -p $OUTPUT
for addr in $MP4_DIRS
do
FILE=$(basename $addr .mp4)
mkdir -p $OUTPUT/$FILE
cp $DIR_KEY $OUTPUT/$FILE/
ffmpeg -i $addr -codec: copy -start_number 0 -hls_time 20 -hls_list_size 0 -hls_key_info_file $DIR_KEY_INFO -f hls $OUTPUT/$FILE/$FILE.m3u8
done


    


    The error message i get is :

    


    [hls @ 0x7fd654012400] Opening './Desktop/Convert_video_to_HLS/video.key.info' for reading
[hls muxer @ 0x7fd65401c600] error opening key info file ./Desktop/Convert_video_to_HLS/video.key.info
Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
    Last message repeated 1 times


    


    Help appreciated. FYI I'm new to bash script and following a tutorial so a breakdown would be appreciated.

    


    Update :
I have placed the files in my root directory and run the following command, and it seems to work.

    


    bash ./script.sh ./input ./video.key.info ./video.key ./output


    


    Therefore, for some reason, the folder directory is not being referenced correctly.