Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (25)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (6695)

  • Convert a file to match another's specification exactly with FFMPEG ?

    25 mars 2022, par user1748217

    I have a series of files from the same source and so of the exact same format in every way that I'm concatenating with FFMPEG

    


      

    • file1.mov
    • 


    • file2.mov
    • 


    • file3.mov
    • 


    


    This is very fast and is working fine however no I want to take optional intro file (from many different source and of many different types) and convert that to match the others before joining.

    


      

    • intro.mp4
    • 


    


    How do I do this with FFMPEG ?

    


    Does this give me everything I need ?

    


    ffprobe -select_streams a:0 -show_entries \
  stream=codec_name,channels -of default=nw=1:nk=1 -v 0 ./file1.mov

ffprobe -select_streams v:0 -show_entries \
  stream=codec_name,width,height,r_frame_rate,pix_fmt \
  -of default=nw=1:nk=1 -v 0 ./file1.mov


    


    So with that I can just :

    


    ffmpeg -i intro.mp4 \ 
   -c:v h264 -s 1280x720 -pix_fmt yuv420p -framerate 30/1  \ 
   -c:a pcm_s16le -ca 1 intro.mov


    


    and then merge it seamlessly to the rest ?

    


    ffmpeg -f concat -safe 0 -i videos.txt -c copy merged.mov -y


    


    The answer is of course "no", hence the request for your support.
The audio is fine when files 1, 2 & 3 are merged but is too fast when the intro + 1, 2 & 3 are merged. The converted intro file always plays fine on it's own after the conversion and after the merge, but the others play audio too fast after the merge.

    


    What am I missing ?

    


    UPDATE :

    


    So in the end this worked for the intro :

    


    ffmpeg -i intro.mp4 \ 
   -c:v h264 -s 1280x720 -pix_fmt yuv420p -framerate 30 \ 
   -c:a pcm_s16le -ac 1 -b:a 512k -ar 32000 intro.mov -y


    


  • ffmpeg jpeg stream to webm only creates a file .webm with 1 frame (snapshot) or empty .webm file (mjpeg)

    14 novembre 2016, par moeiscool

    my problem is that when i try to turn a series of jpegs into a webm video. I either get a webm file with a single frame or a webm file with nothing in it (0 kb).

    var fs = require('fs');
    var path = require('path');

    var outStream = fs.createWriteStream(__dirname+'/output.webm');
    var ffmpeg = require('fluent-ffmpeg');

    this one is a mjpeg stream URL. it produces a file with nothing.

    //var proc = new ffmpeg({source:'http://xxx.xxx.xxx.xxx/goform/stream?cmd=get&channel=0',timeout:0})

    this one is a snapshot URL. it produces a file with a single frame.

    var proc = new ffmpeg({source:'http://xxx.xxx.xxx.xxx/snapshot/view0.jpg',timeout:0})

    .fromFormat('mjpeg')
    .size('2048x1536')
    .toFormat('webm')
    .withVideoBitrate('800k')
    .withFps(20)

    I have tried to use pipe instead but no dice :(

    //.pipe(outStream,{end:false});
    .writeToStream(outStream,{end:false})

    any help is appreciated.

    at this point i am up for using a basic shell command with exec but when i try that i just get errors also. Yes, it goes without saying I am a noob.

    Side note :

    I have tried things like zoneminder but it just breaks with our cameras and the number of cameras. so i am making a bare bones solution to record them. With our current cloud service we are missing very important moments and its costing more in energy and time.

  • Streaming an Updating Folder of Images with FFmpeg Without Restarting the Script

    11 juillet 2024, par Roy Raihenshtein

    I'm working on a project where I need to stream a series of images stored in a folder using FFmpeg.
My current command looks like this :

    


    ffmpeg -stream_loop -1 -f image2 -framerate 5 -i "C:\Images\%d.bmp" -c:v libx264 -preset ultrafast -tune zerolatency -crf 35 -pix_fmt bgra -vf format=bgra -f mpegts "udp://127.0.0.1:8554?pkt_size=1316&buffer_size=64k"


    


    Initially, the folder contains :

    


    Input:
1.bmp
2.bmp
3.bmp
.
.
.
N.bmp


    


    Running this command successfully streams the images. However, new images (e.g., N2.bmp) might be added to the folder during runtime, and I need these new images to be included in the stream without restarting FFmpeg.

    


    Challenges :

    


      

    1. I need to include newly added images in the ongoing stream without rerunning the FFmpeg command.
    2. 


    3. I delete the .bmp files after they are streamed to avoid filling up my hard disk, so rerunning the command is not an option.
    4. 


    


    Additional Context :

    


    The FFmpeg command is embedded within my .NET program, which handles the deletion of images after they are streamed. This ensures that my PC's hard disk does not fill up, but it also means I cannot simply restart the FFmpeg command whenever new images are added.

    


    Question :

    


    Is there a way to configure FFmpeg or use an additional tool to dynamically update the input source to include newly added images without stopping and restarting the FFmpeg command ?

    


    Any guidance or suggestions on how to achieve this would be greatly appreciated. Thank you !