
Recherche avancée
Autres articles (66)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6880)
-
Youtube-dl and Shell speed
7 août 2016, par JJ The SecondSo I’ve been experimenting with youtube-dl on Ubuntu 14 recently and I should say downloading is well fast even I have a 1GB Ubuntu LAMP but when it comes to triggering FFMPEG and deleting process hangs for a good time. Even worked with -k but as soon as FFMPEG process is completed, it takes time to respond. I do understand this is a big subject but I’d really like to hear your thoughts, what amazes me is how a website like thisis running in less than a second ? Here is what I have,
[youtube] UxxajLWwzqY: Downloading webpage
[youtube] UxxajLWwzqY: Downloading video info webpage
[youtube] UxxajLWwzqY: Extracting video information
[info] Writing video description metadata as JSON to: /var/www/html/download/Icona Pop - I Love It (feat. Charli XCX) [OFFICIAL VIDEO].info.json
[download] Destination: /var/www/html/download/Icona Pop - I Love It (feat. Charli XCX) [OFFICIAL VIDEO].m4a
[download] 100% of 2.73MiB in 00:00
[ffmpeg] Correcting container in "/var/www/html/download/title.m4a"
[ffmpeg] Destination: /var/www/html/download/title.mp3
Deleting original file /var/www/html/download/title.m4a (pass -k to keep)youtube-dl "http://www.youtube.com/watch?v=UxxajLWwzqY" --write-info-json --extract-audio --audio-format mp3 -o "/var/www/html/download/%(title)s.%(ext)s"
I really don’t understand how this is done so fast ? Is there anything I’m missing ?
Thanks for your time.
-
Wowza RTMP to RTSP
3 août 2016, par NmasWe’re using a Raspicam to stream live video to a client using Wowza Streaming Engine. We use FFMPEG to encode and send to Wowza and we can succesfully watch the RTMP stream using JWPlayer. This is the FFMPEG command used :
ffmpeg -t 0 -s 320x240 -f video4linux2 -i /dev/video0 -b:v 250k -tune zerolatency -preset ultrafast -f flv -r 15 rtmp://wowzaaddress:1935/live/live
To be able to watch the stream on mobile devices we want to use RTSP or HLS which Wowza provides links to, however when we use those links (provided on the Test Player) nothing happens and we can’t even open them to test for example in VLC. We have already added the extra ports on our web server to see if that was the problem and still didn’t work.
Does anybody know what the problem is or what could we be doing wrong ? -
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