LinHES Forums
http://forum.linhes.org/

Playing back recordings via mythweb
http://forum.linhes.org/viewtopic.php?f=6&t=11385
Page 1 of 1

Author:  marc.aronson [ Wed Aug 30, 2006 11:52 am ]
Post subject:  Playing back recordings via mythweb

When you click on the preview image for an existing recording in the mythweb "recorded shows" windows, mythweb sends the following string back to your browser:

Quote:
myth://<server IP address>:6543/<name of file with recording>


When this comes back to my browser (internet explorer), I get an error. I've since modified the appropraite configuration file so that things work for me because it now sends the string:
Quote:
http://<server IP address>/video_dir/<name of file with recording>

(video_dir is a sym link in /var/www that points to /myth/tv)

So things work, but I am left with a question: Why does the default mythweb configuration generate the first string? Is this a bug, or is this supposed to work properly? If so, can someone explain a bit more to me (or point me at some documentation) that explains what that first string is supposed to do? I can't help but think that I'm missing a trick here by not understanding the way things were configured by default.

Thanks!

marc
[/quote]

Author:  marc.aronson [ Fri Sep 01, 2006 5:21 am ]
Post subject: 

Let me ask the question a different way: Does the default mythweb configuration work for anyone, or does everyone have to edit the conf.php file and change the definition of "video_url"? Thanks!

Marc

Author:  ceenvee703 [ Fri Sep 01, 2006 6:14 am ]
Post subject: 

The default doesn't work for me the same way it doesn't work for you, but I just use MythStreamTV instead.

Author:  khrusher [ Fri Sep 01, 2006 6:59 am ]
Post subject: 

I've tweeked my mythweb screens to make the 'REcorded Programs' thumbnails be links to mythstreamtv.

Not to hard, I'd share the full source but my world is still based on 'old' mythweb.

in file /var/www/mythweb/themes/Default/recorded_programs.php

I have changed the href as below....its in 3 places (there are 3 links per line)
Code:
root@mythtv:/var/www/mythweb/themes/Default# diff recorded_programs.php.save   recorded_programs.php
148c148
<             echo '<a href="'.video_url().'/'.basename($show->filename)."\" name=\"$row\">"
---
>             echo '<a href="mythstreamtv_confirm.php?streamfile[]=/myth/tv/'.basename($show->filename)."\" name=\"$row\">"


This assumes you have mythstreamtv setup and that your recordings are in /myth/tv....adjust accordingly

Author:  marc.aronson [ Fri Sep 01, 2006 10:38 pm ]
Post subject: 

Thanks for the replies -- seems like a good approach. I'm still left wondering why the developers of mythweb released with a default link of the form "myth://servername:6543/filename". It leaves me wondering if there isn't a plugin out there somewhere that enables a browser to speak the myth protocol.

In any event, I guess I'll keep using the "PlayWithVLC" extension for now.

Marc

Author:  khrusher [ Sat Sep 02, 2006 6:17 am ]
Post subject: 

there are some filters you can install on you pc to use these links.

I think they might be here

http://sourceforge.net/projects/dsmyth

Author:  marc.aronson [ Sat Sep 02, 2006 9:56 am ]
Post subject: 

Thanks for the pointer! I downloaded and install it. It does make it so that the "myth://" URL is recognized, but I consistantly got an error message about "unknown decompressor". According to the readme file the most recent version only works for 0.18.1 and I'm on 0.19. Could have been interesting if it had worked.

I am running into a problem using VLC the way I did with 0.18 (R5A30.2). When I try to playback recordings via VLC the video starts to get choppy about 18 seconds into playback. An examination of the VLC message log shows the following:
Quote:
main warning: clock gap, unexpected stream discontinuity
main warning: clock gap, unexpected stream discontinuity
main warning: vout synchro warning: pts != current_date (-8429)
main warning: clock gap, unexpected stream discontinuity
main warning: vout synchro warning: pts != current_date (9545)
main warning: clock gap, unexpected stream discontinuity
main warning: backward_pts != dts (-9207)


This pattern of messages continues for many thousands of lines. I have verified that recordings created under R5A30.2 do not have this problem, so I am guessing that the new IVTV driver is creating mpg streams with some sort of problem. The mythtv front-end plays back the recordings without problem. So it looks like I need to use another mehtod for doing video playback from mythweb.

Question: I have used mythstreamtv successfully. The one thing I find awkward is making the playback navigation buttons visible on my desktop while simultaneously making the playback window visible on the desktop. Has anyone developed a way of embedded the video playback windows inside a web page that also has the navigation buttons on that same page, perhaps positioned below the video window? Thanks!

Marc

Author:  khrusher [ Sat Sep 02, 2006 8:21 pm ]
Post subject: 

there was some work on an ajax update to mythstreamtv. A google of mythstreamtv and ajax may yield what you are looking for, but it may be based on old mythweb.

unfortunatly several of us made several updates to the code just before mythweb got revamped.

dammit, you guys are gonna make me upgrade so I can make my updated mythstreamtv work with teh net mythweb. I have better playback controls, playback setting/templates saved in the database (so I dont fuss with the dropdown lists each time) I can change channels on the fly while watching live.

but alas, its based on old mythweb....ugg

Author:  lusid [ Sun Sep 03, 2006 1:48 am ]
Post subject: 

I'm taking a slightly different approach. I have samba configured to share out my myth folder, and I configured the dsmyth filters to use a vbscript for playback. Then I wrote a little vbscript to take the myth:// url and extract the filename, and pass it off to VLC.

The upside is that I can navigate through the video with ff/rw etc, and not just get stuck watching it stream. I also want to hold off on doing any serious tweaking on the backend before .20 is released

Here's what I am using to open myth urls in the filer configuration:
WSCRIPT "C:\mythwatcher.vbs" "%1"

And here's the vbscript:
mythwatcher.vbs
Code:
'Samba path to my recordings:
TVPath = "\\mythtv\myth\tv\"

'Path to my video player (VLC):
Player = "C:\Program Files\VideoLAN\VLC\vlc.exe"

'Extract the real filename

Set Args = WScript.Arguments
URL = Args(0)

Position = 0
for L = 1 to len(URL)
If Mid(URL,L,1) = "/" then Position = L
Next

File = TVPath & Right(URL, Len(URL) - Position)

'Pass the samba path off to VLC:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run(chr(34) & Player & chr(34) & " " & File)

Author:  marc.aronson [ Sun Sep 03, 2006 10:08 am ]
Post subject: 

Lusid, I also like the approach of using VLC reading from a samba share for playback. This is what I was doing while I was running R5A30.2/0.18. When I upgraded to R5D1/0.19 I started have the problems with choppy video playback as I described 3 posts back on this thread. It sounds like you aren't having this problem so here are my questions:

1. What version of VLC are you using? (I've tried 0.81, 0.84a and 0.85)
2. What platform are you running VLC on? (I'm on windows/xp)
3. What version of knoppmyth are you on (R5D1 for me)

Thanks!

Marc

Author:  marc.aronson [ Mon Sep 04, 2006 12:12 am ]
Post subject: 

OK, I've narrowed down the problem. All recordings made without capturing the "Closed Caption" stuff will playback fine with VLC. All recordings made where the "Closed Capture" stuff is recorded will not play back properly with VLC. So the problem has nothing to do with R5A30.2 vs. R5D1 -- it's about the way VLC responds to the CC data captured in the VBI. I have also verified that another media player I have can handle the recordings that VLC gets into trouble with, so it looks like that the issue is in VLC.

Until the problem is resolved I am using Nero Showtime for playing back the recordings via mythweb.

Marc

Author:  marc.aronson [ Fri Sep 08, 2006 10:46 pm ]
Post subject: 

lusid, I finally got a chance to trying out your script with the dsmyth filters -- tweaked the script to use nero showtime. It's great -- thanks for sharing this apporach! I used to have to right-clickand select "play with VLC" from the context menu -- now I can just click on the thumbnail to being playback. Thanks for sharing this!

Marc

Author:  vincduran [ Mon Oct 16, 2006 11:16 pm ]
Post subject: 

Hi Marc, when I first installed R5B7 or perhaps R5C7 I clicked on a thumbnail in Recorded Programs and the thing just popped open windows media player and started playing like magic. I thought, Man my family can use this. It's pretty much never worked since. I'm tempted to get an old drive and try one of those older versions and see if it works, take some notes and try getting it working again. I didn't knowingly have vlc installed and had done no editing or customization of files. The Closed Captioning information is important I think. I'm sure I didn't have it on at the time of that inital test but have had it on since then certainly.
What's the other media player you use?
thanks

Author:  marc.aronson [ Tue Oct 17, 2006 11:07 pm ]
Post subject: 

vnicduran, I'm using mplayer for windows. There are numerous sites where you can download a pre-built version. I found that following playback options work well:

Code:
# Write your default config options here!
autosync=100
cache=4096
autoq=100
fs=y
vf=crop=700:460:10:10,kerndeint,unsharp,denoise3d,noise


I placed these in the default config file and am please with the results.

Marc

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/