
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 (92)
-
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 -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (22272)
-
Configure ffmpeg for wowza and wp8
11 octobre 2013, par Anton ShakaloI have mp4 file from my windows phone.
There is info :
General
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
Video
Format : AVC
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Audio
Format : AAC
Format profile : LC
Codec ID : 40
Bit rate : 96.0 Kbps
Sampling rate : 44.1 KHzWhen I stream it to wowza with next ffmpeg command ( I got it from documentation)
ffmpeg -re -i "C:\sample2.mp4" -vcodec libx264 -vb 150000 -g 60 -vprofile main -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10001?pkt_size=1316
In client app I see corrupted video : http://i.imgur.com/fKEMlsB.png
With sample file provided by wowza streamed video looks fine.
There is info about sample file from wowza :
General
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
Video
Format : AVC
Format profile : Baseline@L3.0
Codec ID : avc1
Audio
Format : AAC
Format profile : LC
Codec ID : 40Can you help me with ffmpeg configuring ?
I read documentation, but understand nothing. -
How to set the quality of an mp3 Codec with PyAV
16 février 2024, par ZvikaI wrote a simple code to create a .mp3 file from any audio input, using PyAV. It's working (pasted at the end of the question). However, when using
ffmpeg
it's possible to set the quality of the .mp3 file, and I'd like to do this as well in my code. According to the ffmpeg documentation :



q (-V)


Set constant quality setting for VBR. This option is valid only using the ffmpeg command-line tool. For library interface users, use
global_quality
.



So, the question is how do I use
global_quality
with PyAV ?

I found it at PyAV documentation, listed as
Wrapped C Types and Functions
, understruct AVCodecContext
, but I still don't understand how to use this.

I tried creating an
AudioCodecContext
(which is the closest thing to AVCodecContext I found) withc = av.Codec('mp3').create()
, but it doesn't seem to have aglobal_quality
field.

My existing function :


def encode_audio_to_mp3(input_file_path, output_file_path):
 input_container = av.open(input_file_path)
 output_container = av.open(output_file_path, 'w')
 output_stream = output_container.add_stream('mp3')
 
 for in_packet in input_container.demux():
 for in_frame in in_packet.decode():
 for out_packet in output_stream.encode(in_frame):
 output_container.mux(out_packet)
 
 # Flush stream
 for packet in output_stream.encode():
 output_container.mux(packet)
 
 output_container.close()
 input_container.close()



-
Build error caused by missing library arc4random
25 mai 2016, par Omega1001I’m currently working on a Streaming framework, and decided to use ffmpeg to encode and or decode my Video and or Audio.
So i clicked through https://ffmpeg.org for the api files, and downloaded the statically linked version only to find out it actually contained a .exe (I use Windows in development, but plan on using Linux in production) instead of one or more dll’s and header informations.
Since i don’t think i can use the ’exe’ as replacement for an dll, i cloned the git source, and tried to compile it myself.
Then, while compiling i run into this error :
CC libavutil/random_seed.o
libavutil/random_seed.c: In function 'av_get_random_seed':
libavutil/random_seed.c:130:12: error: implicit declaration of function 'arc4random' [-Werror=implicit-function-declaration]
return arc4random();
^
cc1: some warnings being treated as errors
common.mak:60: recipe for target 'libavutil/random_seed.o' failed
make: *** [libavutil/random_seed.o] Error 1As far as I can tell, this means that I’m missing the library arc4random, so I started searching for this lib, and found absolutly nothing, besides the fact that this library is somehow Apple related..., but no dll’s and stuff or sources to compile it myself.
I use cygwin and its GCC to compile on 64-Bit windows 7 Machine.
Can anyone hint me to some location where I can get this missing library, or some other possibility to get ffmpeg as library into my project ?
(I would prefer something I can link statically , since this project is meant to be a lib by itself)Maybe is there a way I can make use of that downloaded exe of ffmpeg, since i can borrow its headers from the source I cloned from Git ?
Any Hint appreciated.
Best Regards,
Jannik Adam