
Recherche avancée
Autres articles (39)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (3572)
-
Video playback in Python not working
6 juin 2016, par user3354383I am having trouble getting video playback to work for Python. I am using Spyder as my IDE.
I am trying to play a video file from my computer using the code below but I can not get any video to play, it won’t even open a new window for playback.
I have looked at some threads about this problem but none of the following solutions seem to work :
- changing the ffmpeg file name to opencv_ffmpeg_(version number)_64(if it is a 64 bit)
- moving the ffmpeg file to the python27 folder
- moving the ffmpeg file to the dll folder
My code :
import numpy as np
import cv2
filename = 'C:/Users/ishraq/Downloads/traffic2.mp4'
vidcap = cv2.VideoCapture(filename)
while(vidcap.isOpened()):
success, frame_org = vidcap.read()
cv2.imshow('frame',frame_org)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
vidcap.release()
cv2.destroyAllWindows() -
when muxing , ffmpeg just support stereo only ?
23 août 2016, par C.sandyenvironment : ffmpeg 3.1.1, xcode 7.3.1, ios 9.3
My purpose is to mux H.264 and AAC stream(real time) to an mp4 file. Everything seems just right while recording(ffmpeg does not report an error or warning), and the result file can be played very normally on VLC. However, the file has no sound when playing on my cellphone or QuickTime on the computer, which pictures can be shown just right. I’ve done some analysis, and the result is :
1.video both input and output is normal and right ;
2.input audio has params channel:mono & sample_rate:8000HZ, while output audio has channel:stereo & sample_rate:16000HZ(VLC told me the parameters of the output file). I didn’t do any converting about the audio.
So, my question is : when muxing into mp4 file, does ffmpeg only support stereo ? If not, how could I prevent this converting and make the audio played normally on cellphone and QuickTime ?
-
how to play nginx & rtmp based hls live stream on a remote machine
21 mai 2020, par RamI have installed nginx, rtmp and ffmpeg based hls live streaming working on ubuntu machine. I use this command to stream hls



sudo ffmpeg -re -i sample.mp4 -vcodec libx264 -vprofile high -g 30 -acodec aac -strict -2 -f flv rtmp://localhost/show/stream2




when I try to play this stream using VLC using following commands on the same machine it works well.



http://myIp:8080/hls/stream2.m3u8




or



http://localhost:8080/hls/stream2.m3u8




However when I try to access from remote computer connected to same WIFI, not able to play. VLC gives an error that unable to play the file.