Coding for Mobile Platforms

Random thoughts, sometimes relevant to mobile programming.

  • Mobile Coder

  • Subscribe to Mobile Coder and receive notifications of new posts by email.

    Join 183 other followers

TouchPlayer Documentation

Posted by error454 on 10/16/2011


TouchPlayer 1.0.7

How to Get TouchPlayer

TouchPlayer is distributed through a private feed, you need to add it (mobilecoder.touchpadhp.info/mcfeed) so that TouchPlayer will show up in Preware.  Alternatively, if you know what you are doing, you can download the ipk directly (http://mobilecoder.touchpadhp.info/touchplayer/)

Directions for Preware

  1. Open Preware
  2. Tap the top left of the Preware screen and select Manage Feeds
  3. Scroll to the bottom and under New Feed, give the feed a name (any name) and enter/select the following corresponding details
    1. URL: mobilecoder.touchpadhp.info/mcfeed
    2. IS Compressed: NO
  4. Select Add Feed
  5. Again in Preware, select Update feeds
  6. Install (Search for TouchPlayer in Preware, select it and hit install
  7. Luna Restart (Preware menu, Luna Manager, Luna Restart)

Features/What’s New

1.0.7

  • Added UI field to paste rtsp streams
  • Added scale parameter to the play service call which basically does: args += “-vf scale=:” + inArgs.scale + ” “;)
  • Playing a file now automatically kills existing mplayer instances

1.0.6a

  • Modified post-install script to attempt to fix install issues.  I was able to reproduce the issue on my device.  I verified that after fixing the files, a simple Luna restart did not resolve the issue but a reboot did.  Therefore, a reboot is now required after install

1.0.6

  • Added install check
  • Modified back-end launching, hopefully making emergency kill unecessary
  • Now uses TTF fonts, user can choose from fonts installed in /usr/share/fonts/. This makes old font.desc junk obsolete and should also immediately support all locals
  • Font scaling now works (sizes in the GUI are multipliers not points)
  • New API call for getting list of fonts
  • New API call for validating installation
  • New API parameters for playing videos
  • Updated to latest FFmpeg and mplayer as of 11/5/2011

1.0.5 (Experimental)

  • Improvements to back-end mplayer launching
  • Preliminary Cyrillic character support
  • Move subtitles into empty black area if possible

1.0.4

  • Runs mplayer underneath the hood meaning that most video formats are supported.
  • NEON accelerated YUV to RGB conversion
  • Pause/Fast forward/Rewind
  • Subtitle support

Controls

Pause

To pause the video, single tap on the screen.  You can also minimize the video window into card view.  To unpause, single tap again.

Fast Forward/Rewind

To fast forward or rewind, swipe horizontally right or left.  1 finger = small increments, 2 fingers = large increments.

Subtitles On/Off

To toggle subtitles on/off, swipe down with 3 fingers.  You will see a confirmation in the top/left of the video indicating the status of the subtitles.

Subtitle Index Toggle

To cycle between the available subtitles, swipe up with 3 fingers.  You will see a confirmation in the top/left of the video indicating the name of the current set of subtitles.

UI

Font Size

The font size determines the size of the subtitles.

Emergency Kill

As of 1.0.6, this should no longer be needed but I’ve left it in just in case.  Please report if you have threads that aren’t being cleaned up.

I apologize in advance that this button is even necessary.  I have noticed that sometimes mplayer does not clean up all of the threads that it spins up, occasionally this can cause issues launching a new instance of mplayer.  This button is here to resolve these issues.  Pressing this button will kill all running instances of mplayer.

Q. When should I press this button?
A. If suddenly you find that videos are not launching, press this button and then try launching your video again.

Q. Can anything bad happen if I hit this button when I don’t need to?
A. Nothing bad will happen, feel free to press it without fear!

Service Calls

For folks that would like to leverage TouchPlayer there are 3 service calls available:

play

Plays a given file or stream.

Sample service definition.

{
  name: "playFile",
  kind: "PalmService",
  service: "palm://com.wordpress.mobilecoder.touchplayer.service",
  method: "play",
  onSuccess: "fileStarted"
}

Arguments

source: string – The full path to file
audio: boolean – Whether to enable audio or not
font: string – The name of the font (for a list of names see below)
fontsize: integer
fontscale: integer – How large to scale the font
charset: “en”
movesubs: boolean – Whether to move subs into the black area
onsuccess: function – A callback to be called once the play command completes
scale: int – Adds the command  -vf scale=:scale

Sample call

this.$.playFile.call(
{
    source: "/media/internal/movie.mp4",
    audio: true,
    fontscale: 2,
    font: "times",
    movesubs: false
});

killall

Kills all mplayer processes

Sample service definition

{
  name: "emergencyKill",
  kind: "PalmService",
  service: "palm://com.wordpress.mobilecoder.touchplayer.service",
  method: "killall"
}

Sample call

//Kill all instances of mplayer
this.$.emergencyKill.call();

getfonts

Returns a list of fonts stored in /usr/share/fonts

Sample service definition

{
    name: "getFontList",
    kind: enyo.PalmService,
    service: "palm://com.wordpress.mobilecoder.touchplayer.service",
    method: "getfonts",
    onSuccess: "gotFonts"
}

Sample success handler:

gotFonts: function(inSender, inResponse, inRequest){
   //Populate a font dialog box
   this.$.fontName.setItems(inResponse.reply);
}

Help!

For help, please post a comment below.  Note that comments are moderated and may not appear once you submit them.  I will receive an email when you leave a comment.

The mplayer faq may also be of interest.

The following is the output of the FFmpeg configuration step, this shows you which codecs are compiled in.

source path               .
C compiler                gcc
ARCH                      arm (generic)
big-endian                no
runtime cpu detection     no
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
ARM VFP enabled           yes
IWMMXT enabled            no
NEON enabled              yes
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    no
postprocessing support    yes
new filter support        yes
network support           yes
threading support         pthreads
SDL support               yes
Sun medialib support      no
libdxva2 enabled          no
libva enabled             no
libvdpau enabled          no
AVISynth enabled          no
libcelt enabled           no
frei0r enabled            no
libcdio support           no
libdc1394 support         no
libdirac enabled          no
libfaac enabled           no
libaacplus enabled        no
libgsm enabled            no
libmodplug enabled        no
libmp3lame enabled        no
libnut enabled            no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support         no
libopenjpeg enabled       no
libpulse enabled          no
librtmp enabled           no
libschroedinger enabled   no
libspeex enabled          no
libstagefright-h264 enabled    no
libtheora enabled         no
libutvideo enabled        no
libvo-aacenc support      no
libvo-amrwbenc support    no
libvorbis enabled         no
libvpx enabled            no
libx264 enabled           no
libxavs enabled           no
libxvid enabled           no
openal enabled            no
zlib enabled              yes
bzlib enabled             no

Enabled decoders:
aac			dirac			mp1
aac_latm		dnxhd			mp1float
aasc			dpx			mp2
ac3			dsicinaudio		mp2float
adpcm_4xm		dsicinvideo		mp3
adpcm_adx		dvbsub			mp3adu
adpcm_ct		dvdsub			mp3adufloat
adpcm_ea		dvvideo			mp3float
adpcm_ea_maxis_xa	dxa			mp3on4
adpcm_ea_r1		eac3			mp3on4float
adpcm_ea_r2		eacmv			mpc7
adpcm_ea_r3		eamad			mpc8
adpcm_ea_xas		eatgq			mpeg1video
adpcm_g722		eatgv			mpeg2video
adpcm_g726		eatqi			mpeg4
adpcm_ima_amv		eightbps		mpegvideo
adpcm_ima_dk3		eightsvx_exp		msmpeg4v1
adpcm_ima_dk4		eightsvx_fib		msmpeg4v2
adpcm_ima_ea_eacs	eightsvx_raw		msmpeg4v3
adpcm_ima_ea_sead	escape124		msrle
adpcm_ima_iss		ffv1			msvideo1
adpcm_ima_qt		ffvhuff			mszh
adpcm_ima_smjpeg	flac			mxpeg
adpcm_ima_wav		flashsv			nellymoser
adpcm_ima_ws		flashsv2		nuv
adpcm_ms		flic			pam
adpcm_sbpro_2		flv			pbm
adpcm_sbpro_3		fourxm			pcm_alaw
adpcm_sbpro_4		fraps			pcm_bluray
adpcm_swf		frwu			pcm_dvd
adpcm_thp		g723_1			pcm_f32be
adpcm_xa		g729			pcm_f32le
adpcm_yamaha		gif			pcm_f64be
alac			gsm			pcm_f64le
als			gsm_ms			pcm_lxf
amrnb			h261			pcm_mulaw
amrwb			h263			pcm_s16be
amv			h263i			pcm_s16le
anm			h264			pcm_s16le_planar
ansi			huffyuv			pcm_s24be
ape			idcin			pcm_s24daud
ass			idf			pcm_s24le
asv1			iff_byterun1		pcm_s32be
asv2			iff_ilbm		pcm_s32le
atrac1			imc			pcm_s8
atrac3			indeo2			pcm_u16be
aura			indeo3			pcm_u16le
aura2			indeo5			pcm_u24be
avs			interplay_dpcm		pcm_u24le
bethsoftvid		interplay_video		pcm_u32be
bfi			jpeg2000		pcm_u32le
bink			jpegls			pcm_u8
binkaudio_dct		jv			pcm_zork
binkaudio_rdft		kgv1			pcx
bintext			kmvc			pgm
bmp			lagarith		pgmyuv
c93			loco			pgssub
cavs			mace3			pictor
cdgraphics		mace6			png
cinepak			mdec			ppm
cljr			mimic			prores
cook			mjpeg			prores_lgpl
cscd			mjpegb			ptx
cyuv			mlp			qcelp
dca			mmvideo			qdm2
dfa			motionpixels		qdraw
qpeg			svq1			vp3
qtrle			svq3			vp5
r10k			targa			vp6
r210			theora			vp6a
ra_144			thp			vp6f
ra_288			tiertexseqvideo		vp8
rawvideo		tiff			vqa
rl2			tmv			wavpack
roq			truehd			wmalossless
roq_dpcm		truemotion1		wmapro
rpza			truemotion2		wmav1
rv10			truespeech		wmav2
rv20			tscc			wmavoice
rv30			tta			wmv1
rv40			twinvq			wmv2
s302m			txd			wmv3
sgi			ulti			wmv3image
shorten			utvideo			wnv1
sipr			v210			ws_snd1
smackaud		v210x			xan_dpcm
smacker			vb			xan_wc3
smc			vc1			xan_wc4
snow			vc1image		xbin
sol_dpcm		vcr1			xl
sonic			vmdaudio		xsub
sp5x			vmdvideo		yop
srt			vmnc			zlib
sunrast			vorbis			zmbv

Enabled encoders:
a64multi		h263			pcm_u24le
a64multi5		h263p			pcm_u32be
aac			huffyuv			pcm_u32le
ac3			jpeg2000		pcm_u8
ac3_fixed		jpegls			pcx
adpcm_adx		ljpeg			pgm
adpcm_g722		mjpeg			pgmyuv
adpcm_g726		mp2			png
adpcm_ima_qt		mpeg1video		ppm
adpcm_ima_wav		mpeg2video		prores
adpcm_ms		mpeg4			qtrle
adpcm_swf		msmpeg4v2		ra_144
adpcm_yamaha		msmpeg4v3		rawvideo
alac			msvideo1		roq
amv			nellymoser		roq_dpcm
ass			pam			rv10
asv1			pbm			rv20
asv2			pcm_alaw		sgi
bmp			pcm_f32be		snow
dca			pcm_f32le		sonic
dnxhd			pcm_f64be		sonic_ls
dpx			pcm_f64le		srt
dvbsub			pcm_mulaw		svq1
dvdsub			pcm_s16be		targa
dvvideo			pcm_s16le		tiff
eac3			pcm_s24be		v210
ffv1			pcm_s24daud		vorbis
ffvhuff			pcm_s24le		wmav1
flac			pcm_s32be		wmav2
flashsv			pcm_s32le		wmv1
flashsv2		pcm_s8			wmv2
flv			pcm_u16be		xsub
g723_1			pcm_u16le		zlib
gif			pcm_u24be		zmbv
h261

Enabled hwaccels:

Enabled parsers:
aac			dvdsub			mpegaudio
aac_latm		flac			mpegvideo
ac3			h261			pnm
cavsvideo		h263			rv30
dca			h264			rv40
dirac			mjpeg			vc1
dnxhd			mlp			vp3
dvbsub			mpeg4video		vp8

Enabled demuxers:
aac			image2			pcm_u24le
ac3			image2pipe		pcm_u32be
act			ingenient		pcm_u32le
adf			ipmovie			pcm_u8
aea			iss			pmp
aiff			iv8			pva
amr			ivf			qcp
anm			jv			r3d
apc			latm			rawvideo
ape			lmlm4			rl2
applehttp		loas			rm
asf			lxf			roq
ass			m4v			rpl
au			matroska		rso
avi			microdvd		rtp
avs			mjpeg			rtsp
bethsoftvid		mlp			sap
bfi			mm			sdp
bink			mmf			segafilm
bintext			mov			shorten
bit			mp3			siff
c93			mpc			smacker
caf			mpc8			sol
cavsvideo		mpegps			sox
cdg			mpegts			spdif
daud			mpegtsraw		srt
dfa			mpegvideo		str
dirac			msnwc_tcp		swf
dnxhd			mtv			thp
dsicin			mvi			tiertexseq
dts			mxf			tmv
dv			mxg			truehd
dxa			nc			tta
ea			nsv			tty
ea_cdata		nut			txd
eac3			nuv			vc1
ffm			ogg			vc1t
ffmetadata		oma			vmd
filmstrip		pcm_alaw		voc
flac			pcm_f32be		vqf
flic			pcm_f32le		w64
flv			pcm_f64be		wav
fourxm			pcm_f64le		wc3
g722			pcm_mulaw		wsaud
g723_1			pcm_s16be		wsvqa
g729			pcm_s16le		wtv
gsm			pcm_s24be		wv
gxf			pcm_s24le		xa
h261			pcm_s32be		xbin
h263			pcm_s32le		xmv
h264			pcm_s8			xwma
idcin			pcm_u16be		yop
idf			pcm_u16le		yuv4mpegpipe
iff			pcm_u24be

Enabled muxers:
a64			ipod			pcm_s16le
ac3			ivf			pcm_s24be
adts			latm			pcm_s24le
aiff			m4v			pcm_s32be
amr			matroska		pcm_s32le
asf			matroska_audio		pcm_s8
asf_stream		md5			pcm_u16be
ass			microdvd		pcm_u16le
au			mjpeg			pcm_u24be
avi			mlp			pcm_u24le
avm2			mmf			pcm_u32be
bit			mov			pcm_u32le
caf			mp2			pcm_u8
cavsvideo		mp3			psp
crc			mp4			rawvideo
daud			mpeg1system		rm
dirac			mpeg1vcd		roq
dnxhd			mpeg1video		rso
dts			mpeg2dvd		rtp
dv			mpeg2svcd		rtsp
eac3			mpeg2video		sap
ffm			mpeg2vob		segment
ffmetadata		mpegts			sox
filmstrip		mpjpeg			spdif
flac			mxf			srt
flv			mxf_d10			swf
framecrc		null			tg2
framemd5		nut			tgp
g722			ogg			timecode_v2
g723_1			pcm_alaw		truehd
gif			pcm_f32be		vc1t
gxf			pcm_f32le		voc
h261			pcm_f64be		wav
h263			pcm_f64le		webm
h264			pcm_mulaw		wtv
image2			pcm_s16be		yuv4mpegpipe
image2pipe

Enabled protocols:
applehttp		md5			rtmps
cache			mmsh			rtmpt
concat			mmst			rtmpte
crypto			pipe			rtp
file			rtmp			tcp
gopher			rtmpe			udp
http

Enabled filters:
abuffer			deshake			nullsrc
abuffersink		drawbox			overlay
aconvert		fade			pad
aevalsrc		fieldorder		pixdesctest
aformat			fifo			rgbtestsrc
amovie			format			scale
anull			gradfun			select
anullsink		hflip			setdar
anullsrc		hqdn3d			setpts
aresample		lut			setsar
ashowinfo		lutrgb			settb
blackframe		lutyuv			showinfo
boxblur			movie			slicify
buffer			mp			split
buffersink		mptestsrc		testsrc
color			negate			transpose
copy			noformat		unsharp
crop			null			vflip
cropdetect		nullsink		yadif
delogo

Enabled bsfs:
aac_adtstoasc		mjpeg2jpeg		mp3_header_decompress
chomp			mjpega_dump_header	noise
dump_extradata		mov2textsub		remove_extradata
h264_mp4toannexb	mp3_header_compress	text2movsub
imx_dump_header

Enabled indevs:

Enabled outdevs:

License: GPL version 2 or later
Creating config.mak and config.h...
config.h is unchanged
libavutil/avconfig.h is unchanged
About these ads

150 Responses to “TouchPlayer Documentation”

  1. is evrybody able to view in a full screen mode??im not abl to do tht…can anybody help me regarding this issue..im using touch player 1.0.4

  2. SaintGermain said

    You are a star !
    I’ve tried and it works perfectly.

    Now where is this ‘Donate’ button ? ;-)

    Thank you so much !

  3. SaintGermain said

    Is is possible to manually configure mplayer with a .mplayer/config file ?
    It would help using functions that you haven’t added yet in Touchplayer (for instance to display the subtitles in the black bar/band).

    Thanks !

  4. error454 said

    Thanks for the note, bitmap fonts aren’t here to stay so this will sort itself out eventually.

  5. [...] 1.0.4 is now available. [...]

  6. corben9 said

    just tested great port :-) tested most filetypes. There seems to be a frameskip or audiosync issue when using mkv. Video is laging. Do you think its too slow hardware ? A 720p mkv plays but video starts lagging soon.

    • error454 said

      I think it’s possible but haven’t been able to work out all the details on audiosyncing and frameskipping for MKV files. You can read the drama here. MKVs play about 50x faster than the last release but still work to do.

  7. Yak said

    hmm, i updated to 1.05 and i noticed something. Did the player lose it’s ability to track? I know in the old version i could tap in the bottom and it would go to where it is (tap mid bottom and it would take me to about half way point of the file i’m watching. top the front half and it would take roughly where it is) but that doesn’t work anymore. Is that feature still in there because i generally watch a file in spurts and so i’d like to jump alot faster. I tried fast forwarding but it only takes me a minute farther ahead. Fast forwarding a 2 hour file kinda would take too long :(

    Thanks

    • error454 said

      That was a feature of ffplay, mplayer does not have such a feature right now. You are actually the only person to ever praise it, all the other comments indicated that people hated that feature because of accidental screen taps! I briefly looked around to see if there might be a config file option to increase this but did not find one. It’s possible I could add a 3 finger swipe that tracked at a much greater rate. What would you recommend? 15 minutes? 30?

      • Yak said

        a % wouldn’t be bad. I’m guessing there is no way of tracking using the [ l l l l l l l . . . . . . . . . . . . . . . ] part? Just tab one of the sections to get to where you want to be since each of those “bars” is a % of the file isn’t it? My guess would be maybe a 3 finger swipe would be 3 of those bars or something?

  8. urq20v said

    Hi.I have just installed 1.0.5 after having problems with the preware update.Works well,with only one possible small problem.After playing a file,the screen returns to the touchplayer file list and I have to select the file again to replay it.In 1.0.4 I was able to touch the screen and the video would play again as it had returned to the beginning and stopped.Have I missed a setting somewhere?

    • error454 said

      Are you saying that when a file has reached the end that it used to return back to the beginning and stop playback? Whereas now the video exits completely?

      • urq20v said

        Yes,that’s correct.I play short videos I have made myself,so it was convenient to be able replay them a few times without having to restart them from the file list.
        Also,the file list goes to card view after the video has finished.

  9. Robin. said

    This is great! Thank you so much!
    Now I can watch all those ‘Youtubes’ I’ve been saving on my PC!

    As a fussy Artist though I’d really like to show off a more COLOURFUL Touchplayer ICON on my TP! When you get time!! :)

  10. Robin. said

    PS.. Also is it feasable to move the white dots and dashes (III….I) Progess Bar into empty black area if possible? It would simply mean on ‘Pause’, that the picture frame is clear of obstructions for viewing still frames.. or will this interfere with the positioning of the Subtitles?

    Thanks anyway!

    :)

    • error454 said

      Can you give me more details on this issue please?

    • error454 said

      This is technically feasible but not something I would look into short term, the code to draw the OSD is deep in mplayer and I’m not ready to go down there and figure out what exactly is going on. Sounds like a good user contribution waiting to happen though ;) Do some research on mplayer configuration options, there might be an mplayer.conf setting that will do that.

  11. Greg said

    Thanks for the update.
    TouchPlayer provides a fast way to navigate files on the touchpad. I don’t know if this is possible, but with a future update, would you be able to make the directory remember the last position when navigating back, rather than jumping back to the top of the list?

  12. mrbears said

    I am running 1.0.5 and I have to say it is fantastic. Great job!

    I do have one quick question. There is option to change the font size, but making changes to it does not seem to do anything. Specifically, I was hoping to change the subtitle size, as 14 point is a bit too small for me. When I close the app and open again, it does not remember I have changed from 14 point font as it remains at 14 point. Has anyone able to change the size of subtitle fonts and make it stick when touchplayer is opened again?

    • error454 said

      The option to change font sizes does have an affect but it is based on the resolution of your video since these are bitmap fonts. To actually increase the size of the displayed font you can look at putting an option like: subfont-text-scale into your mplayer.conf, see a previous comment for the correct destination file and google subfont-text-scale.

      • mrbears said

        Thank you for your suggestion.
        I created mplayer.conf file. The problem is that I am having hard time accessing /usr/local folder. I have two browsers, internalz pro and Gemini. I currently have mplayer.conf file in my download folder, but it won’t let me access /usr/local folder in order to make /usr/local/etc/mplayer/mplayer.conf from internalz pro nor Gemini. Any suggestions?

      • error454 said

        You need to either use the homebrew version of Internalz (from preware) or download Novaterm and run that from your pc to get a terminal over your usb cable. If you go novaterm then be sure to get the 32 or 64 bit edition based on your pc.

      • mrbears said

        Thanks for your suggestion. It turns out that I had to go into preference in internalz to turn on the mastermode in order to get into /usr/local folder. I have placed /usr/local/etc/mplayer/mplayer.conf in my touchpad with command

        subfont-text-scale=”10″

        That was the only lines I had included in mplayer.conf file.

        When I opened up touchplayer, there were no changes in the subtitle font size. Is the command line I inserted proper?

      • error454 said

        It’s possible that this has no affect on bitmap fonts (which are being used). You can try getting rid of the quotes but may need to wait until TTF fonts are being used:
        subfont-text-scale=10

  13. SaintGermain said

    I ran today in the “mplayer thread” issue. Several instances of mplayer were not killed, even with the “Emergency kill” button.
    I tried Luna restart + Emergency kill, but it doesn’t work.
    I ended up using a manual “killall mplayer” in a terminal which took care of the problem.
    Not sure why your emergency button doesn’t work.

    Would it be possible to add some switchable “logging” to a file to Touchplayer in order to debug issues ?

    • error454 said

      Were you running 1.0.4 or 1.0.5? I have been debugging this issue. The emergency button actually runs a ‘killall mplayer’ in the background, so I am wondering if there is an issue with NodeJS not being able to start a new process.

      • SaintGermain said

        I was running 1.0.4.
        I’ll let you know if I have the same problem with 1.0.5 (haven’t updated yet)

  14. v. 1.0.5 works fantastically.

    Thanks a lot.

  15. ylere said

    Thank you very much for working on this project. When playing large mkvs over the network (mounted with UberKernel&cifs), the video slows down while the audio is played normally and therefore the signals are out of sync very fast. I think the player should pause and wait until enough data is buffered instead of this strange behaviour.

  16. error454 said

    Thanks for the note

  17. David said

    inverse control is when you want to go forward, you swipe right to left, and to go backward, you swipe left to right.

  18. error454 said

    I do not believe AVIs are hardware accelerated. Right now the only thing I’m certain of is that part of the MKV color space conversion is hardware accelerated. I am still looking for a Cyrillic font package that includes the on screen display graphics.

  19. djsands said

    Hi, frist I wanna say thanks for all your work. I just installed the 1.0.4 from the precentral website and was wondering how fast the two finger swip is suppose to move it forward. It’s going about 1 min is this right? The one finger is doing 10 sec. Is there any way to pick a postion with the time bar in the middle of the screen?

    • error454 said

      Those speeds are the defaults set by mplayer. There is currently not a way to pick a position with the time bar.

  20. djsands said

    I’m also getting stuck, when I try to play certain MKVs, the player locks up and the kill button does not work. (using ver 1.0.4 downloaded late last night from precentral website) You have to shut down the touchpad and restart to get it to work again. I can tell the card is still open because if you try to connect it to a desktop it tells you that you need to close all cards and it will not connect, even though there are no cards visable. Also wondering if there could be a way to pick audio streams. Thanks

    • error454 said

      I am investigating other ways to accomplish this. There are controls to pick audio streams in mplayer, just not a swipe control yet.

  21. Gilles said

    Any word on returning the white visual seeking markers to 1.0.5 which were present in 1.0.4?

    Thanks,

  22. Autourdupc said

    Dear sir,

    Thank you very much for your great job !
    1) Using 1.0.4 version, I found that the way to fast forward is not fast enought…
    The previous version, typing on the screen was good… I thnk a mixte beetween old/actual version can be more confortable
    Typing onto the time line could drag the video to the right time (like previously)
    Swiping horizontally as actual to move forward / backward as desired.

    2) Under WebOS 3.0.4, seem that some video are no fast enought sometimes. Need to reboot system (quit / reload player is not enought). They can be very very slow… I did not have this issue before.

    3) Can we imagine the connexion to an UPnP media server, like mediatomb, to collect video ?

    Once again, many thanks for your great job.

    Regards,
    Laurent (called autourdupc) – France – Lyon

    • error454 said

      the old fast forward behavior was part of ffplay. I am still working on basic functionality before tackling this. BHome will be integrating with touchplayer for upnp.

  23. Thank you very much.

    Is there a way to allow streaming from e.g. an HTTP stream? (like VLC)
    It would be awesome to be able to stream TV from the Dreambox (The dreambox is an HTTP .ts stream on port 31344)

    tx!

  24. rabotash said

    Thanks for your work.
    TouchPlayer plays almost all very good and smooth.
    But please add internal/external audiotrack support.
    And cyrillic types in subitles (ass) sometimes not working.

  25. error454 said

    http://mobilecoder.touchpadhp.info/touchplayer/com.wordpress.mobilecoder.touchplayer_1.0.4_all.ipk

  26. [...] [...]

  27. Felix said

    Hi!
    I noticed, that after the enyo/maps update I was able to install touchplayer on my trusty Pre2. Avis run great, I’m just having the issue, that the video is being shon in portrait mode and therefore strechting the image. Could I choose with a mplayer.config file, what screen orientation the player uses?

    I’m running 1.0.4 (Precentral page) on a EU unlocked Pre2.

    • error454 said

      You *can* use an mplayer.conf file but I’m not immediately aware of what config file options will lead you to success. Search these comment threads for my previous reply where I indicate the correct location for mplayer.conf

  28. error454 said

    Those are normal

  29. pechkin said

    Is this available in TouchPlayer port:

    New versions of mplayer support true type fonts so this package should not be used. Get some true type font (arialuni) and copy it as ~/.mplayer/subfont.ttf. Then run mplayer open preferences and choose the correct encoding.

    from: http://georgi.unixsol.org/

  30. dtlogg said

    Sorry for being ignorant about the terminal use, but how do you start mplayer in a terminal?

    Do I just bring up Xecutah and then type mplayer? DO I have t go to the directly first? If that is true, what is the path for mplayer?

    I am on 3.0.4

    Steve

    • error454 said

      You will find mplayer here:
      /media/cryptofs/apps/usr/palm/services/com.wordpress.mobilecoder.touchplayer.service/

  31. error454 said

    There are some issues here that I am trying to solve. At this point I don’t understand why the install works fine on some devices and not on others, especially since I install/uninstall this app upwards of 20-30 times a day on my TouchPad. The only advice I can give for now is that when I install, I first uninstall the old version then do an install and then perform a Luna Restart through the Preware menu (Luna Manager). This always works for me. I am working on a better method of launching files that I believe may be contributing to the problems people are facing, I hope to have an update within the next few weeks but haven’t had much time to devote to it!

  32. error454 said

    You are saying that the mplayer file is 0 size?? It should be 10 MB (10844772).

    • dolo54 said

      thanks for the quick response. Will try reinstall and let you know.

    • dolo54 said

      Update: I got it to work doing the same steps Robin describes below. webos doctor to 3.0.4 – quickinstalled preware – added mobilecoder.touchpadhp.info/mcfeed to preware feeds – installed touchplayer 1.0.5 – luna restart and it works, streaming off nas with bhome pro was almost working but choppy. installed govnah with uberkernal to overclock to 1.5khz and now streams perfect. lot of steps, but nice result!

      • Robin. said

        So did 1.0.5 run OK as a straight download into 3.0.4?

        I couldn’t get it to function this way and had to fresh install 3.0.4 then 1.0.4 FIRST, before 1.0.5.. just not exactly clear from your post that’s all!

        Glad it’s OK anyway>

        :)

  33. error454 said

    If it is 0 size then the package did not install correctly.

  34. Robin. said

    Here is my post from ‘Precentral’ regarding TouchPlayer V.1.0.4/5 in webOS 3.0.4, in case it is of any assistance in at least getting the Player functioning until the Dev can allocate time to engineer a more ‘stable’ version?:

    ~~~

    [Thanks for letting us know how it worked for you though Turbo_Twiglet.

    Did anyone try to install TouchPlayer on a fresh 3.0.4 Touchpad after using WebOS Doctor? It would be nice to get some confirmation before I go down that route.]

    ~~~

    Yes..

    I think something is probably ‘amiss’.. I have Doctored to 3.0.4.. installed Preware.. added Touchplayer Private feed.. downloaded 1.0.5 & installed it with required JS & File Man. Services.. executed a full system restart.. opened Touchplayer.. opened a video file and.. same green highlight ONLY.. no play!

    What’s the verdict now please?

    Do I reinstall 3.0.4 and 1.0.4 instead?

    or:

    Uninstall 1.0.5 and reinstall 1.0.4?

    EDIT: Later.. No, I just tried that (with full restart) and only get the same problem of ‘green file highlight’ only.

    I’m going to Doctor to 3.0.4 again and try installing only 1.0.4.

    EDIT: Even later.. yes.. that worked.. and updated to 1.0.5 OK too!

    (PS. ‘Touch Vol’ seemed to mess things up a bit though! Sticking with ‘Increase Vol’ for now).

    Thanks!

    :)

  35. dtlogg said

    I am not that familiar with Xterm for the touchpad. How do you run mplayer using Xterm? Just want to try touchplayer on my touchpad using 3.0.4.

    Steve

  36. error454 said

    I agree, re-doctoring should be completely unnecessary if all you are doing is trying to make sure you’re getting a clean install. I am in the middle of writing an install validation method and the things that it checks for are:

    1. The file /media/cryptofs/apps/usr/palm/services/com.wordpress.mobilecoder.touchplayer.service/mplayer should exist. If it doesn’t, the download or install or both failed
    2. The md5sum of mplayer should be 309985cf3216fc8fb02aead7dcfcd47e, to validate manually you can run ‘md5sum mplayer’ from within the folder. If it doesn’t then the download or install or both failed.
    3. The file /var/usr/bin/run-homebrew-js-service should exist. If it doesn’t then the Homebrew JS Framework is not installed, you need to install it.
    4. The file /var/palm/ls2/services/pub/com.wordpress.mobilecoder.touchplayer.service.service should exist. If it doesn’t it means that the post-install script failed, reinstall.
    5. The file /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service.service should exist. If it doesn’t it means that the post-install script failed, reinstall

    If you want to remove all the files for Touchplayer:
    /media/cryptofs/apps/usr/palm/applications/com.wordpress.mobilecoder.touchplayer/*
    /media/cryptofs/apps/usr/palm/services/com.wordpress.mobilecoder.touchplayer.service/*
    /var/palm/ls2/services/pub/com.wordpress.mobilecoder.touchplayer.service*
    /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service*

    • dsporcic said

      as per SaintGermain’s solution below, modifying two files 3,4 solved it for me. this was after uninstalling 1.0.5 a few times which appeared not to remove all related files or clean up correctly. So then I read SaintGermain’s thread below, reinstalled 1.0.5 and made those two file changes and it now works ! thanks again.

    • error454 said

      Ok, so run-homebrew-js-service exists, that’s a good start. However it sounds like the service call is still not being called as root…. have you tried install Internalz Pro and seeing if you can browse to folders other than /media/internal? This is a good test to ensure that the homebrew service is working properly.

    • supreme said

      Thanks for the prompt reply. Yes, I have Internalz Pro installed, and I am able to browse through all the folders, infact I actually made the file editing through Internalz pro for the permAssistant.js file from the homeBrewGood = false to true value.

      Just reading another post indicating that a Device Restart instead of Luna Restart might works so I uninstalled Touchplayer again, did a Device Restart, installed Touchplayer again. Did another Device Restarted. Launched the Touchplayer again and now I get the same two errors.

      (Failed) Service not running as root

      and

      (failed) The homebrew-js-framework could not be found.

      I’ll just deleting the entry for the touchplayer in the jailuser file again (fixes/bypasses the service not running as root error) as recommended by post #47 and modifying those two files to reflect Exec=/var/usr/bin/run-homebrew-js-service but I am stilling getting the (failed) The homebrew-js-framework could not be found, but as stated, I have verified it is there.

  37. error454 said

    BHome works great, TouchPlayer not so great since 3.0.4 rolled out and I switched to mplayer. Hoping that gets solved in the next update.

  38. dtlogg said

    Ok, so I learned how linux commands work. Figured how to change directories run mplayer and a avi file. not hthat different from the old DOS days. But when I run “mplayer ccc.avi” from the command line(the avi file is in the same directory as mplayer) the video and sound starts but there is a large black box that covers almost 95% of the screen. I see that the video is running in the 5% top of the video and the sound works ok.
    I have tried it with 2 avi files.

    How do I get rid of the black box to see the video?

    Steve

    • error454 said

      are you running this through xecutah or through a terminal on your pc? The player may be taking over your existing terminal if ran through xecutah, you may need to change the DISPLAY environment variable to change that behavior.

    • lasviguas said

      One more thing…you can use the same command line options as Touchplayer (ffplayAssistant.js).

      “-quiet -lavdopts fast:skiploopfilter=all:threads=2 -cache 8192 -cache-min 0 -vf expand=:-60::2 “.

      Error454, many thanks for your great job…

      (Sorry for my poor english…)

  39. SaintGermain said

    I’ve managed to trigger the problem of “zombie” thread (or non-working Touchplayer on update 3.0.4) and managed to solve the issue.

    Here is what I did:
    1) Restart your device
    2) Check /var/palm/data/jailusers, if it only contains a line about Touchplayer, delete the file
    3) Remove the file /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service
    4) Remove the file /var/palm/ls2/services/pub/com.wordpress.mobilecoder.touchplayer.service

    It also work if in the files 3 and 4, I replace the line
    “/usr/bin/run-js-service -n”
    by
    “/var/usr/bin/run-homebrew-js-service”

    I have no idea why it works though, but at least it works ! ;-)

    Hope that it will help you !

    • dsporcic said

      you’re the best ! those changes to files 3 and 4 fixed it for me too . did not do the other steps. see my thread but my situation was 1.0.5 install on clean webos 3.0.4. did not want to doctor but instead just fix the problem. was waiting for the magic bullet which this seems to be. Congrats! and thank you again. Now Error454 may want to add his comments if this is indeed a workable solution and there are no runaway processes or other side effects I’m not aware of.

      • Bryan said

        Removing files 3 and 4 is not fixing the green-highlight problem for me. Is there a reboot or luna restart in there that I’m missing?

      • dsporcic said

        Just updated to Touchplayer 1.0.6 on my first TP where 1.0.5 was working after a webos 3.0.2 to 3.0.4 upgrade. had to fix it the same way as per my post here based on SaintGermains suggestion to modify, not delete, files 3,4.

  40. lasviguas said

    I made ​​some changes to your program (v1.0.5).
    This allows subscribers of French ISP “Free”, to receive broadcast TV channels with the RTSP protocol.
    I changed the files “FileBrowser.js” (addition of a pick list of TV channels + a launch button for the “Freebox TV”) and “ffplayAssistant.js” (launch in RTSP stream from the channel selected in the file “FileBrowser.js”).
    I also changed the default fonts (ISO-8859-1) to see the subtitles with a correct encoding.
    You did an amazing job, and it allows me to use my TP with great pleasure.
    (Thanks to “Google Translator” for help …)

    • error454 said

      Fantastic! S’il vous plaît envoyer une demande de tirer sur github (https://github.com/error454/TouchPlayer) avec vos modifications. Vous pouvez trouver une explication ici (http://help.github.com/send-pull-requests/) Je ne sais pas si il ya des instructions en français, désolé! Le système utilise maintenant la police des polices TTF, afin que vos changements de police peut-être pas nécessaire maintenant.

    • Great,

      this looks exactly what I ‘d need for the dreambox ! :)
      Can u share the code?

      Et en francais :)
      Ca pourrait marcher pour ma dreambox (http streaming) ? Si oui, pourrais tu partager le code à configurer?
      mci
      tx

      • error454 said

        mplayer: https://github.com/error454/mplayer-webos
        ffmpeg: https://github.com/error454/FFmpeg
        touchplayer: https://github.com/error454/TouchPlayer

      • guynux said

        Streaming from the dreambox (old DM7020S with enigma) works with mplayer \o/
        I’m making some tests concerning the image quality versus audio delays :
        - good image (but sd) -> audio delay
        - poorer resolution (but ok) -> no audio delay
        I have to start mplayer with the command line and I’m not a developer, so if Error454 could just add a button on the interface, I think it could do the job pretty well. It could be the same button as the RTSP one, but always launching the same mplayer sentence (no needed options).
        A more complex process, could be a script with some tests :
        - make first the DM wakeup and/or control if there is a working DM on the LAN with :
        http://ip_of_dreambox/cgi-bin/admin?command=wakeup
        note that if it is soon awake, it displays “Enigma doesn’t sleep”
        - optionally display the channel info (get first line only) :
        http://ip_of_dreambox/cgi-bin/channelinfo
        -> box : watch “channel” : yes/no
        - then launch mplayer with a dedicated sentence
        Note that changing the channel is a more complex job, out of this purpose. We can always make this through the DM,s web interface, before launching mplayer.
        Consider also that I was only able to display the live channels, not the recordings (cache and performance issues).
        If Error454 is interested, I can make further tests on an alpha version.
        Thanks for your returns

    • guynux said

      Could we make some test with these two modified files for the “Free” ISP (FileBrowser.js+ffplayAssistant.js) ?
      Thanks

  41. Just installed on my new Touchpad, works great! Kudos on an awesome job. Where can I donate?

  42. Larry Phillips said

    Installed 1.0.6
    When i play a song (mp3), I see no way to stop it. A single tap (on the song title) just starts another instance and I end up with an overlapping song. Emergency kill stops the song, but the overlapping is pretty serious. Too easy to do inadvertently. Tapping in a non-title area does nothing.

    Two suggestions for you
    1. Make the ‘..’ for parent directory something the average non-techie will understand
    2. Document that the video plays in a separate card, so the user won’t have to puzzle out a way to get back to the main page.

    You’re getting there… Keep up the good work.

    • error454 said

      Songs have no video, so they don’t launch a visible window, I didn’t think people would play music with touchplayer so many great audio players on webos.

  43. dsporcic said

    see post 47. fixed my 1.0.5 to 1.0.6 upgrade the same way as per SaintGermains suggestion to modify files 3,4

  44. Daniel said

    does the sequence of installing matters? I installed the touchplayer before filemgr before I found out filemgr is required for touchplayer. But then my touchplayer never properly works

  45. dsporcic said

    For what it’s worth… curious if you try SaintGermain’s suggestion as per post 47: (however don’t actually remove those files in 3,4 – just modify as stated:

    3) Remove the file /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service
    4) Remove the file /var/palm/ls2/services/pub/com.wordpress.mobilecoder.touchplayer.service

    It also work if in the files 3 and 4, I replace the line
    “/usr/bin/run-js-service -n”
    by
    “/var/usr/bin/run-homebrew-js-service”

    I have no idea why it works though, but at least it works !

    ——–
    Error454, as per my previous posts, I do have 1.0.6 working as well due to this change. Curious to hear your feedback… is this an acceptable solution or are there any side-affects ?

    • error454 said

      I think this is perfectly acceptable, I’ve always been a little confused about why there are the extra files in there. I think I might just bake this into the install script, if it works, it works.

  46. CaptainFabulous said

    I was having the same problems with 1.0.6 and homebrew-js-framework. After looking at the files indicated in post #47 I realized that both

    /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service
    and
    /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service.service

    were trying to do the same job, that is, both are assigning themselves the name “com.wordpress.mobilecoder.touchplayer.service”. Since the /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service.service files have the correct exec string I just deleted both of the /var/palm/ls2/services/prv/com.wordpress.mobilecoder.touchplayer.service files (from prv and pub) and restarted. Works like a charm now.

    • CaptainFabulous said

      Because I’m somewhat anal retentive I removed the extra .service from both files, restarted, and it’s still working like a charm.

  47. supreme said

    I followed Turboyoshi’s advice and did a “shutdown” of the touchpad and it fixed the homebrew-js-service frameworks could not be found issue after following all steps on Post #47.

    So Luna Restart, and Device Restart does not work. Shutdown is required.

    I can play .avi files now, now finally able to pause a video, this is great!

  48. Turns out there were some zombie processes of mplayer… I managed to kill them, removed all TouchPlayer directories and am attempting yet another installation now…

  49. SaintGermain’s suggestion as per post 47 worked for me!

  50. pechkin said

    I’ve tried 1.06 and it works perfectly with cyrillic.

    Thank you very much :)

  51. error454 said

    Thank you, overwhelming evidence shows that I’m an idiot. I’ve updated the post-install scripts to do this automatically.

  52. Ed said

    I’ve tried installing Touchplayer several times last night 1.06a from the feed above. Everytime it gets stuck in validating install. Once I left it for 30 mins and came back to it and it was still validating. Am I doing something wrong?

    Internalz Pro is installed and working, homebrew-js is also installed.

    • error454 said

      The install validation should only take 3-5 seconds. Did you reboot the device after install?

      • Ed said

        Yes I did.
        Thanks for your reply =)

        I am running 3.04.
        With these patches installed from preware:
        Ad Blocker
        Faster Card Animations HYPER Version
        Muffle System Logging
        Remove Dropped Packet Logging
        Remove Tap Ripple
        Unthrottle Download Manager

        Service:
        FileMgr v2.0.7

        Linux Apps:
        EOM Overlord Monitoring
        GNU Patch
        Homebrew JS Service Framework v1.01
        Lsdiff
        Remove Untrusted SSL Certs

        Applications:
        Preware v1.8.5
        Internalz Pro v1.5.0

      • error454 said

        See my email.

  53. guynux said

    @ Lasviguas
    Could you confirm that you can receive broadcast TV channels with the RTSP protocol (Free ISP). I cannot :-(
    My test make me think that mplayer had be compiled against an old version of live555. Am I wrong ?
    More information please !
    Error454, could you relay by email ? Thanks a lot

    • lasviguas said

      Bon, je vais la faire en francais…

      Mon environnement Freebox v5, Touchpad en 3.0.2 (parce que sous 3.0.4 le browser me rendait fou !!!)

      Prérequis pour faire fonctionner le multiposte de la Freebox sur la HP Touchpad:
      - évidemment avoir souscrit à l’option TV chez Free
      - sur l’interface de gestion du routeur de la Freebox: fixer le bail DHCP de la tablette (de toute façon c’est toujours mieux), redirection de la plage de port UDP 31336 à 31341 vers l’IP de la Touchpad => reboot de la Freebox pour valider les modifications…

      Là ça ce complique et vous devez comprendre ce que vous faîtes…
      - ajouter la règle suivante dans le fichier “/etc/pmnetconfig/iptables-common.config”, règle:
      “-A INPUT -p udp -s mafreebox.freebox.fr -j ACCEPT”…reboot de la Touchpad
      Donc j’accepte tout l’udp venant de mafreebox.freebox.fr…moi j’ai fait ça bêtement avec un Internalz Pro…

      En l’état actuel, votre Touchpad doit laisser entrer les flux multiposte de la Freebox…après deux solutions s’offrent à vous:
      - modifier directement les deux fichiers “FileBrowser.js” pour changer l’interface à votre convenance et paramétrer dans “ffplayAssistant.js” pour lancer mplayer avec les commandes qui vont bien (ie pour France 2 SD:
      mplayer -really-quiet -lavdopts fast:skiploopfilter=all:threads=2 -cache 8192 -cache-min 5 -vf scale=:288 \”rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=201&flavour=sd\” > mplayer.log 2>&1

      …à noter par exemple sur cette chaine le paramètre vf scale=;288 qui permet d’obtenir le ratio correct pour l’écran de la tablette (résol du flux F2 en SD = 480×576)

      - deuxième solution, créer votre propre appli (en s’aidant notamment des excellents devCast de WebOsFrance…) et utiliser le service mis à dispo par le non moins excellent programme de Zach…qui d’ailleurs souhaite ajouter le paramètre scale pour les appels à son service.

      PS: mes rares essais sur les flux HD n’ont pas été concluants…mais bon, je ne suis ni expert linux, ni expert mplayer et pas vraiment sous Webos…juste curieux…

      • guynux said

        Echec malgré les excellentes descriptions ci-dessus entièrement appliquées (sauf mplayer lancé en ligne de commande). Fonctionne sur mon PC/Ubuntu même sans redirection de ports (maîtrisé par ailleurs). Afin de ne pas surcharger le blog, je souhaiterais avoir un contact furtif à : mon pseudo (en minuscules) à gmail. Merci
        Last post in french, thanks :-)

      • Grobux said

        Hi,

        Thanks a lot Lasviguas, you have the solution!
        The only problem come from iptables rules, changing routing is useless.

        I launch the development of a Touchpad app for FreeboxTV right now.
        Now, the chalenge (for me) is to make a patch for iptables. I think that a shell script may do the work easily.

        Once again, thanks to you for your help, and Error454 for your great work!

      • lasviguas said

        Guynux failed to operate on a Freebox v6.
        You can contact me on gmail (same name).
        You have probably noticed that Zach has added the scale parameter for calls to the service of Touchplayer.
        Thank you Zach ;-)

      • Grobux said

        @Lasviguas: I sent you an email.
        @Error454: thanks for your last update!

      • Grobux said

        Error454,

        I got an error that give me headache. :)
        I hope someone can help me understanding what’s going wrong.

        When I try to read a RTSP stream with Touchplayer’s service, like this one: rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=201&flavour=sd

        I get an error in /var/log/messages:

        2011-11-26T15:59:06.323203Z [4726] webos-device user.crit ls-hubd: {ls-hubd.private}: File error (check JSON): undefined/roles/prv/com.wordpress.mobilecoder.touchplayer.service.json
        2011-11-26T15:59:06.323418Z [4726] webos-device user.crit ls-hubd: {ls-hubd.private}: Unable to push role (requester pid: "18368", requester exe: "/usr/palm/nodejs/node", requester cmdline: "com.wordpress.mobilecoder.touchplayer.service.js")
        

        Using Touchplayer’s GUI give me the same error.

        But, when I call mplayer directly, using that command, everything is OK:

        # /media/cryptofs/apps/usr/palm/services/com.wordpress.mobilecoder.touchplayer.service/mplayer -v -lavdopts fast:skiploopfilter=all:threads=2 -cache 8192 -cache-min 5 -vf scale=:288 "rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=201&flavour=sd"
        

        I tried the following to see if I could find something interesting:

        # cat /var/palm/ls2/roles/prv/com.wordpress.mobilecoder.touchplayer.service.json
        {
            "role": {
            "exeName":"js",
            "type": "regular",
            "allowedNames": ["com.wordpress.mobilecoder.touchplayer.service"]
            },
            "permissions": [
                {
                 "service":"com.wordpress.mobilecoder.touchplayer.service",
                         "inbound":["*"],
                 "outbound":[]
                }
            ]
        }
        

        Seems OK.

        An idea?

      • Grobux said

        I complete my previous post.

        Like Lasviguas told us, redirecting the output to a log file seems to make everything works great!
        Don’t ask me why… :)

        In ffplayAssistant.js, I patched the CommandLine object creation like that:

        var cmd = new CommandLine("killall mplayer;./mplayer " + args + " \"" + this.controller.args.source + "\" > mplayer.log 2>&1", null);
        
      • error454 said

        I have noticed that error, it seems harmless but seems to be generated for rooted homebrew services. Are you simply trying to prevent the error from being displayed or is the error causing other issues for you?

      • guynux said

        @Error454
        I am unable to connect my TP with my box “freebox” (last version v6) using your mplayer in rtsp, even I dropped all the iptables rules. I could connect with the former version (v5). I can connect my ubuntu PC with the v6.
        It comes in mind that there could be an compatibility issue coming from the LIVE555 version. Can you confirm that your mplayer has been compiled against a recent version of LIVE555 ?
        Thank you for this great job

      • error454 said

        LIVE555 is included in the mplayer source tree. Looking at the mplayer configure process, it appears that you have to specify –enable-live to enable it. I don’t recall needing to do this in the past, so they may have changed the default configure variable or I may have accidentally enabled it without documenting it. It appears I need to recompile mplayer with this enabled.

      • guynux said

        More information. My working version on my PC/Ubuntu is :
        LIVE555 Streaming Media v2010.02.10

    • guynux said

      You were right , the box provider confirmed me that there was a bug in their last version, corrected in the next one. Sorry for the trouble. Thanks

  54. [...] [...]

  55. paul said

    Nice work, thankyou! I was preparing to face the fact that my touchpad would not do what I wanted it to do, but yours is able to play HD mkv’s from my ext3fs partition… excellent! I noticed audio is out of sync a little on my first movie, will test some more. Thanks again

    • error454 said

      Audio is out of sync for HD content. I personally am using KalemSoft Media player for my HD content right now. If you’re trying to use this from a local ext3fs partition you’d have to manually link your mount points inside the KSM jail after you start KSM. I use the Enyo Network Drive Mapper to mount my network shares for use inside KSM.

      I mostly use TouchPlayer for SD content that has subtitles, really odd file formats and streaming content that KSM doesn’t handle.

  56. bill1663 said

    Great app.

    Just tried to update 1.06a to 1.07 via preware. Got an install error.
    I then uninstalled 1.06a and tried 1.07 again. Got the same install error

    -1 unable to run command-/usr/bin/curl/-user-agent Preware–create-dirs-insecure-
    location-fail-show-error-output/media/internal/.developer/com.WordPress.
    mobiler.TouchPad_1.07_all_.ipk ….

    Any solutions?

    Bill

  57. rockus said

    Hi,

    Thank you for your work. I wonder if it’s possible to set different aspect ratio or zoom. Thanks.

  58. fdany said

    Bonjour
    I have a problem with 1.07. After reboot, the install validation turns and turns and nothing happens.
    I tried with a webdoctored touchpad with only Preware and with an upgrade from 1.04 and I have also the same problem.

  59. fdany said

    finally, it could be installed. Only modification, it was an account without pasword after webdoctoring. Setting up the pass, deinstall, reinstall and it was it. Thanks.

  60. Trajce said

    Can somebody tell me how can I change subtitle color?
    And, also, how can I change subtitle coding?

  61. Tom said

    Fantastic application! Thanks for your time and effort. Any word on what features you’re working on next? I think the ability to add a folder’s contents to a playlist of some sort would be great :)

    Thanks again!

    • error454 said

      I don’t have any updates on the horizon but would like to continue to push out mplayer updates as the FFmpeg and mplayer teams push them out. Also looking forward to the webOS source drop (whenever that might occur) and the chance to integrate these codecs into the stock video player.

  62. John said

    TouchPlayer worked before but now when I open it, there are no “paths” shown. It only has the path that is 2 dots ( . . )

    Is there anyway to show the other file paths, I have files stored in my box.net file path, but I can’t figure out how to get that one to be available, any help would be much appreciated.

  63. [...] Second, you’ll need TouchPlayer: http://mobilecoder.wordpress.com/2011/10/16/touchplayer-documentation/  [...]

  64. Gary Abner said

    I have the same problem, every time I launch it it’s stuck at “validating install”. Manually installed ipk from developers website. Help?

    • error454 said

      Are you on 3.0.4? How did you install?

      • Gary Abner said

        Yes, 3.0.4. I downloaded the ipk and manually installed it from the computer. At first out failed to install, I had to install filemgr first then it seemed to install fine.

        I power cycled the touchpad, tried to launch the player and got the endless “validating install” with the rotating circle.

      • error454 said

        I downloaded the ipk and manually installed it from the computer

        This is the problem, palm-install doesn’t run the post install scripts. You need to install the package using Preware.

  65. BwackNinja said

    Wonderful application. This was exactly what I was looking for. I was especially glad to see that mplayer was compiled with ssa/ass support and I just had to add the options in the config file to get mkvs to display with embedded fonts and styling. Now I only have to worry about converting video files to play optimally. It still needs a little bit of tweaking, but so far I have:

    #!/bin/bash
    mplayer -benchmark -nosound -nosub “$1″ -lavdopts skiploopfilter=all:fast:threads=2 -vf scale=1024:-2 -vo yuv4mpeg:file=>(x264 –demuxer y4m –level 3.1 –profile main –no-cabac –threads auto –output /dev/shm/`basename “$2″`.x264 – &>/dev/null)
    mkvmerge –default-duration 0:`mediainfo “$1″ | grep “Frame rate” | cut -d ‘:’ -f 2 | cut -d ‘ ‘ -f 2`fps “/dev/shm/`basename “$2″`.x264″ -D “$1″ -o $2
    rm /dev/shm/`basename “$2″`.x264

    I just have that saved as a script I call “convert-touchpad.sh” and run it “convert-touchpad.sh inputfile.mkv outputfile.mkv” and requires mplayer, mkvmerge, x264, and mediainfo.

    One problem I have though is that unpausing doesn’t always work, so I have to rewind and that makes it keep playing. Have you or anyone else experienced that problem?

    • error454 said

      Pause/unpause is problematic, sometimes you need to rewind to make it start again, this is an mplayer behavior and only seems to happen for certain videos. I tried working around this by always rewinding by 3 seconds when unpausing, after using this for awhile I thought it felt a bit odd so I took it out.

  66. Pelcu said

    Graet and very promising app! I found it very easy in use and especially I like possibilities to change size and font for subtitles (also it’s nice that can read ordinary txt subtitles files).
    But there is an issue (for me quite important) with subtitles: I cannot properly display subtitles with special characters for my language – Polish. Subtitles are encod3wd in UTF-8 and are properly displayed in any Windows or Android video players… But not with TouchPad :( Instead polish special chars I can see only some strange signs.
    I’m not sure – is it problem with my subtitles or there is something that should be fixed in TouchPlayer?

    Anyway, till those subtitles are not displayed properly I cannot watch my favorite tv series with TouchPad. And that makes me sad :)

    • error454 said

      If the touchpad can display the characters in other apps, they should display fine.  Which font are you using? It is possible that the glyphs are only available in some fonts.

  67. prabesh said

    does it support dual audio

  68. AF said

    what happened with URL? it gives me an error ‘Could not resolve host:mobilecoder.touchpadhp.info.mcfeed ( Domain name not found)

  69. Foo Bar said

    Hello,

    I have a Vu+ Box (Dreambox “clone”). The receiver has an webinterface from where I can start a stream. This stream opens the default player which cannnot handle it. When I write the URL into the stream UI field, I can watch TV on my Touchpad. Anyway to change the default streaming client? Aspect ratio is wrong and I haven’t tested audio delay yet, but these are minor problems, which I will handle with the mplayer.conf.

    Or, if it is to difficult (I saw ‘patch’) some kind f stream bookmarks would do the job too (for me) .. okay inspiration to write my first real use webos app and start touchplayer/mplayer with the stream as parameter.

    Thanks for any hints about the default player / feature request

    thanks for this player!

Sorry, the comment form is closed at this time.

 
Follow

Get every new post delivered to your Inbox.

Join 183 other followers

%d bloggers like this: