
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (20)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
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 -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (7098)
-
Cannot open RTMP stream with FFMPEG Java Cannot assign requested address
12 novembre 2023, par lastpeony4I am trying to open an RTMP stream with
avformat_open_input
and for some reason i keep gettingCannot assign requested address
error.

My RTMP URL is correct because i can watch the stream using VLC Player and ffmpeg command line :

ffmpeg -i rtmp://1.1.1.1/app/teststream -vcodec copy -acodec copy output.mp4


int timeout = 2500;
setConnectionTimeout(timeout);

AVDictionary optionsDictionary = new AVDictionary();

String timeoutStr = String.valueOf(this.timeoutMicroSeconds);
av_dict_set(optionsDictionary, "timeout", timeoutStr, 0);

int analyzeDurationUs = 1500 * 1000;
String analyzeDuration = String.valueOf(analyzeDurationUs);
av_dict_set(optionsDictionary, "analyzeduration", analyzeDuration, 0);

int ret;

if ((ret = avformat_open_input(inputFormatContext, streamUrl, null, optionsDictionary)) < 0) {
 // ERROR Cannot assign requested address
}



I am using
org.bytedeco:ffmpeg:5.1.2-1.5.8 (ffmpeg-5.1.2-1.5.8.jar)


Why i can't open it ?


-
Download youtube video duration using youtube-dl PHP and ffmpeg
21 juin 2017, par user3285828Is there any more efficient way to download youtube videos at a specific start and end time using youtube-dl and ffmpeg in PHP.
I currently have this, which does work, it first downloads the whole video to an mp3 file, and then crops that file to the range I set using ffmpeg, but when I only want 30 seconds or so of a 20 minute video, waiting for the full video to download doesn’t seem the best way to do it.
<?php
require __DIR__ . '/vendor/autoload.php';
use YoutubeDl\YoutubeDl;
$dl = new YoutubeDl([
'extract-audio' => true,
'audio-format' => 'mp3',
'audio-quality' => 0, // best
'output' => 'videoname.%(ext)s',
]);
$dl->setDownloadPath('C:\youtubevideos');
$video = $dl->download('https://www.youtube.com/watch?v=oDAw7vW7H0c');
$start = 60; // Start 60 seconds in to the video
$duration = 30; // Get 30 seconds after $start
$fullVideo = "C:\youtubevideos\videoname.mp3";
$shortVideo = "C:\youtubevideos\short\shortversion.mp3"; // create 30 seconds
exec("ffmpeg -ss $start -i $fullVideo -t $duration -c copy $shortVideo");
exec("DEL $fullVideo");I am using youtube dl PHP https://github.com/norkunas/youtube-dl-php
-
Download youtube video duration using youtube-dl PHP and ffmpeg
20 juillet 2016, par user3285828Is there any more efficient way to download youtube videos at a specific start and end time using youtube-dl and ffmpeg in PHP.
I currently have this, which does work, it first downloads the whole video to an mp3 file, and then crops that file to the range I set using ffmpeg, but when I only want 30 seconds or so of a 20 minute video, waiting for the full video to download doesn’t seem the best way to do it.
<?php
require __DIR__ . '/vendor/autoload.php';
use YoutubeDl\YoutubeDl;
$dl = new YoutubeDl([
'extract-audio' => true,
'audio-format' => 'mp3',
'audio-quality' => 0, // best
'output' => 'videoname.%(ext)s',
]);
$dl->setDownloadPath('C:\youtubevideos');
$video = $dl->download('https://www.youtube.com/watch?v=oDAw7vW7H0c');
$start = 60; // Start 60 seconds in to the video
$duration = 30; // Get 30 seconds after $start
$fullVideo = "C:\youtubevideos\videoname.mp3";
$shortVideo = "C:\youtubevideos\short\shortversion.mp3"; // create 30 seconds
exec("ffmpeg -ss $start -i $fullVideo -t $duration -c copy $shortVideo");
exec("DEL $fullVideo");I am using youtube dl PHP https://github.com/norkunas/youtube-dl-php