
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (103)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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 (5965)
-
How to send an mpeg_ts stream verbatim over rtp
30 mars 2018, par Bruce AdamsI’m trying to write some software to capture and process data from an mpeg_ts stream.
As part of this I need, for testing, to generate a test mpeg_ts streams for my software to captureOne option for this is to save a real stream to disk.
So with that in mind I have a source transport stream which is being unicast via rtp to my box via port 1234. I can view it in vlc using :vlc rtp://@:1234
and I can move between channels via the "programme" menu.
subtitles are available but no EPG
kaffeine works as well but only shows the first channelI can save this stream using :
ffmpeg -i rtp://172.16.13.81:1235 -map 0 -copy_unknown -c copy save_ffmpeg.ts
note : that rtp ://@:1235 does not work you need your full IP address though udp ://@:1235 does work for udp streams - see https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=2386
However there is a problem. When I try to open the resulting file save_ffmpeg.ts in VLC
instead of opening one channel at a time it opens a new window for each channel which indicates an issue.If on the other hand I save it using :
cvlc rtp://@:1235 :demux=dump :demuxdump-file=save_vlc.ts
the resulting ts file can be viewed as normal.
What is the difference ?Looking at the output of mediainfo on save_ffmpeg.ts vs save_vlc.ts
I can see that ffmpeg has stripped the streams labelled Menu #1 to Menu #5.>mediainfo save_ffmpeg.ts | grep -E '^[A-Za-z]+ #'
Video #1
Video #2
Video #3
Video #4
Video #5
Audio #1
Audio #2
Audio #3
Audio #4
Audio #5
Audio #6
Audio #7
>mediainfo save_vlc.ts | grep -E '^[A-Za-z]+ #'
Video #1
Video #2
Video #3
Video #4
Video #5
Audio #1
Audio #2
Audio #3
Audio #4
Audio #5
Audio #6
Audio #7
Menu #1
Menu #2
Menu #3
Menu #4
Menu #5I tried adding -map_metadata 0 but to no avail.
Q1 What is wrong with the ffmpeg command ?
How do I get it to also save the menu streams ?Now I can send the ts that has the menu with ffmpeg using :
ffmpeg -re -i save_vlc.ts -c copy -f mpegts udp://127.0.0.1:9999
to get one channel
but again if I try to send everything :ffmpeg -re -i ./save_file.ts -map 0 -map_metadata 0 -copy_unknown -c copy -f rtp_mpegts rtp://127.0.0.1:9999
then :
vlc rtp://127.0.0.1:9999
opens a window for each and every channel.
Q2 How do I fix this ?
Q3 What would the equivalent gstreamer commands be to send and recieve ts files ?
The relevance of the final question is that one of the options being considered for implementing the MPEG_TS reader is gstreamer. Though, it probably warrants a question of its own.
-
FFmpeg AutoGen - set encoding settings
6 décembre 2018, par user4964351I’m using FFmpeg auto generated unsafe bindings to capture rtsp (h264) stream like so :
AVFormatContext* input_context = ffmpeg.avformat_alloc_context();
AVDictionary* opts = null;
ffmpeg.av_dict_set(&opts, "rtsp_transport", "tcp", 0); // set tcp transport
// try connect to rtsp stream
if (ffmpeg.avformat_open_input(&input_context, "rtsp://...", null, &opts) != 0)
{
return;
}
if (ffmpeg.avformat_find_stream_info(input_context, null) < 0)
{
return;
}
// search video stream
int video_stream_index = 0;
for (int i = 0; i < input_context->nb_streams; i++)
{
if (input_context->streams[i]->codec->codec_type == AVMediaType.AVMEDIA_TYPE_VIDEO)
video_stream_index = i;
}
AVPacket packet;
ffmpeg.av_init_packet(&packet);
// create output file
AVOutputFormat* format = ffmpeg.av_guess_format("mp4", null, null);
AVFormatContext* output_context = null;
ffmpeg.avformat_alloc_output_context2(&output_context, format, null, null);
output_context->oformat = format;
ffmpeg.avio_open2(&output_context->pb, "test.mp4", ffmpeg.AVIO_FLAG_WRITE, null, null);
// start playing input stream
ffmpeg.av_read_play(input_context);
AVStream* stream = null;
double stream_base_time_double = 0;
var cnt = 0;
// start reading packets from stream and write them to file
while (ffmpeg.av_read_frame(input_context, &packet) == 0 && cnt < 200)
{
if (packet.stream_index == video_stream_index)
{
if (stream == null) // create stream in output file
{
stream = ffmpeg.avformat_new_stream(output_context, input_context->streams[video_stream_index]->codec->codec);
// copy params from input stream
ffmpeg.avcodec_parameters_from_context(stream->codecpar, input_context->streams[video_stream_index]->codec);
stream->sample_aspect_ratio = input_context->streams[video_stream_index]->codec->sample_aspect_ratio;
// ffmpeg.av_opt_set_int(stream->codec, "crf", 25, 0); // this does not work
ffmpeg.avformat_write_header(output_context, null);
}
packet.stream_index = stream->id;
ffmpeg.av_interleaved_write_frame(output_context, &packet);
cnt++;
}
ffmpeg.av_packet_unref(&packet);
ffmpeg.av_init_packet(&packet);
}
ffmpeg.av_read_pause(input_context);
ffmpeg.av_write_trailer(output_context);
ffmpeg.avio_close(output_context->pb);
ffmpeg.avformat_close_input(&input_context);
ffmpeg.avformat_free_context(input_context);
ffmpeg.avformat_free_context(output_context);This code is working creating small test.mp4 video file.
Now, i want to reduce file size a bit. For that i want to use crf flag.
I can do that from command line :
ffmpeg -rtsp_transport tcp -i rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov -crf 25 F:\garbage\test.mp4
But i can’t make it work from code.
So far i tried setting crf like so :ffmpeg.av_opt_set_int(stream->codec, "crf", 25, 0);
and
ffmpeg.av_opt_set_int(stream->codec->priv_data, "crf", 25, 0);
But it does nothing.
Question : How can i set the crf option from code ?
I know that i’m missing something obviously, but i just can’t figure it myself.
Any help would be appreciated.
-
How to install a Matomo premium feature
31 janvier 2018, par InnoCraftYou may have noticed over the last few months that many fantastic new features have been launched on the Matomo Marketplace. As some of them are paid premium features, you may wonder if the process to install them is straightforward, if you can test them before, and whether there is any support behind it. No worries – we’ve got you covered ! This blog post will answer some questions you may have about getting your first premium plugin.
So why are there some premium features ?
Researching, building, documenting, testing and maintaining quality products take years of experience and months of hard work by the team behind the scenes. When you purchase a premium plugin, you get a fully working product and you directly help the Matomo core engineers to grow and fund the new Free Matomo versions and cool features.
However, it is important for us to mention that Matomo will always be free, it is a Free software under GPLv3 license and it will always be the same.
Want to know more about this ? Check out our FAQ about why there are premium features.Can I test a premium feature before a purchase ?
Absolutely. There are two ways in order to do that :
- InnoCraft Matomo Cloud
- Matomo Marketplace
1. InnoCraft Matomo Cloud
The easiest way is to create a free trial account (one minute of your time) on our Matomo cloud service. You will then have the possibility to test all the premium features during a 30-day trial period. No credit card is required.
Every premium feature can be trialled for free on the Matomo Cloud
2. Matomo Marketplace
The second way is to get the premium feature from the Matomo Marketplace. We have an easy and hassle-free 30-day money back guarantee period on each feature. This means that if you are not happy with a premium feature and you are within the 30-day period, then you will get a full refund for it. Guaranteed !
How to purchase and install a premium feature ?
Step 1 : Purchasing the feature
In order to get a premium feature, just add it to the cart :
Once done, go to your cart and complete the checkout process to confirm the order.
When the order is confirmed, you immediately get your license key on the order confirmation page. You also receive the license key by email.
Step 2 : Activating the feature in your Matomo
Now that you have received the license key, it is time to activate the plugin in your Matomo :
- Log in to your Matomo and go to “Administration => Marketplace
- Copy / paste the license key into the license field at the top of the page and click “Activate”
- The key will now be activated and you will see a couple of new buttons.
- To install the premium feature(s) you just purchased in one click, simply click on “Install purchased plugins”. Alternatively, you can scroll down in the Marketplace to the premium feature you purchased and click on “Install”. You can also download the ZIP file on https://shop.matomo.org/my-account/downloads
And that’s it. The installation of a premium feature is as easy as copy/pasting the license key and clicking a button. Because one license key is linked to all purchased premium features, you only need to enter the license key once. The next time you purchase a premium feature, you simply click on “Install” to have it up and running.
Updating a premium feature
Updates for premium features work just like regular plugin updates. When there is a new update available, you will see a notification in the Matomo UI and also receive an email (if enabled under “General Settings”). To upgrade the feature simply click on “Update” and you’re done.
Which support is provided for each of those premium features ?
Premium features represent most of our day to day activity, so you can be 100% sure that we will do our maximum in order to answer any of your questions regarding them. To be 100% transparent, we often receive answers from our customers telling us how impressed they are by the quality of the service we are offering.
Have any questions ?
We are happy to answer any questions you may have so feel free to get in touch with us.
Thanks !
The post How to install a Matomo premium feature appeared first on Analytics Platform - Matomo.