
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (35)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP 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 (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (7373)
-
Convert a file to match another's specification exactly with FFMPEG ?
25 mars 2022, par user1748217I 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 moeiscoolmy 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 RaihenshteinI'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 :


- 

- I need to include newly added images in the ongoing stream without rerunning the FFmpeg command.
- I delete the .bmp files after they are streamed to avoid filling up my hard disk, so rerunning the command is not an option.






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 !