Recherche avancée

Médias (91)

Autres articles (87)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (16077)

  • I have a audio in 128kbps that was read 16KB every second, but it seems that I am getting more than 1 seconds of the music each time. Why ?

    23 décembre 2022, par Hexona

    So I have a new stream to which I will push 2048 bytes of audio buffer every 128ms (i.e. 16KB every second) but I seem to have more than 1 second of data pushed to the stream. (I think so by finding ffmpeg is still streaming sound even tens of seconds after I stop pushing data in it)

    


    When I changed it to 1024 bytes/128ms (8KB/s), the sound stop right after I stop pushing data.

    


    Please correct me if I do anything wrong !

    


    Some background story

    


    I am using ffmpeg to stream to a rtp server. It is one-time used, so I can't stop ffmpeg and start again. I don't want to use the ZeroMQ way because of latency. The target I am trying to archive is to have the same readable stream to ffmpeg and change the audio content on the go by stop pushing chunks of previous audio file and switch to the new one.

    


    If you know some other ways to archive the goal, I would be very pleased to know. Thank you in advance !

    


    My current code

    


    const stream = new Stream.Readable();

// ...
// (send stream to ffmpeg)
// ...

fileP = fs.createReadStream(input);
fileP.on('readable', async () => {
    var chunk;
    while (previousStream && (chunk = fileP?.read(16 * 128))) {
        if (!previousStream) break;
        stream.push(chunk);
        await delay(125);
    }
});


    


  • How to debug GitHub Action failure

    9 décembre 2022, par Meltemi

    Just yesterday a stable GitHub Action (CI) started failing rather cryptically and I've run out of tools to debug it.

    


    All I can think of is our BUNDLE_ACCESS_TOKEN went bad somehow but I didn't set that up. It's an Action secret under Repository Secrets that are not visible in GitHub UI. How can I test to see if it's valid ?

    


    Or maybe it's something else ?!? "Bad credentials" is vague...

    


    Here's the meat of the action we're trying to run :

    


    #my_tests.yml
jobs:
  my-test:
    runs-on: ubuntu-latest
    services:
      postgres:
        image: postgres:13.4
        env:
          POSTGRES_USERNAME: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: myapp_test
        ports:
          - 5432:5432
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
    env:
      RAILS_ENV: test
      POSTGRES_HOST: localhost
      POSTGRES_USERNAME: pg
      POSTGRES_PASSWORD: pg
      GITHUB_TOKEN: ${{ secrets.BUNDLE_ACCESS_TOKEN }}
      BUNDLE_GITHUB__COM: x-access-token:${{ secrets.BUNDLE_ACCESS_TOKEN }}
      CUCUMBER_FORMAT: progress
    steps:
      - uses: actions/checkout@v2
      - uses: FedericoCarboni/setup-ffmpeg@v1
      ...


    


    And with debug turned on here's the Failure (line 20) from GitHub Actions :

    


    Run FedericoCarboni/setup-ffmpeg@v1

1 ------- ##[debug]Evaluating condition for step: 'Run FedericoCarboni/setup-ffmpeg@v1'
2 ##[debug]Evaluating: success()
3 ##[debug]Evaluating success:
4 ##[debug]=> true
5 ##[debug]Result: true
6 ##[debug]Starting: Run FedericoCarboni/setup-ffmpeg@v1
7 ##[debug]Loading inputs
8 ##[debug]Loading env
9 Run FedericoCarboni/setup-ffmpeg@v1
10   with:
11   env:
12     RAILS_ENV: test
13     POSTGRES_HOST: localhost
14     POSTGRES_USERNAME: pg
15     POSTGRES_PASSWORD: pg
16     GITHUB_TOKEN: ***
17     BUNDLE_GITHUB__COM: x-access-token:***
19     CUCUMBER_FORMAT: progress
20 Error: Bad credentials
21 ##[debug]Node Action run completed with exit code 1
22 ##[debug]Finishing: Run FedericoCarboni/setup-ffmpeg@v1


    


    Thanks for any help.

    


  • Getting this error in ffmpeg pipeline : Non-monotonous DTS in output stream 0:0 ; previous : 4951970, current : 4951659 ; changing to 4951971

    6 décembre 2022, par RoshaanAli

    Error : Non-monotonous DTS in output stream 0:0 ; previous : 4951970, current : 4951659 ; changing to 4951971. This may result in incorrect timestamps in the output file.

    


    I am using AWS Chime streaming then passing there data stream to FFMPEG and then going live with that data stream using AWS IVS(Interactive video service).
I am using ffmpeg for changing aspects of video on live streaming and brightness and contrast.
But when we turn off camera and after some time reopen it we facing the above mention error.
I have read about concat but we don't have input file actually we are passing data stream is ffmpeg that's why its not working.

    


    Here is my ffmpeg command

    


    ffmpeg=ffmpeg.spawn('ffmpeg', [
            '-i', '-' ,
            // '-f', 'concat',
            // '-segment_time_metadata','1',
            // '-use_wallclock_as_timestamps', '1',
            '-c:v', 'libx264',
            '-b:v', '2567k',
            '-maxrate', '6000K',
            '-preset', 'ultrafast',
            '-profile:v', 'baseline',
            '-level', '3.0',
            // '-aspect', '9:16',
            '-force_key_frames', 'expr:gte(t,n_forced*2)',
            '-movflags', 'faststart',
            '-fflags', 'nobuffer',
            '-tune', 'zerolatency',
            '-acodec', 'aac',
            '-ab', '160k',
            '-ar', '44100',
            '-f', 'flv',
            'rtmps-url/secret-key-replaced'
        ])


    


    I have tried this command -use_wallclock_as_timestamps', '1' but it does nothing to error.