Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (12)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (5971)

  • Reading the header of an encoded video using ffmpeg

    9 mai 2017, par Sanduni Wickramasinghe

    I want to read a video file and use its properties in encoded domain. This is my code up to now. I am able to read several features in each packet, like size and duration of frames. I write them in to a file in local directory. But I can’t read the header of the file separately and identify the properties stored in it. Please help

    {
    av_register_all();
    avformat_network_init();
    ofstream outdata;
    const char *url = "H:\\Sanduni_projects\\Sample_video.mp4";
    AVDictionary *options = NULL;
    AVFormatContext *s = avformat_alloc_context();
    AVPacket *pkt = new AVPacket(); //this structure stores compressed data

    //open an input stream and read the header
    int ret = avformat_open_input(&s, url, NULL, NULL);

    if (ret < 0)
       abort();

    av_dict_set(&options, "video_size", "640x480", 0);
    av_dict_set(&options, "pixel_format", "rgb24", 0);

    if (avformat_open_input(&s, url, NULL, &options) < 0){
       abort();
    }

    av_dict_free(&options);

    AVDictionaryEntry *e;

    if (e = av_dict_get(options, "", NULL, AV_DICT_IGNORE_SUFFIX)) {
       fprintf(stderr, "Option %s not recognized by the demuxer.\n", e->key);
       abort();
    }

    int i = 1;
    int64_t duration = 0;
    int size = 0;
    uint8_t *data = 0; //Unsigned integer type with a width of exactly 8 bits.
    int sum = 0;
    int total_size = 0;
    int64_t total_duration = 0;
    int packet_size = 0;
    int64_t stream_index = 0;
    int64_t bit_rate = 0;

    //writing data to a file
    outdata.open("H:\\Sanduni_projects\\log.txt");

    if (!outdata){
       cerr << "Error: file could not be opened" << endl;
       exit(1);
    }
    while(1){
       int frame = av_read_frame(s, pkt);
       if (frame < 0) break;

       duration = pkt->duration;
       size = pkt->size;
       stream_index = pkt->stream_index;

       total_size = total_size + size;
       total_duration = total_duration + duration;

       data = pkt->data;

       //Writing to the file
       outdata << "Frame: " << i << endl;
       outdata << "buf " << pkt->buf <dts << endl;
       outdata << "duration " << pkt->duration << endl;
       outdata << "flags " << pkt->flags << endl;
       outdata << "pos " << pkt->pos << endl;
       outdata << "pts " << pkt->pts << endl;
       outdata << "side_data " << pkt->side_data << endl;
       outdata << "side_data_elems " << pkt->side_data_elems << endl;
       outdata << "size " << pkt->size << endl;
       outdata << "stream_index " << pkt->stream_index << endl;
       outdata << endl;

       i++;    
    }
    //make the packet free
    av_packet_unref(pkt);
    delete pkt;

    outdata.close();

    //Close the file after reading
    avformat_close_input(&s);
    }
  • php-ffmpeg get video duration

    11 mai 2017, par swg1cor14

    When I try to get the duration of a video using the php-ffmpeg wrapper and ffprobe, I get a huge object instead of just the duration.

    $ffprobe = FFMpeg\FFProbe::create();
       $ffprobe->format($this->videoFile)
               ->get('duration');

    $this->videoFile is /home/admin/........./5422346433.mp4

    So it points to right file and the duration is listed in the giant object down in

    [[-show_format-/home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4][1]] => Array
                       (
                           [0] => FFMpeg\FFProbe\DataMapping\Format Object
                               (
                                   [properties:FFMpeg\FFProbe\DataMapping\AbstractData:private] => Array
                                       (
                                           [filename] => /home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4
                                           [nb_streams] => 2
                                           [nb_programs] => 0
                                           [format_name] => mov,mp4,m4a,3gp,3g2,mj2
                                           [format_long_name] => QuickTime / MOV
                                           [start_time] => 0.000000
                                           [duration] => 5736.833333
                                           [size] => 668381267
                                           [bit_rate] => 932056
                                           [probe_score] => 100
                                           [tags] => Array
                                               (
                                                   [major_brand] => mp42
                                                   [minor_version] => 0
                                                   [compatible_brands] => mp42mp41isomavc1
                                                   [creation_time] => 2016-12-04 18:25:58
                                               )

                                       )

                               )

                           [1] =>
                       )

               )

    But apparently ->get(’duration’) doesnt return the duration.

    I’ve also tried with

    $ffprobe
    ->streams($this->videoFile) // extracts streams informations
    ->videos()                      // filters video streams
    ->first()                       // returns the first video stream
    ->get('duration');
  • Cannot re-stream RTSP using ffmpeg [closed]

    1er mars 2024, par Wissam Elias

    I am trying to re-stream an RTSP connection on the local network using this command :

    


    ffmpeg -loglevel debug -rtsp_transport tcp -i rtsp://192.168.1.13:1935 -rtsp_transport tcp -c:v copy -f rtsp rtsp://127.0.0.1:1935/live/stream


    


    but this usage can connect to the host and reads the packets from the host but it hangs when trying to connect to the local host :

    


    Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[aost#0:1/aac @ 000001eb93d54980] Starting thread...
[af#0:1 @ 000001eb91dd5c80] Starting thread...
[aist#0:1/aac @ 000001eb91e60e40] [dec:aac @ 000001eb9467e440] Starting thread...
[in#0/rtsp @ 000001eb91dce180] Starting thread...
Press [q] to stop, [?] for help
detected 12 logical cores
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'time_base' to value '1/32000'
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'sample_rate' to value '32000'
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'channel_layout' to value 'stereo'
[graph_0_in_0:1 @ 000001eb91e2c280] tb:1/32000 samplefmt:fltp samplerate:32000 chlayout:stereo
[format_out_0_1 @ 000001eb91e2bf40] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 000001eb91e2bf40] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[AVFilterGraph @ 000001eb945c7b40] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
Transform tree:
    mdct_fwd_float_c - type: mdct_float, len: 1024, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
        fft_sr_ns_float_avx2 - type: fft_float, len: 512, factor: 2, flags: [aligned, inplace, out_of_place, preshuf]
Transform tree:
    mdct_fwd_float_c - type: mdct_float, len: 128, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
        fft_sr_ns_float_avx2 - type: fft_float, len: 64, factor: 2, flags: [aligned, inplace, out_of_place, preshuf]
[tcp @ 000001eb93d51300] No default whitelist set
[tcp @ 000001eb93d51300] Original list of addresses:
[tcp @ 000001eb93d51300] Address 127.0.0.1 port 1935
[tcp @ 000001eb93d51300] Interleaved list of addresses:
[tcp @ 000001eb93d51300] Address 127.0.0.1 port 1935
[tcp @ 000001eb93d51300] Starting connection attempt to 127.0.0.1 port 1935


    


    another try by removing the -c:v copy option, using this command :

    


    ffmpeg -loglevel debug -rtsp_transport tcp -i rtsp://192.168.1.13:1935  -rtsp_transport tcp  -f rtsp rtsp://127.0.0.1:1935/live/stream


    


    it can start the connection on the local host or on the server ip but stops at POC (Picture Order Count ) 21 :

    


    [out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.37691 queue head -1 ts N/A
[hevc @ 000001b76091a1c0] Output frame with POC 1.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.40891
[hevc @ 000001b76099ebc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.40891 queue head -1 ts N/A
[hevc @ 000001b76099ebc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.44091
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.44091 queue head -1 ts N/A
[hevc @ 000001b76099ebc0] Output frame with POC 2.
[hevc @ 000001b76099d740] Decoded frame with POC 0.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.47291
[hevc @ 000001b763a62400] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.47291 queue head -1 ts N/A
[hevc @ 000001b763a62400] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.50491
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.50491 queue head -1 ts N/A
[hevc @ 000001b76091a1c0] Decoded frame with POC 1.
[hevc @ 000001b763a62400] Output frame with POC 3.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.53691
[hevc @ 000001b762522c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.53691 queue head -1 ts N/A
[hevc @ 000001b762522c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[hevc @ 000001b76099ebc0] Decoded frame with POC 2.
[hevc @ 000001b763a62400] Decoded frame with POC 3.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.56891
[hevc @ 000001b762522c00] Output frame with POC 4.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.56891 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.60091
[hevc @ 000001b763bc4980] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.60091 queue head -1 ts N/A
[hevc @ 000001b763bc4980] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.63291
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.63291 queue head -1 ts N/A
[hevc @ 000001b763bc4980] Output frame with POC 5.
[hevc @ 000001b762522c00] Decoded frame with POC 4.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.66491
[hevc @ 000001b762524140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.66491 queue head -1 ts N/A
[hevc @ 000001b762524140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.69691
[hevc @ 000001b763bc4980] Decoded frame with POC 5.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.69691 queue head -1 ts N/A
[hevc @ 000001b762524140] Output frame with POC 6.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.72891
[hevc @ 000001b762524740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.72891 queue head -1 ts N/A
[hevc @ 000001b762524740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.76091
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.76091 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.79291
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.79291 queue head -1 ts N/A
[hevc @ 000001b762524740] Output frame with POC 7.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.82491
[hevc @ 000001b763e625c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.82491 queue head -1 ts N/A
[hevc @ 000001b763e625c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.85691
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.85691 queue head -1 ts N/A
[hevc @ 000001b763e625c0] Output frame with POC 8.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.88916
[hevc @ 000001b762524140] Decoded frame with POC 6.
[hevc @ 000001b76304d7c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.88916 queue head -1 ts N/A
[hevc @ 000001b762524740] Decoded frame with POC 7.
[hevc @ 000001b76304d7c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.92116
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.92116 queue head -1 ts N/A
[hevc @ 000001b76304d7c0] Output frame with POC 9.
[hevc @ 000001b763e625c0] Decoded frame with POC 8.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.95316
[hevc @ 000001b76304ddc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.95316 queue head -1 ts N/A
[hevc @ 000001b76304ddc0] Output frame with POC 10.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.98516
[hevc @ 000001b764075b00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 000001b76304d7c0] Decoded frame with POC 9.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.98516 queue head -1 ts N/A
[hevc @ 000001b764075b00] Output frame with POC 11.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.01716
[hevc @ 000001b76304ddc0] Decoded frame with POC 10.
[hevc @ 000001b764126b00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.01716 queue head -1 ts N/A
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.04916
[hevc @ 000001b764126b00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'video_size' to value '720x1280'
[hevc @ 000001b764075b00] Decoded frame with POC 11.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.04916 queue head -1 ts N/A
[hevc @ 000001b764126b00] Output frame with POC 12.
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'pix_fmt' to value '0'
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.08116
[hevc @ 000001b76099d740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'time_base' to value '1/90000'
[hevc @ 000001b76099d740] Output frame with POC 13.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.08116 queue head -1 ts N/A
[hevc @ 000001b764126b00] Decoded frame with POC 12.
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'pixel_aspect' to value '0/1'
[hevc @ 000001b76091a1c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.11316
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'colorspace' to value '6'
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 000001b76099d740] Decoded frame with POC 13.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.11316 queue head -1 ts N/A
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'range' to value '1'
[hevc @ 000001b76091a1c0] Output frame with POC 14.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.14516
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'frame_rate' to value '30/1'
[hevc @ 000001b76099ebc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.14516 queue head -1 ts N/A
[graph 0 input from stream 0:0 @ 000001b760935280] w:720 h:1280 pixfmt:yuv420p tb:1/90000 fr:30/1 sar:0/1 csp:smpte170m range:tv
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 000001b76099ebc0] Output frame with POC 15.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.17716
[format @ 000001b7609353c0] Setting 'pix_fmts' to value 'yuv420p'
[hevc @ 000001b76091a1c0] Decoded frame with POC 14.
[hevc @ 000001b763a62400] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.17716 queue head -1 ts N/A
[AVFilterGraph @ 000001b76096f5c0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.20916
[hevc @ 000001b76099ebc0] Decoded frame with POC 15.
[graph 0 input from stream 0:0 @ 000001b760935280] video frame properties congruent with link at pts_time: 0
[hevc @ 000001b763a62400] Output frame with POC 16.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.20916 queue head -1 ts N/A
[hevc @ 000001b762522c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.24116
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 000001b762522c00] Output frame with POC 17.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.24116 queue head -1 ts N/A
[mpeg4 @ 000001b763112b80] intra_quant_bias = 0 inter_quant_bias = -64
[hevc @ 000001b763a62400] Decoded frame with POC 16.
[hevc @ 000001b763bc4980] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.27316
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[tcp @ 000001b7656cef40] No default whitelist set
[hevc @ 000001b763bc4980] Output frame with POC 18.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.27316 queue head -1 ts N/A
[hevc @ 000001b762522c00] Decoded frame with POC 17.
[tcp @ 000001b7656cef40] Original list of addresses:
[hevc @ 000001b762524140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.30516
[tcp @ 000001b7656cef40] Address 127.0.0.1 port 1935
[tcp @ 000001b7656cef40] Interleaved list of addresses:
[hevc @ 000001b762524140] Output frame with POC 19.
[hevc @ 000001b763bc4980] Decoded frame with POC 18.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.30516 queue head -1 ts N/A
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 000001b762524740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[tcp @ 000001b7656cef40] Address 127.0.0.1 port 1935
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.33716
[hevc @ 000001b762524740] Output frame with POC 20.
[tcp @ 000001b7656cef40] Starting connection attempt to 127.0.0.1 port 1935
[hevc @ 000001b762524140] Decoded frame with POC 19.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.33716 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.36916
[hevc @ 000001b763e625c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.36916 queue head -1 ts N/A
[hevc @ 000001b763e625c0] Output frame with POC 21.
[hevc @ 000001b762524740] Decoded frame with POC 20.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.40116
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.40116 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.43316
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.43316 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.46516
[hevc @ 000001b763e625c0] Decoded frame with POC 21.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.46516 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.49716
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.49716 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.52916
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.52916 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.56116
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.56116 queue head -1 ts N/A


    


    and finally i cannot connect to the re-streamed rtsp connection. how to fix this ?

    


    i want to re stream the rtsp connection from the server to make it available to use this rtsp connection online.