Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (42)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

Sur d’autres sites (6790)

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

    


  • 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 !

  • 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 ?