<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 15, 2016 at 5:30 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
<br>
<br>
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>
    /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>
    /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>
    /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>
    /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>
    /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></blockquote><div><br></div><div>Can you provide a more complete log? The crypto element pair is likely modifying the stream somehow. Looking closer at the qtdemux logs might give us a hint on what exactly was modified.<br><br></div><div>You can try just to do "filesrc ! crypto mode=enc ! crypto mode=dec ! filesink" and check if the resulting file got modified somehow. It should be the same, right?<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<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></blockquote><div><br></div><div>Unlikely to fix the issue as it is likely in gst-crypto, but latest release is 1.8, might be worth trying to upgrade.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
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">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></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Thiago Sousa Santos</div>
</div></div>