Watch video YouTube with MPlayer
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2043 from 2003/4/10
    From: France
    Hello,

    i would like to know if it possible to play YouTube video in MPlayer in streaming please?

    I add the link but does't work.

    If it's impossible with MPlayer, is there another way with another player?

    Thanks for your answer
  • »19.11.23 - 16:53
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    You need the direct YT-URL of your movie to watch. What you see in Wayfarer or OWB (or any other browser) is an alias-URL, which has to be changed (calculated) to the real URL. The real URL you can copy to MPLAYER, which works perfect.

    To find the real URL are 2 (maybe more) ways:

    1. In OWB open the movie and look at message window, which schows you the real URL
    2. Try to find a online URL converter for YT (afaik are there some...)

    At moment I see no way to get converted URL from Wayfarer - maybe there is one, but I don't know....
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »19.11.23 - 17:07
    Profile
  • Cocoon
    Cocoon
    SkulleateR
    Posts: 43 from 2023/9/19
    AmiTube can use a streaming Player like MPlayer but I don't know if it's usable on MOS ;-)
  • »19.11.23 - 18:51
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    Try this:

    This is the original URL of Youtube (The HU - Song of Woman):
    https://m.youtube.com/watch?v=mdN1U9NvuIc&pp=ygUUdGhlIGh1IHNvbmcgb2Ygd29tYW4%3D

    In message Window of OWB you get this:

    [MediaPlayer] Loading https://rr7---sn-uxax3vh50nugp5-8pxy.googlevideo.com/videoplayback?expire=1700454589&ei=XYxaZYLrFt_Qi9oPj8i8yA8&ip=217.149.173.226&id=o-ACJiJeyjF8ykjM6ZEVkbVyh4DzR9XH-wst4oAxGUsAH9&itag=18&source=youtube&requiressl=yes&mh=d5&mm=31%2C29&mn=sn-uxax3vh50nugp5-8pxy%2Csn-c0q7lnz7&ms=au%2Crdu&mv=m&mvi=7&pl=21&initcwndbps=1407500&spc=UWF9f80-GMi6aS9CIr8LKQy6PNi24LbLCtzxylyRxw&vprv=1&svpuc=1&mime=video%2Fmp4&ns=g0TcIFL5yq87VzGwjAsXJmsP&cnr=14&ratebypass=yes&dur=363.369&lmt=1664462854249335&mt=1700432242&fvip=5&fexp=24007246&beids=24350018&c=MWEB&txp=5538434&n=hROzw8QQoxsCvA&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRQIhANKhbBZimjUssAQN-fra_yu4VUHFye6Lqqmlak8wJFxyAiAyriHTQBUpE-6hHTT2RlBRpE_8I8j_qvQ7CaP_N407Jw%3D%3D&sig=ANLwegAwRgIhALmxiNVm6D9sPnRtpmwPxZ0qUOmZ08B3680zO7G-q09UAiEAiBMJ7eCMdfVH7F7bui8is7glVFylpgl9mGOFGao-4yU%3D&cpn=fDTd9us_YLmrWybx&cver=2.20231116.08.00&ptk=youtube_single&oid=KZIFBwgGAXw0HQXHD5OfCw&pltype=contentugc

    Copy that without the beginn ("[MediaPlayer] Loading ") to Mplayer URL-requester. Runs here perfect!
    If message Stream in't cacheable, try again and be carefull about blanks in URL-Adress......
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »19.11.23 - 22:35
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    kriz
    Posts: 309 from 2005/10/18
    From: No(R)way
    Amitube works, but it cdxl/mpeg1 so not optimal for faster systems ... The direct youtube players always been the best, but always gets outdated when they keep on changing things... For Android i use NewPipe, that is a good one ..
    MacMiniG4 MOS 3.18 rulez ... For music check: Horrordelic Records - Dark Psychedelic Music Since 2011 -
  • »19.11.23 - 22:36
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    Amitube is also useable under MOS, but it is'nt needed. Amitube converts Videos on a certain server to different format and loads it down after. This takes time and many videos are not playable....
    It's easier to look YT in Wayfarer or OWB (oly fullscreen).
    If playing it directly in Mplayer, resolution can be set to 720p - works very fine on G5.
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »19.11.23 - 22:41
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    @kriz: As long as OWB decodes it right and can play the video, it can be played in MPLAYER.
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »19.11.23 - 22:44
    Profile
  • Cocoon
    Cocoon
    SkulleateR
    Posts: 43 from 2023/9/19
    AmiTube + MPlayer got the advantage that the Vid plays with 720p in the background and you can use Wayfarer full speed :-D
  • »19.11.23 - 23:21
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    kriz
    Posts: 309 from 2005/10/18
    From: No(R)way
    Yeah i see you can do that! Thx @SkulleateR!

    From readme:
    - MPlayer to stream directly from YouTube

    https://www.morphos-storage.net/?id=1925542
    MacMiniG4 MOS 3.18 rulez ... For music check: Horrordelic Records - Dark Psychedelic Music Since 2011 -
  • »20.11.23 - 02:18
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    analogkid
    Posts: 657 from 2004/11/3
    From: near myself
    Amitube can passthrough the original video. So you can either download the original mp4 File or get the stream URL for usage with MPlayer. There is no need to convert the video to CDXL or MPEG.

    [ Editiert durch analogkid 20.11.2023 - 05:06 ]
  • »20.11.23 - 05:05
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2043 from 2003/4/10
    From: France
    Quote:

    analogkid a écrit :
    Amitube can passthrough the original video. So you can either download the original mp4 File or get the stream URL for usage with MPlayer. There is no need to convert the video to CDXL or MPEG.

    [ Editiert durch analogkid 20.11.2023 - 05:06 ]


    @analogkid: is there a solution to play the video without AmiTube gui? in shell ?
  • »20.11.23 - 08:00
    Profile Visit Website
  • ghh
  • Cocoon
    Cocoon
    ghh
    Posts: 52 from 2017/7/16
    From: Prague
    I have a modified version of YT2.4 from OS4Depot to work with MorphOS.
    You just need to edit the path to mplayer in the YT.cfg file
    The program will display the video address and offer to download it with requester, or play it with mplayer.

    ytmos2.4.lha
  • »20.11.23 - 15:38
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2043 from 2003/4/10
    From: France
    @ghh: Thanks a lot !!!

    i will try :-)

    in Tools/ drawer, there is a YT_launcher.lha containing a YT executable for AmigaOS4 with source in E language.

    It will be possible to port on MorphOS too?
  • »20.11.23 - 16:26
    Profile Visit Website
  • ghh
  • Cocoon
    Cocoon
    ghh
    Posts: 52 from 2017/7/16
    From: Prague
    I just recompile it with PortablE.
    ytlaunchermos.lha
  • »20.11.23 - 16:58
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    Runs very fine! I think, in the past ,Thomas Igracki mainained YT for MorphOS..... - appreciated to see now an update!
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »20.11.23 - 20:12
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2043 from 2003/4/10
    From: France
    @ghh

    sorry the YT executable was already in the main drawer...

    It will be possible to add a version number ($VER YT 2.4) to YT executable to have a version number showed in Easy2Install please?
  • »21.11.23 - 08:48
    Profile Visit Website
  • ghh
  • Cocoon
    Cocoon
    ghh
    Posts: 52 from 2017/7/16
    From: Prague
    Just a note, for the YT launcher to work, it must be in the directory where YT.rexx is and it must be named that (not YTmos.rexx).
    Download the same archive again.
    ytlaunchermos.lha
  • »21.11.23 - 13:59
    Profile Visit Website
  • Cocoon
    Cocoon
    SkulleateR
    Posts: 43 from 2023/9/19
    @Papiosaur

    Just curious : why is this solution better than AmiTube + MPlayer ??
  • »23.11.23 - 17:52
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    @papiosaur: Seems to be a problem of your Mplayer- or System-config! What videodriver do you use in Mplayer?


    @SkulleateR: Many videos (here) are'nt accessable when useing Amitube and searching is a pain! OWB+Mplayer or Wayfarer works a lot better.
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »23.11.23 - 19:07
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2043 from 2003/4/10
    From: France
    Quote:

    SkulleateR a écrit :
    @Papiosaur
    Just curious : why is this solution better than AmiTube + MPlayer ??

    I don't know which version is better. For my project Easy2Install, i search to play YouTube video of software with MPlayer in streaming without GUI :-)

    Quote:

    Amigaharry2 a écrit :
    @papiosaur: Seems to be a problem of your Mplayer- or System-config! What videodriver do you use in Mplayer?


    i use "cgx_overlay_gui" on a X1950 on G5

    Bizarre, sometime i have the GUI of MPlayer attached to the video (control buttons), sometimes not...any ideas about that?

    [EDIT]
    ok in the 2 overlay mode, the video is attached at the GUI (window resizable) -> graphic bug when i move window in pause mode
    mode cgx_wpa: the video is detached of the GUI (window not resizable) -> no graphic bug when i move window in pause mode
  • »23.11.23 - 19:27
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1230 from 2010/1/6
    From: EU-Austria (Wien)
    I use the same driver on all MOS-machines (Mini, PB, G5, Peg2) and double (on PB also triple) buffered display.
    I can move Mplayer-window during playing or in pause mode without loosing content. Window is reziseable.
    Mplayer is Version 1.4 beta1 from 16.09.2020.
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »23.11.23 - 20:47
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2043 from 2003/4/10
    From: France
    Quote:

    Amigaharry2 a écrit :
    I use the same driver on all MOS-machines (Mini, PB, G5, Peg2) and double (on PB also triple) buffered display.
    I can move Mplayer-window during playing or in pause mode without loosing content. Window is reziseable.
    Mplayer is Version 1.4 beta1 from 16.09.2020.



    I use same version of MPlayer, after some tests, the bug is present only in pause mode and with streaming flux and also with a video file in the 2 overlay mode.

    Maybe bigfoot could resolve this bug?

    Config: G5 + X1950

    [ Edité par Papiosaur 24.11.2023 - 10:38 ]
  • »24.11.23 - 10:36
    Profile Visit Website