Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (52)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

Sur d’autres sites (3297)

  • ffmpeg error "Output file is empty, nothing was encoded" when trying to increase the tempo (speed up) mp3 file

    28 octobre 2022, par rasoolZero

    I'm trying to increase the tempo of an mp3 file using ffmpeg and atempo filter, but always get "Output file is empty, nothing was encoded"

    


    this is the output log

    


    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.1 (GCC) 20200726
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mp3 @ 0000023bf37fdbc0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'normal.mp3':
  Metadata:
    encoder         : Lavf58.65.100
  Duration: 00:00:05.93, start: 0.000000, bitrate: 32 kb/s
    Stream #0:0: Audio: mp3, 22050 Hz, mono, fltp, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (mp3float) -> mp3 (mp3_mf))
Press [q] to stop, [?] for help
[mp3_mf @ 0000023bf3822880] MFT name: 'MP3 Encoder ACM Wrapper MFT'
Output #0, mp3, to 'faster.mp3':
  Metadata:
    TSSE            : Lavf58.45.100
    Stream #0:0: Audio: mp3 (mp3_mf), 22050 Hz, mono, s16, 128 kb/s
    Metadata:
      encoder         : Lavc58.91.100 mp3_mf
size=       0kB time=00:00:05.42 bitrate=   0.7kbits/s speed= 116x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)


    


    this is the command I'm using
ffmpeg -i normal.mp3 -af "atempo=1.1" faster.mp3

    


  • ffmpeg : "Input/output error" Read gif from named pipe ?

    23 octobre 2022, par Xirado

    I've been trying to debug this for hours now, and cannot seem to understand why it doesn't work.

    


    I want to overlay a png onto all frames of a gif, and since writing all the files to disk is slow, i wanted to use pipes.

    


    I created a named pipe using mkfifo imgstream1 and then launch ffmpeg :

    


    ffmpeg -report -hide_banner -v 9 -loglevel 99 -y -f gif -i imgstream1 out1.gif


    


    (This isn't actually useful as it just spits out the same gif again but it's simpler for debugging)

    


    After ffmpeg launches it waits for data from the pipe, so i write an actual gif file to the pipe using this kotlin code

    


    val backgroundFifo = File("imgstream1")
val inputOne = File("background.gif").readBytes()
println("background.gif -> ${inputOne.size} bytes")
val output = backgroundFifo.outputStream()
output.write(inputOne)
output.flush()
output.close()


    


    It prints : background.gif -> 7233247 bytes

    


    Now ffmpeg should read the bytes and spit out a gif, but it always seems to fail doing so.

    


    Opening an input file: imgstream1.
[gif @ 0x7714180] Opening 'imgstream1' for reading
[file @ 0x7714980] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 0x7724dc0] Statistics: 7233247 bytes read, 0 seeks
imgstream1: Input/output error


    


    Sadly this does not give any further information, i'm already on the highest log level...

    


    I've tried multiple things :

    


      

    • -f image2pipe -> Works, but only loads the first 2 frames of the gif
    • 


    • Renaming the pipe to imgstream1.gif so ffmpeg thinks it's a gif file, no change.
    • 


    • Different ffmpeg versions
    • 


    • Using the actual gif as an ffmpeg input works
    • 


    


    At this point i have no idea what the problem might be, as ffmpeg seems to load all bytes.
It's worth noting that doing cat imgstream1 > file.gif produces the desired gif.

    


    Any help would be appreciated !

    


  • ffmpeg throws "cur_dts is invalid" error when trying to get stream from IP camera

    17 octobre 2022, par Max

    I'm trying to stream from an IP camera with the following ffmpeg command :

    


    const command = [
        '-loglevel',
        'debug',
        '-timeout',
        '10000000',
        '-rtsp_transport',
        'tcp',
        '-i',
        this.cameraInfo.url,
        '-c:v',
        'copy',
        '-c:a',
        'aac',
        '-f',
        'mp4',
        '-movflags',
        '+faststart+frag_every_frame+empty_moov+default_base_moof',
        "-min_frag_duration",
        this.livestreamSegmentDuration,
        'pipe:1',
    ];


    


    With this command I pass an output to another stream transformer and stream as HLS using "mp4" instead of "ts" to avoid transcoding.

    


    Everything works smoothly with different cams, but when I try to get the stream from "Meldana" (issue is related to all ip cameras of this manufacturer), it constantly throws the following error and does not stream :

    


    cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)


    


    Even though it does not work with ffmpeg, I can watch the stream just fine in VLC.
What might be the problem ? Is there anything that could be corrected in the ffmpeg command ?