Open abcnorio opened 2 weeks ago
I can't reproduce this issue locally. The instructions on GitHub are outdated and I should probably remove them; the website should be more helpful. In particular, you need to install not only the GStreamer development packages, but also the GStreamer runtime packages specified in the standalone app installation guide.
Thanks, the packages as outlined on the standalone install page were already all installed, just re-check with:
apt-get install libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-alsa
Tried the self-compiled as well as the compiled version from github download - same result. Will later reboot the computer, try again, and try on a different computer (Debian sid, not bullseye) and come back with those infos. Unclear why it affects only the ffv1 codec but not the h264.
Short update, on a different computer (Debian sid) it works, so have to investigate what's the problem on the other computer.
btw - for install instructions you could add:
apt-get install libgl1-mesa-dri
It gave an initial error and did not start without it. Thanks!
btw2 - any idea where to look for the error regarding the ffv1 codec? Does this use ffmpeg or something like that, because ffmpeg works properly. Or is this embedded into the rust code?
libgl1-mesa-dri
is (part of) a graphics driver, which I believe is necessary to run anything that uses OpenGL. The exact one that people need to install varies based on their hardware (e.g. I believe Nvidia cards don't use it).
The ffv1 encoder is indeed part of ffmpeg, which should be installed as a dependency of gstreamer1.0-libav
. Try running the app with the environment variable GST_DEBUG=4
set--you might find the issue somewhere in the logs.
Looks like this is the important part:
0:00:49.725563323 4175428 0x7fe29881cf00 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element videoconvert2:(any) to element capsfilter1:(any)
0:00:49.725576553 4175428 0x7fe29881cf00 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link videoconvert2:src and capsfilter1:sink
0:00:49.725588773 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<ntscrs0:sink> pad has no peer
0:00:49.725678122 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<capsfilter1:src> pad has no peer
0:00:49.725701002 4175428 0x7fe29881cf00 INFO GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: videoconvert2 and capsfilter1 in same bin, no need for ghost pads
0:00:49.725715942 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link videoconvert2:src and capsfilter1:sink
0:00:49.725727762 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<ntscrs0:sink> pad has no peer
0:00:49.725821762 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<capsfilter1:src> pad has no peer
0:00:49.725852062 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked videoconvert2:src and capsfilter1:sink, successful
0:00:49.725862492 4175428 0x7fe29881cf00 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:49.725871091 4175428 0x7fe29881cf00 INFO GST_EVENT gstpad.c:5890:gst_pad_send_event_unchecked:<videoconvert2:src> Received event on flushing pad. Discarding
0:00:49.725888161 4175428 0x7fe29881cf00 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element capsfilter1:(any) to element avenc_ffv1-1:(any)
0:00:49.725899431 4175428 0x7fe29881cf00 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link capsfilter1:src and avenc_ffv1-1:sink
0:00:49.725911411 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<ntscrs0:sink> pad has no peer
0:00:49.726019221 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<avenc_ffv1-1:src> pad has no peer
0:00:49.726056931 4175428 0x7fe29881cf00 INFO GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: capsfilter1 and avenc_ffv1-1 in same bin, no need for ghost pads
0:00:49.726072981 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link capsfilter1:src and avenc_ffv1-1:sink
0:00:49.726085410 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<ntscrs0:sink> pad has no peer
0:00:49.726182500 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<avenc_ffv1-1:src> pad has no peer
0:00:49.726206200 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked capsfilter1:src and avenc_ffv1-1:sink, successful
0:00:49.726215750 4175428 0x7fe29881cf00 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:49.726224340 4175428 0x7fe29881cf00 INFO GST_EVENT gstpad.c:5890:gst_pad_send_event_unchecked:<capsfilter1:src> Received event on flushing pad. Discarding
0:00:49.726239270 4175428 0x7fe29881cf00 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element avenc_ffv1-1:(any) to element output_muxer:(any)
0:00:49.726269920 4175428 0x7fe29881cf00 INFO GST_ELEMENT_PADS gstutils.c:1270:gst_element_get_compatible_pad:<output_muxer> Could not find a compatible pad to link to avenc_ffv1-1:src
0:00:49.726299209 4175428 0x7fe29881cf00 INFO GST_ERROR_SYSTEM gstelement.c:2234:gst_element_message_full_with_details:<decodebin1> posting message: Failed to insert sink
0:00:49.726336309 4175428 0x7fe29881cf00 INFO GST_ERROR_SYSTEM gstelement.c:2261:gst_element_message_full_with_details:<decodebin1> posted error message: Failed to insert sink
0:00:49.726349379 4175428 0x7fe29881cf00 INFO decodebin gstdecodebin2.c:4827:gst_decode_bin_expose:<decodebin1:src_0> added new decoded pad
0:00:49.726369309 4175428 0x7fe29881cf00 INFO GST_STATES gstbin.c:3446:bin_handle_async_done:<decodebin1> committing state from READY to PAUSED, old pending PAUSED
0:00:49.726378209 4175428 0x7fe29881cf00 INFO GST_STATES gstbin.c:3469:bin_handle_async_done:<decodebin1> completed state change, pending VOID
0:00:49.726388549 4175428 0x7fe29881cf00 INFO GST_STATES gstelement.c:2669:_priv_gst_element_state_changed:<decodebin1> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:49.726408769 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<decodebin1:src_0> pad has no peer
0:00:49.726429589 4175428 0x7fe29881cf00 INFO GST_PADS gstpad.c:4309:gst_pad_peer_query:<decodebin1:src_0> pad has no peer
0:00:49.726972256 4175428 0x7fe2a020a920 INFO GST_PARENTAGE gstbin.c:4430:gst_bin_get_by_name: [pipeline0]: looking up child element video_queue
0:00:49.727000676 4175428 0x7fe2a020a920 INFO GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad video_queue:sink
0:00:49.727043606 4175428 0x7fe2a020a920 INFO GST_STATES gstbin.c:2115:gst_bin_get_state_func:<pipeline0> getting state
0:00:49.727867422 4175428 0x7fe2a020a920 INFO GST_PARENTAGE gstbin.c:4430:gst_bin_get_by_name: [pipeline0]: looking up child element video_queue
0:00:49.727884962 4175428 0x7fe2a020a920 INFO GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad video_queue:sink
0:00:49.727917702 4175428 0x7fe2a020a920 INFO GST_STATES gstbin.c:2115:gst_bin_get_state_func:<pipeline0> getting state
0:00:49.729167736 4175428 0x7fe29881cf00 INFO videodecoder gstvideodecoder.c:3348:gst_video_decoder_clip_and_push_buf:<jpegdec1> First buffer since flush took 0:00:00.464465686 to produce
0:00:49.729195296 4175428 0x7fe29881cf00 WARN typefind gsttypefindelement.c:1232:gst_type_find_element_loop:<typefind> error: Internal data stream error.
0:00:49.729205666 4175428 0x7fe29881cf00 WARN typefind gsttypefindelement.c:1232:gst_type_find_element_loop:<typefind> error: streaming stopped, reason not-linked (-1)
0:00:49.729223886 4175428 0x7fe29881cf00 INFO GST_ERROR_SYSTEM gstelement.c:2234:gst_element_message_full_with_details:<typefind> posting message: Internal data stream error.
0:00:49.729242336 4175428 0x7fe29881cf00 INFO GST_ERROR_SYSTEM gstelement.c:2261:gst_element_message_full_with_details:<typefind> posted error message: Internal data stream error.
and looking closer
0:00:49.726239270 4175428 0x7fe29881cf00 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element avenc_ffv1-1:(any) to element output_muxer:(any)
0:00:49.726269920 4175428 0x7fe29881cf00 INFO GST_ELEMENT_PADS gstutils.c:1270:gst_element_get_compatible_pad:<output_muxer> Could not find a compatible pad to link to avenc_ffv1-1:src
Any idea what is missing? A deb?
Hello,
using the GUI with h264 works, but while holding everything constant and switching to ffv1 codec it creates an error
Error creating pipeline: failed to insert sink
Same error using the cli:
and full rust output
OS: Debian bullseye, compiled from source today 2024-11-02 according to instructions here on github.
What dopes this mean and how to solve it? Thanks!