<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello all,</p>
    <p><br>
    </p>
    <p>If i want to record a stream while playing, i think that I can
      use this pipeline :</p>
    <p>gst-launch-1.0 filesrc location=/home/sefram/TS/Samsung.ts !
      queue ! typefind ! tee name=t t. ! decodebin ! queue ! kmssink t.
      ! queue ! filesink location=/home/firsttry.ts<br>
    </p>
    <p><br>
    </p>
    <p>this pipeline should do this :</p>
    <p><br>
    </p>
    <p>                                             /  [ decodebin |
      queue | kmssink ]           (playing_branch)
      <br>
      filesrc | queue | typefind | tee <br>
                                                   \  [ queue | filesink
      ]                                 (recording_branch)
    </p>
    <p><br>
    </p>
    <p>but it doesn't work the pipeline never start : <br>
    </p>
    <p><font size="-1">gst-launch-1.0 filesrc
        location=/home/sefram/TS/Samsung.ts ! queue ! typefind ! tee
        name=t t. ! decodebin ! queue ! kmssink t. ! queue ! filesink
        location=/home/firsttry.ts<br>
        Setting pipeline to PAUSED ...<br>
        Pipeline is PREROLLING ...<br>
        <br>
        ====== AIUR: 4.3.5 build on Jan 21 2019 17:47:10. ======<br>
                Core: BLN_MAD-MMLAYER_MPG2PARSER_04.05.16  build on Sep
        14 2017 02:37:53<br>
         file: /usr/lib/imx-mm/parser/lib_mpg2_parser_arm_elinux.so.3.1</font><br>
      <br>
    </p>
    <p>whereas if I delete the recording branch, it works correctly.</p>
    <p><font size="-1">root@cl-som-imx8:~# gst-launch-1.0 filesrc
        location=/home/sefram/TS/Samsung.ts ! queue ! typefind ! tee
        name=t t. ! decodebin ! queue ! kmssink t. ! queue ! filesink
        location=/home/firsttry.ts<br>
        Setting pipeline to PAUSED ...<br>
        Pipeline is PREROLLING ...<br>
        <br>
        ====== AIUR: 4.3.5 build on Jan 21 2019 17:47:10. ======<br>
                Core: BLN_MAD-MMLAYER_MPG2PARSER_04.05.16  build on Sep
        14 2017 02:37:53<br>
         file: /usr/lib/imx-mm/parser/lib_mpg2_parser_arm_elinux.so.3.1<br>
        ^Chandling interrupt.<br>
        Interrupt: Stopping pipeline ...<br>
        ERROR: pipeline doesn't want to preroll.<br>
        Setting pipeline to NULL ...<br>
        Freeing pipeline ...<br>
        root@cl-som-imx8:~# gst-launch-1.0 filesrc
        location=/home/sefram/TS/Samsung.ts ! queue ! typefind ! tee
        name=t t. ! decodebin ! queue ! kmssink<br>
        Setting pipeline to PAUSED ...<br>
        Pipeline is PREROLLING ...<br>
        <br>
        ====== AIUR: 4.3.5 build on Jan 21 2019 17:47:10. ======<br>
                Core: BLN_MAD-MMLAYER_MPG2PARSER_04.05.16  build on Sep
        14 2017 02:37:53<br>
         file: /usr/lib/imx-mm/parser/lib_mpg2_parser_arm_elinux.so.3.1<br>
        ------------------------<br>
            Track 00 [video_0] Enabled<br>
                Duration: 0:01:58.601811000<br>
                Language: und<br>
            Mime:<br>
                video/x-h265, parsed=(boolean)true,
        alignment=(string)au, stream-format=(string)byte-stream,
        width=(int)3840, height=(int)2160, framerate=(fraction)30/1<br>
        ------------------------<br>
        ------------------------<br>
            Track 01 [audio_0] Enabled<br>
                Duration: 0:01:58.528000000<br>
                Language: und<br>
            Mime:<br>
                audio/mpeg, mpegversion=(int)4, channels=(int)2,
        rate=(int)48000, bitrate=(int)192000<br>
        ------------------------<br>
        ====== VPUDEC: 4.3.5 build on Jan 21 2019 17:47:26. ======<br>
                wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jan 21
        2019 17:02:05)<br>
                vpulib: 1.1.1<br>
                firmware: 1.1.1.65535<br>
        <br>
        ====== BEEP: 4.3.5 build on Jan 21 2019 17:47:16. ======<br>
                Core: AAC decoder Wrapper  build on Dec  7 2017 18:13:51<br>
         file: /us[ 1437.616914] alloc_contig_range: 42 callbacks
        suppressed<br>
        r/lib/imx-mm/audio-codec/wrap/lib[ 1437.616918]
        alloc_contig_range: [5eb00, 5f9d5) PFNs busy<br>
        _aacd_wrap_arm_elinux.so.3<br>
         1437.631555] alloc_contig_range: [5ec00, 5fad5) PFNs busy<br>
        3mCODEC: BLN_MAD-MMCODECS_AACD_AR[ 1437.639743]
        alloc_contig_range: [5ec00, 5fbd5) PFNs busy<br>
        M_03.09.00_ARMV8  build on Sep 20[ 1437.648085]
        alloc_contig_range: [5ec00, 5fcd5) PFNs busy<br>
         2017 15:02:50.<br>
        [ 1437.656130] alloc_contig_range: [5ec00, 5fdd5) PFNs busy<br>
        [ 1437.662854] alloc_contig_range: [5f000, 5fed5) PFNs busy<br>
        [ 1437.668731] alloc_contig_range: [5f000, 5ffd5) PFNs busy<br>
        [ 1437.674615] alloc_contig_range: [5f000, 600d5) PFNs busy<br>
        [ 1437.681140] alloc_contig_range: [5f000, 601d5) PFNs busy<br>
        [ 1437.687145] alloc_contig_range: [5f000, 602d5) PFNs busy<br>
        Pipeline is PREROLLED ...<br>
        Setting pipeline to PLAYING ...<br>
        New clock: GstSystemClock</font><br>
      <br>
    </p>
    <p>If someone has an idea about the problem...</p>
    <p><br>
    </p>
    <p>Thanks</p>
    <p><br>
    </p>
    <p>Frederic<br>
    </p>
  </body>
</html>