VideoPodcast-0.2.1

Discussion about user contributed plugins

Moderator: Moderator

LivingOn
Posts: 64
Joined: Sat Dec 06, 2008 2:19 pm

VideoPodcast-0.2.1

Postby LivingOn » Sun Apr 12, 2009 5:16 pm

Hi @ll

here is the first beta of my next pyglet "VideoPodcast".
I would like to invite you to test this plyglet. The final version comes the next days.

Attention: The pygelt needed feedparser, you can install it with:

Code: Select all

apt-get install python-feedparser

If a podcast should not play, there is a problem with the video-codec. Update your player and try again.

Have fun!
LivingOn

--
md5sum videopodcast_0.2.1-beta.tgz
2d06c6b9addd77bc0aa5b424ba49c50d videopodcast_0.2.1-beta.tgz
Attachments
videopodcast.jpg
Screenshot
videopodcast.jpg (50.46 KiB) Viewed 4652 times
videopodcast_0.2.1-beta.tgz
VideoPodcast-0.2.1-beta
(56.3 KiB) Downloaded 211 times
Last edited by LivingOn on Sun Apr 19, 2009 9:32 am, edited 2 times in total.

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: VideoPodcast-0.2.1-beta

Postby acmelabs » Mon Apr 13, 2009 11:57 am

LivingOn wrote:Hi @ll
...

Thanks,
I had to adapt my mplayer-vdpau wrapper script, but now it works great.
Had my fun with "Switch reloaded", just great :-)

mplayer-vdpau wrapper script for Matroska and AVCHD (H.264) playback:

Code: Select all

#!/bin/bash                                                 
#                                                           
# Andreas Saur - http://mms.mymediasystem.net - 13th April. 2009
# Blog: http://blog.mymediasystem.net
# This script starts an additional demuxer for mpeg transport
# stream formatted video files (TS,MTS,M2TS). The extension of
# the file must be at the last position and must be called like
# one of the extension in the egrep brackets. (Extend it if needed)
# Update /etc/mms/Mplayerconfig parameter mplayer_path with this   
# file name here.                                                 
#                                                                 
export DEFAULT_OPTS="-cache 65536 -menu -fs -ao sdl -subfont-osd-scale 3"
export __XV_SYNC_TO_VBLANK=1                                             
export __GL_SYNC_TO_VBLANK=1                                             
export __GL_SYNC_DISPLAY_DEVICE="DFP-0"                                 
export __XV_SYNC_DISPLAY_DEVICE="DFP-0"                                 
echo PARAMETER=[[["${@}"]]]
# Quick&Dirty hack for LivingOn's VideoPodcast Pyglet
HTTPX=$(echo "${@}" |  awk ' { print substr($0, index($0,"http://" ) ) }')
echo HTTPX=$HTTPX
if [ $HTTPX ]; then
    /usr/bin/mplayer "${@}"
    exit
fi

FILENAME=$(echo "${@}" |  awk ' { print substr($0, index($0,"/" ) ) }')
echo FILENAME=$FILENAME
FN_EXT=$( echo $FILENAME | awk -F"." ' { print $NF }' )
VIDEO_CODEC=$( /usr/local/bin/midentify "$FILENAME" | egrep VIDEO_CODEC | awk -F"=" '{ print $NF }' )
echo MIDENTIFA=$( /usr/local/bin/midentify \""$FILENAME"\" | egrep VIDEO_CODEC | awk -F"=" '{ print $NF }' )
if [ "$VIDEO_CODEC" == "" ]; then
   if [ "$FN_EXT" == "mts" ] && [ "$VIDEO_CODEC" == "" ]; then
      OPT="-vo vdpau -vc ffh264vdpau  -fps 50 -osdlevel 3"
      OPT_FAIL_SAVE="-fps 50 -osdlevel 3"
   fi
elif [ "$VIDEO_CODEC" == "ffh264" ]; then
      OPT="-vo vdpau -vc ffh264vdpau -osdlevel 0"
elif [ "$VIDEO_CODEC" == "ffvc1" ]; then
      OPT="-vo vdpau -vc ffvc1vdpau -osdlevel 0"
elif [ "$VIDEO_CODEC" == "ffwmv3" ]; then
      OPT="-vo vdpau -vc ffwmv3vdpau -osdlevel 0"
elif [ "$VIDEO_CODEC" == "mpegpes" ]; then
      OPT="-vo vdpau -vc ffmpeg12vdpau -osdlevel 3"
      OPT_FAIL_SAVE="-osdlevel 3"
else
      OPT="-vo xv -osdlevel 0"
fi
echo \$VIDEO_CODEC=$VIDEO_CODEC
echo \$FILENAME=$FILENAME
echo \$OPT=$OPT
echo \$FN_EXT=$FN_EXT
echo /usr/bin/mplayer "$FILENAME" $OPT $DEFAULT_OPTS > /tmp/mplayer-vdpau.out
echo "#######################################################" >> /tmp/mplayer-vdpau.out
/usr/bin/mplayer "$FILENAME" $OPT $DEFAULT_OPTS 2>&1 >> /tmp/mplayer-vdpau.out
#/usr/bin/mplayer $FILENAME $OPT_FAIL_SAVE -vo xv -lavdopts threads=4:fast:skiploopfilter=all -ao sdl -fs -cache 8192 -vf pp=fd

LivingOn
Posts: 64
Joined: Sat Dec 06, 2008 2:19 pm

VideoPodcast-0.2.1

Postby LivingOn » Sun Apr 19, 2009 9:31 am

Hi @ll,

here is the final version 0.2.1 of my pyglet videopodcast.

Code: Select all

Changelog:
   - add "read" marks
   - add "flag" marks
   - add developer documentation (epydoc - german)


Have fun!
LivingOn

--
@Uatschitchun
please copy pyglet to http://wiki.mymediasystem.org/wiki/inde ... ad_Pyglets
Attachments
feedwindow.jpg
Feedwindow with "read" and "flag" marks
feedwindow.jpg (57.02 KiB) Viewed 4579 times
videopodcast_0.2.1_developer_doc.tgz
VideoPodcast v0.2.1 Developer Documentation
(81.58 KiB) Downloaded 208 times
videopodcast_0.2.1.tgz
VideoPodcast v0.2.1
(64.93 KiB) Downloaded 217 times

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: VideoPodcast-0.2.1

Postby Uatschitchun » Sun Apr 19, 2009 4:25 pm

LivingOn wrote:@Uatschitchun
please copy pyglet to http://wiki.mymediasystem.org/wiki/inde ... ad_Pyglets

Done .. Thx for your continous work on pyglets!
Lg
Roman

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: VideoPodcast-0.2.1

Postby Uatschitchun » Mon Apr 20, 2009 10:55 am

Ok, first run was no problem and worked well (allthough I had problems running mp4 files ... but that's another story ;).

Second try gave:

Code: Select all

Traceback (most recent call last):
  File "/usr/local/share/mms/scripts/videopodcast-0.2.1/main.py", line 39, in <module>
    win = VideoPodcastWindow()
  File "./lib/VideoPodcastWindow.py", line 70, in __init__
    self._urldb = UrlDB(config.VIDEOPODCAST_INI)
AttributeError: 'module' object has no attribute 'VIDEOPODCAST_INI'
PyRun_SimpleFile return -1


What to do here?
I haven't changed anything, just unpacked ...
Lg

Roman

christophb
Posts: 25
Joined: Sat Jan 03, 2009 3:30 pm
Location: Lehrte, Germany
Contact:

Re: VideoPodcast-0.2.1

Postby christophb » Wed Apr 22, 2009 9:27 pm

I get these errors:
Traceback (most recent call last):
File "/usr/share/mms/scripts/videopodcast-0.2.1/main.py", line 39, in <module>
win = VideoPodcastWindow()
File "/usr/share/mms/scripts/videopodcast-0.2.1/lib/VideoPodcastWindow.py", line 78, in __init__
self._statedb = FeedStateDB(config.VIDEOPODCAST_STATEDB)
File "/usr/share/mms/scripts/videopodcast-0.2.1/lib/FeedStateDB.py", line 47, in __init__
self._conn = sqlite3.Connection(path)
sqlite3.OperationalError: unable to open database file
PyRun_SimpleFile return -1

I only installed it with the updated mms-addon-python-pyglets and did not change anything.

MMS is running on my S100 with zendeb.

Btw: If it runs, can I even listen to audio podcasts?

Christoph
MMS 1.1.1 on T-Online Vision with zendeb 0.4.1-beta1
Controlling a remote kanotix based c't vdr.
Playing files from different CIFS and nfs mounts.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: VideoPodcast-0.2.1

Postby Uatschitchun » Thu Apr 23, 2009 6:54 am

Could you pls post the output of:

Code: Select all

ls -l /usr/share/mms/scripts

I guess this is a permissions problem! If so, you'll not be the only one and we have to think about a solution ;)

First would be to chown the videopdcast dir to the user you're running MMS with ... for instance:

Code: Select all

sudo chown -R :users /usr/share/mms/scripts/

A global solution would be to change the paths in lib/config.py ... best if I change it within the deb, even better if it would be changed upstream to point to:

Code: Select all

~/.mms/

That's the place all pyglets should point to per default!
Lg

Roman

christophb
Posts: 25
Joined: Sat Jan 03, 2009 3:30 pm
Location: Lehrte, Germany
Contact:

Re: VideoPodcast-0.2.1

Postby christophb » Sun Apr 26, 2009 9:23 pm

The file permissions were:

Code: Select all

S100-zendeb:~# ls -l /usr/share/mms/scripts/
total 72
drwxr-xr-x 4 root root  4096 Apr 22 23:05 appletrailers-0.3.7
drwxr-xr-x 4 root root  4096 Apr 22 23:05 cc2tv-0.2.2
-rwxr--r-- 1 vdr  vdr  15513 Apr 18  2008 coverloader.py
drwxr-xr-x 2 vdr  vdr   4096 Apr 22 23:05 filemanager-0.5.1
drwxr-xr-x 2 root root  4096 Apr 22 23:05 handbrake-0.1
drwxr-xr-x 2 root root  4096 Apr 22 23:05 ipodsync-0.1.4
drwxr-xr-x 2 root root  4096 Apr 22 23:05 lolcats-0.2.4
drwxr-xr-x 4 root root  4096 Apr 22 23:05 mp3organizer-0.2
drwxr-xr-x 2 root root  4096 Apr 22 23:05 services-0.4
drwxr-xr-x 4 root root  4096 Apr 22 23:05 torrent-inspector-0.4.2
drwxr-xr-x 5 root root  4096 Apr 22 23:05 videopodcast-0.2.1
drwxr-xr-x 2 root root  4096 Apr 22 23:05 vobcopy-0.2
drwxr-xr-x 4 root root  4096 Apr 22 23:05 webtv-0.2.4
drwxr-xr-x 4 root root  4096 Apr 22 23:05 youtube-0.2.3
drwxr-xr-x 4 root root  4096 Apr 22 23:05 zdfmediathek-0.2.3
S100-zendeb:~#

After changing the owner to vdr:vdr the videopodcast works fine.

Thank you!

Christoph
MMS 1.1.1 on T-Online Vision with zendeb 0.4.1-beta1
Controlling a remote kanotix based c't vdr.
Playing files from different CIFS and nfs mounts.

!alex
Posts: 6
Joined: Sat Jul 25, 2009 5:40 pm

Re: VideoPodcast-0.2.1

Postby !alex » Mon Jul 27, 2009 6:28 pm

VideoPodcast-0.2.1 not starting (Debian lenny, Python 2.5.2 ond S100). I've chowned it to the s100 user and made all files executable but when selecting the Pyglet in MMS nothing is happening... How can I debug this? All other Scripts are working fine - I appreciate every advice! Thanks a lot in advance! And also many thanks to all the MMS developers who push this great application!!!

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: VideoPodcast-0.2.1

Postby Uatschitchun » Tue Jul 28, 2009 5:38 am

Pyglets put their errors into "normal" MMS log, which should be /tmp/mms.log
Lg

Roman

!alex
Posts: 6
Joined: Sat Jul 25, 2009 5:40 pm

Re: VideoPodcast-0.2.1

Postby !alex » Tue Aug 04, 2009 8:24 am

!alex wrote:VideoPodcast-0.2.1 not starting (Debian lenny, Python 2.5.2 ond S100). I've chowned it to the s100 user and made all files executable but when selecting the Pyglet in MMS nothing is happening... How can I debug this? All other Scripts are working fine - I appreciate every advice! Thanks a lot in advance! And also many thanks to all the MMS developers who push this great application!!!


unfortunately there is no log in /tmp/log

Please - any advice?

Lately when trying to start VidePodcast after a few seconds X server shuts down with some errors like "Fatal: Module intel not found." and drmOpen failed, INTEL(o): [dri] DRIScreenInit failed. Disabling DRI... gart.c: AGP memory allocation failed / bind failed; igd_mode.c No memory for ARGB cursor...

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: VideoPodcast-0.2.1

Postby naicheben » Tue Aug 04, 2009 10:36 am

Try calling mms (fx. in /home/s100/.xsession) with the path to a logfile

Code: Select all

mms 2>&1 >/tmp/mms.log
mit Hellseherschein ;.)

!alex
Posts: 6
Joined: Sat Jul 25, 2009 5:40 pm

Re: VideoPodcast-0.2.1

Postby !alex » Sat Aug 08, 2009 11:21 am

Thanks for your help. I have checked the log but unfortunatelly all that is in there (after trying to start the script) is the following line:

Clock::find_next_alarm()

Please find below some additional information - any advice?

here is the output of the ownership:
mediabox:/usr/share/mms/scripts/videopodcast# ls -l
insgesamt 68
-rwxrwxr-- 1 mediabox mediabox 30 19. Apr 00:00 AUTHORS
-rwxrwxr-- 1 mediabox mediabox 172 19. Apr 00:00 ChangeLog
-rwxrwxr-- 1 mediabox mediabox 17982 19. Apr 00:00 COPYING
-rwxrwxr-- 1 mediabox mediabox 98 19. Apr 00:00 CREDITS
drwxr-xr-x 2 mediabox mediabox 4096 8. Aug 13:17 gui
-rwxrwxr-- 1 mediabox mediabox 11 19. Apr 00:00 INSTALL
drwxr-xr-x 2 mediabox mediabox 4096 8. Aug 13:17 lib
-rwxrwxr-- 1 mediabox mediabox 1751 19. Apr 00:00 main.py
-rwxrwxr-- 1 mediabox mediabox 796 19. Apr 00:00 README
drwxr-xr-x 2 mediabox mediabox 4096 8. Aug 13:17 testdata
-rwxrwxr-- 1 mediabox mediabox 4569 19. Apr 00:00 thumb.png
-rwxrwxr-- 1 mediabox mediabox 1190 19. Apr 00:00 videopodcast.ini

# The debug level
#
# Controls how much debug will be displayed:
#
# 0 = critical errors
# 1 = critical errors + warnings
# 2 = critical errors + warnings + general info
# 3 = all info, warnings and errors
#
debug_level = 3

Lese Status-Informationen ein... Fertig
python-feedparser ist schon die neueste Version.
mediabox:~/mms/scripts/videopodcast-0.2.1# python --version
Python 2.5.2

!alex
Posts: 6
Joined: Sat Jul 25, 2009 5:40 pm

Re: VideoPodcast-0.2.1

Postby !alex » Sat Aug 22, 2009 6:09 pm

No ideas? Please help!!

LivingOn
Posts: 64
Joined: Sat Dec 06, 2008 2:19 pm

Re: VideoPodcast-0.2.1

Postby LivingOn » Tue Aug 25, 2009 6:58 am

please check your user- and group-id:

$ id

change into lib-dir

$ cd /usr/share/mms/scripts/videopodcast-0.2.1/lib

and start the following doctests:

$ python FeedStateDB.py
$ python UrlDB.py
$ python VideoPodcastParser.py

can you see any message?


Return to “user plugins”

Who is online

Users browsing this forum: No registered users and 2 guests