
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (78)
-
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 -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (4690)
-
FireFox Video throws warning but video actually works ?
21 février 2021, par SdBill- 

- OS : Ubuntu 18.04
- FF : 85.0.1
- Error/warning : Cannot play media. No decoders for requested formats : video/mp4, video/mp4








Same error for video/ogg


Here are my questions : 1) The video still plays fine once loaded, and there is no error in Chrome or Chromium. Why does the video work fine after loading but throws the error on load ? 2) Is there anything that can be done without re-encoding over 2 gigs of video ?


Context : this is an old no-profit site that used Flash for video and we really don't want to throw a lot of time at, but there are gigs of videos. I converted all .flv files and .mpg files to .mp4 using the most simple of ffmpeg commands, examples :


ffmpeg -i video-source.flv video-source.mp4
ffmpeg -i video-source.mpg video-source.mp4
ffmpeg -i video-source.mpg video-source.ogg



As I watched the ffmpeg output, it looked to me like the codec was H264 (at least, I think that is what I am seeing, not a video expert.)


Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> theora (libtheora))
 Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))



Server response in a direct request to the mp4 files is


Content-Type
 video/mp4



I have seen the documentation and posts on fragmented mp4 and if re-encoding is the only option, we're probably going to abandon as it does play once loaded.


Code is simplistic, using an html5 doctype :


<video width="320" height="240" controls="controls">
 <source src="/images/video/mp4/video-source.mp4" type="video/mp4">
 <source src="/images/video/ogg/video-source.ogg" type="video/ogg">
 Your browser does not support the video tag.
 </source></source></video>



Is the only option here to pander to FireFox and re-encode everything since as mentioned, it plays fine once loaded and throws no error in Chrome ?


-
fluent-ffmpeg unable to achieve consistent audio bitrate
20 septembre 2020, par MartinI am working on an electron app that runs ffmpeg commands to combine an audio file + image file into a video file. I'm using an fluent-ffmpeg command I wrote, which works, but the outputted video fiels always have a lower audio bit rate, even though I specify 320kbps in my command.


I've been running multiple tests with mp3/flac/wav files that I logged below ; using my fluent-ffmpeg command as follows :


ffmpeg()
 .input(imgPath)
 .loop()
 .addInputOption('-framerate 2')
 .input(audioPath)
 .videoCodec('libx264')
 .audioCodec('aac')
 //.audioCodec('copy')
 .audioBitrate('320k')
 .videoBitrate('8000k', true)
 .size('1920x1080')
 .outputOptions([
 '-preset medium',
 '-tune stillimage',
 '-crf 18',
 '-b:a 320k',
 '-pix_fmt yuv420p',
 '-shortest'
 ])

 .on('progress', function (progress) {
 document.getElementById(updateInfoLocation).innerText = `Generating Video: ${Math.round(progress.percent)}%`
 console.info(`vid() Processing : ${progress.percent} % done`);
 })
 .on('codecData', function (data) {
 console.log('vid() codecData=', data);
 })
 .on('end', function () {
 document.getElementById(updateInfoLocation).innerText = `Video generated.`
 console.log('vid() file has been converted succesfully; resolve() promise');
 resolve();
 })
 .on('error', function (err) {
 document.getElementById(updateInfoLocation).innerText = `Error generating video.`
 console.log('vid() an error happened: ' + err.message, ', reject()');
 reject(err);
 })
 .output(vidOutput).run()



1) 320bkps mp3 file


- 

- imgPath = C :\Users\marti\Documents\projects\mp3 audio\img.jpg
- audioPath = C :\Users\marti\Documents\projects\mp3 audio\08. Strange - Gigi D'Agostino.mp3
- vidOutput = C :\Users\marti\Documents\projects\mp3 audio\08. Strange - Gigi D'Agostino.mp4








My audio file has a bit rate of 320kbps :



If I use my above ffmpeg function with
.audioCodec('aac')
, the output video file has an audio bitrate of 300kbps. If I use.audioCodec('copy')
instead, my output video file has an audio bitrate of 317kbps.

2) 1411kbps wav file


- 

- audioPath = C :\Users\marti\Documents\projects\wav audio\01 Nem Kaldi.wav
- imgPath = C :\Users\marti\Documents\projects\wav audio\cover.jpg
- vidOutput = C :\Users\marti\Documents\projects\wav audio\01 Nem Kaldi.mp4








My wav file has an audio bit rate of 1411kbps ;

When I run my ffmpeg command using
.audioCodec('aac')
, my output video file is again only 303kbps


3) 937kbps flac file


- 

- audioPath = C :\Users\marti\Documents\projects\flac audio\02 - ryokika.flac
- imgPath = C :\Users\marti\Documents\projects\flac audio\R-1042328-1388635895-5022.jpeg.jpg
- vidOutput = C :\Users\marti\Documents\projects\flac audio\02 - ryokika.mp4








When I run my ffmpeg command with
.audioCodec('aac')
, the outputted video file is only 304kbps

is there any command or additional flag I need to add to ensure my output video files have a high quality audio bitrate ?


-
Batch converting multiple video formats in nested directories
1er octobre 2020, par Dave CoffinI'm running Arch/Gnome and am trying to convert a few hundred gigs of family videos from various formats (mov, wmv, mkv, avi mainly, but a few curveballs too) into trusty mp4s.


My scripting knowledge is strictly amateur, so far I have ;


for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done


That works fine for one directory. There are hundreds. I'd like to replace that one-liner with something more encompassing that I can just run and go to bed.


Wish list ;


- 

-
run recursively


-
convert from mov, wmv, mkv and avi without having to run separate scripts


-
delete old file upon successful completion


-
keep the same file name


-
if it finds an error, just skip the file and keep going - don't stop the process














Any help with any and/or all of these bits to cobble something together that'll work would be most appreciated.


-