DebianDog Utilities

Miscellaneous tools
Message
Author
Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#41 Post by Sylvander »

Thank you. :D

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#42 Post by fredx181 »

Hi All,
Here are some ffmpeg scripts I made.
Attached: Some-FFmpeg-scripts.tar.gz
It started by creating a simple gui for extracting audio from video but it got a little out of hand. :)
I'm specially happy about the way it turned out to show a nice progress bar with percentage and time remaining.
ffmpeg is not installed by default on DebianDog but you can easily install it:

Code: Select all

apt-get install ffmpeg
Or: create ffmpeg.sfs with FFmpeg2sfs from the menu and load it with sfs-load.

Or: Here's a static build of latest ffmpeg:
https://drive.google.com/file/d/0ByBgCD ... sp=sharing
Just put the ffmpeg binary somewhere in PATH (e.g. in /opt/bin)

A ReadMe file is included in the archive.
------------------------------
ReadMe content:

*** Some-FFmpeg scripts by fredx181 (Fred) ***

All need ffmpeg installed or ffmpeg.sfs module loaded.
Use FFmpeg2sfs from the menu to create ffmpeg.sfs.

(Sorry, didn't test on Puppy but I see no reason why these wouldn't work if ffmpeg, yad, dialog and (optional) lame are installed)

7 scripts, half of them are very similar. (I need help to give them proper names :-))

The difference is mostly in how the the progress is shown (all show percentage and time remaining):
- In a Xdialog window.
- In a xterm terminal window.

What the different scripts do:

- pffmpeg-t and pffmpeg-x:
*** Run ffmpeg from command line with nice progress view. ***
These need to be used from command line, just the same as for ffmpeg e.g.:
pffmpeg-t -i <inputvideo> <options> <outputfile> (showing progress with xterm terminal)
pffmpeg-x -i <inputvideo> <options> <outputfile> (showing progress with Xdialog)

----------------------

- simple-ffmpeg-gui:
Can be executed from file manager and 'yad' gui appears.
Simple gui that allows you to select input video, enter output file and enter options for ffmpeg.
Progress is shown by Xdialog.

----------------------

- video2audio-gui-t and video2audio-gui-x:
Can be executed from file manager and 'yad' gui appears.
These are only for copying or converting audio from video.
Both will give option to select video file, format, bitrate, frequency and channels.
- video2audio-gui-t shows progress in xterm.
- video2audio-gui-x shows progress with Xdialog.
If ffmpeg is not installed there's option included to create ffmpeg.sfs and load it on the fly.

----------------------

- video2audio-t and video2audio-x (as above: '-t' shows progress in terminal and '-x' shows Xdialog progress):
These are also only for copying or converting audio from video.
Both will give option to select video file, format, bitrate, frequency and channels.
Usage can be:
- Drag and Drop video files to the script file.(Then yad dialog appears)
- From command line e.g: video2audio-x <videofile1> <videofile2> <videofile3> ....
- As right-click option from file-manager menu e.g. xfe <open with> or with thunar custom action.
----------------------------------------------

Fred
Attachments
Simple-ffmpeg-gui.png
(39.67 KiB) Downloaded 4743 times
Terminal-progress.png
(34.91 KiB) Downloaded 4725 times
Xdialog-progress.png
(29.21 KiB) Downloaded 4707 times
video2audio-gui-x.png
(44.95 KiB) Downloaded 4759 times
Some-FFmpeg-scripts.tar.gz
(12.63 KiB) Downloaded 721 times

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

pAVrecord

#43 Post by mcewanw »

EDIT: now with splash to tell user to install ffmpeg to use

EDIT: Now find install files for DebianDog (deb) and Puppy (dotpet) on main pavrecord thread here (it is already provided by default in DebianDog and most Puppies but check for latest version):

http://www.murga-linux.com/puppy/viewtopic.php?t=81332

pAVrecord modified for use in DebianDog (just remove the dummy tar extension). Requires ffmpeg and ffplay in addition to mplayer and/or gnome-mplayer and won't work with x11 only video driver; ffplay seems to need vo=xv.

I tested it with the ffmpeg downloadable via the script provided by Toni. Which encoders work will depend on the underlying ffmpeg used but mp4, mp3, aac_q, x264 and x11 screengrab all worked in my tests. Note that with some encoders (such as x264 video) the record video display window will sometimes take a while to open because of the encoding complexity. Pressing stop button, when not recording, is a quick way to bring up alsamixer and simple vu display meter.

For more details about pAVrecord, including user interface pic, please refer to its main Puppy Linux thread here:

http://murga-linux.com/puppy/viewtopic.php?t=81332

In multi-user DebianDog, to work with normal user (such as puppy) you need to add that user to the "video" group using:

Code: Select all

adduser puppy video
and the user must of course have permission to the directory where recordings are to be saved, which by default is directory ${HOME}.

pAVrecord took a lot of its code from Precord, which is reflected in its one page configuration style of user interface. Its usage is reasonably well-known since it has been included by default in official and some official Puppies for a few years now. The user interface is perhaps a bit intimidating, at first glance, but the program is actually quite easy to use, especially if you just accept the default selections provided. Best approach to learning its use is to hover the mouse cursor over the buttons and entry fields to read their functional purpose, and also to read the "help button" provided help text. Easier still, is just to try it since the default provided settings should work out of the box in many cases (assuming you have already adjusted sound settings for microphone recording. An interface button to bring up alsamixer is provided in pAVrecord for that purpose).

In the rare event that the configuration file for pAVrecord ($HOME/.pavrecord/.pavrecordrc) ever gets corrupted, such that the pAVrecord program temporarily ceases to function, it is normally enough to simply shutdown the program and restart it. In normal use such corruption shouldn't happen, but it could if, for example, power was switched off whilst pAVrecord was in process of re-writing its config file. In worse case scenario, should restarting the program not repair the problem, simply delete $HOME/.pavrecord/.pavrecordrc and next time you start pAVrecord a clean version will be generated automatically.
Last edited by mcewanw on Thu 19 Jun 2014, 04:49, edited 5 times in total.
github mcewanw

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

DoMyCommand - save and re-use your bash commandlines

#44 Post by mcewanw »

Just remove the dummy tar extension from the attached deb; then you can install it from the right-click deb package filemanager facility.

DoMyCommand is a GUI front end to store and re-use your favourite bash, sh, or dash commandlines. It can be used, for example, as an enhanced Premote replacement to control commandline clients such as rdesktop (Remote Desktop Client to MS Windows desktops using rdp protocol), vnc, secure shell (ssh), wget and curl, or to convert or record media files using your favourite ffmpeg command pipe sequencies. The creative user could also add commands to provide outputs via yad, gtkdialog, or similar.
_____

Changes in version 9.0.3: hijack addon modules now use .hijack as their extension.

'hijack' expansion capability (as per DoMyFile, Precord etc) expanded to allow modular plugin addition of new main code, new functions, new gui panels and new gui general config buttons, More details on that simple facility, which can be used, for example, for modularly adding a new panel to the foot of the GUI can be found here:

http://www.murga-linux.com/puppy/viewto ... 913#656913
_____

DoMyCommand depends only on bash and gtkdialog for basic functionality. For some commandlines it will of course require any underlying commandline utility you wish to use to be installed (e.g. rdesktop for rdp, openssh-client for ssh client, ffmpeg for media conversions etc). Some of the provided combobox commandlines depend on Xdialog, xterm or rxvt, or sometimes the system text editor for outputs.

On pressing the 'play' button, DoMyCommand operates just as if the displayed command was typed into a console window and the 'Enter key pressed', but it brings the following advantages of a GUI environment:

* A dropdown list of pre-saved commands, which can be edited (modified, deleted, or appended to) in your system default text editor by pressing the Edit button on the righthand side of the dropdown list.

* New commands can thus be entered and permanently saved for re-use.

* Entry boxes (variables), which can, for example be used, for remote Computer URL address (A), remote login User name (U), remote login Password (P), and local Target Directory (TD). Note, however, that what you use the entry boxes to store is actually entirely up to you for the particular commandline you wish to run. The dropdown command can refer to these using standard bash shell syntax (i.e. $A, $U, $P, $TD).

* Entry data can be input manually, or via drag and drop, or cut and paste from your system filemanager.

* DoMyCommand also provides brief tool-tip text over most elements of its GUI, which becomes visible when the mouse is hovered over each element.

* Pretty much any bash commandline including quote marks and \ can be entered.

----

Commandline Usage

In a console enter command: domycommand --help
for brief commandline usage.
----

Tips:

To keep domycommand as the top window,
right-click on its window bar, and select Layer -> Above

In addition to outputting command results to a controlling xterm or rxvt terminal or to an Xdialog window, it is also possible to pipe command outputs to the 'leafpad' editor.

Alternatively, if you start domycommand from a terminal you can redirect its command output to that terminal using the syntax >/dev/tty
-----


If you are use DoMyCommand to download websites, you may sometimes want to add the options (refer to 'man wget' for details):

--adjust-extension (shortform is -E), if the pages downloaded don't come with .html extension at the end.

--wait=seconds (shortform is -w seconds), if you want to be kind to the server and wait the specified number of seconds between the retrievals.

--level=change the number of levels to something smaller than 5.

--convert-links (shortform is -k). After the download is complete, this converts the links in the document to make them suitable for local viewing.

--no-parent (shortform is -np). Do not ever ascend to the parent directory when retrieving recursively.

--domains=www.example.com (shortform is -D domain-list). Set domains to be followed. DOMAIN-LIST is a comma-separated list of domains.

--no-clobber (shortform is -nc). Skip downloads that would download to existing files

Other wget examples here:
http://en.wikipedia.org/wiki/Wget#Advanced_examples
http://wiki.hackzine.org/scripts/wget-grab-website.html
http://raywoodcockslatest.wordpress.com ... ring-wget/
Attachments
domycommand_9.0.3_i386.deb.tar
DoMyCommand user-programmable program
(5.7 KiB) Downloaded 669 times
DoMyCommand_screenshot.png
(43.23 KiB) Downloaded 4668 times
Last edited by mcewanw on Sat 02 Aug 2014, 11:08, edited 3 times in total.
github mcewanw

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

Converting pet packages:

#45 Post by saintless »

Included in the latest DebianDog from 16.06.2014 - pet2sfs and pet2deb converting scripts.
http://smokey01.com/saintless/DebianDog ... pts.tar.gz
All File managers have right click option for converting pet file or directory with pet files.
For example right click on pet package or directory in Xfe -> Scripts -> and choose:
pet2sfs-convert - convert single pet to sfs
pet2sfs-dir-convert - convert directory with pet to sfs
pet2deb-convert - convert single pet to deb
pet2deb-dir-convert - convert directory with pet to deb

Or from terminal:

Code: Select all

pet2sfs <package>.pet
Load the sfs to test it and if it works you can make deb package for installing/uninstalling:

Code: Select all

pet2deb <package>.pet
Both scripts keep the pet package untouched and auto-remove the working folders. The new deb or sfs file is in the same directory where the pet is. The process is automated without actions from the user.

pet2sfs does not change the pet package structure. It just removes pet.specs file and makes sfs from the working folder.

pet2deb (modded version of redeb + part of make-deb-package from RSH) changes the structure by moving executable file in /opt/bin and libs in /opt/lib. Then adds DEBIAN folder with control and postinst script to update-menus.
The control file will auto create package name, description and installed size.
The package name will be cut down to the basic package name (I hope in all cases). For example:
deadbeef-0.5.6-lucid.pet or dead-123-beef-0.5.6-lucid.pet will be only deadbeef
The correct installed size will be added as result from du -s of working directory.
All other inputs like Priority: Section: Maintainer: Architecture: Version: Depends: are fixed. You can change them using redeb right click option but it is not needed to have the deb package fully functional.

Example working package for testing:
http://smokey01.com/OscarTalks/opera-12.16.pet
The control file will look like this after creating deb with pet2deb and the menu entry will auto-appear:

Code: Select all

 Package: opera
 Priority: optional
 Section: utilities
 Installed-Size: 43372
 Maintainer: root
 Architecture: i386
 Version: 1.0.1
 Depends:
 Description: opera-converted-pet-to-deb

Second example that seems to work but still needs some extra lib from terminal output message:
http://smokey01.com/OscarTalks/deadbeef-0.5.6-lucid.pet
Menu entry will auto-appear and the control file will look like this:

Code: Select all

 Package: deadbeef
 Priority: optional
 Section: utilities
 Installed-Size: 7748
 Maintainer: root
 Architecture: i386
 Version: 1.0.1
 Depends:
 Description: deadbeef-converted-pet-to-deb
Note many packages will not work since there will be missing libs for them but from terminal output running the package name you will get the package names and you can use apt-get to search and install them.

Anyway the point of the scripts is to easy and most important safe test and convert pet packages that work right a way without adding dependencies.
Last edited by saintless on Fri 18 Mar 2016, 08:14, edited 2 times in total.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

Live-snapshot and snapshot-make for live-boot-2x

#46 Post by saintless »

Added in DebianDog after 16.06.2014:
It is only for live-boot-2x persistent method.
Live-snapshot + snap-make + desktop icon inside this archive:
http://smokey01.com/saintless/DebianDog ... ake.tar.gz

snap-make is moded version of live-make from Sfs (sfslinux). We need only the snapshot function since we have save file GUI utility. So I removed much options to make it only for create and refresh live-sn.
The refresh function is added as button but it works also from terminal:

Code: Select all

live-snapshot -f
or

Code: Select all

live-snapshot --refresh
Image
Image

Live-snapshot does not support deleted (wh) files that are in the main module (uninstalling programs for example). But it keeps all other changes, including changed files from the main module.
live-sn.cpio.gz is read-write compressed save file only few k in size and it changes its size depending of the changes you make. It is perfect for saving system settings on flash-drive for example. And you can keep many different name small files with different settings for different machines and load the one you need only. You can also use live-sn with live-rw save file or partition at the same time.

I will add more information after testing live-snapshot better.
Last edited by saintless on Fri 18 Mar 2016, 08:15, edited 5 times in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#47 Post by fredx181 »

Hi All,
Here's a setup for conky transparent on JWM version.
The configuration is the same as included in openbox_xfce version.
First do in terminal:

Code: Select all

apt-get update # If needed
apt-get install conky xli
Then extract attached conky-setup.tar.gz
Copy then the contents of extracted folder "conky-setup" to / (these are just some config files and script conky-start (in ~/Startup) , should work for user root and puppy.
Log out and back in again.
This should give transparent view when using default wallpaper.
If you change wallpaper, the path to the wallpaper should also be changed in ~/Startup/conky-start.
For example if you change path to wallpaper to "/opt/docs/pictures/02.jpg then change path in ~/Startup/conky-start from:

Code: Select all

if [ -f /mnt/live/tmp/modules ]; then
xli -fillscreen -onroot /opt/docs/pictures/01.jpg & conky -d -c ~/.conkyrc-port
else
xli -fillscreen -onroot /opt/docs/pictures/01.jpg & conky -d -c ~/.conkyrc-live
fi
To:

Code: Select all

if [ -f /mnt/live/tmp/modules ]; then
xli -fillscreen -onroot /opt/docs/pictures/02.jpg & conky -d -c ~/.conkyrc-port
else
xli -fillscreen -onroot /opt/docs/pictures/02.jpg & conky -d -c ~/.conkyrc-live
fi
Fred
Attachments
conky-setup.tar.gz
Conky config files and startup script
(55.67 KiB) Downloaded 820 times

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#48 Post by sunburnt »

Hi Toni & guys; I asked Oscar in his Skype thread to make a new Skype complete with all that`s needed for it to run in Precise.

Toni; Is the new Skype-4.3.0.xxx available from Debian in any way possible?
I ask as Olga needs it to talk to her son Sergey in Russia, it`s all he has.

Many thanks for all everyone has done... Terry
.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#49 Post by saintless »

Hi, Terry :)

Boot DebianDog with save file.

Code: Select all

apt-get update
Download latest Skype: http://www.skype.com/en/download-skype/ ... e=debian32
Install it with right click option Install deb or from terminal:

Code: Select all

dpkg -i /path/to/deb-package
Fix the missing dependencies:

Code: Select all

apt-get -f install
Then install pulseaudio:

Code: Select all

apt-get install pulseaudio
Run pulseaudio from terminal (there will be warning you are running as root but it will work):

Code: Select all

pulseaudio --start
Run Skype from menu entry or terminal.

If you use internal microphone it should work now. If you use usb Camera + mic it may need some settings. Better write in the development thread about this:
http://www.murga-linux.com/puppy/viewto ... 011#793011

In case your mic does not work here is the quick way to run older skype instead on top of latest one:

1. Launch skype 4.3 (no need to type pulseaudio --start this time): set autologin and no update control (in Advanced Options). Quit Skype 4.3
Kill pulseaudio just in case:

Code: Select all

killall pulseaudio
2 Download this archive: http://ftp.seblu.net/archlinux/arm/pack ... pkg.tar.xz and extract it.

3. Move /usr/lib/skype/skype (from the extracted tar.xz) to /opt/bin/skype-old (in your running system).

4. Type skype-old in terminal and you will autologin in your account with older Skype 4.2 using Alsa again.

Toni

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#50 Post by sunburnt »

Thanks Toni; I kinda figured you`d have a solution for this. I`ll give it a go...

I find it interesting that the old skype will still work if the new one is setup.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#51 Post by fredx181 »

Hi Terry, good to see you here again!

In case you're interested, I made Skype 4.3 portable-sfs for DebianDog, see here:
http://murga-linux.com/puppy/viewtopic. ... 578#794578

Fred

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#52 Post by sunburnt »

Thanks Fred; I`ll let you know how it goes.

Olga will be pleased when I get her Skype working, haven`t had any time for it so far.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#53 Post by saintless »

Crypt Save Utility (move-in-crypt):
You need to create encrypted save file with Make Save File first to use it.

Debian package:
http://smokey01.com/saintless/DebianDog ... 1_i386.deb
Start it from Utility -> Crypt Save Utility and make your choice.
Image

Option 1 - copy the content from no-encrypted unmounted save file inside empty encrypted save file. persistence.conf for full persistent for live-boot-3x will be auto-created:
Image

Option 2 - copy the current session (/live/cow) inside encrypted save file. Loaded squashfs files will be excluded. Save file in use will be included. persistence.conf for full persistent for live-boot-3x will be auto-created:
Image

Option 3 - mount encrypted save file to add or delete files.
Image
Last edited by saintless on Fri 18 Mar 2016, 08:18, edited 3 times in total.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#54 Post by saintless »

Accidental "quote" instead "edit" next changes post... Sorry...

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#55 Post by fredx181 »

Hi All,

*** YouTube-Get ***
A simple YouTube downloader.
Well, simple compared to other YouTube utilities like youtube-dl or youtube-viewer, the advantage is that this is a shell script, no python, perl or anything required, just bash.

Basically inspired by the great idea of Dr. Mark Humphrys, see here:
https://computing.dcu.ie/~humphrys/Note ... utube.html
And took as base the shell script as shared here:
http://www.reddit.com/r/linux/comments/ ... be_videos/

Depends on yad, wget
Options:
- Choice of quality, High, Medium, Low
- Checkbox to download from list of available qualities/formats
- Multiple url's can be entered for download
(if a https:// address doesn't work, try changing it to http://)
See screenshots below.
HD Video's (above 720p quality) cannot be dowloaded with this program.
The reason is that YouTube divided these in two separate streams (video and audio).

Attached youtube-get_0.1.0_i386.deb.tar (remove dummy .tar extension)

Edit: Turns out that titles in non-english, e.g. russian won't download, attached new .deb with workaround. It's still in progress though.

Edit2: 2015 march 3, New .deb uploaded, with changes:
- Added checking for non-printable characters, caused by non-english title, e.g. russian,
if there are any of these in the title (and locale is not configured yet), then switch to video ID name, e.g. "OuSdU8tbcHY.mp4"
- Added Information button, with info about when downloading titles in e.g. russian or chinese language.
(having the 'locales' package installed and the default locale configured, non-english title names will work properly, see "Information")

Edit3: Youtube-Get is now added to the DebianDog repository, so it can be installed now by using synaptic or from terminal:

Code: Select all

apt-get install youtube-get
Fred
Attachments
youtube-get_0.1.0_i386.deb.tar
2015 march 3, New Youtube-get with fix for non-english titles
(20.74 KiB) Downloaded 658 times
youtube-get1.png
(62.18 KiB) Downloaded 2575 times
youtube-get2.png
(83.77 KiB) Downloaded 2579 times
youtube-get3.png
(18.4 KiB) Downloaded 2523 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#56 Post by fredx181 »

Hi All,

Continuing youtube-get with very different setup:
I've found that youtube-get (from previous post) downloads most video's but not all (I'm not sure why though) I have been further exploring what's the best and found it: youtube-dl .

Info about youtube-dl:
http://rg3.github.io/youtube-dl/

Download here YouTube-Get v2, much more advanced, it's a shell script using yad as frontend for youtube-dl:
Edit: link removed, see next post for latest version with fixes.

Edit: See below Edit3 and Edit4 for new version.
The archive youtube_get2.tar.gz contains:
- youtube-get2_0.1.0_i386.deb, for installing (latest youtube-dl included, depends on python, takes 15MB of disk space)
- YouTube-Get-v2 , a portable appimage, has all (youtube-dl, python + the required python modules included, 6.5 Mb)
(has the disadvantage that youtube-dl can only be updated if it's installed on the system and python is installed)

YouTube-Get v2 has the following options:
- enter (multiple) url(s) for download, e.g. https://www.youtube.com/watch?v=rV2CXOw5T9k ....
- enter a playlist url (a list will appear to choose from the containing video's)
- enter a youtube username, e.g. ytuser:puppylinuxworld (a list will appear to choose from the containing video's)
- search for YouTube video's (a list will show to choose from, to download multiple video's)
- choice of quality
- button for to update youtube-dl
Also there's option to download audio-only streams.
See screenshots below.

Edit: New version, upgrade to 0.1.1
[Edit: link removed, see next post for latest version with fixes.

Basically the same: Options are still: url, playlist, user and search but completely changed the interface
First window gives choice of options to show GUI for each
Can also be run from commandline like this:

Code: Select all

Usage: 
 - youtube-get2 (without any arguments, brings up the GUI with choices)
 - youtube-get2 url (enter url(s))
 - youtube-get2 playlist (enter playlist url)
 - youtube-get2 user (download from specified user uploads)
 - youtube-get2 search (download from search items)
My goal was to make the interface less confusing, more clear which options there are.
No appimage included, couldn't get it to work.
Updated the screenshots according to this newer version.

Edit2: Portable Appimage (inside .zip archive) for new version here:
Edit: link removed, see next post for latest version with fixes.

Edit3: Some more new and updated YouTube applications here:
https://googledrive.com/host/0ByBgCDlZZ ... s/YouTube/
see 'ReadMe-youtube-stuff' inside for more info

Edit4: Upgrade of YouTube-Get v2 to version 0.1.3
New in folder from above link (Edit3):
- youtube-get2_0.1.3_i386.deb
- YouTube-Get-v2-0.1.3.zip (portable appimage)
- gtk-youtube-viewer_youtube-get2-1.1.3.squashfs (for activating with SFS-load)
Changes:
- Some bugfixes (sometimes crashed on titles including special characters)
- multi-progress bar for dowloads (see screenshot)

Also there's a windows setup.exe but it's in dutch language only.
(it's bit of a crazy experiment, in fact it installs a small linux environment containing bash.exe, busybox.exe, gtk2 libs, yad.exe etc...)


Edit5: See here for gtk-youtube-viewer version 3.1.2 deb packages for Wheezy and Jessie/Sid:
http://murga-linux.com/puppy/viewtopic. ... 097#840097

Fred
Attachments
multi-progress-downloads.png
(103.67 KiB) Downloaded 2420 times
2015-03-12-210030_642x299_scrot.png
Youtube-get2 Welcome GUI
(46.91 KiB) Downloaded 2495 times
youtube-get-v2-3.png
For example: list of search results
(177.76 KiB) Downloaded 2526 times
Last edited by fredx181 on Fri 24 Apr 2015, 18:28, edited 2 times in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#57 Post by fredx181 »

Hi All,

Here's new YouTube-Get v2 version 0.1.4.
(see also previous post, I thought better to make a new post as the previous got a bit messed up by all the editing)

In previous versions the search function is broken caused by a YouTube upgrade, fixed now in 0.1.4.
Download here: (removed all previous versions before 0.1.4)
https://googledrive.com/host/0ByBgCDlZZ ... s/YouTube/
- youtube-get2_0.1.4_i386.deb
- YouTube-Get-v2-0.1.4.zip (zipped portable appimage)
- gtk-youtube-viewer_youtube-get2-1.1.4.squashfs (for activating with SFS-load)

Edit: Again Youtube changed things, previous versions removed, see here for latest:
https://googledrive.com/host/0ByBgCDlZZ ... s/YouTube/
- YouTube-Get-v2-0.1.5.zip (portable appimage)
- youtube-get2_0.1.5_i386.deb (includes latest youtube-dl)
- youtube-viewer_3.1.5-jessie_all.deb
All previous versions of youtube-get2 and youtube-viewer won't work properly anymore.

Fred
Last edited by fredx181 on Sat 16 May 2015, 16:45, edited 1 time in total.

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Some further notes about xhippo

#58 Post by mcewanw »

Description

xhippo is a very resource-efficient versatile and extensible media player both in terms of its tiny installation size and in its RAM usage.

In its original form, as far as I know, the core xhippo program was first introduced to Puppy forum many years ago by forum member tempestuous. In its current form the included backends and recording frontend were created on DebianDog, where the overall system is used as a simple but effective core media player/recording application.

xhippo itself is written in C (not gtkdialog) and in practice uses less system resources than any gtkdialog-based media player, so works nicely on low-powered systems, but is nice to have on any system in my opinion. Some reasons are provided below.

xhippo is a generic playlist manager program/process control program (source in C).

With the included backends: xhplay, and xhrecord, it can play all sorts of audio and video media (the playlist can contain a mix of audio and video types) and also record audio (mp3, wav, ogg, aac, and flac) via the included xhrecord (with xrecord gui frontend) assuming the appropriate commandline encoders are available.

It can also save and load playlists, and play streaming media such as Internet radio streams.

General usage

The easiest way to try xhippo is simply to drag and drop a folder containing media tracks onto its open window.

If Xfe, Rox, or your other filemanager is appropriately configured, you can also right-click on any folder or media file in the filemanager and immediately send it to play in xhippo (thanks to shinobar's examples of how to arrange that in Rox configs).

You can also add directories or individual media tracks to the active playlist by using that right-click on xhippo open window method (using 'Add directory' or 'Add song'). And you can clear the active playlist, at any time, from the same right-click dropdown menu. Note well, however, that the right-click menu option 'Preferences' only applies to the current active session. Any preferences you temporarily set are not saved in the current version of xhippo.

Hovering the mouse over the xhippo buttons provides a summary of their function.

Using with media playlists including Internet Radio/TV

Alternatively, right-click on xhippo's open window and select "Load playlist". By default, a streaming media (radio) playlist is provided called 0.default.d.xplist; just select that and Open it by double-clicking it or pressing OK button and you can then play any of the radio stations provided.

You can easily create your own playlists.

The included commandline utility make-xhippo-playlist is a radio playlist converter script for xhippo. It converts common playlists to the format xhippo/new_xhplay uses. The converted playlist is automatically stored in the correct default ${HOME}/.xhippo/playlists folder no matter where your to-be-converted playlist is stored.

If you wish, you can use DoMyFile as a GUI interface to make-xhippo-playlist:

JWM -> Multimedia -> DoMyFile, which is a simple/flexible gtkdialog GUI for driving the make-xhippo-playlist script (and more).

Alternatively, it is very simple to use make-xhippo-playlist from the commandline. For usage help, just enter:

Code: Select all

make-xhippo-playlist --help
You can find lots of radio playlists that this program can easily convert for xhippo use, in the Simple GTK Radio thread here:

http://murga-linux.com/puppy/viewtopic. ... 267#752267

It can also directly convert Simple GTK Radio playlist format, which uses | as a URL/playlist_name field separator, as well as formats that use # as the separator. Similarly, it can also directly convert Pmusic playlists to xhippo playlist format.

Note that since xhippo doesn't include a streaming media playlist search facility, it is advised to keep such playlists reasonably short (you can easily do so by editing any of the many large playlists you can find on the Internet, prior to running the result through the make-xhippo-playlist converter). Of course if you want a streaming radio program that includes a playlist search facility, I would recommend 'Simple GTK Radio', which is a nice little gtkdialog program, by puppy forum member Dejan, created especially for streaming radio playing/recording. However, for short to medium length playlists, xhippo/xhplay does a pretty reasonable job and uses less resources than any gtkdialog-based player.

The DebianDog installed xhippo subsystem also includes:

1. xhplay, which is the backend script/commandline utility used here by xhippo for playing all sorts of media files, including audio and video. Note that xhplay can also be run straight from the commandline (albeit then without the start, stop, pause etc controls provided by xhippo). For commandline usage instructions enter: xhplay --help

2. xhrecord, which is the backend script used here by xhippo for recording audio. Note that xhrecord can also be run straight from the commandline (albeit then without the start, stop, pause etc controls provided by xhippo). For commandline usage instructions enter: xhrecord --help

3. xrecord, a frontend gtkdialog gui (similar to Precord but without the start, stop, pause buttons) for recording via xhippo (which provides the control functionality). Xrecord is provided with a desktop file for the desktop menu and/or desktop inclusion. The first time xrecord is run it copies some config files from /etc/xrecord to $HOME/.xrecord and similary the first time xhrecord is run it copies some config files from /etc/xhrecord to $HOME/.xhrecord. Note that, xrecord simply sets up the recording parameters for xhrecord, and uses xhippo to provide the start, stop, pause etc controls. The xrecord gtkdialog gui immediately terminates when recording begins, so the recording system is extremely resource efficient (though running xhrecord backend on its own via the commandline is even more resource efficient of course). Note further that during a recording, xhippo, somewhat confusingly, indicates that a recording is taking place by stating that it is "Playing with xhrecord". The wording is just a result of xhippo originally being intended for audio playing only, despite the fact it is really a very useful generic process control program.

The source code for this modified version of xhippo control executable itself (including some patches provided by puppy forum member goingnuts and other patches by myself) can currently be downloading from here:

http://smokey01.com/saintless/source-co ... ent.tar.gz

Notes:

For full functionality, xhplay and xhrecord (and thus this xhippo media player system) depend on the following underlying commandline encoding/decoding utilities/apps (though will work with less functionality if some of these are not on your system; most are in Puppy by default):

xhplay:

Depends on:
lame and aplay for mp3; aplay for wav;
vorbis-tools else mplayer else ffmpeg for ogg;
flac else vorbis-tools else mplayer else ffmpeg for flac;
ffmpeg else mplayer for aac;
mplayer for anything else including video and streaming media (such as Internet radio).

xhrecord:

Depends on:
arecord and lame for mp3; arecord for wav;
vorbis-tools else ffmpeg for ogg;
flac else ffmpeg for flac;
ffmpeg for aac.

If you wish mplayer to always start fullscreen you can add the mplayer option fs=yes to /root/.mplayer/config

Mplayer itself can also be controlled via the keyboard. For example, use keyboard key F to toggle in and out of fullscreen mode), P to Pause, and the Left and Right cursor keys to jump back and forwards in increments through a video. Please refer to mplayer man page for other options and keyboard control keys: http://www.mplayerhq.hu/DOCS/man/en/mpl ... %20CONTROL

William

NOTE: A version (dotpet) of xhippo (including the enhancements/additions described above) for Puppy Linux systems is available here:

http://www.murga-linux.com/puppy/viewtopic.php?t=86753

A version of DoMyFile for Puppy Linux is here:

http://www.murga-linux.com/puppy/viewtopic.php?t=94909
github mcewanw

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#59 Post by saintless »

Wrong thread post, sorry...

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#60 Post by fredx181 »

*** Dog-Radio ***

Yet another internet radio stream program, this one uses yad with icons GUI and tray-icon.

It started as a request from a friend who has touch screen and wanted easy 'touch' any icon to play a radio stream of choice and displaying the metadata, e.g. artist - title, through a ticker or/and popup.
For me it was an experience to learn more about the 'yad magic' and I like the final result, so I thought to share it, but any suggestions to improve are welcome!
Only mplayer, yad and conky are required to run it.
The 'ticker' requires to have conky installed, right-click on the tray-icon for settings, e.g. enable/disable ticker or foreground/background color, or 'conky ticker settings' to enable/disable on-top, transparency, border etc...
(see also for more info through the 'Information' button from the main GUI)
Some presets are included, which can be removed ( button Add/Remove, also to add new items).
A directory ~/.dogradio will be created when running first time from menu "DogRadio' with these presets (.desktop files) in ~/.dogradio/data

Attached: dogradio_0.0.1_i386.deb.tar (remove fake .tar extension)

Edit: New version 0.0.2, Info/changes:

Major change is the choice of many radiostations to add (which was lacking in first version) by 'Add/Remove' > Add,

Inspired by 'simple-gtk-radio', see here:
http://www.murga-linux.com/puppy/viewtopic.php?t=90842
for e.g: format: 'playlist.<Category>' to load different categories to play/add.

If the file ~/.dogradio/v0.0.2 exists the ~/.dogradio directory will not be replaced.
If it doesn't exist, ~/.dogradio from an earlier version needs to be replaced because of many changes in the structure of v 0.0.2.

Changes in v 0.0.2:

- Added 'playlist' folder with different category files named playlist.* listing many different radio stations.
(these can be added (multiple items) to the main GUI by Add/Remove > Add, streams can be played by double-clicking an item from the list displaying from a category)
The playlist 'playlist.RadioSure' has more then 28000 streams, not all will play though, and it's to large to load as one of the category-playlist.
However the search option (see below) will search inside it, so in fact there's choice of around 20000 stations!

- The .desktop launchers in ~/.radiodog/data are named now after the radio station (in previous version these had a random numbered name)

- Conky ticker displays now also name of the radio station

- More playlists extensions are supported now, these are now: .m3u, .pls, asx, .ram, .asp, .pls?id=* (shoutcast)

- Added simple search option (Add/Remove > Add > fill in search keyword(s))
A new category-playlist can be created from the search results by clicking 'Save'

Recommended is to install the latest yad (version 0.28 now)

Mostly because of the added playlist files the .deb became much larger (700Kb, install size 3Mb) so it can't be attached here, download from here:
<Removed link see Edit6 for latest version>

Edit1: Re-uploaded with very small fix, for correct icon when adding from search.

Edit2: New version uploaded v. 0.0.3 with changes/additions:

- Search has been improved, when typing multiple words, e.g. 'jazz canada' will give now only results for 'jazz' AND 'canada' in a station name (not 'jazz' OR 'canada'.
To clarify: In previous version it gave all results for 'jazz' in a name and also all results for 'canada' in a name.
- Added button 'Update Index', (for search index, containing more than 20000 stations) that will download the latest database from "http://www.radiosure.com/rsdbms/stations2.zip" and convert to dogradio compatible format. Add/Remove > Add > Update-Index
- Added url that's now playing to Stream Info (right-click on tray-icon > Stream Info URL : ...)
Download:
<Removed link see Edit6 for latest version>

Or to install latest version from DD repository from terminal:

Code: Select all

apt-get update
apt-get install dogradio
Or with synaptic package manager

Edit3:
New version 0.0.4:
Changes:
- Supports non-english locale characters now, e.g. russian or e.g. greek characters will display in category or search list, if package 'locales' is installed and the locale has been set, or when UTF-8 is supported by the system in any other way.
(the search index may need to be updated for that: 'Add/Remove' > 'New' > 'Update Index')
- Choice for themed interface (or no themed interface, using system theme), light or dark color theme, smaller font. Choose from right-clicking tray-icon menu > Theme Settings.
(see below screenshot, using dark theme, conky-ticker on-top, no-border and color adjusted to the theme color)
(small dependency 'gtk2-engines-murrine' added to the package for providing the theme choices)
- Pressing the 'Add/Remove' button gives a item list at first view now instead of a drop down box. (a little more intuitive maybe?)
- Bugfixes:
-- now station names containing quotes in the name will work also (by filtering out the quotes in the name), previously they gave error.
-- now ampersand (&) character shows properly in list names.
-- Cancel button in conky-ticker-settings window works now. (was previously wrong; disabled the conky-ticker)
Download:
<Removed link see Edit6 for latest version>

Edit4:
Available from DebianDog and MintPup repositories, install latest version from terminal:

Code: Select all

apt-get update
apt-get install dogradio
Or with synaptic package manager

Edit5:
New version 0.0.5, only change: Added Stream ripping option, from tray-icon right-click > Stream Ripping. Extra dependency: small package 'streamripper'
(see also below screenshot)
<Removed link see Edit6 for latest version>

Edit6: New version 0.0.6, changes:
- Improved refreshing tray icon (when switching stations). (it could be a bit of a problem on Jwm, so recommended to use icons with exactly the same height as width)
- Added 'Play' button to the main GUI to resume playing the last played stream if stopped.
https://drive.google.com/uc?export=down ... lk0blFHTDQ

Edit7: New version 0.0.7, some small changes:
- Fixed buggy search (previously worked well only when dogradio was restarted after one search)
- removed/replaced dead stationS on the main GUI
- Updated database (Radiosure.playlist)
https://debiandog.github.io/Stretch/i38 ... b_i386.deb
Youtube Demo (my first demo, so forgive me for being amateuristic please :)) :
https://youtu.be/4G8CbLHK24Q

Edit8: New version 0.0.8, see topic here for info, download .pet and .deb packages:
http://murga-linux.com/puppy/viewtopic.php?t=112858

Removed all links to previous dogradio versions in this post

Fred
Attachments
dogradio_streamripping.png
New option stream ripping added to v 0.0.5
(127.06 KiB) Downloaded 1738 times
DogRadio_settings.png
Dogradio various settings from tray-icon menu
(190.51 KiB) Downloaded 685 times
dogradio-dark-theme-maximized.jpg
Dogradio dark theme
(43.7 KiB) Downloaded 1813 times
dogradio.jpg
Dogradio
(74.76 KiB) Downloaded 2160 times
Last edited by fredx181 on Sun 04 Mar 2018, 10:33, edited 14 times in total.

Post Reply