
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 (41)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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
Sur d’autres sites (8693)
-
Video Resolution 1920 x 1080
29 mai 2020, par Satish KumarAttached the image here I have video of Resolution 1920X1080 (16:9 aspect ratio), when played its cropped with black box all sides. how to remove the blaxk boxes to get the 1920x1080 video.



pl help in on FFmpeg syntax.



Below the audio and video details



Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Maths Logic.mp4' :
 Metadata :
 major_brand : isom
 minor_version : 512
 compatible_brands : isomiso2avc1mp41
 encoder : Lavf58.19.102
 Duration : 00:43:11.24, start : 0.000000, bitrate : 1475 kb/s
 Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1405 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
 Metadata :
 handler_name : VideoHandler
 Stream #0:1(und) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s (default)
 Metadata :
 handler_name : SoundHandler


-
How to not allow upload of HD content ?More than 1920 x 1080 || 1080 x 1920 resolution files are not allowed since hardware reasons
23 juillet 2020, par azaonoStruggling with making limitation to uploade HD file/content. Intent is to have possibility to rotate content. Limits are required due to hardware reasons.


val ffmpeg = FFmpeg("ffmpeg")
 val ffprobe = FFprobe("ffprobe")
 val probeResult = ffprobe.probe("$targetLocation")
 val stream: FFmpegStream = probeResult.getStreams()[0]
 val aspectRatio = stream.width.toDouble() / stream.height
 
 if (stream.width > 1920) {
 Files.delete(targetLocation)
 throw IncorrectResolutionFileException()
 } else if (stream.height > 1080) {
 Files.delete(targetLocation)
 throw IncorrectResolutionFileException()
 }

 if (type == "image") {
 part.transferTo(thumbnailLocation)
 }

 val builder: FFmpegBuilder = FFmpegBuilder()
 .setInput("$targetLocation")
 .addOutput("$thumbnailLocation")
 .setFrames(1)
 .setVideoFilter("select='gte(n\\,10)',scale=200:-1")
 .done()
 val executor = FFmpegExecutor(ffmpeg)
 executor.createJob(builder).run()

 return aspectRatio
 } catch (ex: Exception) {
 throw FileStorageException("Could not store file $cleanPath. Please try again!", ex)
 }
}



-
How to not allow upload of HD content (over 1920 x 1080 || 1080 x 1920 files) because of hardware reasons ?
23 juillet 2020, par azaonoHow to not allow upload of HD content ? More than 1920 x 1080 || 1080 x 1920 resolution files are not allowed since hardware reasons


Struggling with making limitation to uploade HD file/content. Intent is to have possibility to rotate content. Limits are required due to hardware reasons.


val ffmpeg = FFmpeg("ffmpeg")
 val ffprobe = FFprobe("ffprobe")
 val probeResult = ffprobe.probe("$targetLocation")
 val stream: FFmpegStream = probeResult.getStreams()[0]
 val aspectRatio = stream.width.toDouble() / stream.height
 
 if (stream.width > 1920) {
 Files.delete(targetLocation)
 throw IncorrectResolutionFileException()
 } else if (stream.height > 1080) {
 Files.delete(targetLocation)
 throw IncorrectResolutionFileException()
 }

 if (type == "image") {
 part.transferTo(thumbnailLocation)
 }

 val builder: FFmpegBuilder = FFmpegBuilder()
 .setInput("$targetLocation")
 .addOutput("$thumbnailLocation")
 .setFrames(1)
 .setVideoFilter("select='gte(n\\,10)',scale=200:-1")
 .done()
 val executor = FFmpegExecutor(ffmpeg)
 executor.createJob(builder).run()

 return aspectRatio
 } catch (ex: Exception) {
 throw FileStorageException("Could not store file $cleanPath. Please try again!", ex)
 }
}