
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (54)
-
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 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 (10138)
-
Concatenate two mp4 files using ffmpeg
9 mars 2017, par Mark LI’m trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I’m converting the two files into .ts files and then concatenating them and then trying to encode that concated .ts file. The files are h264 and aac encoded and I’m hoping to keep the quality the same or as close to original as possible.
ffmpeg -i part1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts
ffmpeg -i part2.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part2.ts
cat part1.ts part2.ts > parts.ts
ffmpeg -y -i parts.ts -acodec copy -ar 44100 -ab 96k -coder ac -vbsf h264_mp4toannexb parts.mp4Unfortunately I’m getting the following error message coming back from ffmpeg during encoding :
[h264 @ 0x1012600]sps_id out of range
[h264 @ 0x1012600]non-existing SPS 0 referenced in buffering period
[h264 @ 0x1012600]sps_id out of range
[h264 @ 0x1012600]non-existing SPS 0 referenced in buffering period
[NULL @ 0x101d600]error, non monotone timestamps 13779431 >= 13779431kbits/s
av_interleaved_write_frame(): Error while opening fileThis happens about half way through encoding which makes me think that you can’t concat two .ts files together and have it work. Any help would be much appreciated.
-
Concatenate two mp4 files using ffmpeg
24 mars 2018, par Mark LI’m trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I’m converting the two files into .ts files and then concatenating them and then trying to encode that concated .ts file. The files are h264 and aac encoded and I’m hoping to keep the quality the same or as close to original as possible.
ffmpeg -i part1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts
ffmpeg -i part2.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part2.ts
cat part1.ts part2.ts > parts.ts
ffmpeg -y -i parts.ts -acodec copy -ar 44100 -ab 96k -coder ac -vbsf h264_mp4toannexb parts.mp4Unfortunately I’m getting the following error message coming back from ffmpeg during encoding :
[h264 @ 0x1012600]sps_id out of range
[h264 @ 0x1012600]non-existing SPS 0 referenced in buffering period
[h264 @ 0x1012600]sps_id out of range
[h264 @ 0x1012600]non-existing SPS 0 referenced in buffering period
[NULL @ 0x101d600]error, non monotone timestamps 13779431 >= 13779431kbits/s
av_interleaved_write_frame(): Error while opening fileThis happens about half way through encoding which makes me think that you can’t concat two .ts files together and have it work.
-
Two variables for ffmpeg ; use for loop ?
16 juillet 2020, par ZorbaI would like to silence sequences in a number of audio files with ffmpeg, which requires to give two variables, the starting point and the end point.



It works nice when you add the two variables in a script like so




echo "which file do you want to silence"
read filename

echo "When does the muted period start in seconds"
read A

echo "When does the muted period end in seconds"
read B

ffmpeg -i $filename -af "volume=enable='between(t,$A,$B)':volume=0" output_silenced.mp3




I have read all the "similar questions" that come up in a search for "use two variables in bash" and similar search terms, but I can't get my head around this.



I put the variables in two files, with new lines for each number, and tried to call the files in a for loop, which did not work. I also tried to call them in a for loop like so



echo "which file do you want to silence"
read filename

for A in 22 33 57; do

for B in 27 45.5 58.5; do

ffmpeg -i $filename -af "volume=enable='between(t,$A,$B)':volume=0" output_silenced.mp3

mv output_silenced.mp3 filename.mp3
done
done




but the output sounds just like the original input audio !



Can anybody help me out with this ? I have to partly silence many files and it already takes forever to figure out all the start and end moments, and it would be great to get through with this a bit easier !



Thanks a lot in advance !