
Recherche avancée
Autres articles (74)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
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 (...) -
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
Sur d’autres sites (4962)
-
ffmpeg streaming camera with directshow
17 novembre 2015, par atu0830I am trying use ffmpeg to streaming one camera. The command is
ffmpeg.exe -y -f dshow -i video="AmCam" -c:v copy -framerate 7.5 -map 0:0 -f ssegment -segment_time 4 -segment_format mpegts -segment_list "web\stream.m3u8" -segment_list_size 720 -segment_list_flags live -segment_wrap 10 -segment_list_type m3u8 "web\segments\s%%d.ts"
And I create a html in web folder
<video controls="controls" width="720" height="405" autoplay="autoplay">
<source src="stream.m3u8" type="application/x-mpegURL"></source>
</video>
All ts file generated but looking Safari on iPad looding but it always show dark player and loading
-
FFMPEG is not executing
14 juin 2020, par user2397316I have installed FFMPEG in my Centos7 dedicated Server, now I want to run the FFMPEG, but it is not executing, can anyone help what could be the reason.



Note : I have Cpanel installed also.
My code is below :





 
 
 
 
 <form action="" method="post" enctype="multipart/form-data">
 <input type="file" />
 <input type="submit" />
 </form>
 

<?php
if (isset($_POST['submit'])){
 $currentPath=$_FILES['video']['tmp_name'];
 $ffmpeg = "/usr/bin/ffmpeg";
 exec("$ffmpeg -i ".$currentPath." -an output/video.mp4");
 echo "OK";
}
?>



-
FileNotFoundError on aws Lambda when concatenating videos with ffmpeg
2 juillet 2021, par Shibu MenonGoal :



- 

- Concat 2 videos (both are in an s3 bucket) via aws Lambda using ffmpeg
- Upload the resultant output.mp4 to another S3 bucket
- Python 3+









I've already created a layer containing a static ffmpeg



The Error :



{
 "errorMessage": "[Errno 2] No such file or directory: '/tmp/output.mp4'",
 "errorType": "FileNotFoundError",
 "stackTrace": [
 [
 "/var/task/lambda_function.py",
 19,
 "lambda_handler",
 "s3.Object(bucketLowRes, mp4OutputFileName).put(Body=open(new_file_key, 'rb'))"
 ]
 ]
}




My Lambda function :



import json
import os
import subprocess
import boto3

s3 = boto3.resource('s3')
bucketLowRes = s3.Bucket("bucket-conc-lowres")

def lambda_handler(event, context):
 # TODO implement

 mp4OutputFileName = 'output.mp4'

 new_file_key = os.path.abspath(os.path.join(os.sep, 'tmp', mp4OutputFileName))
 subprocess.call( ['/opt/ffmpeg', '-i', 'concat:s3://bucket-word-clips/00th76kqwfs915hbixycb77y9v3riwsj30.mp4|s3://bucket-word-clips/00uoakp6jyafbu13ycvl6w2i9tj42eux30.mp4', new_file_key ] )

 s3.Object(bucketLowRes, mp4OutputFileName).put(Body=open(new_file_key, 'rb'))

 return {
 'statusCode': 200,
 'body': json.dumps('Hello from Lambda!')
 }




Question :



- 

- FileNotFoundError : Where is the output mp4 file of my ffmpeg concat being saved ??
- And if it is being saved to /tmp/output.mp4 , then why the FileNotFoundError ??







thanks