
Recherche avancée
Autres articles (93)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (6565)
-
Iterate recursively in every subfolder and run a batch file
6 août 2018, par Gokul NairPlease look at the following scenario wherein a folder
A
has many subfolders with different names. These subfolders haven
number of.jpg
files, which I am trying to scale and crop.Folder A\
SubFolder 01\*.jpg
SubFolder 02\*.jpg
.
.
.
SubFolder xx\*.jpgThese sub-folders are with different names and do not have a trend when it comes to its names.
I have created a batch file which would scale and crop images. This is working perfectly. I need to run the following command (name of file : ScaleCrop.bat) in each SubFolder xx :
for %%I in (.) do set CurrDirName=%%~nxI
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=-1:260, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=260:-1, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
pauseThe command Scales and crops the image in the folder and saves these files in to a folder named
SacledImages
, which too has subfolders of the same name (SubFolder 01
,SubFolder 02
,…,SubFolderxx
).I have created another
.bat
file which I used to copyScaleCrop.bat
to each subfolder.for /d %%a in ("C:\Users\Name\Desktop\Folder A\*") do copy " C:\Users\Name\Desktop\Folder A\ScaleCrop.bat" "%%a"
How could I code a batch file run and execute
ScaleCrop.bat
from each of these subfolders ?I tried using the following code, but this just calls the
.bat file
inside each subfolder, however it is not executing :for /f %%f in ('dir /ad /b') do start %%f\ScaleCrop.bat
I Tried the following as well, this does the trick, but all images are getting overwritten as the scaled-cropped images are saved on to
/SacledImages
Folder and not insideScaledImages/SubFolderxx
:for /r "C:\ Users\Name\Desktop\Folder A " %%a in (.) do (
pushd %%a
for %%I in (.) do set CurrDirName=%%~nxI
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=-1:260, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=260:-1, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
pause
popd
) -
ffmpeg append an audio file to another audio file at position of every 10 seconds
28 décembre 2018, par manoj kumarI want to append an audio file into another audio file at position of every 10 seconds through FFMPEG.
- ads.mp3 length 2 seconds (advertisement audio file)
- original.mp3 length xxxx seconds
- so output file could be as following
file appending terms
original.mp3 after 10 seconds append ads.mp3 for 2 seconds then
again original.mp3 for 10 seconds append ads.mp3 for 2 seconds then
again original.mp3 for 10 seconds append ads.mp3 for 2 seconds then
again original.mp3 for 10 seconds ...... so long till end of
original.mp3 file.Thanks
-
Converting Video file to Audio file with ffmpeg, but the resulting Audio is shorter
4 septembre 2020, par ShanerI'm trying to convert from FLV video file to wav audio. However, after creating a wav file, I noticed it's shorter than the video. Halfway through the audio no longer matches up with videos audio (off by about 2 seconds).


Thus, it seems midway through, there are 2 seconds of audio being lost.
How can I fix it so the audio is taken exactly the same as the video ?


Basic code as below :


ffmpeg -i movie.flv -vn audio.wav