Re: Read frame by frame mp4 file, need exampl e.
Антон Шаров via gstreamer-devel <[email protected]>
| Newsgroups | gmane.comp.video.gstreamer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi. There was a bug in my pipe (hence WARN messages) and now my approach starts somehow work ( https://gist.github.com/sharov-am/78949b8866235ca14112818385893152 ). Given fps=15, code in gist generate jpeg images for 1 sec., namely 14 images, and then start looping forever. Here is some dbg messages: Step START msg [cnt=0] time = -1, pos = -1, def =-1, bytes = -1 ===NEW STEP EVENT RAISE===== Step START msg [cnt=1] time = -1, pos = -1, def =-1, bytes = -1 ===NEW STEP EVENT RAISE===== Step START msg Step DONE msg [cnt=2] time = 132000000, pos = -1, def =0, bytes = -1 ===NEW STEP EVENT RAISE===== Step START msg Step START msg Step DONE msg //skipped [cnt=12] time = 804000000, pos = -1, def =0, bytes = -1 ===NEW STEP EVENT RAISE===== Step START msg Step START msg Step DONE msg [cnt=13] time = 871000000, pos = -1, def =0, bytes = -1 ===NEW STEP EVENT RAISE===== Step START msg Step START msg Step DONE msg [cnt=14] time = 938000000, pos = -1, def =0, bytes = -1 ===NEW STEP EVENT RAISE===== As you may notice, time is changing but everything else not. More over, on 15 iteration var result = pipeline.QueryPosition(Format.Buffers, out var pos); return false and Error message in console: ERROR videodecoder gstvideodecoder.c:2016:gst_video_decoder_src_query_default:<d3d11h264dec0> query failed and it starts looping forever… So, what I’m doing wrong, why it handles only 1 sec. of video and then stuck? How can I advance stream to next frames? Thanks in advance.