
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (46)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe 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 (2061)
-
How to run the ffmpeg command using node.js ?
12 juillet 2019, par Sachin ShahIn node, When I got the request from
/playMovie
from App, I need to broadcast the video.When I execute this command in terminal it works fine.
ffmpeg -re -i movie.mkv -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://192.168.1.13/live/myStream
Now I’m going to setup this dynamic.
app.use('/playMovie', function (req, res) {
console.log("playMovie...");
let filePaht = 'movie.mkv';
let fileName = 'marvel-avengers';
let ffmpeg = spawn(`ffmpeg -re -i ${filePaht} -c:v libx264 -preset
superfast -tune zerolatency -c:a aac -ar 44100 -f flv
rtmp://192.168.1.13/live/${fileName}`);
ffmpeg.on('exit', (statusCode) => {
console.log("statusCode ::::::::::::::::::::::::::::::::: ",statusCode);
if (statusCode === 0) {
console.log('conversion successful')
}
})
ffmpeg
.stderr
.on('data', (err) => {
console.log('err:', new String(err))
})
});While run the app I got this error.
playMovie...
12/07/2019 15:27:17 31722 [ERROR] uncaughtException { Error: spawn ffmpeg -re -i movie.mkv -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://192.168.1.13/live/marvel-avengers ENOENT
at _errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn ffmpeg -re -i movie.mkv -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv
rtmp://192.168.1.13/live/marvel-avengers',
path: 'ffmpeg -re -i movie.mkv -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://192.168.1.13/live/marvel-avengers',
spawnargs: [] } -
Combine mp4 files by order based on number from filenames in Python
14 décembre 2022, par ah bonI try to merge lots of
mp4
files from a directorytest
into oneoutput.mp4
usingffmpeg
in Python.

import os

path = '/Users/x/Documents/test'

for filename in os.listdir(path):
 if filename.endswith(".mp4"):
 print(filename)



Output :


4. 04-unix,minix,Linux.mp4
6. 05-Linux.mp4
7. 06-ls.mp4
5. 04-unix.mp4
9. 08-command.mp4
1. 01-intro.mp4
3. 03-os.mp4
8. 07-minux.mp4
2. 02-os.mp4
10. 09-help.mp4



I have tried with the solution below from the reference here : ffmpy concatenate multiple files with a file list


import os
import subprocess
import time


base_dir = "/path/to/the/files"
video_files = "video_list.txt"
output_file = "output.avi"

# where to seek the files
file_list = open(video_files, "w")

# remove prior output
try:
 os.remove(output_file)
except OSError:
 pass

# scan for the video files
start = time.time()
for root, dirs, files in os.walk(base_dir):
 for video in files:
 if video.endswith(".avi"):
 file_list.write("file './%s'\n" % video)
file_list.close()

# merge the video files
cmd = ["ffmpeg",
 "-f",
 "concat",
 "-safe",
 "0",
 "-loglevel",
 "quiet",
 "-i",
 "%s" % video_files,
 "-c",
 "copy",
 "%s" % output_file
 ]

p = subprocess.Popen(cmd, stdin=subprocess.PIPE)

fout = p.stdin
fout.close()
p.wait()

print(p.returncode)
if p.returncode != 0:
 raise subprocess.CalledProcessError(p.returncode, cmd)

end = time.time()
print("Merging the files took", end - start, "seconds.")



I have merged them and get an
output.mp4
but the files are not merged in order with the first number split by point (1, 2, 3, ...
) : which I can get byfilename.split(".")[0]
:

1. 01-intro.mp4
2. 02-os.mp4
3. 03-os.mp4
4. 04-unix,minix,Linux.mp4
5. 04-unix.mp4
6. 05-Linux.mp4
7. 06-ls.mp4
8. 07-minux.mp4
9. 08-command.mp4
10. 09-help.mp4



How can I merge them correctly and concisely in Python ? Thanks.


-
Video file not trimming and copying using FFMpeg in C#
15 mai 2019, par chapperzukI am trying to clip a video using C# in Visual Studios with FFMpeg. I run the code below and it doesn’t come back with any errors, except it doesn’t create a new video file.
I’ve looked around here to make sure I’m using the correct code, but after multiple attempts it still won’t copy.
string videoFile = @"C:\Users\dave\Documents\video 1.mp4";
string outputFile = @"C:\Users\dave\Documents\video 2.mp4";
Process process = new Process();
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.FileName = @"C:\Users\dave\Documents\ffmpeg.exe";
process.StartInfo.Arguments = "ffmpeg -i " + videoFile + " -ss 00:30:00 -t 00:00:10 -c copy " + outputFile;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.Start();I was expecting to get a video cut from the original video, starting at the 30 second mark and lasting 10 seconds, but nothing is created.
I am using the latest FFMpeg from https://ffmpeg.zeranoe.com/builds/
UPDATE If I run the code in command prompt - The file comes out corrupt though
ffmpeg -i "C:\\Users\\dave\\Documents\\video 1.mp4" -ss 00:30:00 -t 00:00:10 -c copy "C:\\Users\\dave\\Documents\\video 2.mp4"
ffmpeg version N-93851-gdcc999819d Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.3.1 (GCC) 20190414
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-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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 27.100 / 56. 27.100
libavcodec 58. 52.101 / 58. 52.101
libavformat 58. 27.103 / 58. 27.103
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 51.100 / 7. 51.100
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\\Users\\dave\\Documents\\video 1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2019-01-15T21:57:04.000000Z
title : My Movie
encoder : Lavf56.15.102
description : This video is about My Movie
Duration: 00:06:48.22, start: 0.000000, bitrate: 1283 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1202 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 2997 tbc (default)
Metadata:
creation_time : 2019-01-15T21:57:04.000000Z
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 74 kb/s (default)
Metadata:
creation_time : 2019-01-15T21:57:04.000000Z
handler_name : SoundHandler
Output #0, mp4, to 'C:\\Users\\dave\\Documents\\video 2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
description : This video is about My Movie
title : My Movie
encoder : Lavf58.27.103
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1202 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 11988 tbc (default)
Metadata:
creation_time : 2019-01-15T21:57:04.000000Z
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 74 kb/s (default)
Metadata:
creation_time : 2019-01-15T21:57:04.000000Z
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown