<div dir='ltr'>Thx for the reply.<div>But it didnt help. Another idea?</div><div><br></div><div>My Pipelines:</div><div>gst-launch-1.0 -v filesrc location=test.h264  ! h264parse ! decodebin ! queue ! omxh264enc !  "video/x-h264,framerate=25" ! h264parse ! mp4mux ! filesink location=test.mp4</div><div><br></div><div>or</div><div><span style="font-size: 12pt;">gst-launch-1.0 -v filesrc location=test.h264  ! h264parse ! decodebin ! queue ! omxh264enc !  "video/x-h264,framerate=25/1" ! h264parse ! mp4mux ! filesink location=test.mp4</span></div><div><br></div><div>or</div><div>gst-launch-1.0 -v filesrc location=test.h264  ! h264parse ! decodebin ! queue ! omxh264enc !  "video/x-h264,framerate=(fraction)25/1" ! h264parse ! mp4mux ! filesink location=test.mp4</div><div><br></div><div><br></div><div><br></div><div><div>pi@raspberrypi ~ $ gst-launch-1.0 -v filesrc location=test.h264  ! h264parse ! decodebin ! queue ! omxh264enc !  "video/x-h264,framerate=25/1" ! h264parse ! mp4mux ! filesink location=test.mp4</div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is PREROLLING ...</div><div>/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse2.GstPad:sink: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:sink: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstGhostPad:sink: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000e27640028ac2b402802dd00f1226a01000528ee025cb0</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse2.GstPad:src: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)byte-stream, alignment=(string)au</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)byte-stream, alignment=(string)au</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:sink: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)byte-stream, alignment=(string)au</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)byte-stream, alignment=(string)au</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)byte-stream, alignment=(string)au</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:sink: caps = video/x-h264, width=(int)1280, height=(int)720, parsed=(boolean)true, stream-format=(string)byte-stream, alignment=(string)au</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad4: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1</div><div>/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad4: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1</div><div>ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0: Internal data stream error.</div><div>Additional debug info:</div><div>gstomxvideodec.c(1670): gst_omx_video_dec_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:</div><div>stream stopped, reason not-linked</div><div>ERROR: pipeline doesn't want to preroll.</div><div>Setting pipeline to NULL ...</div><div>Freeing pipeline ...</div></div><div><br></div><div><br><div><hr id="stopSpelling">Date: Thu, 20 Mar 2014 14:15:01 -0700<br>From: <a href="/user/SendEmail.jtp?type=node&node=4666046&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br>To: <a href="/user/SendEmail.jtp?type=node&node=4666046&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>Subject: Re: RaspberryPi .H264 file to MP4<br><br>

        On Thu, 2014-03-20 at 10:52 -0700, Hamo61 wrote:
<br><br>Hi,
<br><div class="ecxshrinkable-quote"><div class='shrinkable-quote'><br>> i wanted to transcode my video from the raspicam in mp4. But i always get an
<br>> error. Is my pipeline wrong or is there another problem?
<br>> 
<br>> This is my pipelin:
<br>> gst-launch-1.0 -v filesrc location=testfile.h264  ! h264parse ! decodebin !
<br>> queue ! omxh264enc !  "video/x-h264,framerate=25" ! h264parse ! mp4mux !
<br>> filesink location=test.mp4
<br>>
<br>> Actually i want to save it from the RaspiCam directly in Mp4. My Pipeline
<br>> for that is: 
<br>> raspivid -t 0 -h 720 -w 1280 -fps 25 -vf -b 2000000 -n -o - | gst-launch-1.0
<br>> -v fdsrc ! h264parse ! decodebin ! queue ! omxh264enc !
<br>> "video/x-h264,framerate=25" ! h264parse ! mp4mux ! filesink
<br>> location=test.mp4
<br>> 
<br>> I would be happy if one of these would work.
<br>> 
<br>> Here is the Error-Message:
<br>> pi@raspberrypi ~ $ gst-launch-1.0 -v filesrc location=testfile.h264  !
<br>> h264parse ! decodebin ! queue ! omxh264enc !  "video/x-h264,framerate=25" !
<br>> h264parse ! mp4mux ! filesink location=test.mp4
<br>> Setting pipeline to PAUSED ...
<br>> Pipeline is PREROLLING ...
<br>>  (...)
<br>> ERROR: from element
<br>> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:
<br>> Internal data stream error.
<br>> Additional debug info:
<br>> gstomxvideodec.c(1670): gst_omx_video_dec_loop ():
<br>> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:
<br>> stream stopped, reason not-linked
</div></div>Try with framerate=25/1 or 'framerate=(fraction)25' - if you write
<br>framerate=25 then it will be deserialised to an integer field, which is
<br>not compatible with a fraction field, and then it won't link..
<br><br>Cheers
<br> -Tim
<br><br>-- 
<br>Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="nofollow" target="_blank" link="external">http://www.centricular.com</a><br><br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4666045&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" target="_blank" link="external">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold;">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/RaspberryPi-H264-file-to-MP4-tp4666043p4666045.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/RaspberryPi-H264-file-to-MP4-tp4666043p4666045.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;line-height:1.5em;">
                
                To unsubscribe from RaspberryPi .H264 file to MP4, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble:email.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble:email.naml-instant_emails%21nabble:email.naml-send_instant_email%21nabble:email.naml" rel="nofollow" style="font:9px serif;" target="_blank" link="external">NAML</a>
        </div></div></div>                                      </div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/RaspberryPi-H264-file-to-MP4-tp4666043p4666046.html">RE: RaspberryPi .H264 file to MP4</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>