
Recherche avancée
Autres articles (58)
-
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 -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (7423)
-
gitignore : Use full path instead of relative path to specify patterns
2 juillet 2012, par Diego Biurrungitignore : Use full path instead of relative path to specify patterns
-
How to convert AAC/MP4A to MP3 using FFMPEG in full length ? Audio file gets cut off after 1 second
6 novembre 2022, par AvatarI have recorded an audio file with MediaRecorder on iPhone.


As ffmpeg command I am using :


ffmpeg -i 18380889311644327118 -ar 44100 -ac 2 -b:a 128k -c:a libmp3lame -q:a 0 18380889311644327118.mp3



-i specifies the input file
-vn disables all video-streams from the input
-ar audio sampling frequency
-ac number of audio channels
-b:a bit rate
-c:a libmp3lame - codec of target file
-q:a quality set audio quality (codec-specific) (lower is better), see https://superuser.com/a/1515841

-sn disables all subtitle-streams from the input
-dn disables all data-streams from the input



The console output looks like this :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '18380889311644327118':
 Metadata:
 major_brand : iso5
 minor_version : 1
 compatible_brands: isomiso5hlsf
 creation_time : 2021-12-08T15:44:06.000000Z
 Duration: 00:00:01.00, start: 0.000000, bitrate: 2258 kb/s
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 2234 kb/s (default)
 Metadata:
 creation_time : 2021-12-08T15:44:06.000000Z
 handler_name : Core Media Audio
Stream mapping:
 Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame))

Output #0, mp3, to '18380889311644327118.mp3':
 Metadata:
 major_brand : iso5
 minor_version : 1
 compatible_brands: isomiso5hlsf
 TSSE : Lavf58.29.100
 Stream #0:0(und): Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 creation_time : 2021-12-08T15:44:06.000000Z
 handler_name : Core Media Audio
 encoder : Lavc58.54.100 libmp3lame
size= 17kB time=00:00:01.01 bitrate= 135.5kbits/s speed=37.2x
video:0kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.343701%



As you can see, the duration is
01.00
second. And this happens with all recorded files.

How to convert the entire file (which is 12 seconds long) to its full length ?





Note : It seems that the recorded file does not have a length specified. Under Windows I renamed the file, adding an extension ".m4a" and opened the file properties :




The length attribute is empty.


-
ffmpeg giving full path as parameter gives error
15 juin 2015, par Taufiq Abdur RahmanThis code works
ffmpeg.exe -i 1.avi -vf "[in] scale=iw:ih, pad=2*iw:ih [left];movie=2.avi, scale=iw:ih, fade=out:300:30:alpha=1 [right]; [left][right] overlay=main_w/2:0 [out]" -b:v 768k Output1.mp4
I get an error running this.
ffmpeg.exe -i "c:\test 14\1.avi" -vf "[in] scale=iw:ih, pad=2*iw:ih [left]; movie="c:\test 14\2.avi", scale=iw:ih, fade=out:300:30:alpha=1 [right]; [left][right] overlay=main_w/2:0 [out]" -b:v 768k "C:\test 15\Output.AVI"
[Parsed_movie_2 @ 04183780] Failed to avformat_open_input ’C’
[AVFilterGraph @ 02be04e0] Error initializing filter ’movie’ with args
’c :\test 14\2.avi’ Error opening filters !What am I doing wrong ?