
Recherche avancée
Autres articles (99)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang 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. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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 (...)
Sur d’autres sites (8139)
-
Using a pipe character | with child_process spawn
19 avril 2020, par TitanI'm running nodejs on a raspberry pi and I want to run a child process to spawn a webcam stream.



Outside of node my command is :



raspivid -n -mm matrix -w 320 -h 240 -fps 18 -g 100 -t 0 -b 5000000 -o - | ffmpeg -y -f h264 -i - -c:v copy -map 0:0 -f flv -rtmp_buffer 100 -rtmp_live live "rtmp://example.com/big/test"




With
child_process
I have to break each argument up


var args = ["-n", "-mm", "matrix", "-w", "320", "-h", "240", "-fps", "18", "-g", "100", "-t", "0", "-b", "5000000", "-o", "-", "|", "ffmpeg", "-y", "-f", "h264", "-i", "-", "-c:v", "copy", "-map", "0:0", "-f", "flv", "-rtmp_buffer", "100", "-rtmp_live", "live", "rtmp://example.com/big/test"];




camera.proc = child.spawn('raspivid', args);




However it chokes on the
|
character :


error, exit code 64
Invalid command line option (|)




How do I use this pipe character as an argument ?


-
ffmpeg mp3 encoding result differs between pipe and file creation
11 octobre 2018, par Jinsung LeeI’m making the program by using ffmpeg but stuck in some problem
Encode to mp3 and file out
ffmpeg -nostats -loglevel 0 -i example.weba -i albumart.jpg -map 0:0 -map 1:0 -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" out.mp3
this works very good but
Encode to mp3 and pipe out
ffmpeg -nostats -loglevel 0 -i example.weba -i albumart.jpg -map 0:0 -map 1:0 -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -f MP3 - > out.mp3
using pipe output i got
ffmpeg -i out.mp3
[mp3 @ 0000000001028980] Header missingThis error
I need to get this mp3 data with oneline php shell_exec command
any solution ?
Thanks
-
Proper way to pipe raw video to ffmpeg in c#
11 octobre 2018, par Wahid MasudIn my Asp.NET MVC app I’m trying to pipe the video from
Request.Files[]
to theffmpeg.exe
process. The code produces an output file, but I’m getting a static video, no contents there. And I’m not sure if the problem is in the arguments or in the code.var request = System.Web.HttpContext.Current.Request;
var stream = request.Files["upload"].InputStream;
var ffmpeg = System.Web.HttpContext.Current.Server.MapPath("~/FFMpeg/ffmpeg.exe");
var outputDir = System.Web.HttpContext.Current.Server.MapPath("~/Uploads/converted.mp4");
var inputArgs = "-f rawvideo -pix_fmt rgb32 -video_size 1280x720 -i -";
var outputArgs = "-vcodec libx264 -crf 23 -pix_fmt rgb32 -preset ultrafast " + outputDir;
var process = new Process
{
StartInfo =
{
FileName = ffmpeg,
Arguments = $"{inputArgs} {outputArgs}",
UseShellExecute = false,
CreateNoWindow = true,
RedirectStandardInput = true
}
};
process.Start();
var ffmpegIn = process.StandardInput.BaseStream;
// Write Data
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, (int)stream.Length);
ffmpegIn.Write(buffer, 0, (int)stream.Length);
ffmpegIn.Flush();
ffmpegIn.Close();The video size is always 1280x720 but framerate may vary, so I’m not sure if the
inputArgs
is right. Any suggestions would be appreciated.