
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 (111)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (8906)
-
Error : No such filter : '"movie', what's the isssue ?
16 mars 2019, par unoI am using the code to add watermarks to videos on upload for carrierwave-video :
process encode_video: [:mp4, resolution: "640x480", watermark: {
path: "app/assets/images/logo-nike.jpg",
position: :bottom_right,
pixels_from_edge: 10
}]When i use this code, i get error :
(in short)
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[AVFilterGraph @ 0x55c8909bf180] No such filter: '"movie'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
):my ffmpeg version is 4.1.1
Is there something missing from ffmpeg i need to install ? I have looked around and found no issues with others using this code (most posts are years old though)
I found this : No such filter : ’drawtext’
but isn’t the same thing ?
-
ffmpeg and ffserver live stream to HTML5
19 novembre 2016, par andrixnetWhat would be the setup for a reasonably supported live stream with ffmpeg and ffserver ?
I mean I know ffmpeg can’t live stream MP4.
It can live stream flv, but that requires flash plugin.
I’ve read about HLS which is specific for Apple target devices.My target is mostly windows PC/laptop (Firefox, Chrome, Opera, optionally MSIE 10+) and Android smartphones (android 4+).
Mac OSX and iOS devices are of little interest, if it works, ok, but not a requirement.On the playback side the target is pure HTML5 with
<video></video>
tag. No Flash.
On the server side : ffserver.
On broadcast side : ffmpeg with capture device as video and audio source.Can anyone suggest a configuration for ffmpeg+ffserver ?
-
Transcoding & displaying user-uploaded videos for cross-browser/platform compatibility
5 avril 2012, par Jonathan AmendI want to display user-uploaded videos in high quality on different browsers/platforms. I think I have a pretty good start, but there are a few issues. I have at my disposal ffmpeg 0.10 (called from PHP) and jwPlayer 5.8 (licensed).
Ideally I would like to support :
- Browsers with Flash 9+
- Modern Firefox/Chrome/Safari without Flash
- iOS 4.1+
- Android 2.2+
My current transcoding commands are :
$commands = array(
'flv' => "/usr/bin/ffmpeg -y -i {$sourceFile} -b 500k -ar 22050 -ab 64 {$tmpFileName}.flv 2>&1",
'webm' => "/usr/bin/ffmpeg -i {$sourceFile} -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 500k {$tmpFileName}.webm 2>&1",
'mp4' => "/usr/bin/ffmpeg -i {$sourceFile} -acodec libfaac -ab 96k -vcodec libx264 -level 21 -refs 2 -vf 'scale=trunc(ih*a/2)*2:trunc(iw/a/2)*2' -b 500k -bt 1000k -threads 0 -f mp4 {$tmpFileName}.pre.mp4 2>&1",
'jpg' => "/usr/bin/ffmpeg -y -i {$sourceFile} -ss 5 -vcodec mjpeg -vframes 1 -an -f rawvideo {$tmpFileName}.jpg 2>&1"
);
$fastStartCommand = "/usr/bin/qt-faststart {$tmpFileName}.pre.mp4 {$tmpFileName}.mp4");My current display code is this :
<video controls="controls" width="{$width}" height="{$height}" poster="{$fileJPG}" style="width: {$width}px; height: {$height}px;">
<source src="{$fileMP4}" type="video/mp4" data-ext="mp4"></source>
<source src="{$fileWEBM}" type="video/webm" data-ext="webm"></source>
<a href="http://stackoverflow.com/feeds/tag/{$fileMP4}" title="Play Video">
<img border="0" src="http://stackoverflow.com/feeds/tag/{$fileJPG}" width='0' height='0' alt="Play Video" />
</a>
</video>
<code class="echappe-js"><script type="text/javascript"><br />
swfobject.embedSWF(<br />
&#39;/flash/jwPlayer.swf&#39;,<br />
&#39;video&#39;,<br />
{$width},<br />
{$height},<br />
&#39;9.0.0&#39;,<br />
&#39;&#39;,<br />
{<br />
file: &#39;{$fileFLV}&#39;,<br />
width: {$width},<br />
height: {$height},<br />
provider: &#39;video&#39;,<br />
stretching: &#39;uniform&#39;,<br />
smoothing: &#39;true&#39;,<br />
dock: &#39;true&#39;<br />
},<br />
{<br />
menu: &#39;false&#39;,<br />
allowfullscreen: &#39;true&#39;,<br />
allowscriptaccess: &#39;always&#39;,<br />
allownetworking: &#39;always&#39;,<br />
wmode: &#39;transparent&#39;<br />
}<br />
);<br />
</script>The idea is to prefer the Flash player (we have many custom skins that we would like to keep using), then fall back to HTML 5 video, and if that fails, show the JPEG with a link to the mp4 file (that seems to work as a last-ditch effort for iOS 2/3 and old browsers so they can at least play the video by launching QuickTime).
The main issues that I'm not sure how to solve right now are :
- How can I show a higher quality video in Flash ? I tried using the mp4 video instead of the flv but it doesn't work and I only get sound, no video. I think Flash is supposed to support h.264 these days, but how ? And do I have to use a different transcoding method for older and newer versions of Flash ?
- How can I transcode the video with better quality ? Right now I am using the same bitrate for all resolutions. Any chance there is a way for ffmpeg to adjust the bitrate automatically ? Or can I detect and match the resolution of the uploaded video to a list of resolution -> bitrates somehow ?