
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (60)
-
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 (...) -
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 (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (10370)
-
PHP FFMPEG match Instagram aspect ratio requirements
19 mai 2021, par LinesofcodeAs stated here, the Instagram API requirements to upload a video are :


- Picture size
- - Maximum columns (horizontal pixels): 1920
- - Minimum aspect ratio [cols / rows]: 4 / 5
- - Maximum aspect ratio [cols / rows]: 16 / 9



I'm having some problems figuring it out if the aspect ratio matches. I grab the
width
andheight
of the video like this :

$ffprobe = \FFMpeg\FFProbe::create();
$video = $ffprobe->streams($file)->videos()->first();
$width = $video->get('width');
$height = $video->get('height');



And then I know the ratio by dividing the
width
byheight
.

The Instagram requirements about Portrait & Landscape videos are :


Portrait - min: 0.8 ; max: 0.99
Landscape - min: 1.01 ; max: 1.78



So why does a video of 848x480 (aspect ratio of 1.76) fails to upload to Instagram by returning "The video format is not supported" and how can I be completely sure that the aspect ratio matches the requirements before trying to upload ?


Edit


The full validation of Instagram requirements :


$video = $ffprobe->streams($file)->videos()->first();
$audio = $ffprobe->streams($file)->audios()->first();
$codec = $video->get('codec_name');
$frameRate = eval('return ' . $video->get('avg_frame_rate') . ';'); // 30/1 -> 30
$width = $video->get('width');
$height = $video->get('height');
$duration = $video->get('duration');

$ratio = round($width / $height, 3);

// Portrait
if ($width < $height)
 if ($ratio < 0.8 || $ratio > 0.99)
 return false;
 
// Landscape
if ($width > $height)
 if ($ratio < 1.01 || $ratio > 1.78)
 return false;


if (!in_array($codec, ['h264', 'hevc']))
 return false;

if ($frameRate < 23 || $frameRate > 60)
 return false;

if ($width > 1920)
 return false;

if ($duration < 3 || $duration > 60)
 return false;

if ($audio)
{
 $aCodec = $audio->get('codec_name');

 if ($aCodec != 'aac')
 return false;
}

return true;



Sample not uploading into Instagram :



-
FFmpeg and QuickTime Player dimensions of video do not match [duplicate]
31 mai 2020, par GRSI have a
video.mp4
, which I scaled using FFmpeg to getout.mp4
. The new video has the following probe :


{'streams': [{'index': 0,
 'codec_name': 'h264',
 'codec_long_name': 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',
 'profile': 'High',
 'codec_type': 'video',
 'codec_time_base': '1/50',
 'codec_tag_string': 'avc1',
 'codec_tag': '0x31637661',
 'width': 886,
 'height': 1920,
 'coded_width': 896,
 'coded_height': 1920,
 'has_b_frames': 2,
 'sample_aspect_ratio': '5120:1329',
 'display_aspect_ratio': '16:9',
 'pix_fmt': 'yuv420p',
 'level': 40,
 'chroma_location': 'left',
 'refs': 1,
 'is_avc': 'true',
 'nal_length_size': '4',
 'r_frame_rate': '25/1',
 'avg_frame_rate': '25/1',
 'time_base': '1/12800',
 'start_pts': 0,
 'start_time': '0.000000',
 'duration_ts': 384512,
 'duration': '30.040000',
 'bit_rate': '490832',
 'bits_per_raw_sample': '8',
 'nb_frames': '751',
 'disposition': {'default': 1,
 'dub': 0,
 'original': 0,
 'comment': 0,
 'lyrics': 0,
 'karaoke': 0,
 'forced': 0,
 'hearing_impaired': 0,
 'visual_impaired': 0,
 'clean_effects': 0,
 'attached_pic': 0,
 'timed_thumbnails': 0},
 'tags': {'language': 'und', 'handler_name': 'VideoHandler'}}],
 'format': {'filename': 'out.mp4',
 'nb_streams': 1,
 'nb_programs': 0,
 'format_name': 'mov,mp4,m4a,3gp,3g2,mj2',
 'format_long_name': 'QuickTime / MOV',
 'start_time': '0.000000',
 'duration': '30.040000',
 'size': '1852948',
 'bit_rate': '493461',
 'probe_score': 100,
 'tags': {'major_brand': 'isom',
 'minor_version': '512',
 'compatible_brands': 'isomiso2avc1mp41',
 'encoder': 'Lavf58.20.100'}}}




I am expecting my video player to say the video is 886 x 1920, however, it is 3413:1920.




What could be the error ? I am using
pix_frmt=yuva420p
andcodec=libx264
to create the video.


The error is that my ascpect ratio remains 16:9, which is the original input video, when it should automatically change to 9:19. E.g.
3413 = 1920 * 16 / 9
. So why isn't the ascpect ratio changed when the video is scaled ?

-
FFMPEG RTMP streaming to WOWZA server with credentials
29 juin 2016, par BurgazI would like to stream my webcam using FFMPEG (on Windows) to a Wowza server.
The Wowza server has several applications defined.
Each has its own credentials (user name and password).I’m using the following command line :
ffmpeg -f dshow -i video="Integrated Webcam" -s 512x288 -vcodec libx264 -b:v 1024k -pix_fmt yuv420p -f flv rtmp://<wowza server="server" address="address">:1935/appname/streamname
</wowza>Yet the Wowza server fails to get the stream.
What am I missing here ?
Should I add the credentials to Wowza’s applications ? If so, what is the URL format that will allow me to do so ?Thanks.