Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (87)

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (8113)

  • Ffmpeg infinite loop opus record without audio stream input

    4 septembre 2020, par YannaY

    I try command line ffmpeg to record input audio stream :

    


    ffmpeg -i ./audio_opus.sdp -v info -acodec libopus -ar 48000 -af volume=2 -y ./test.opus


    


    My sdp is set with correct codec and correct audio rate.

    


    For my unit test, i try this example without input stream. Why process isn't stopped, it runs in infinite loop (like with speex codec) ?

    


    ffmpeg -i ./audio_opus.sdp -v info -acodec libopus -ar 48000 -af volume=2 -y ./test.opus
ffmpeg version 2.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec 13 2018 09:28:05 with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
  configuration: --enable-libfreetype --enable-gpl --enable-libx264 --enable-libopus --enable-libspeex --disable-podpages --disable-doc
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, sdp, from './audio_opus.sdp':
  Metadata:
    title           : No Name
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
[libopus @ 0x55ccec28f2a0] No bit rate set. Defaulting to 64000 bps.
Output #0, opus, to './test.opus':
  Metadata:
    title           : No Name
    encoder         : Lavf55.48.100
    Stream #0:0: Audio: opus (libopus), 48000 Hz, mono, flt, 64 kb/s
    Metadata:
      encoder         : Lavc55.69.100 libopus
      title           : No Name
Stream mapping:
  Stream #0:0 -> #0:0 (opus (native) -> opus (libopus))
Press [q] to stop, [?] for help
./audio_opus.sdp: Connection timed out
[libopus @ 0x55ccec28f2a0] Trying to remove 960 samples, but the queue is empty
[opus @ 0x55ccec28e1e0] Encoder did not produce proper pts, making some up.
[libopus @ 0x55ccec28f2a0] Trying to remove 960 samples, but the queue is empty
    Last message repeated 68798 timeses


    


  • Is there a way using ffprobe (fluent-ffmpeg) input with a read stream in node.js ?

    25 mars 2023, par Andy Huang

    I am using fluent-ffmpeg in my code, my main goal is to get the audio/video duration,
I need to use stream as my input.

    


    According the document,
https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#reading-video-metadata

    


    ffmpeg('/path/to/file1.avi')
  .input('/path/to/file2.avi')
  .ffprobe(function(err, data) {
    console.log('file2 metadata:');
    console.dir(data);
  });

ffmpeg('/path/to/file1.avi')
  .input('/path/to/file2.avi')
  .ffprobe(0, function(err, data) {
    console.log('file1 metadata:');
    console.dir(data);
  });


    


    I have tried these

    


    const ffmpeg = require('fluent-ffmpeg')
const fs = require('fs')

filepath = './scratch_file/assets_audios_10000.wav'
stream = fs.createReadStream(filepath)
ffmpeg(stream)
.input(filepath) // have to put a file path here, possible path dependent
.ffprobe(function (err, metadata) {
    if (err){throw err}
    console.log(metadata.format.duration);
}) //success printing the duration 


    


    Above successfully returned the duration

    


    ffmpeg(stream)
.input(stream) //
.ffprobe(function (err, metadata) {
    if (err){throw err}
    console.log(metadata.format.duration);
}) // failed


    


    Above failed.

    


    ffmpeg(stream)
.ffprobe(function (err, metadata) {
    if (err){throw err}
    console.log(metadata.format.duration);
}) //returned "N/A"


    


    Returned N/A

    


    Can nyone help ? I would need something like

    


    ffmpeg.ffprobe(stream, (metadata) => {console.log(metadata.format.duration)} )

    


    Thank you.

    


  • Getting "Error while decoding stream #0:0 : Invalid data found when processing input" when using ffmpeg to convert tga to mp4

    22 juin 2020, par Calvin Godfrey

    I've used ffmpeg to convert a bunch of tga files into an mp4 just fine for a few weeks, but it broke for no apparent reason earlier today. I have a pastebin with -loglevel debug here, but the command I use is the same as the one that has worked before — ffmpeg -framerate 60 -i triangle%03d.tga output.mp4, and now it's broken.

    


    The tga files are manually created by a C program that I wrote, but I don't think it's a problem with the file header/format because it hasn't been a problem with ffmpeg before before and I can open the tga files fine with eog and a tga viewer on Windows. Just in case it matters, here's the start of a hexdump for one of the files :

    


    0000000 0000 0002 0000 0000 0000 0000 0780 0438
0000010 2018 ceeb eb87 87ce ceeb eb87 87ce ceeb
0000020 eb87 87ce ceeb eb87 87ce ceeb eb87 87ce
0000030 ceeb eb87 87ce ceeb eb87 87ce ceeb eb87
0000040 87ce ceeb eb87 87ce ceeb eb87 87ce ceeb
0000050 eb87 87ce ceeb eb87 87ce ceeb eb87 87ce
0000060 ceeb eb87 87ce ceeb eb87 87ce ceeb eb87
0000070 87ce ceeb eb87 87ce ceeb eb87 87ce ceeb
0000080 eb87 87ce ceeb eb87 87ce ceeb eb87 87ce
0000090 ceeb eb87 87ce ceeb eb87 87ce ceeb eb87


    


    Would appreciate any help on fixing the ffmpeg (or alternative ways to convert tga to mp4).