Closed EmrysMyrddin closed 2 years ago
GStreamer seems to also complain about metadata not being valid :
➜ archive git:(master) ✗ /Library/Frameworks/GStreamer.framework/Commands/gst-launch-1.0 playbin uri=file://${PWD}/out.h264
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayCocoa\)\ gldisplaycocoa0";
(gst-launch-1.0:24779): GStreamer-Video-CRITICAL **: 17:46:10.750: gst_video_center_rect: assertion 'src->h != 0' failed
(gst-launch-1.0:24779): GStreamer-Video-CRITICAL **: 17:46:10.750: gst_video_center_rect: assertion 'src->h != 0' failed
It is clearly a metadata problem since it works well when transcoded with ffmpeg (H264 -> H264)
In fact it seems normal, raw H264 doesn't seems to have metadata at all on frames. It needs a container to be read properly by a video reader, such as mp4 for example.
Your environment.
What did you do?
Tried do run the archive example.
What did you expect?
I expect a readable video file.
What happened?
The video partially readable but some metadata are probably wrong since it is played at a lower speed than expected and is fastforwarded at each keyframes.