Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (70)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6498)

  • x86inc : Set ELF hidden visibility for global constants

    17 janvier 2013, par Henrik Gramner

    x86inc : Set ELF hidden visibility for global constants

  • Prevent uploading hidden system files (e.g. replacing the .htaccess file).

    1er août 2011, par Sebastian Tschan

    m example/upload.php Prevent uploading hidden system files (e.g. replacing the .htaccess file). Thanks to Rich Lott for the issue report.

  • Libavformat | Hidden RTP channel inside RTSP

    22 mai 2020, par Max Ridman

    The problem :

    



    I'm working with libavformat (ffmpeg) library to grab RTSP stream.

    



    I have accidently discovered that when my test RTSP grabber will represent itself with a custom "RTSP USER AGENT NAME" - it starting to receive a secret (hidden) RTP channel inside main RTSP stream.

    



    In receiving TCP stream I can see 3 Interleaved channels. But RTSP SDP describes only 2 channels (0-1 Video, 2-3 Audio). The data I need flies in the 3 stream (WireShark tells me its channel 0x04)

    



    The problem is that the source will not describe this hidden channel in RTSP DESCRIBE. So this way libavformat can not see it and will not receive this stream. Have read tons of libavformat documentation, still no luck...

    



    The question :

    



    Is there a way I can manually tell libavformat that this channel exists and start receiving it ? I just need the HEX inside of Data Payload of this channel.

    



    Hope some ffmpeg/libavformat experts will give me an advice how to move on with this stuff.

    



    #include &#xA;#include &#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;#include <libavutil></libavutil>error.h>&#xA;#include &#xA;&#xA;#define MEDIA_URL  "rtsp://admin:password@192.168.50.154:554/stream1"&#xA;&#xA;/*&#xA; * &#xA; */&#xA;int main(int argc, char** argv) {&#xA;&#xA;    AVFormatContext *input_fmt_ctx = NULL;&#xA;    AVDictionary *opt = NULL;&#xA;    AVPacket frame;&#xA;    AVPacket pkt;&#xA;    int ret; //var for return value&#xA;&#xA;&#xA;    av_dict_set(&amp;opt, "rtsp_transport", "tcp", 0);&#xA;    av_dict_set(&amp;opt, "user-agent", "Media-1.0-Server", 0);&#xA;    //av_dict_set(&amp;opt, "initial_pause","1",0);&#xA;&#xA;&#xA;&#xA;&#xA;    if ((ret = avformat_open_input(&amp;input_fmt_ctx, MEDIA_URL, 0, &amp;opt)) &lt; 0) {&#xA;        fprintf(stderr, "Could not open input url &#x27;%s&#x27;", MEDIA_URL);&#xA;        goto end;&#xA;    }&#xA;&#xA;&#xA;    if ((ret = avformat_find_stream_info(input_fmt_ctx, 0)) &lt; 0) {&#xA;        fprintf(stderr, "Failed to retrieve input stream information");&#xA;        goto end;&#xA;    }&#xA;&#xA;&#xA;    av_dump_format(input_fmt_ctx, 0, MEDIA_URL, 0); // HIDDEN RTP CHANNEL IS ABSENT&#xA;    //av_read_play(input_fmt_ctx);&#xA;&#xA;    while ((ret = av_read_frame(input_fmt_ctx, &amp;frame)) >= 0) {&#xA;&#xA;        /*&#xA;         * Here I never receive rtsp-tcp interleaved channel 4&#xA;         */&#xA;        printf("stream index=%d\r\n",frame.stream_index);&#xA;        av_packet_unref(&amp;frame);&#xA;    }&#xA;&#xA;&#xA;end:&#xA;    if (ret &lt; 0 &amp;&amp; ret != AVERROR_EOF) {&#xA;        fprintf(stderr, "Error occurred: %s\n", av_err2str(ret));&#xA;        return 1;&#xA;    }&#xA;    avformat_close_input(&amp;input_fmt_ctx);&#xA;&#xA;&#xA;    return (EXIT_SUCCESS);&#xA;}&#xA;

    &#xA;&#xA;

    Thank you.

    &#xA;