Simple TV Player alternative for Puppy?

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
User avatar
Little_Miss_Linux
Posts: 1
Joined: Mon 28 Jan 2013, 13:28

Simple TV Player alternative for Puppy?

#1 Post by Little_Miss_Linux »

Hi guys im new here after my Windows 7 PC blew up literally :cry: So now im using Puppy Linux on my very old Fujitsu Siemens Lifebook and loving it. The only thing i really miss from Windows is Simple TV Player as i love to watch TV. I did find a solution for running some of the streams from STP in the terminal using ffplay like so >>

Simple TV Player stream

Code: Select all

rtmp://$OPT:rtmp-raw=rtmp://fmsod.rte.ie:1935/live playpath=rte1 swfUrl=http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf live=1 pageUrl=http://www.rte.ie/player/nl/live/8/ swfVfy=1
ffplay stream

Code: Select all

ffplay -i -x 800 -y 500 "rtmp://fmsod.rte.ie:1935/live playpath=rte1 swfUrl=http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf live=1 pageUrl=http://www.rte.ie/player/nl/live/8/ swfVfy=1"
That's all good but a GUI would be nice so i looked into Zenity then YAD then got stuck so im here to ask for help, so does anyone have any idea's tips on making a simple GUI around launching a stream as above with ffplay using Zenity/YAD.

Thanks xXx

User avatar
stu91
Posts: 145
Joined: Mon 06 Aug 2012, 15:11
Location: England. Dpup. Dell Inspiron 1501

#2 Post by stu91 »

Hi Little_Miss_Linux,
I haven't used Simple TV Player but if it is of any use to you here is a bash script / simple terminal gui to play the ffplay stream you posted :)


Code: Select all

#!/bin/sh
IFS=$'\n'

## Usage - add streams below : Stream name | stream command ##
STREAMLIST='

RTE Stream | ffplay -i -x 800 -y 500 "rtmp://fmsod.rte.ie:1935/live playpath=rte1 swfUrl=http://www.rte.ie/static/player/swf/osmf2_541_2012_11_14.swf live=1 pageUrl=http://www.rte.ie/player/nl/live/8/ swfVfy=1"

'
###########################################
function VIDEO () {
clear

  tput smul
   echo ":: Select Station to Play ::"
   tput rmul
   echo " "
   
   ## selection entry text
   PS3="`tput bold`Enter Station Number To Play > `tput sgr0`"
   
   select STREAM in `echo "$STREAMLIST" | cut -d"|" -f1 | sort -u`  "Quit" ; do
  
    [[ "$STREAM" == "Quit" ]] && echo "Goodbye...." && exit	      ## exit script
    
    ## get stream command / urls
    GETURL=`echo "$STREAMLIST" | grep -w -m1 "^$STREAM" | cut -d"|" -f2 `
    
    if [[ -n "$GETURL" ]]; then 
    ## show selected channel name
    tput smso &&  echo " >:Attempt connection to video stream $STREAM:< "  && tput rmso 
  
    ## play stream 
    eval "$GETURL"  &>/dev/null
    else
    ## no selection message
    tput setf 4 && echo "Not a station - please select again" && tput sgr0
    fi
  
 done
}

VIDEO

User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

#3 Post by Q5sys »

in the past I've used freetuxtv. But I dont think anyone has made it for puppy in a very long time.

Post Reply