Showing posts with label Mplayer. Show all posts
Showing posts with label Mplayer. Show all posts

Friday, 15 July 2016

Updated SMTube on X1000

Today I wanted to take a look at the recently updated SMTube 16.6.0 for AmigaOS4.1 Final Edition on the AmigaOne X1000.


SMTube is a program for playing back YouTube videos via a simple search GUI, without all the pesky ads and annoying pop ups you get on the YouTube website itself. Ironic that YouTube Red charges a monthly fee to remove the ads, when this program does it for free...

Since the last time I looked at this program on this blog, YouTube has updated their website multiple times, most likely to ensure it breaks this program so it no longer worked under AmigaOS4 or other platforms SMTube is available on.

However, the good news is that this latest version of SMTube solves the problems and now can work again with YouTube! Zzd10h handled the work on porting this to AmigaOS 4.1 - thanks mate!

Firing up my X1000 I felt the need to change my backdrop again as it has been a while since I did it. I hope you like it, I certainly do! As always click/tap on the photos to see the larger version.


SMTube is available on OS4Depot here. Please note that SMTube is a QT program and as such requires QT4.7 to be installed in order for it to work.

I covered QT4.7 installation and configuration on my X1000 in this previous blog post if you don't already have it installed. Also remember to install the later Quickfix 7 patch for QT4.7 which I covered in this blog post if you need more information about it.

Also you will need to download the latest version of MPlayer and ffmpeg, also available on OS4Depot. I already have MPlayer installed previously so I don't need to do this here.

Here is the downloaded and extracted ffmpeg archive, ready to extract to the SYS:Utilities drawer:



Update 16/7/2016: I missed a step that the ffmpeg and ffplay needed to be unpacked first. I have updated the instructions below to reflect this - thanks to MickJT for pointing this out. Sorry for that!

Note that the Altivec drawer has the ffplay and ffmpeg programs needed for the X1000 (since it supports Altivec), but they are compressed with xdelta3 and need to be unpacked before you can use it:


To do this, from the Shell go to the ffmpeg drawer and then run "Unpack" and the ffmpeg and ffplay programs will be expanded into their respective altivec and generic drawers, ready for use:



I then Ran the ffmpeg program once from the Shell, to be sure that it worked, and that APPDIR:ffmpeg setting in SMTube can find it.


Having done this, I next moved onto SMTube. I renamed my old SMTube drawer to SMTube.old and extracted the new version - here is the drawer after extraction:


Inside the Amiga drawer is the playvideo.rexx file that we used to need to modify with our player and ffmpeg settings in older versions.

However in this new version it has changed, but the AmigaOS4_readme.txt documentation in the SMTube archive unfortunately has not - please ignore this documentation as it is no longer accurate.

On inspection of the rexx file It clearly now stores it's settings in ENVARC:SMTube.ini instead.


This file is only created on the initial launch of SMTube, so lets do that first:


Here is the SMTube About... showing the new 2016 version which is 16.6.0:


If I search for Warp3D nova videos (I couldn't resist), I can see the interface is still very similar to the old version which is great:


If I then try to run a video at this point, I get an error prompt like below:


If I answer Yes then it updates the scripts in SMTube to be compatible to the latest YouTube requirements to play videos - all done:


I then close SMTube so that the ENVARC:SMTube.ini file has been created. I then edit it to modify it's settings for MPlayer - this is the file before I changed it:


Some examples are included in the file for MPlayer based on the setup on your X1000 - if you have a Radeon HD video card with overlay support or not (ie. Radeon HD 6xxx or 7xxx series for overlay support with the Radeon HD v2 drivers purchased from AMIStore).

Also it depends on if you are running the SDL-Player or MUI-MPlayer (Overlay / Non-Overlay) or LiveForIt Player! Would love one MPlayer version that supported everything!

In my case I have the overlay compatible card with Radeon HD v2 installed and MUI-MPlayer Overlay, so I modify the file with the MPlayer options from the example. I also modify the log output window to be at the bottom right of the screen (as I have a 1080p display) by changing the CONSOLE dimensions option.

Here is the resulting SMTube.ini file after my changes:


If I run SMTube again and select the same Warp3D Nova video from the search results as before, the video now plays perfectly!


Close up of the video playing on the X1000, using SMTube with Player overlay support at 360p.


Why only 360p? Well, because my ADSL internet here in Australia really sucks. It struggles to stream 720p well, so this setting is safest (and also the default for SMTube).

Next I tried out a much longer video which works really well too - no glitches or drop outs:


I relaxed and enjoyed some time watching and listening to some great music on my x1000 using SMTube:



In addition to streaming YouTube videos, SMTube also provides the options to download the video to your X1000 too. If you right click on a search result video, you get the options:


You can copy the link to a web browser, copy the link to a clipboard, stream the video (open with playvideo.rexx) and also download the video (open with downloadvideo.rexx) or just play the audio.

If I download the video (Open with downloadvideo.rexx) I am asked where I want to save the video:


It then started the download:


When completed it automatically opens the destination drawer and highlights the downloaded file, ready to view - very convenient!


Here is the resulting downloaded video being played back directly from the X1000:


Definitely glad to see SMTube working well again and definitely worth the small work to get it running well. Running this program on AmigaOS 4.1 for the X1000 is fantastic and recommended.

Wednesday, 28 January 2015

ABC iView TV with AmigaOS 4.1 FE on X1000

In Australia, our free national TV broadcaster ABC (Australian Broadcasting Corporation) has a internet tv viewing service called iView. Today I want to take a look at iView v2.4 for AmigaOS4.1 Final Edition on the X1000.



The iView v2.4 program for AmigaOS4.1 is written by my fellow local Adelaide resident Michael "MickJT" Trebilcock. It is available to download from OS4Depot.net here.

UPDATE 25/5/2015:  ABC has now upgraded the final legacy iview client for PS3 that allowed this AmigaOS iView client to work. Unfortunately this means that this tool no longer works and MickJT doesn't know if it can be upgraded to work with the newer methods :-(

This program is needed as the ABC iView functionality on their website requires Adobe Flash, which is not available on AmigaOS4.1, and likely will never be. Hopefully ABC will upgrade their website to use HTML5 to view such content in the future and then this program will no longer be needed!

For now though, iView for AmigaOS 4.1 is essential to view ABC iView programs!

I did some new version 2.4 testing on this program this past week as there have been some changes to the ABC iView service since the previous v2.3 AmigaOS4 program was released, that affected the programs ability to download content - this has now been corrected in 2.4 and works well.

I should caution that this iView program is only really useful if you live in Australia or use an Australian proxy, since iView does active geoblocking of almost all of it's internet tv content to Australian based viewers only.

It is a Shell based program utilising AREXX to run, but it is easy enough to use - I will describe how to use it in this blog post.

Extract the archive to the drawer of your choice. I recommend putting it on a drive with lots of space since tv programs will be downloaded to the drawer while iView is running.

Here is the contents of the iView drawer, it can run on AmigaOS4.1 or AmigaOS3.X also - hence the 68k and PPC folder are visible - but here I will focus on AmigaOS4.1 only:


There is also a iView.readme which is extracted separate to this folder, which explains the features and how to use the program.


Open a Shell and cd to the iView drawer. Then type RX iView and press Enter. (I used tab complete so it automatically added the .rexx but you don't need to type that part). It will attempt to connect to the iView service on the internet. All going well, After pressing enter again to accept the terms and conditions you should then see the following prompt:




You can choose to download the ABC News 24 live stream, or choose from the available tv programs to download from iView. Here we will choose the second option, which gives us the menu of which tv program category we want to view. I select 3. Comedy, which then loads the list of available tv programs:


There are quite a few shows to choose from:


I am a huge fan of the Show no. 28, so I select this option. It then prompts me below with a list of available episodes to download:


I select Option 1 to view the first episode in the list (which is the most recent). It then starts downloading to the iView folder as below:


Once it is downloaded the program will go back to the Episode list menu to download the next one if you want, or you can go back to the previous menu or Main Menu. For now I leave it there.

In our case, we now want to view the show we downloaded, so I fire up MPlayer-GUI and select the file downloaded:


Of note is that the subtitle track is also downloaded, so you can also specify that in MPlayer-GUI  in the SubTitle field if you want subtitles on the program while you watch - great stuff! The downloaded show works well:


 I then went back to the category menu in iView and went into Option 8. Lifestyle to download another show I really enjoy:


Again, I choose the first one in the list and then it starts to download it:


A progress indicator at the bottom of the screen shows the progress and the download is quick.


Having completed the download, I then open MPlayer-GUI and select the downloaded file in the iView drawer:



I then hit Play in MPlayer-GUI to get things underway - It works perfectly, and I laughed all the way through the episode as normal! :-)




I also tried out a few other shows, like the Local news bulletin and some other programs - it works well:


For the last part I went back to the Main Menu in iView and chose to view the ABC News 24 Live stream. Now this is a little bit different to pre-recorded programs since it is a live stream. I also need to choose the resolution of the video stream, matched to my internet connection speed - I have ADSL and high bandwidth works ok for me:


When it starts downloading the file, it will continue to do so until you CTRL-C the program in the Shell. To view it as a stream, run MPlayer-GUI, select the live stream flv file in the iView folder and hit play - it will continue playing as long as the download stream continues to download via the iView program running in the Shell. You can see this below:



The iView 2.4 program works great, although It would be nice to see a proper GUI written for it at some stage.

Also be aware that live show streams contained in the pre-recorded show category listing in iView do not work at present with iView for AmigaOS. (eg. Live Sports broadcasts)

The addition of the extensively re-worked menu system in iView 2.4 for AmigaOS (I tested this for the author) makes iView a very useful program for me now!

There are more features in the pipeline for the next version of iView for AmigaOS and I am looking forward to them!

The program is free, and it works well - I am glad to finally be able to watch live tv streaming from the internet on my X1000. :-)

Wednesday, 14 January 2015

Playing Videos on AmigaOS4.1 using MPlayer-GUI by default

One of my pet annoyances is a legacy AmigaOS3.x thing that all video files are still expected to be opened by Multiview by default under AmigaOS4.1. Multiview doesn't play most of these types of videos at all, or not well...there is a way to fix it to use MPlayer GUI all the time, and that is what I want to show you how to do!



I am aware you can do other functionality in DOpus 5.9 or DOpus 4 to change default viewers (it has it's own method), but this article focuses on how to change it for AmigaOS4.1.

So, to start with, in the System Drive, go to the Prefs drawer:


The drawer we need is Env-Archive, which is not visible by default, so right click in the Prefs drawer and Show All Files. Then you should see the Env-Archive drawer as below:
 

Inside the Env-Archive drawer we then need to find the drawer called Sys, as below:


Inside the Sys folder is a lot of Default icons (amongst other things) for various types of files and devices under AmigaOS4.1:


In our case, we want to view the Information (right Click > Information) for the def_video icon.

In the icon information window that comes up, switch to the Icon Tab as below:


Here you can see that Multiview is set as the default.

I really like using MPlayer GUI (by Deniil 715) to control MPlayer on my X1000. You can download it from os4depot here if you don't already have it installed. I am also assuming you have Live For It MPlayer installed already too, which you can also download from os4depot here.

What I want is for all videos to open up and play automatically in MPlayer-GUI.

To do this, to start with we need to change the Default Tool field for this Def_video icon to use MPlayer-GUI, as shown below:

 

You should also repeat these steps for def_asf, def_avi and def_wmv icons in the Sys drawer too.

Update 16/1/2015: MPlayer-GUI v1.53 is available on os4depot.net now.

Next I run the MPlayer-GUI program. I switch to the GUI tab, and select the options to:

* Iconify MPlayer-GUI when playing (not ticked in screenshot sorry!)
* Auto play on drag n drop, shift click and CLI start
* Do not start a new MPlayer-GUI when starting with arguments.



In the Video tab, I also have Composition turned on for Video output since I am running the Radeon HD v2.4 driver that supports it (available for purchase from AMIStore).


I also turn on the -cache option in the Extras tab, and add extra stuff into the Additional parameters field for optimisation as shown below:


For those unfamiliar with the keyboard options to use full screen, fast forward/rewind videos in MPlayer, the Keys tab in MPlayer-GUI shows these for quick easy reference.



So now I click on Save prefs and Quit MPlayer-GUI.

To test these changes, I pick a MP4 video in my Work:Videos drawer, and double click it:


It then launches MPlayer-GUI, which runs the video to MPlayer and minimises MPlayer-GUI to the Workbench:


I then tested an AVI video, which tests the changes made to the def_avi icon default tool, and it works perfectly as well:


I hope this tip is useful to people who want to be able to double click videos to view them in MPlayer-GUI (Mplayer) using AmigaOS4.1!