
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (51)
-
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 -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)
Sur d’autres sites (10342)
-
How to switch between audio streams added using ffmpeg on an iPhone ?
24 décembre 2019, par Tony MI have an
m.mp4
with English audio and want to add a second audio stream in Italian so that I can play either language using the iPhone. When I used this command :ffmpeg -i m.mp4 -i ita.mp3 -c copy -map 0 -map 1 out.mp4
The output from
ffmpeg -i out.mp4
(see below) shows that a new audio stream is added, yet when I transfer the video to the TV app and play it on either MacOS or iOS it only plays the original English and I see no options to play other languages.How do I get it to be able to switch between either audio ?
Here is the output from
ffmpeg -i out.mp4:
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 400x300 [SAR 1:1 DAR 4:3], q=2-31, 482 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 102 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 152 kb/s
Metadata:
encoder : LAME3.100
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (copy) -
Assign output of subprocess to variable
21 juillet 2016, par BryanThe purpose of this script is to read a file, extract the audio, and print out a transcript by running it through IBM Watson speech to text API. My problem is when I try to save the output from the subprocess into a variable and pass it into the open function, it reads as binary. What am I doing wrong ? Any help would be appreciated !
import sys
import re
import json
import requests
import subprocess
from subprocess import Popen, PIPE
fullVideo = sys.argv[1]
title = re.findall('^([^.]*).*', fullVideo)
title = str(title[0])
output = subprocess.Popen('ffmpeg -i ' + fullVideo + ' -vn -ab 128k ' + title + '.flac', shell = True, stdin=subprocess.PIPE).communicate()[0]
sfile= open(output, "rb")
response = requests.post("https://stream.watsonplatform.net/speech-to-text/api/v1/recognize",
auth=("USERNAME", "PASSWORD"),
headers = {"content-type": "audio/flac"},
data=sfile
)
print (json.loads(response.text)) -
Adding 2 watermark with ffmpeg in different duration each one
3 octobre 2014, par Paris Thivai have a php code that i cut edit video with ffmpeg. now i can add one image as logo on video
code is
if(isset($_POST['video']))
{
$target=realpath(SAVEPATH);
$watermark=WATERMARK;
$ffmpeg=FFMPEG;
$fromtime="00:00:0";
$totime="00:05:00";
$clip="-ss $fromtime -t $totime";
$filter="[watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]";
// ob_start();
foreach($_POST['video'] as $vid)
{
$filepath=UPLOADS."/$vid";
$target_file="$target/$vid";
// passthru("sh xform.sh '$filepath' '$target' '$watermark' 2>&1");
// 1. get the video width
exec("$ffmpeg -i \"$filepath\" 2>&1 | perl -lane 'print $1 if /([0-9]{2,}x[0-9]+)/' | cut -d'x' -f1",$width);
// 2. transform the video
$swidth=$width[0]/3;
$cmd="$ffmpeg -i \"$filepath\" $clip -s $res -vf \"movie=$watermark, scale=$swidth:-1 $poss\" \"$target_file\" -vcodec h264 2>&1";
exec($cmd,$output);
echo "<center><label>Video Cut/Edit of $vid Done</label></center>";
}how i can add one more image in deferent duration ?
Thank you