Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (49)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

Sur d’autres sites (7036)

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

    


  • Improving accuracy of Google Cloud Speech API

    17 août 2018, par Shaikat Haque

    I am currently recording audio from a web page on my Mac OS computer and running it through the cloud speech api to produce a transcript. However, the results aren’t that accurate and there are chunks of missing words in the results.

    Are there any steps that would help me yield more accurate results ?

    Here are the steps I am taking to convert audio to text :

    1. Use Soundflower to channel audio output from my soundcard to mic in.
    2. Play audio from website
    3. Use quickTime player to record audio which is saved as a .m4a file.
    4. Use the command line tool ffmpeg to convert the .m4a file to a
      .flac, and also combine 2 audio channels (stereo) to 1 audio channel (mono).
    5. Upload the .flac file to Google Cloud Storage. The file has a sample rate of 44100Hz and has 24 bits per sample.
    6. Use the longRunningRecognize api via the node.js client library,
      pointing to the file in Google cloud storage.
  • ffmpeg on google app engine or other alternatives

    6 décembre 2022, par Jon Luc

    This isn’t really a problem with any specific bit of code more just a general question about how I would host a ffmpeg function within a severless function like google app engine. Basically I have a block of code that takes every n frame a video and uploads it to google cloud storage. I have tried implementing such a solution with Firebase functions but to no avail. I think the primary problem is really to do with file storage, from my undetnsdjng data should be written to the tmp folder.

    


    So if anyone can outline exactly how I could host this on app engine that would be great, please be very specific and don’t assumeI know anything because I’ve only really worked with functions :)

    


    Thanks so much

    


    
//Essentially this but on app engine or any other severless environment

try {
        const process = new ffmpeg('star_wars_film_scene.mp4');
        process.then(function(video) {
            // Callback mode
            video.fnExtractFrameToJPG('helpers/frames/', {
                every_n_frames: 500
                
            }, function(error, files) {
                if (error) {
                    console.log(error);
                    return;
                }
                ProcessFrames(files);
            });
        }, function(err) {
            console.log(err);
        });
    } catch (e) {
        console.log('Houston, we have a problem')
        console.log(e.code);
        console.log(e.msg);
    }