<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 16, 2016 at 8:25 AM, Hallo32 <span dir="ltr"><<a href="mailto:Hallo32@gmx.net" target="_blank">Hallo32@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
Am 16.07.2016 um 05:28 schrieb Thiago Sousa Santos:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Jul 15, 2016 at 5:30 AM, Hallo32 <<a href="mailto:Hallo32@gmx.net" target="_blank">Hallo32@gmx.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello list,<br>
<br>
if I add the encryption and decryption to the working gstreamer pipeline<br>
bellow.<br>
<br>
     gst-launch-1.0 filesrc location=big_buck_bunny_1080p_h264.mov<br>
     typefind=true ! qtdemux name=demux demux.video_0   ! queue   !<br>
     video/x-h264  ! h264parse ! mux.  demux.audio_0   ! queue  !<br>
     audio/mpeg  ! aacparse  ! queue  ! mux. mpegtsmux name=mux  !<br>
     tsdemux ! video/x-h264 ! queue ! vpudec frame-drop=false !<br>
     imxv4l2sink name=videosink force-aspect-ratio=true<br>
     max-lateness=1000000 sync=true<br>
<br>
<br>
     gst-launch-1.0 filesrc location=big_buck_bunny_1080p_h264.mov<br>
     typefind=true ! crypto mode=enc ! crypto mode=dec ! qtdemux<br>
     name=demux demux.video_0 ! queue   ! video/x-h264  ! h264parse  !<br>
     mux.  demux.audio_0   ! queue  ! audio/mpeg  ! aacparse  !  queue  !<br>
     mux. mpegtsmux name=mux  ! tsdemux ! video/x-h264 ! queue ! vpudec<br>
     frame-drop=false ! imxv4l2sink name=videosink<br>
     force-aspect-ratio=true max-lateness=1000000 sync=true<br>
<br>
<br>
The command fails with<br>
<br>
     0:00:00.089051186  1047  0x1838960 LOG                    qtmux<br>
<br>
/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:<br>
     Registering muxers<br>
     0:00:00.091218369  1047  0x1838960 LOG                    qtmux<br>
<br>
/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:<br>
     Finished registering muxers<br>
     0:00:00.091331379  1047  0x1838960 LOG                    qtmux<br>
<br>
/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:<br>
     Registering tags<br>
     0:00:00.091419719  1047  0x1838960 LOG                    qtmux<br>
<br>
/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:<br>
     Finished registering tags<br>
     ====== IMXV4L2SINK: 4.0.3 build on Mar 31 2016 12:58:06. ======<br>
     Setting pipeline to PAUSED ...<br>
     display(/dev/fb0) resolution is (1920x1080).<br>
     [INFO]    Product Info: i.MX6Q/D/S<br>
     ====== VPUDEC: 4.0.3 build on Mar 31 2016 12:58:10. ======<br>
          wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Mar 31 2016<br>
     12:57:32)<br>
          vpulib: 5.4.28<br>
          firmware: 3.1.1.46063<br>
     Pipeline is PREROLLING ...<br>
     ERROR: from element /GstPipeline:pipeline0/GstQTDemux:demux: This<br>
     file is incomplete and cannot be played.<br>
     Additional debug info:<br>
<br>
/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<br>
<br>
<br>
Do you have an idea why it fails and how it can be fixed?<br>
Did I miss any important information?<br>
<br>
</blockquote>
Can you provide a more complete log? The crypto element pair is likely<br>
modifying the stream somehow. Looking closer at the qtdemux logs might give<br>
us a hint on what exactly was modified.<br>
</blockquote></div></div>
Which log settings do you want? Give me the settings and you will get exactly the log you want.<span class=""><br></span></blockquote><div><br></div><div>GST_DEBUG=qtdemux:9 should be enough <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can try just to do "filesrc ! crypto mode=enc ! crypto mode=dec !<br>
filesink" and check if the resulting file got modified somehow. It should<br>
be the same, right?<br>
</blockquote>
<br></span>
It should be same file again but they are not exactly the same.<br>
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.<br>
The other bytes are identical with the source file.<span class=""><br></span></blockquote><div><br></div><div>Does this file play with qtdemux?<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
GStreamer Version:<br>
gst-launch-1.0 --version<br>
gst-launch-1.0 version 1.4.1<br>
GStreamer 1.4.1<br>
Unknown package origin<br>
<br>
</blockquote>
Unlikely to fix the issue as it is likely in gst-crypto, but latest release<br>
is 1.8, might be worth trying to upgrade.<br>
</blockquote></span>
I have tried 1.8 before I send the mail to the list. I doesn't fix the problem.<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Source gst-crypto: <a href="https://github.com/RidgeRun/gst-crypto" rel="noreferrer" target="_blank">https://github.com/RidgeRun/gst-crypto</a> Branch:<br>
release-1.0<br>
<br>
Best regards<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote>
Best regards<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Thiago Sousa Santos</div>
</div></div>