<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>the gst-crypto modul is the source of the problem.  The
      gst-crypto module is simple incompatible with the qtdemux.</p>
    <p>Best regards<br>
    </p>
    <div class="moz-cite-prefix">Am 16.07.2016 um 14:50 schrieb Thiago
      Sousa Santos:<br>
    </div>
    <blockquote
cite="mid:CAPYW3=3jD7JT4nC0zp-V1ZXoOR8m8eAB6JxEyby2RqhHpTi=fg@mail.gmail.com"
      type="cite">
      <pre wrap="">On Sat, Jul 16, 2016 at 8:25 AM, Hallo32 <a class="moz-txt-link-rfc2396E" href="mailto:Hallo32@gmx.net"><Hallo32@gmx.net></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">

Am 16.07.2016 um 05:28 schrieb Thiago Sousa Santos:

</pre>
        <blockquote type="cite">
          <pre wrap="">On Fri, Jul 15, 2016 at 5:30 AM, Hallo32 <a class="moz-txt-link-rfc2396E" href="mailto:Hallo32@gmx.net"><Hallo32@gmx.net></a> wrote:

Hello list,
</pre>
          <blockquote type="cite">
            <pre wrap="">
if I add the encryption and decryption to the working gstreamer pipeline
bellow.

     gst-launch-1.0 filesrc location=big_buck_bunny_1080p_h264.mov
     typefind=true ! qtdemux name=demux demux.video_0   ! queue   !
     video/x-h264  ! h264parse ! mux.  demux.audio_0   ! queue  !
     audio/mpeg  ! aacparse  ! queue  ! mux. mpegtsmux name=mux  !
     tsdemux ! video/x-h264 ! queue ! vpudec frame-drop=false !
     imxv4l2sink name=videosink force-aspect-ratio=true
     max-lateness=1000000 sync=true


     gst-launch-1.0 filesrc location=big_buck_bunny_1080p_h264.mov
     typefind=true ! crypto mode=enc ! crypto mode=dec ! qtdemux
     name=demux demux.video_0 ! queue   ! video/x-h264  ! h264parse  !
     mux.  demux.audio_0   ! queue  ! audio/mpeg  ! aacparse  !  queue  !
     mux. mpegtsmux name=mux  ! tsdemux ! video/x-h264 ! queue ! vpudec
     frame-drop=false ! imxv4l2sink name=videosink
     force-aspect-ratio=true max-lateness=1000000 sync=true


The command fails with

     0:00:00.089051186  1047  0x1838960 LOG                    qtmux


/bamboo/agent-home/xml-data/build-dir/MSSNIC-GR-JOB1/yocto/build.imx6qsabreauto-avb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/isomp4/gstqtmux.c:3704:gst_qt_mux_register:
     Registering muxers
     0:00:00.091218369  1047  0x1838960 LOG                    qtmux


/bamboo/agent-home/xml-data/build-dir/MSSNIC-GR-JOB1/yocto/build.imx6qsabreauto-avb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/isomp4/gstqtmux.c:3742:gst_qt_mux_register:
     Finished registering muxers
     0:00:00.091331379  1047  0x1838960 LOG                    qtmux


/bamboo/agent-home/xml-data/build-dir/MSSNIC-GR-JOB1/yocto/build.imx6qsabreauto-avb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/isomp4/gstqtmux.c:3748:gst_qt_mux_register:
     Registering tags
     0:00:00.091419719  1047  0x1838960 LOG                    qtmux


/bamboo/agent-home/xml-data/build-dir/MSSNIC-GR-JOB1/yocto/build.imx6qsabreauto-avb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/isomp4/gstqtmux.c:3754:gst_qt_mux_register:
     Finished registering tags
     ====== IMXV4L2SINK: 4.0.3 build on Mar 31 2016 12:58:06. ======
     Setting pipeline to PAUSED ...
     display(/dev/fb0) resolution is (1920x1080).
     [INFO]    Product Info: i.MX6Q/D/S
     ====== VPUDEC: 4.0.3 build on Mar 31 2016 12:58:10. ======
          wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Mar 31 2016
     12:57:32)
          vpulib: 5.4.28
          firmware: 3.1.1.46063
     Pipeline is PREROLLING ...
     ERROR: from element /GstPipeline:pipeline0/GstQTDemux:demux: This
     file is incomplete and cannot be played.
     Additional debug info:


/bamboo/agent-home/xml-data/build-dir/MSSNIC-GR-JOB1/yocto/build.imx6qsabreauto-avb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-goo


Do you have an idea why it fails and how it can be fixed?
Did I miss any important information?

Can you provide a more complete log? The crypto element pair is likely
</pre>
          </blockquote>
          <pre wrap="">modifying the stream somehow. Looking closer at the qtdemux logs might
give
us a hint on what exactly was modified.

</pre>
        </blockquote>
        <pre wrap="">Which log settings do you want? Give me the settings and you will get
exactly the log you want.

</pre>
      </blockquote>
      <pre wrap="">
GST_DEBUG=qtdemux:9 should be enough

</pre>
      <blockquote type="cite">
        <pre wrap="">
You can try just to do "filesrc ! crypto mode=enc ! crypto mode=dec !
</pre>
        <blockquote type="cite">
          <pre wrap="">filesink" and check if the resulting file got modified somehow. It should
be the same, right?

</pre>
        </blockquote>
        <pre wrap="">
It should be same file again but they are not exactly the same.
The encrypted ones has 5 bytes added at the end of the file. Each byte has
the value 0x0A. Maybe some padding for the encryption to get the necessary
block size for the encryption.
The other bytes are identical with the source file.

</pre>
      </blockquote>
      <pre wrap="">
Does this file play with qtdemux?



</pre>
      <blockquote type="cite">
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">GStreamer Version:
gst-launch-1.0 --version
gst-launch-1.0 version 1.4.1
GStreamer 1.4.1
Unknown package origin

Unlikely to fix the issue as it is likely in gst-crypto, but latest
</pre>
          </blockquote>
          <pre wrap="">release
is 1.8, might be worth trying to upgrade.

</pre>
        </blockquote>
        <pre wrap="">I have tried 1.8 before I send the mail to the list. I doesn't fix the
problem.

Source gst-crypto: <a class="moz-txt-link-freetext" href="https://github.com/RidgeRun/gst-crypto">https://github.com/RidgeRun/gst-crypto</a> Branch:
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">release-1.0

Best regards


_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>


</pre>
          </blockquote>
          <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>

</pre>
        </blockquote>
        <pre wrap="">Best regards

_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>

</pre>
      </blockquote>
      <pre wrap="">


</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>