
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 (84)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (9053)
-
adding text on video using ffmpeg drawtext working when running through commandprompt not working using java
9 mars 2014, par NikitaI am adding the text using to the video using ffmpeg drawtext. when running the command through command prompt it works fine but when running it using process builder its not working neither getting any exception.
Following is the java code
-
the input & ouput videopaths are coming as a parameters. ffmpegUrl
is the path of ffmpeg in the system.String names = "Nikita Sahu" ;
ProcessBuilder builder = new ProcessBuilder(ffmpegUrl," -y -i ",videoFile.getAbsolutePath()," -acodec libmp3lame -vcodec msmpeg4 -b:a 192k -b:v 1000k -ar 44100 -vf \"drawtext=text=",names,":expansion=normal:fontfile=",fontTypeFilePath,":y=h-line_h:x=h-(2*lh)-n:fontcolor=white:fontsize=24:box=0\" -an ",convertedVideoFile.getAbsolutePath());
I am not able to find out what i am doing wrong.
When printing the same on console & running through command prompt it works fine.
Any help will be appreciated. -
-
Python ThreadedTCPServer : "Name or service not known"
11 avril 2014, par HalI was developing a ThreadedTCPServer to communicate with a PHP application also residing in this same machine. This is suppose to receive requests from this PHP app and to convert some videos locally using ffmpeg.
Here's the code :
# -*- coding: utf-8 -*-
import os
import socket
import threading
import logging.config
import SocketServer, time
from queuev2 import QueueServer
logging.basicConfig(format='[%(asctime)s.%(msecs).03d] %(message)s', datefmt='%Y-%m-%d %H:%M:%S', filename=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'converter.log'), level=logging.INFO)
class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
def handle(self):
data = self.request.recv(1024)
cur_thread = threading.current_thread()
response = "{}: {}".format(cur_thread.name, data)
videoPool.add(data)
print "Output! %s" % data
self.request.sendall(response)
class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
pass
if __name__ == "__main__":
logging.info("Initializing...")
videoPool = QueueServer()
HOST, PORT = "localhost", 6666
server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler)
ip, port = server.server_address
# Start a thread with the server -- that thread will then start one
# more thread for each request
server_thread = threading.Thread(target=server.serve_forever)
# Exit the server thread when the main thread terminates
server_thread.daemon = True
server_thread.start()
print("Server loop running in thread: %s" % server_thread.name)
# "Groundhog day" time
while True:
time.sleep(999)
pass
#server.shutdown()This works well in my development laptop, but on the server i'm getting the following error :
Traceback (most recent call last):
File "server.py", line 31, in <module>
server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler)
File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
self.server_bind()
File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known
</module>I'm guessing it has to do with the port I'm using (6666), but I've tried others and it hasn't been working. Would Unix Domain Sockets be of use here ? Can you give me an example ?
-
FFMPEG "Error setting GOP size" when converting from mp4 to ogg
25 avril 2014, par gCardinalI built a little internal website to upload and convert videos using Symfony2, PHP-FFMPEG (via this bundle : https://github.com/pulse00/ffmpeg-bundle). It worked fine on my dev machine, a PC, but it refuses to work on my prod machine, a ubuntu server, outputting "[libtheora @ 0x17f7380] Error setting GOP size" whenever I run the command.
Here is said command :
ffmpeg -y -i url/to/input.mp4 -vcodec libtheora -acodec libvorbis -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -g 30 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k url/to/output.ogg
This is generated by PHP-FFMPEG so I don’t really have any control over it.
I’ll admit that I don’t really understand ffmpeg, so my knowledge is limited, but I don’t see any -g parameter where it could be trying to set the GOP size and anyways, I’m guessing, if it worked on my dev, it should also work on the prod machine, right ?
I figured I should maybe include an output of both ffmpeg versions : http://i.imgur.com/ec4MnKl.png
I don’t feel like this is the source of the problem, but like I said, I know little about ffmpeg so it could be !
Thanks a lot to anyone reading this and even more to those taking the time to answer :)
Edit : I tried running the most basic command I could
ffmpeg -i foo.mp4 foo.ogg
And it outputs the same error. Again, with my limited knowledge, I’m starting to think my install of ffmpeg just can’t handle the ogg format. I’ll keep digging.