
Recherche avancée
Autres articles (109)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (13146)
-
Inotifywait giving wrong file path after running ffmpeg
23 mars 2019, par MorpheusSo im running a little inotifywait script to monitor a folder for new files and transcode them if they are mxf and contain a video stream. But for some weird reason if the script does call ffmpeg the next fileevent by inotify is giving me a wrong path seemingly random cutting the filepath at any position.
So far i tried moving the call to an external script, resetting the file variable which shouldnt matter anyway and adding a sleep to the script. I also tried using normal filepaths without whitespaces or - which shouldnt matter but that also didnt help.
inotifywait -m -r -e close_write -e moved_to --format "%w%f" "$dir" | while read f
do
if ffprobe "$file" 2>&1 | egrep 'Stream #0:0: Video' && ffprobe "$file" 2>&1 | egrep 'MXF' ; then
mkdir -vp "$movepath" && mkdir -vp "$trans$path3" && mkdir -vp "$trans2$path3" && mv -fu "$f" "$trans2$path" && \
ffmpeg -y -i "$file" -map_metadata 0 -c:v h264_nvenc -b:v 2m -bufsize 2m -profile:v baseline -level:v 3.0 -pix_fmt yuv420p -vf yadif,scale="iw/4:ih/4" -an "$transpath" 2>> copy_ffmpeg_log.txt
doneexpected :
/media/raid/TMO_Media/INGEST-HP.1/WacinS1_19V01.5C935C93A3B4V.mxf
example for an result after transcode :
cinS1_19A06.5C935C93A088A.mxf
do while normal mv commands work and inotify does work as expected when stopped for transcoding a file the next path given by inotify is getting messed up
link to the entire script : https://pastebin.com/aRNG4rqz
-
No such file or directory error in flutter_ffmpeg
8 septembre 2021, par Aryan ShandilyaI intend to use the flutter_ffmpeg package to convert audio to video with the image as a background, but I am encountering a very weird error. Despite the fact that the files exist in the location that I have provided to the flutter_ffmpeg package as input, I am getting a 'No such file or directory' error. I have already tested out everything I can thnk of but I just don't get it.


Future<string> converter(String audioPath, String imagePath) async {
String? videoPath;
Directory? dir = await getExternalStorageDirectory();
// videoPath = dir!.path;
final videoDirectory = '${dir!.path}/VDir';
if (await Directory(videoDirectory).exists() == false) {
 await Directory(videoDirectory).create();
}
// await Directory(videoDirectory).create();
videoPath = videoDirectory + '/${DateTime.now().millisecond}.mp4';
print(
 "-------------------------------------------------------------------------------------------------------------------------------------------------------------------");
print("\nAudioPath = " + audioPath);
print("\nImagePath = " + imagePath);
print("\nVideoPath = " + videoPath);
print("\nVideoDirectory = " + videoDirectory);
print(
 "\n-------------------------------------------------------------------------------------------------------------------------------------------------------------------");
_flutterFFmpeg
 .execute(
 '-loop 1 -framerate 2 -i \'$imagePath\' -i \'$audioPath\' -vf "scale=2*trunc(iw/2):2*trunc(ih/2),setsar=1" -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p $videoPath')
 .catchError((onError) {
 print(onError);
 // ErrorHandler().errorDialog(context, )
});
return videoPath;}
</string>


videoPath = await FFmpegOperations().converter(widget.audioPath, coverImagePath);


Can someone tell me what is wrong with my code, I am using the min-gpl version(not lts) ffmpeg and am testing this on two android devices I am getting the same results.


Error :
/data/user/0/com.example.example/app_flutter/datte.png : No such file or directory
D/flutter-ffmpeg( 1139) : FFmpeg exited with rc : 1
.
Any form of help would be more than welcome, thank you.


-
Streaming a programatically created video to youtube using node and ffmpeg
23 septembre 2020, par CaltropI've been trying to Livestream a programmatically created image to youtube using node. I've had very limited success using FFmpeg. While I have managed to create and save an image thanks to this insightful thread, I have yet to make the code work for streaming to an RTMP server.


const cp = require('child_process'),
 destination = 'rtmp://a.rtmp.youtube.com/live2/[redacted]', //stream token redacted
 proc = cp.spawn('./ffmpeg/bin/ffmpeg.exe', [
 '-f', 'rawvideo',
 '-pix_fmt', 'rgb24',
 '-s', '426x240',
 '-i', '-', //allow us to insert a buffer through stdin
 '-f', 'flv',
 destination
 ]);

proc.stderr.pipe(process.stdout);

(function loop() {
 setTimeout(loop, 1000 / 30); //run loop at 30 fps
 const data = Array.from({length: 426 * 240 * 4}, () => ~~(Math.random() * 0xff)); //create array with random data
 proc.stdin.write(Buffer.from(data)); //convert array to buffer and send it to ffmpeg
})();



When running this code no errors appear and everything appears to be working, however, YouTube reports that no data is being received. Does anybody know what is going wrong here ?


Update : This is really counter-intuitive but adding a slash to the destination like this
'rtmp://a.rtmp.youtube.com/live2/[redacted]/'
causes ffmpeg to throw a genericI/O error
. This is really weird to me. Apologies if the answer to this is obvious, I'm really inexperienced with ffmpeg.