maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WIP] LLs Video Player (https://talk.maemo.org/showthread.php?t=92141)

llelectronics 2015-02-18 21:24

Re: [WIP] LLs Video Player
 
And a quick bugfix release.
Youtube titles are shown now again:
RPM

cvp 2015-02-18 22:47

Re: [WIP] LLs Video Player
 
work very gooood! Thank you :)
once is missing - DL YT as MP3 :P

another quetion. Is it possible to stream from Dreambox to Jolla Phone with this Player?

llelectronics 2015-02-19 09:29

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by cvp (Post 1461216)
work very gooood! Thank you :)
once is missing - DL YT as MP3 :P

another quetion. Is it possible to stream from Dreambox to Jolla Phone with this Player?

Dreambox ?
You mean the DVB Streaming box ? I am not sure. Just try and see.

Kabouik 2015-02-19 09:37

Re: [WIP] LLs Video Player
 
The new UI is very good!

Casanunda 2015-02-26 21:29

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by cvp (Post 1461216)

another quetion. Is it possible to stream from Dreambox to Jolla Phone with this Player?

I have a VuPlus solo2 box - watching the transcoded stream with LLs Video player works, the original stream doesn't.

Would be great to be able to switch within a playlist...

parasemic 2015-02-28 09:43

Re: [WIP] LLs Video Player
 
The UI is cool but I haven't been able to watch youtube video since christmas or so. It gives the "forbidden" error every time

llelectronics 2015-03-02 11:52

Re: [WIP] LLs Video Player
 
Forbidden error ?
Thats new to me. I know there are some videos on youtube that produce that problem when listed private. But do you get this on every video ?

Is there anything else in the error message ?

parasemic 2015-03-03 15:27

Re: [WIP] LLs Video Player
 
Every video. Mostly it's just "forbidden" with a 3 in the top left corner. Once I've seen some other errors. When it "broke" the video just showed a still picture hinting towards banned 3rd party app.

llelectronics 2015-03-03 16:32

Re: [WIP] LLs Video Player
 
Ah and you did not enable directYoutube in settings ?
Hmm... normaly it should not use the setting anymore (as it was removed and used by default now). But I guess it tries to use ytapi for you still somehow.
Would you mind removing the config of of harbour-videoPlayer in /home/nemo/.local/share/ and see if this fixes it for you. You can do so by Terminal , ssh or using File Browser.

Also I wonder if anyone else is experiencing this problem (I tried almost everything to avoid this problem beforehand) ?

parasemic 2015-03-04 15:34

Re: [WIP] LLs Video Player
 
Did not change the setting. I've reinstalled the app and removed the config. No luck.

llelectronics 2015-03-04 16:41

Re: [WIP] LLs Video Player
 
So if isn't the ytapi error it must be something else which blocking it for you. As normal youtube api is used to gather the video stream url.

Can you watch videos on youtube with the normal browser or webcat ?

HtheB 2015-04-22 19:39

Re: [WIP] LLs Video Player
 
Will you please add support for RTMP?
Would be great to have a native solution for this.

llelectronics 2015-04-28 07:23

Re: [WIP] LLs Video Player
 
If the underlying gstreamer library used for audio/video stuff does not support rtmp then I cannot do much about it.

pichlo 2015-04-28 08:49

Re: [WIP] LLs Video Player
 
Just a quick courtesy note, I found that LLs Video Player has also fallen victim of this bug :(

HtheB 2015-04-28 12:09

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by llelectronics (Post 1468715)
If the underlying gstreamer library used for audio/video stuff does not support rtmp then I cannot do much about it.

I didn't know gstreamer didn't support RTMP...
How about using ffmpeg for protocols that aren't supported with gstreamer? Android apps like MX Player and BSPlayer are using it, but the problem is, when I minimize the app or lock the screen, it pauses :(

llelectronics 2015-04-29 10:52

Re: [WIP] LLs Video Player
 
Quote:

Just a quick courtesy note, I found that LLs Video Player has also fallen victim of this bug
Can't reproduce it here on 1.1.4.29 if you start the app in portrait and
then switch to landscape.

Quote:

Originally Posted by HtheB (Post 1468746)
I didn't know gstreamer didn't support RTMP...
How about using ffmpeg for protocols that aren't supported with gstreamer? Android apps like MX Player and BSPlayer are using it, but the problem is, when I minimize the app or lock the screen, it pauses :(

There are many things to do to get ffmpeg working.
First get it to work with wayland or the hardware acceleration on the Jolla.
Then you need a qt5 bridge to use it from qml apps.

I am still waiting for gstreamer 1.x that should fix that issue and guess what gstreamer has also an ffmpeg plugin so it can utilize ffmpeg aswell.
Though support for different protocols and codecs needs to be compiled in.

youmeego 2015-04-29 16:25

Re: [WIP] LLs Video Player
 
http://icdrama.tips/

Is it possible to include above video RSS 2.0 player in your app?

llelectronics 2015-04-30 08:25

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by youmeego (Post 1468870)
http://icdrama.tips/

Is it possible to include above video RSS 2.0 player in your app?

I'll investigate. But for now the default rss feed linked there cannot be downloaded or looked at.
Adding it to tidings (or any other rss feed reader does not work either)
So I am not sure how to deal with it.

stickymick 2015-05-04 13:06

Re: [WIP] LLs Video Player
 
Do you plan to implement "Stretch to screen/crop/resize" options in a future release?

llelectronics 2015-05-06 08:39

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by stickymick (Post 1469329)
Do you plan to implement "Stretch to screen/crop/resize" options in a future release?

Yeah in the future with gstreamer 1.x this should be no problem.
The implementation currently is very crashy therefor I did not add that feature yet.

HtheB 2015-05-09 11:25

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by llelectronics (Post 1468839)
There are many things to do to get ffmpeg working.
First get it to work with wayland or the hardware acceleration on the Jolla.
Then you need a qt5 bridge to use it from qml apps.

I am still waiting for gstreamer 1.x that should fix that issue and guess what gstreamer has also an ffmpeg plugin so it can utilize ffmpeg aswell.
Though support for different protocols and codecs needs to be compiled in.

I've seen ffmpeg showing up on the Warehouse, maybe you could try it out to see if you could add it to LLS vPlayer.

llelectronics 2015-05-09 17:37

Re: [WIP] LLs Video Player
 
As stated before ffmpeg binary isn't enough.
It needs hardware acceleration support.
It needs a qt5 binding otherwise it will be useless to me.

And no I don't intend to write this all by myself. (too much time waster and to high risk that the next update might break everything)

llelectronics 2015-05-13 14:55

Re: [WIP] LLs Video Player
 
Update: 0.9-3 is out now.

The only change is the switch to Youtube API v3 to retrieve titles of youtube videos. API v2 is no longer working (Youtube turned it off basically)

Get the RPM here

Eminem 2015-05-27 19:13

Re: [WIP] LLs Video Player
 
Can you make right swiping when watching a video not ending it? I often try to remove lint, dust etc when watching a video and having it shut down when i swipe right is a pain in the behind. :(
And adding skip forward/backward buttons with 10 seconds or personal time skipping would be great.
Thanks for a great video player. :D

llelectronics 2015-05-28 08:22

Re: [WIP] LLs Video Player
 
Quote:

Can you make right swiping when watching a video not ending it?
Sadly this is not possible with its current implementation and has a reason.
In its earlier incarnation I had the videoplayer page set up as the mainpage so a right swipe would not kill the audio/video playing.
But that introduced new problems. Due to the extremely poor gstreamer version on SailfishOS currently it every now and then crashes and freezes the player completely. Especially on URL/File Open changes.
And of course it also costs memory.
Therefore I created a new main page and load the videoplayer page on demand. This most of the times works better (crashes due to gstreamer are down by 80%) and uses lesser memory.

Quote:

And adding skip forward/backward buttons with 10 seconds or personal time skipping would be great.
I don't see much space for this to be implemented.

Quote:

Thanks for a great video player.
Thanks for your feedback.

llelectronics 2015-05-29 15:52

Re: [WIP] LLs Video Player
 
Update: 0.9-4 is there

Big update as it introduces youtube-dl integration in the OpenUrl page.
So now LLs Video Player supports all of these streaming sites: https://rg3.github.io/youtube-dl/supportedsites.html

However not all are supported by gstreamer on SailfishOS (e.g. Apple Trailers site and some movs seem not to work). Be aware of geo location blocks aswell.
Everything that is playable should be downloadable aswell.

I also fixed a small but annoying bug when searching on youtube and clicking a search result would tend to ignore the WebView.ignoreRequest and load the corrupt video page anyways.
This resulted in the annoyance that when you swipe back after watching the youtube video you would land on a broken site.
It should now go back to the last known url.
Though as youtubes mobile site nowadays does cache very much in javascript instead of relying on the browser it might not always be the site with the fully populated search results.
(Most noticable on channel sites were swiping back brings you back to the channels main site)

Short demonstration video: https://www.youtube.com/watch?v=7mbs3k-UjOw

Get RPM from openrepos.

llelectronics 2015-07-31 16:30

Re: [WIP] LLs Video Player
 
Update: Version 0.9-5 is there.

Several bugfixes regarding video player page and remote urls landed.
I hope to address freezes that occur when playing back several remote videos in one instance which keeped gstreamer to behave strangely and hang very long.
Forcing to stop the video and destroying the videooutput on deactivation of the video player page seem to solve this issues.

I also fixed broken edge swipes for newer SailfishOS versions and added TOHKBD support by adding 3 handy shortcuts for playing and pause aswell as seeking.

Changes:
  • Fixed Broken Edge Swipes in Landscape since Äijänpäivänjärvi
  • Fixed remote video playing not loading successfully after a couple of
    remote videos played back
  • Stop MediaPlayer on videoPlayer deactivating
  • Explicetely Destroy video on videoPlayer deactivating
  • Added keyboard shortcuts for TOHKBD users
    • Space Play/Pause
    • Left/Right Arrow jump -5/+5 secs

Get the RPM from OpenRepos.

HtheB 2015-07-31 16:37

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by llelectronics (Post 1478380)
Update: Version 0.9-5 is there.

Several bugfixes regarding video player page and remote urls landed.
I hope to address freezes that occur when playing back several remote videos in one instance which keeped gstreamer to behave strangely and hang very long.
Forcing to stop the video and destroying the videooutput on deactivation of the video player page seem to solve this issues.

I also fixed broken edge swipes for newer SailfishOS versions and added TOHKBD support by adding 3 handy shortcuts for playing and pause aswell as seeking.

Changes:
  • Fixed Broken Edge Swipes in Landscape since Äijänpäivänjärvi
  • Fixed remote video playing not loading successfully after a couple of
    remote videos played back
  • Stop MediaPlayer on videoPlayer deactivating
  • Explicetely Destroy video on videoPlayer deactivating
  • Added keyboard shortcuts for TOHKBD users
    • Space Play/Pause
    • Left/Right Arrow jump -5/+5 secs

Get the RPM from OpenRepos.


Thanks for the update!

I was wondering if you can add some support for dreambox streams. I have an Android app (dreamdroid) which I can pick "stream", but it ends up downloading the stream with the default sailfish browser :(

llelectronics 2015-07-31 17:44

Re: [WIP] LLs Video Player
 
I don't know dreambox streams.
Did you try copying the stream url and try loading it in LLs Video Player?

nodevel 2015-07-31 17:56

Re: [WIP] LLs Video Player
 
Thanks for the new version!

I have one feature request/suggestion:
Since it already utilizes youtube-dl, could you add support for some of its functions, such as choosing the quality, and more importantly, could you add an option to cache (download) the video instead of playing it?
Maybe an ability to copy the video URL would do, but it would be a nice addition to be able to cache the video for later.

Thanks.

llelectronics 2015-07-31 19:43

Re: [WIP] LLs Video Player
 
You can already choose the video quality for youtube videos and download them.

HtheB 2015-07-31 23:31

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by llelectronics (Post 1478387)
I don't know dreambox streams.
Did you try copying the stream url and try loading it in LLs Video Player?

thats the problem, i dont get to see the link with the sailfish browser :(
I will pm you the details on how to get my stream so you can check it out :)

nodevel 2015-08-01 06:02

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by llelectronics (Post 1478395)
You can already choose the video quality for youtube videos and download them.

Ah, my bad, I must have been using some older version!

But I still cannot choose the quality of (for example) this video, even though the youtube-dl script shows different formats/qualities. Or maybe I juat can't find the option in the UI :rolleyes:

llelectronics 2015-08-01 08:57

Re: [WIP] LLs Video Player
 
Quality changes only works for youtube so far as this is the only plattform I can check what the codecs are and if it they are supported.

Schturman 2015-08-01 10:41

Re: [WIP] LLs Video Player
 
Hi
I have a little problem when I want to save video from link.
For example I opened video link in browser -> copied it -> inserted to "Enter URL" -> press "Load URL" and now when it finish to load I can swipe down and choose "Download". It will download file but without suffix :( Now if I will swipe down again I can choose "Download with Curl" and now it will save file with suffix.
Why it can't download in first time with suffix ?
Thanks

llelectronics 2015-08-06 09:35

Re: [WIP] LLs Video Player
 
Quote:

Why it can't download in first time with suffix ?
Interesting question.
I will investigate this. Maybe there is no suffix given in the file location (youtube for example does not give any) and the QtNetworkAccessManager does not to seem autodetect and add a suffix which curl does apparently.

edit: Apparently QNetworkAccessManager gets the Mimetype "application/octet-stream" so it does not add an extension to the filename. I am not sure I can fix that so fast.

Schturman 2015-08-06 12:54

Re: [WIP] LLs Video Player
 
Quote:

Originally Posted by llelectronics (Post 1478789)
Interesting question.
I will investigate this. Maybe there is no suffix given in the file location (youtube for example does not give any) and the QtNetworkAccessManager does not to seem autodetect and add a suffix which curl does apparently.

edit: Apparently QNetworkAccessManager gets the Mimetype "application/octet-stream" so it does not add an extension to the filename. I am not sure I can fix that so fast.

Thanks for answer, not a problem. Maybe you can add "Download with curl" near to the first "Download"? In this case we can download directly with curl and suffix.

llelectronics 2015-08-06 12:59

Re: [WIP] LLs Video Player
 
Hmm... ok another update.
Curl isn't more intelligent then QNetworkAccess.
I found that I just added .mp4 to every file it downloads :P

So this is no real solution either.
[s]I digged in a little bit more and found out that Youtube tries to hide their mimetype so that even running a mimetype check on the file after downloaded turns out to be a application/octet-stream.

So for now I don't see a solution. The only thing I could do is hardcode the suffix somehow for the expected youtube file.[/s]

edit: This is all crap I wrote above (except for curl which I really hardcoded to use .mp4 for every filename)

I found a solution. By default QMimeDatabase is prioritising filename over filecontent when it comes to detecting the mimetype. As the youtube videos are detected as application/octet-stream on downloading. But after the file is downloaded and the file content is clearly a video file I can force QMimeDatebase to only scan the file content to get the correct mimetype as a normal scan with the filename .bin would throw out application/octet-stream again.
And guess what this seems to work.

So basically this means:
If you download a youtube video it will get the ending .bin for the initial filename. If the download is finished this should be renamed to webm mp4 or flv or whatever the file really is.

Basically this is true for every file you want to download that does not provide a file ending.
Ulrs which have a file ending will initially have the correct file ending also during download.

I know that is a lot of explaination. But I think its fine for some of you to see how complicated easy things can get sometimes.

Schturman 2015-08-06 14:47

Re: [WIP] LLs Video Player
 
Cool! Thanks ;)

llelectronics 2015-08-06 15:57

Re: [WIP] LLs Video Player
 
Update: 0.9-6 includes now this Download Manager fix.
Enjoy.

RPM


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8