
Recherche avancée
Autres articles (60)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 (13733)
-
FFmpeg command line vs programatically
10 avril 2018, par JohnHow do I reproduce the ffmpeg rtsp streaming/codec copying/audio disabling command line entry
ffmpeg -i rtsp://abcd:123456@1.2.3.4/rtspvideostream -vcodec copy -an /home/pc/video.avi
within ffmpeg library referencing code ? Currently I use (along with all the necessary av_find_stream_info / avcodec_find_decoder etc. commands)
numBytes = av_open_input_file(&pFormatCtx,"rtsp://abcd:123456@1.2.3.4/rtspvideostream", NULL, 0, NULL))
which to me appears to reproduce the command line entry
ffmpeg -i rtsp://abcd:123456@1.2.3.4/rtspvideostream /home/pc/video.avi
without the hugely CPU saving flags of ’-vcodec copy -an’.
-
Is there a way to open a batch file at a certain line using a command prompt window
14 août 2024, par Voidmaster01Im testing a batch file that Im still in the process of making and I want to open it at line 6 instead of line 1 since ive already run that part of the code. it takes a couple of minutes to run it since im using ffmpeg.


this is the first area of the code


1 @Echo off
2 set /p IPath=Enter the Path of the file you wish to remux from (use "Copy as path" option and keep the Quotations): 
3 set /P M=what is the first letter of the path of your new file?(do not include the semicolon(:))
4 set /p NewPath=Enter the Path you wish to remux to (must be path minus the directory BUT do not use Quotations for this)(I also recommend using a single folder to hold the files while remuxing them before sending them to their separate folders):
5 ffmpeg -i %IPath% -c copy -map 0 "%M%:\%NewPath%"
6 goto :Premiere &:: This command takes inputs from the previous lines and sets up to remux files
7
8 :Premiere &:: this command line starts the preferred editor and waits 30 seconds to allow it to start
9 set /p EDITOR=Enter the .exe file for your prefered editor should look like: 'Adobe Premiere Pro.exe':
10 start "" "%EDITOR%"
11 echo Starting Process. . . Please Wait
12 timeout /t 30
13 tasklist | find /I "%EDITOR%" &:: The next couple of lines test for the editor to see if it opened or not
14 if errorlevel 1 (
15 echo could not start process 
16 goto :FailEditor
17 ) Else (
18 echo Process completed, next question--->
19 goto :choice
20 )



so instead of starting at line 1 i would like to start at line 6 to bypass the longest section of the code.


Im thinking its something along the lines of


Start M:\REMUX.bat at line 6


however
AT
is a command to tell a time to start the batch file so im not sure

-
c# and ffpmeg command line trouble
26 février 2016, par mirzahatI have a php code that calls ffmpeg from the windows command line (because I run apache locally) with :
//ffmpeg -i input.mp4 -r 20 output.gif
echo exec('C:\ffmpeg\bin\ffmpeg.exe -i videos/file.avi -r 10 -s 450x230 videos/file.gif');And it works fine ! Now I wrote a C# program and I try to do the same thing with :
System.Diagnostics.Process.Start
but it fails.
Question : How do I execute the same command from the PHP code but from inside a C# code ?