[gst-devel] continuous buffer timestamp / freeze element
SP GLE
spglegle at yahoo.fr
Thu Aug 3 13:13:03 CEST 2006
Hello,
I can't use the 'freeze' element to produce a video
stream from an image
file or even a video file, here are the tests ::
1 - Reading an image file, producing a video stream an
displaying the result with a timeoverlay :
>>
gst-launch filesrc location=/tmp/hd2.jpg ! decodebin !
videorate ! freeze !
video/x-raw-yuv,framerate=\(fraction\)15/1 !
videoscale !
video/x-raw-yuv,format:fourcc=I420,width=300,height=100,framerate=\(fraction\)15/1
! timeoverlay ! ffmpegcolorspace ! ximagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: Element "ximagesink0" warns:
gstbasesink.c(1876): gst_base_sink_chain_unlocked ():
/pipeline0/ximagesink0:
Received buffer without a new-segment. Assuming
timestamps start from 0.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
<<
The image is properly displayed but the timeoverlay
does not increase, it's always '0:00:00.000'.
2 - Reading a video file, producing a video stream an
displaying the result with a timeoverlay :
>>
gst-launch filesrc location=/tmp/02_helix.3gp !
decodebin ! videorate ! freeze !
video/x-raw-yuv,framerate=\(fraction\)15/1 !
videoscale !
video/x-raw-yuv,format:fourcc=I420,width=300,height=100,framerate=\(fraction\)15/1
! timeoverlay ! ffmpegcolorspace ! ximagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
<<
Only the first frame of the video is displayed, the
timeoverlay is displayed and evolves but stops when
the end of the video file happens,
so the last value of displayed time is the duration of
the video.
What's the right way to produce a continuous
(infinite...) video stream from an image file ?
Thanks.
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com
More information about the gstreamer-devel
mailing list