
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (59)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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
Sur d’autres sites (8062)
-
Ffmpeg error with output file not specified on linux when executing from dockerized new process in .net-core
29 août 2017, par DutchGuySome time back i created a small program in full .net framework that could rip mp3 and then add meta-info and a thumbnail to it. For innovation sake i started porting the application to .net core. After that i thought it would be cool to run this in docker on Linux. It took some time but i got it working. Now i’m running into the issue where i can rip the mp3 from the video file but when i try to combine the meta-info, thumbnail and mp3 ffmpeg tells me "At least one output file must be specified"
I added some checks so the program can run on Linux and Windows (to switch paths etc)
What i tried :
- running same argument structure on windows (works)
- Manualy starting the encode on linux (works)
- Simplifying the names, paths and titles used in the command
- replacing extra spaces and special characters, only "-" and single spaces allowed
Below i have an example of the command that does work when i execute it manually but produces the earlier mentioned error when my program executes it. Also keep in mind that ripping the mp3 from the video does result in the desired outputfile.
ffmpeg -i "temp/vid-id.mp3" -i "temp/vid-id.jpg" -map 0:0 -map 1:0 -c copy -y -id3v2_version 3 -metadata title="title" -metadata artist="artist" -metadata album="album" "completed/file - name.mp3"
To start this from .net-core context i use the snippet below :
using (var ffmpegProcess = new Process())
{
ffmpegProcess.EnableRaisingEvents = false;
ffmpegProcess.StartInfo.CreateNoWindow = true;
ffmpegProcess.StartInfo.UseShellExecute = false;
ffmpegProcess.StartInfo.FileName = ffmpegPath(); (returns "/bin/bash")
string command = "ffmpeg " + arguments;
ffmpegProcess.StartInfo.Arguments = "-c \" " + command + " \"";
ffmpegProcess.Start();
ffmpegProcess.WaitForExit();
ffmpegProcess.Dispose();
}arguments :
String.Format("-i \"{0}\" -i \"{1}.jpg\" -map 0:0 -map 1:0 -c copy -y -id3v2_version 3 -metadata title=\"{2}\" -metadata artist=\"{3}\" -metadata album=\"{4}\" \"{5}\"",inputFile, albumArtFile, outputTitle, artist, outputAlbum, outputFile);
To rip the mp3 from the video file i use the same method mentioned above with the following arguments :
-i "temp/vid-id.mp4" -vn -ab 320k -y -threads 2 "temp/vid-id.mp3"
This works as expected.
Arguments :String.Format("-i \"{0}\" -vn -ab 320k -y -threads 2 \"{1}\"", inputFile, outputFile);
Vid-id does not contain spaces, below is and example of how it could look :
"abcd12ef-gh34i"
Since the initial ripping is working i cant figure out why Ffmpeg complains about the second operation. The only real difference between the two operations is that in the second one the output-file name can contain spaces. But even then, running the same command manually does work and produces the desired file in the completed dir.
Update
After more troubleshooting i have now narrowed the problem down to the usage of the metadata arguments. Still can’t figure out whyUpdate
The problem is with the spaces in the naming i have chosen. On linux the spaces are interpreted as end of file name. Any pointer how i can still use the naming with spaces ? -
Use FFMPEG to create GTA 5 style loading screen/video
7 mai 2021, par ArcherGoal :
Using FFMPEG I would like to make something like these GTA 5 loading screens using only some elements. The goal is to be automated in the end so I can generate thousands of videos with the elements below placed in different folders. https://youtu.be/0A4K0bCkYdg?t=108


Input files :


- 

- background.jpg
- foreground.png
- logo.png
- theme.mp3










Current command :


ffmpeg.exe -i background.jpg -i foreground.png -i logo.png -i theme.mp3 -filter_complex " \
[0:v]scale=1920:1080 [background_1], \
[1:v]scale=500:500:force_original_aspect_ratio=decrease [foreground_1], \
[2:v]scale=350:350:force_original_aspect_ratio=decrease [logo_1], \
[background_1]zoompan=z='if(lte(mod(on,50),25),zoom+0.0005,zoom-0.0005)':x=iw/2-(iw/zoom)/2:y=ih/2-(ih/zoom)/2:d=60*60:s=hd1080 [background_2], \
[background_2][foreground_1]overlay=x='min((W-(W*0.3)-n),((W*0.3)+n)):y=H-h' [bg_fg], \
[bg_fg][logo_1]overlay=x=30:y=H-h-30 \
" loading.mkv



This code started from a suggestion on a reddit post I made, but have made some adjustments.


After the inputs I am first scaling the background image in the event it is not the correct ratio already. Then scaling the foreground image and logo image.


The next 2 are what I need help with. The zooming of the
background_1
and the scrolling/panning of theforeground_1
.

Question 1 : Before the zooming starts occurring is it possible to distort the image like shown, so I can start with a normal rectangular background image ?


Question 2 : I would like the zooming to be much closer to what is happening in the youtube example. How would I achieve this ? The zoompan filter is not making much sense to me at the moment.


Question 3 : With the scrolling/panning of the foreground. How can I start this at 30% in x and go to 70% in x... then back to 30% and repeat for the entire length ? Also how to slow it down ? This answer helped me to understand this somewhat, but using the
min
example they provided did not work for me and there was no motion at all.

The logo placement is next and I am good with that for now.


Any input would be greatly appreciated.


-
Creating an ffmpeg html/php form process and need ffmpeg technical feedback
7 juin 2016, par daveI have decided to create an input form for ffmpeg to go with my video uploader.
This is for my video uploader plugin for a social site software. Users have told me that they want technical options for videos so they can choose the specific options they want including thumbnail options.
I have been reading the ffmpeg docs most of the morning as well as watching some videos and i have come up with a rough draft of my form. The videos uploaded will more than likely be non gaming, personal and hobby videos.
The goal here is to have a form that is easy enough for the non technical user, but technical for those that want the options. So i do plan to have a checkbox which allows the non technical user to skip the technical settings. This will result in a generic ffmpeg command with default settings. If they choose to use the technical specs then it will create a more specific ffmpeg command stream.
here is what i have so far in the draft.
select max size options ’50MB’,’100MB’,’200MB’,’500MB’,’650MB’,’750MB’,’1GB’,’2GB’,’3GB’
input for thumbcapture in seconds maxlength 2 size 2
input for video in ’mpg’,’wma’,’mov’,’flv’,’mp4’,’avi’,’qt’,’wmv’,’rm’
option for video size ’200x100’,’320x240’,’560x315’,’640x360’,’853x480’,’1280x720’ not sure if i want to offer a custom slot or not.
my thought here is that if they do not want the tech version of the form then the codecs will be b:v copy b:a copy (if that is the smart way to do it) or just left out and let ffmpeg decide what is best.
===== this is the technical part of the form =======
select for acodec options copy, mp3, mp1, mp2, dnet, 28_8, wmav2, alac, cook
select for vcodec option copy, ffv1, ms-cram, mpeg-4, rv40, wmv, xvid, mov, qt, avchd
select for bitrate audio 32k, 64k, 128k
select for bitrate video 1000k, 1200k, 1500k
select for sampling rate 22050, 44100
input for crf(mp4 out only) size 2 maxlength 2 minval 2 maxval 49
input for avi quantanizer (avi out only) size 2 maxlength 2 minval 2 maxval 49
===== end technical form =====================
select for video out ’avi’,’mp4’,’flv’
that is what i have so far. How does that combination on the technical side look to you ffmpeg pros ?
Any suggestions ? :)