Recherche avancée

Médias (1)

Mot : - Tags -/university

Autres articles (111)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8309)

  • I want to get the data of the MPEG2ts data stream

    26 juin 2020, par 夏目たかし

    I want to get the data of the MPEG2ts data stream using FFMPEG.

    


    Delivery side :

    


    ffmpeg -re -i hoge.ts -map 0 -c copy -f mpegts udp://127.0.0.1:5004


    


    Receiver :

    


    ffmpeg -i udp://127.0.0.1:5004 -map 0:1 -codec copy -f data stream.txt


    


    I started two command prompts and both were running on one PC.

    


    disp Delivery side message :

    


    Input #0, mpegts, from 'E:/Day_Flight.mpg':
  Duration: 00:03:14.88, start: 10.000000, bitrate: 4187 kb/s
  Program 1
    Stream #0:0[0x1e1]: Video: h264 (Main) ([27][0][0][0] / 0x001B), 
yuv420p(progressive), 1280x720, 60 fps, 60 tbr, 90k tbn, 180k tbc
    Stream #0:1[0x1f1]: Data: klv (KLVA / 0x41564C4B)
Output #0, mpegts, to 'udp://127.0.0.1:5004':
  Metadata:
    encoder         : Lavf58.47.100
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720, q=2-31, 60 fps, 60 tbr, 90k tbn, 90k tbc
    Stream #0:1: Data: klv (KLVA / 0x41564C4B)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)


    


    disp Receiver message :

    


    Input #0, mpegts, from 'udp://127.0.0.1:5004':
  Duration: N/A, start: 1.400000, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), 
yuv420p(progressive), 1280x720, 60 fps, 60 tbr, 90k tbn, 180k tbc
    Stream #0:1[0x101]: Data: klv (KLVA / 0x41564C4B)
Output #0, data, to 'stream.txt':
  Metadata:
    encoder         : Lavf58.47.100
    Stream #0:0: Data: klv (KLVA / 0x41564C4B)
Stream mapping:
  Stream #0:1 -> #0:0 (copy)


    


    However, the contents of steram.txt are empty.
Please give me some advice.

    


  • Keep bash script running child processes until bash script end

    17 septembre 2014, par Xeoncross

    I would like to keep a command running (in this case ffmpeg) until a certain time.

    The best way I know to do this is to wrap that command in a bash script that will keep checking to make sure it’s running.

    If it dies before that time, the script should restart it. I’m having trouble figuring out how do this. It seems like keeping a process running/restarting as needed until a term signal is a pretty common task.

    I can’t use a crontab entry because I have to wait until X outside source starts this process (and ultimately sends the terminate signal).

    #!/bin/bash

    #launch_ffmpeg()
    #{
    #   ffmpeg -i rtmp://localhost/$1/$2 -c copy -f flv rtmp://localhost/$1/$2 &
    #   return $!
    #}

    on_die ()
    {
       # kill all children
       pkill -KILL -P $$
    }

    trap 'on_die' TERM

    # I think this is wrong
    while :
       do
           ffmpeg -i rtmp://localhost/$1/$2 -c copy -f flv rtmp://localhost/$1/$2 &
           wait $!
           sleep 10
    done
  • How to save data of packet.data using ffmpeg && c language ?

    12 juin 2015, par patrick

    I’m try to build an app in c that extract audio from video and save it as audio file. I’m able to extract the audio but now the problem is how to save it. I wrote the code given below but it’s giving me an segmentation fault. Thanks in advance.

    My code is :

    AVOutputFormat* fmt = av_guess_format("mp3", NULL, NULL);;
    AVFormatContext* oc = avformat_alloc_context();
    oc->oformat = fmt;
    avio_open2(&oc->pb, "test.mp3", AVIO_FLAG_WRITE,NULL,NULL);

    AVStream* stream=NULL;
    int cnt = 0;

    while(av_read_frame(pFormatCtx, &packet)>=0) { //pFormatCtx is input file format context.
       if (packet.stream_index==audioStream) {
       int got_frame = 0;
       if (avcodec_decode_audio4(pCodecCtx, pFrame, &got_frame, &packet) < 0) {
           fprintf(stderr, "Error encoding frame\n");
                   exit(1);
           }

           if(got_frame) {
           if (av_interleaved_write_frame(oc, &packet) < 0) {
                   printf(stderr, "Error writing frame\n");
                       exit(1);
                   }
           }
       }
       av_free_packet(&packet);
       av_init_packet(&packet);
    }