
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 (73)
-
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 -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (7463)
-
Streaming RTP with ffmpeg
30 mars 2016, par DmitryIm trying to stream audio via rtp over udp with ffmpeg (
filename = "rtp://11.89.9.211:30000"
).
Here is my code for server(which one is streaming, and I have deleted all checks from code for easy reading) :AVStream *stream = NULL;
AVCodec *output_codec = NULL;
int error;
out_ifcx[i] = avformat_alloc_context();
out_ifcx[i]->oformat = av_guess_format("rtp", NULL, NULL);
avformat_alloc_output_context2(&out_ifcx[i], nullptr, "rtp", filename);
avio_open(&(out_ifcx[i])->pb, filename, AVIO_FLAG_WRITE));
av_strlcpy((out_ifcx[i])->filename, filename, sizeof((out_ifcx[i])->filename));
output_codec = avcodec_find_encoder((in_ifcx[i])->streams[0]->codec->codec_id);
stream = avformat_new_stream(out_ifcx[i], output_codec)
out_iccx[i] = stream->codec;
(out_iccx[i])->channels = OUTPUT_CHANNELS;
(out_iccx[i])->channel_layout = av_get_default_channel_layout(OUTPUT_CHANNELS);
(out_iccx[i])->sample_rate = in_iccx[i]->sample_rate;
(out_iccx[i])->sample_fmt = AV_SAMPLE_FMT_S16;
(out_iccx[i])->bit_rate = iccx[i]->bit_rate;
if ((out_ifcx[i])->oformat->flags & AVFMT_GLOBALHEADER)
(out_iccx[i])->flags |= CODEC_FLAG_GLOBAL_HEADER;
avcodec_open2(out_iccx[i], output_codec, NULL)PS :
out_iccx[i], in_iccx[i] - vector; out_ifcx[i] in_ifcx[i] - vector
Problem with it is : when i`m trying to reach another computer in the same network this code gives an errorudp_resolve_host: nodename nor servname provided, or not known
Also, when i`m streaming to the same computer but on other port (I use not local host IP(127.0.0.1), but of this computer : 11.88.8.20), everything works perfect.
I dont know why and how to fix it. Can anyone help, please ? -
How to get playing audio file data in ffmpeg stream ?
27 juin 2022, par Viktor KushnirDears experts of the wonderful ffmpeg utility ! Tell me please who knows this :
I want to make a 24/7 stream on YouTube of music from looped video and audio tracks.
I do it like this :


ffmpeg -loglevel info -stream_loop -1 -y -re \
 -i video.mp4 \
 -f concat -safe 0 -i playlist.txt \
 -c:v libx264 -preset veryfast -b:v 3000k -maxrate 3000k -bufsize 6000k \
 -framerate 25 -video_size 1280x720 -vf "format=yuv420p" -g 50 -shortest -strict experimental \
 -c:a aac -b:a 128k -ar 44100 \
 -f flv rtmp://localhost/live/my-stream



i.e. video.mp4 is spinning in a loop and from the playlist.txt file I play mp3 in turn.
With this everything is ok, everything works. But I also want to show the title of the playing track.
As for example on some YouTube radios :





With cover is perfect !


Any ideas how this can be implemented ?


I know that it is possible to display text through drawtext. You can output text from a file, which you can separately update yourself. But how to get the data of the currently playing file ? ffmpeg does not give such information, only stream parameters : fps, framerate... Or is it still possible to get it ?


Or are there better and easier ways ?


Thanks in advance for your help !


-
Screen recorder in Ubuntu using python
3 août 2013, par mridulI am a hobby programmer and trying to make screen-recorder in Ubuntu using python.
Using this code able to take screenshot.import wx
app = wx.App(False)
s = wx.ScreenDC()
w, h = s.Size.Get()
b = wx.EmptyBitmap(w, h)
m = wx.MemoryDCFromDC(s)
m.SelectObject(b)
m.Blit(0, 0, w, h, s, 0, 0)
m.SelectObject(wx.NullBitmap)
b.SaveFile("screenshot.png", wx.BITMAP_TYPE_PNG)And using loop I take more pictures and create video using these screen shots.My code is given bellow,
import wx,os
app=wx.App(False)
s = wx.ScreenDC()
w, h = s.Size.Get()
b = wx.EmptyBitmap(w, h)
m = wx.MemoryDCFromDC(s)
i=0
while i<50:
m.SelectObject(b)
m.Blit(0, 0, w, h, s, 0, 0)
m.SelectObject(wx.NullBitmap)
b.SaveFile('{0:05d}.png'.format(i), wx.BITMAP_TYPE_PNG)
i+=1
os.system('ffmpeg -f image2 -r 8 -i %05d.png -vcodec mpeg4 -y movie1.mp4')
i=0
while i<50:
os.remove('{0:05d}.png'.format(i))
i += 1 `In above code I take 50 pictures and store as 00000.png to 00049.png and make video using ffmpeg.
After creating video I delete all pictures.Current Problems :
- Very small delay between screen shoots. If try to record videos using this code out put is not perfect.
- For recording long time it is not efficient. It take lot of hard drive memory to store screen shoots. And use more CPU .
What I do for get code more efficient ? Using pure python how to create video from pictures ? Is there any alternative methods to record screen ?
I like to improve my code.