Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing a video by url from command line #178

Open
ffallah opened this issue Sep 18, 2022 · 2 comments
Open

Playing a video by url from command line #178

ffallah opened this issue Sep 18, 2022 · 2 comments

Comments

@ffallah
Copy link

ffallah commented Sep 18, 2022

Hi Guys,
I have a VU+ Solo 4K receiver with OpenVix image installed.
Is it possible to play a YouTube video from command line (SSH) using the video URL ?
Thanks

@Taapat
Copy link
Owner

Taapat commented Sep 19, 2022

Hi,
Why do you need this?
Usually those, who don't know how to work with Enigma python GUI will want to use command line in scripts instead of using enigma GUI.
You can use the gstreamer playbin, but you will lose control over the stream in enigma GUI:
gst-launch-1.0 -v playbin uri='https://...'

I would recommend using the enigma GUI for playback.

@ffallah
Copy link
Author

ffallah commented Sep 22, 2022

Thanks for your answer.
I am more comfortable using SSH and Linux interface rather than GUI :)
I tried your suggestion but it couldn't play any file any file that I threw at it.
It always complains about hardware decoder can't handle streamtype 0

root@vusolo4k:~# gst-launch-1.0 playbin uri=https://filesamples.com/samples/video/m2ts/sample_1280x720_surfing_with_audio.m2ts
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'source': gst.soup.session=context, session=(SoupSession)NULL, force=(boolean)false;
Missing element: audio/x-ac4 decoder
WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: No decoder available for type 'audio/x-ac4'.
Additional debug info:
../git/gst/playback/gsturidecodebin.c(959): unknown_type_cb (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
Pipeline is PREROLLED ...
Prerolled, waiting for buffering to finish...
ERROR: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstDVBVideoSink:dvbvideosink0: There is no codec present that can handle the stream's type.
Additional debug info:
../git/gstdvbvideosink.c(1826): gst_dvbvideosink_set_caps (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstDVBVideoSink:dvbvideosink0:
hardware decoder can't handle streamtype 0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants