capture video h264, miss header

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

capture video h264, miss header

Damiano Pinarello
Hi all,

I use this pipeline on dm365 to capture h264 video from rtsp-server:

  gst-launch \
     rtspsrc latency=50 rtsp://127.0.0.1:3070/delayed.264 ! \
     rtph264depay \
     rtph264pay \
     valve drop=TRUE \
     filesink location=/var/tmp/record.264

When I send ad interrupt valve drop parameter change rom TRUE to FALSE,
and after Xsecs, re-change from FLASE to TRUE. So I obtain a h264 video of Xsecs.

The problem is that I can't play the video.
For me, probably, this is due to the missing of heander h264 beacuse I didn't captured video
from the beginning of the stream. Mainly, I capture video from time X to time Y.

Any suggestions about this isseu?

Tnx in advance,
Damiano


--

 Damiano PINARELLO
 Embedded Software Developer
 Office Phone: +(39) 031 653679 Ext. 4679
 FAX phone: +(39) 031 653283
 Email: [hidden email]
 Street address: Via L. Manara 4, 22036 Erba (CO), Italy
 WebSite: www.bticino.it

------------------------------------------------------------------------------
 Please consider your environmental responsibility before printing this Email
------------------------------------------------------------------------------
 This message and any attachments are confidential and they also are legally
 privileged in accordance with the NDA. If you have received this message in
 error, please notify us and remove it from your system.
------------------------------------------------------------------------------


Ce message, ainsi que tous les fichiers joints à ce message,
peuvent contenir des informations sensibles et/ ou confidentielles
ne devant pas être divulguées. Si vous n'êtes pas le destinataire
de ce message (ou que vous recevez ce message par erreur), nous
vous remercions de le notifier immédiatement à son expéditeur, et
de détruire ce message. Toute copie, divulgation, modification,
utilisation ou diffusion, non autorisée, directe ou indirecte, de
tout ou partie de ce message, est strictement interdite.

This e-mail, and any document attached hereby, may contain
confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any
unauthorized, direct or indirect, copying, disclosure, distribution
or other use of the material or parts thereof is strictly
forbidden.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: capture video h264, miss header

Chuck Crisler-2
Try setting the intra-refresh rate on the server to a higher frequency (more intra-refresh frames transmitted). Then you should probably capture N seconds after receiving an intra-refresh frame rather then simply N seconds from some arbitrary start time.

On Tue, Dec 18, 2012 at 4:22 AM, Damiano Pinarello <[hidden email]> wrote:
Hi all,

I use this pipeline on dm365 to capture h264 video from rtsp-server:

  gst-launch \
     rtspsrc latency=50 rtsp://127.0.0.1:3070/delayed.264 ! \
     rtph264depay \
     rtph264pay \
     valve drop=TRUE \
     filesink location=/var/tmp/record.264

When I send ad interrupt valve drop parameter change rom TRUE to FALSE,
and after Xsecs, re-change from FLASE to TRUE. So I obtain a h264 video of Xsecs.

The problem is that I can't play the video.
For me, probably, this is due to the missing of heander h264 beacuse I didn't captured video
from the beginning of the stream. Mainly, I capture video from time X to time Y.

Any suggestions about this isseu?

Tnx in advance,
Damiano


--

 Damiano PINARELLO
 Embedded Software Developer
 Office Phone: <a href="tel:%2B%2839%29%20031%20653679%20Ext.%204679" value="+39031653679">+(39) 031 653679 Ext. 4679
 FAX phone: <a href="tel:%2B%2839%29%20031%20653283" value="+39031653283">+(39) 031 653283
 Email: [hidden email]
 Street address: Via L. Manara 4, 22036 Erba (CO), Italy
 WebSite: www.bticino.it

------------------------------------------------------------------------------
 Please consider your environmental responsibility before printing this Email
------------------------------------------------------------------------------
 This message and any attachments are confidential and they also are legally
 privileged in accordance with the NDA. If you have received this message in
 error, please notify us and remove it from your system.
------------------------------------------------------------------------------


Ce message, ainsi que tous les fichiers joints à ce message,
peuvent contenir des informations sensibles et/ ou confidentielles
ne devant pas être divulguées. Si vous n'êtes pas le destinataire
de ce message (ou que vous recevez ce message par erreur), nous
vous remercions de le notifier immédiatement à son expéditeur, et
de détruire ce message. Toute copie, divulgation, modification,
utilisation ou diffusion, non autorisée, directe ou indirecte, de
tout ou partie de ce message, est strictement interdite.

This e-mail, and any document attached hereby, may contain
confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any
unauthorized, direct or indirect, copying, disclosure, distribution
or other use of the material or parts thereof is strictly
forbidden.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel