
Recherche avancée
Autres articles (22)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (4381)
-
'ffmpeg' is not recognized as an internal or external command in Hapi js(Node js)
15 mai 2020, par EswarI want to add on watermark image to while uploading a video. I tried to use node ffmpeg but unluckily the git base command line says *"ffmpeg"** not recognized.



'ffmpeg' is not recognized as an internal or external command,operable program or batch file.



const createVideoWatermark = async () =>{
 try {
 const ffmpeg = require("ffmpeg");
 var process = new ffmpeg('./uploads/video1.mp4');
 process.then(async function (video) {
 console.log('The video is ready to be processed');
 var watermarkPath = './uploads/watermark.jpg',
 newFilepath = './uploads/video-com-watermark.mp4',
 settings = {
 position : "SE" // Position: NE NC NW SE SC SW C CE CW
 , margin_nord : null // Margin nord
 , margin_sud : null // Margin sud
 , margin_east : null // Margin east
 , margin_west : null // Margin west
 };
 var callback = async function (error, files) {
 if(error){
 console.log('ERROR: ', error);
 }
 else{
 console.log('Waiting', files);
 }
 }
 //add watermark
 await video.fnAddWatermark(watermarkPath, newFilepath, settings, callback);
 return watermarkPath; 
 }, function (err) {
 console.log('Error: ' + err);
 return err;
 });
 } catch (e) {
 console.log(e.code);
 console.log(e.msg);
 return e.msg;
 }




}



Please help me to solve this. I am not sure where i did the mistake. Kindly correct me guys.


-
Pipe raw audio from mp4 using ffmpeg
24 février 2015, par user1447257I have following class, that enables to read audio frames per video frame :
class AudioAcquisition :
’’’
This component returns an audio signal per video frame.
’’’def __init__(self, video_filename, bufsize=10**8):
'''
Parameters:
-----------
video_filename : String of the location of video file.
'''
# Read info from video using ffmpeg
cmd = ["ffmpeg", \
'-i', video_filename]
info_pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, \
stderr=subprocess.PIPE)
_, err = info_pipe.communicate()
self.__audio_fps = int(re.search('Stream[^\n]*Audio:[^\n]*, (\d*) Hz', err).group(1))
self.__video_fps = int(re.search('Stream[^\n]*Video:[^\n]*, (\d*) fps', err).group(1))
# Open audio using ffmpeg
cmd = ['ffmpeg', \
'-loglevel', 'quiet', \
'-i', video_filename, \
'-vn', \
'-f', 's16le', \
'-acodec', 'pcm_s16le', \
'-ac', '1', \
'-']
print " ".join(cmd)
self.__pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, \
stderr=subprocess.STDOUT)
def run(self):
'''
Yields:
-------
An audio signal per video frame.
'''
while (True):
try:
size = int(2 * self.__audio_fps / self.__video_fps)
data = self.__pipe.stdout.read(size)
if (len(data) < size):
break
yield numpy.fromstring(data, dtype="int16")
except IOError as e:
print('Error encoutered while reading audio via ffmpeg: ' \
+ str(e))
breakThis somehow does not work properly, as the audio is dumped out with some noise frames at about 20s and repetitively occuring more often at later timestamps.
Do you guys have any suggestions what I am missing in calling ffmpeg ?
Thanks !
-
swresample/resample : fix return value of build_filter
18 octobre 2016, par Muhammad Faiz