
Recherche avancée
Autres articles (104)
-
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. -
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 (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (11740)
-
Using ffmpeg library
29 juillet 2014, par DAVIDBALAS1Thx all for helping <3
So, I have downloaded the ffmpeg library, imported it to eclipse, added it as a library to my android application and tried to use it, it doesn’t work.
Step by step :
- Downloaded this file : https://github.com/guardianproject/android-ffmpeg-java
- Extracted it to an empty folder.
- At Eclipse, "import" and then I have selected this empty folder.
- Right click at my project, properties, android, added the ffmpeg library.
-
At my on create I used this code(just for checking) :
ffmpeg -t 30 -i inputfile.mp3 -acodec copy outputfile.mp3
But I get a lot of errors :
Multiple markers at this line
- Syntax error on token(s), misplaced
construct(s)
- Syntax error on token "inputfile", delete this
token
- Syntax error on token "30", delete this token
- Syntax error on token ".", ; expectedCan you see my problem ?
-
Inserting clips into mp4 via ffmpeg
15 septembre 2024, par lfganI am looking to create mp4 files by combining multiple static mp4s and mp3s.
I have a script already to convert mp3 to mp4 and using the album art as a static background image, and inserting the intro.
What I am having problems with is that it cannot concatenate the videos reliably, or at all for that matter.


This is the code that I currently have, it is ChatGPT, however I gave up as it seemed like it was just running in circles.


setlocal

:: Set variables
set "mp3file=myfile.mp3"
set "coverart=extracted_cover.jpg"
set "outputfile=music.mp4"
set "introfile=intro.mp4"
set "outputendfile=Outro.mp4"
set "wowfile=Wow!.mp4"

:: Step 1: Extract cover art from MP3
ffmpeg -i "%mp3file%" -an -vcodec copy "%coverart%"
if %errorlevel% neq 0 (
 echo Error: Failed to extract cover art from MP3 file.
 exit /b 1
)

:: Step 2: Convert MP3 to MP4 using the extracted cover art
ffmpeg -loop 1 -i "%coverart%" -i "%mp3file%" -c:v libx264 -tune stillimage -c:a aac -b:a 192k -shortest "%outputfile%"
if %errorlevel% neq 0 (
 echo Error: Conversion from MP3 to MP4 failed.
 exit /b 1
)

:: Step 3: Randomly generate two positions for Wow!.mp4 insertions
:: Random positions will be between 10 and 50 seconds
set /a "pos1=%random% %% 40 + 10"
set /a "pos2=%random% %% 40 + 10"

:: Ensure pos1 and pos2 are different
if %pos1% EQU %pos2% (
 set /a "pos2=%pos1%+10"
)

:: Print positions for debugging
echo Random insertion positions:
echo Position 1: %pos1%
echo Position 2: %pos2%

:: Step 4: Split the music mp4 into parts at the random positions
:: Part 1: From the beginning to pos1
ffmpeg -i "%outputfile%" -c copy -ss 0 -to %pos1% -y "part1.mp4"
if not exist "part1.mp4" (
 echo Error: Failed to create part1.mp4
 exit /b 1
)

:: Part 2: From pos1 to pos2
ffmpeg -i "%outputfile%" -c copy -ss %pos1% -to %pos2% -y "part2.mp4"
if not exist "part2.mp4" (
 echo Error: Failed to create part2.mp4
 exit /b 1
)

:: Part 3: From pos2 to the end
ffmpeg -i "%outputfile%" -c copy -ss %pos2% -y "part3.mp4"
if not exist "part3.mp4" (
 echo Error: Failed to create part3.mp4
 exit /b 1
)

:: Step 5: Concatenate the files in the required order
(
 echo file 'intro.mp4'
 echo file 'part1.mp4'
 echo file 'Wow!.mp4'
 echo file 'part2.mp4'
 echo file 'Wow!.mp4'
 echo file 'part3.mp4'
 echo file 'Outro.mp4'
) > concat_list.txt

ffmpeg -f concat -safe 0 -i concat_list.txt -c copy final_output.mp4
if %errorlevel% neq 0 (
 echo Error: Failed to concatenate the video files.
 exit /b 1
)

:: Cleanup
del part1.mp4 part2.mp4 part3.mp4 concat_list.txt "%coverart%"

echo Done! The final video is saved as final_output.mp4



exactly what it is supposed to do :


- 

- Convert "myfile.mp3" to "music.mp4" with image (works)
- Add "intro.mp4" to the start of "music.mp4" and "Output.mp4" to the end (works)
- Split "music.mp4" into 3 parts, randomly, at a minimum 10s after intro.mp4 and 10s before Outro.mp4 (can for some reason only create part 1)
- Put all clips in order (unknown, probably works but part 2 and 3 wont generate so it cannot get to that step.)










Edit :
I forgot to add the error message that I am getting. Here it is :


[out#0 @ 000002e024a6ed00] -to value smaller than -ss; aborting.
Error opening output file part2.mp4.
Error opening output files: Invalid argument
Error: Failed to create part2.mp4



-
Building ffmpeg on Windows
27 février 2014, par NiranjanI've the source code of ffmpeg and would like to build it in my win7. I've minGW installed on my machine. I found a step by step instruction from this link :
http://www.gooli.org/blog/building-ffmpeg-for-windows-with-msys-and-mingw/
The link 'Download updated bash for MSYS' did not follow. It showed the file is not found. When I try to build the program the way explained in the site, it shows an error :
Unknown option “–extra-cflags=-mno-cygwin”.
See ./configure –help for available options.
./myconfig : –extra-ldflags=-Wl,–add-stdcall-alias : command not found
./myconfig : –target-os=mingw32 : command not foundFrom a similar question posted here, I followed the link http://ffmpeg.arrozcru.org/ but the static build downloaded from the site was corrupted. Pls help.