View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 37 posts ] 
Go to page Previous  1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Jan 29, 2007 3:58 pm 
Offline
Joined: Fri Dec 29, 2006 12:37 pm
Posts: 11
Well it looks like my networking issues were a result of bad network runs. Attached the mythtv box to a new run, and had no problems streaming flash recordings.

Unfortunately, I have had no luck what so ever getting the recordings to play in a media player (preferably Windows, but VLC player doesn't work either).

I am not 100% sure what the "Video URL" setting should be on the Global defaults page. I have tried many combinations (using symbolic links and actual directories, specifying port 8001 and not doing so in this setting). I am not sure how much this affects the ability to stream a recording to a media player.

Also can't get the VLC HTTP interface to work. Firefox prompts to install a plugin, but it doesn't know what it is. Anyone know what plugin the browser is looking for?

Thanks,
Ken


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 2:13 pm 
Offline
Joined: Fri Dec 29, 2006 12:37 pm
Posts: 11
I made some good headway today streaming recordings to Windows Media Player (using Firefox. IE still not working properly as mentioned in an earlier post).

In the MythWeb page, using the StreamTV link, I had no success streaming a recording. I did notice near the top of the page after selecting a recording and options, and after clicking the "start Live stream" button there were the following links:
Launch Stream: [mms://my.host.com:8001] | [http://my.host.com:8001]

Of course clicking on them did nothing. I finally found the file(s) that contained these links, and changed the line of code referring to my.host.com to mms://xxx.xxx.xx.xxx:8001 and http://xxx.xxx.xx.xxx:8001 respectively (x's representing the IP address of my myth box).

The two files I made these changes in are:
/usr/share/mythtv/mythweb/modules/streamtv/tmpl/compact/createfile.php
/usr/share/mythtv/mythweb/modules/streamtv/tmpl/default/createfile.php
I changed the entries in both files, which may or may not be necessary, but it did the trick, mostly.

Now when I choose the mms option and click to "start live stream", then click the mms:// link, Media player opens and streams beautiful video, but I get no audio. If I click the http:// link, I get a blank page titled:
(video/x-ms-adf Object)

So still need to find out why the audio doesn't work. But considering that Windows media player would not even play a file I saved locally to the workstation (copied from my Myth box), this is a step forward.

One oddity though, If I click a title link pointing to the mms:// address in the "Recorded Programs" portion of the interface, Media Player opens and produces an error stating "Windows Media Player can not find the file....".

One other note. I downloaded the MythTV Player. It works well, but for my purposes, I don't want to introduce new software to my systems. Also the default viewing area is rather small. It can be enlarged, but the video quality suffers. But this makes a nice front end to connect to MythTV without use of MythWeb.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 5:40 pm 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
Still trying to get the Flash stuff working, but in regards to the streaming, I looked at those two PHP files you modified. A lot of the commands reference the folder /usr/share/mythstreamtv/ which does not exist on my R5E50 system. All of the files referenced for that directory are actually in the /myth/streamtv/ directory on my system. I modified all of the files in the tmpl/default directory to reference the correct location. Still don't have any audio though.

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 6:21 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi Opel70,

There were a few errors in some of the files, namely serverecording, streamrecording, and a few updates in ffserver.conf. Check the wiki for reference to the originals.

I see you are getting this URL when over the bitmap of the recording...
"http://servername/mythweb/pl/stream/7062/1169713800"
This could mean the recorded.php does not have the correct modifications, but also could mean the wythweb settings are wrong. You need to choose the default templates and themes (opposed to the WAP, compact, or grey), and you need to enable the pixmaps for the recordings. This an issue i need to look in to.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 6:27 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi Opel70,

There were a few errors in some of the files, namely serverecording, streamrecording, and a few updates in ffserver.conf. Check the wiki for reference to the originals.

I see you are getting this URL when over the bitmap of the recording...
"http://servername/mythweb/pl/stream/7062/1169713800"
This could mean the recorded.php does not have the correct modifications, but also could mean the wythweb settings are wrong. You need to choose the default templates and themes (opposed to the WAP, compact, or grey), and you need to enable the pixmaps for the recordings. This an issue i need to look in to.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 1:33 am 
Offline
Joined: Thu Jan 18, 2007 12:59 am
Posts: 11
opel70 wrote:
Still trying to get the Flash stuff working, but in regards to the streaming, I looked at those two PHP files you modified. A lot of the commands reference the folder /usr/share/mythstreamtv/ which does not exist on my R5E50 system. All of the files referenced for that directory are actually in the /myth/streamtv/ directory on my system. I modified all of the files in the tmpl/default directory to reference the correct location. Still don't have any audio though.


Hey opel70

I created a symlink of /myth/streamtv/ to /usr/share/mythstreamtv and things seemed to get a little closer. I got some good info from the log file display which didn't show anything before... this is what i see when launching a stream:

Starting Stream of /myth/tv/1027_20070131093000.nuv
VLC media player 0.8.6 Janus
[00000280] main interface: creating httpd


Also, now i see a flashing red "Stream is active". However when i connect to the mms with media player the stream buffers to 100% but i don't see any video or audio even though it thinks its playing. Kind of wierd.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 10:30 am 
Offline
Joined: Fri Dec 29, 2006 12:37 pm
Posts: 11
OK, I need some help with the php syntax since I have no experience with it. I found where the code in some files (ie. /usr/share/mythtv/mythweb/modules/streamtv/tmpl/compact/createfile.php) have references to directories that need to be changed from /usr/share/mythstream to /myth/streamtv.

But there are some lines of code that I have no idea if it is incorrect, but doesn't make sense to me. I have a few examples:

In the above mentioned createfile.php, starting at line 5 (and a similar line to print the footer at line 118):
Code:
// Print the page header
    require 'modules/_shared/tmpl/'.tmpl.'/header.php';

Should the second line above read like this instead (removing the underscore before shared)?:
Code:
   require 'modules/shared/tmpl/'.tmpl.'/header.php';


My next question involves similar lines of code on line 91 & again on 109:
Code:
        <form method="get" action="<?php echo root; ?>/streamtv/createfile"> 

I would think, but again be wrong that these 2 lines read:
Code:
        <form method="get" action="<?php echo root; ?>/streamtv/createfile.php">


I also see similar references to in /usr/share/mythtv/mythweb/modules/streamtv/tmpl/compact/selectstream.php
Line 45:
Code:
<form class="form" id="program_titles" action="streamtv/confirm/" method="get">

Line 71:
Code:
    <td><a href="streamtv/selectstream?sortby=title"><?php echo Title?></a></td>

Lines 76 - 79:
Code:
    <td><a href="streamtv/selectstream?sortby=channum"><?php echo Station?></a></td>
    <td><a href="streamtv/selectstream?sortby=airdate"><?php echo Airdate?></a></td>
    <td><a href="streamtv/selectstream?sortby=length"><?php echo Length?></a></td>
    <td><a href="streamtv/selectstream?sortby=filesize"><?php echo Filesize?></a></td>

Should what to my untrained eye to be file names read:
confirm.php and selectstream.php on the various lines in this file?

Hopefully someone can let me know if I am correct or not on any of these points.

Thanks,
Ken


Top
 Profile  
 
 Post subject: Success... mostly
PostPosted: Mon Feb 12, 2007 2:55 am 
Offline
Joined: Thu Feb 01, 2007 12:44 am
Posts: 66
Location: Dallas, TX
Hi,

I got flash streaming working by just changing the header and eliminating the extra closing tags of streamrecording.php as kenapp did, then adding the symlink #ln -s /myth/streamtv /usr/share/mythstreamtv as bigmrt123 did.

It is playing on a Win box with firefox that is connected by 100mb wired router. It is pretty pixelated and tinny. I tried upping the quality using ffserver.conf as recommended by bigB, but neither of the next 2 options worked. I got the correct page, but the flash movie never loads.

Does anyone see a problem with the below? Or are there other options I needed to change at the same time? I tried FileMaxSize 0 as kenapp did, but that didn't fix it.
Code:
<Stream flash_256.swf>
Feed feed1.ffm
Format swf
AudioBitRate 16
AudioChannels 1
AudioSampleRate 11025
AudioCodec mp3
VideoBitRate 196
VideoFrameRate 5
VideoSize qcif
VideoGopSize 20
VideoCodec flv
</Stream>

or

<Stream flash_384.swf>
Feed feed1.ffm
Format swf
AudioBitRate 16
AudioChannels 1
AudioSampleRate 11025
AudioCodec mp3
VideoBitRate 300
VideoFrameRate 10
VideoSize cif
VideoGopSize 30
VideoCodec flv
</Stream>

Thanks for everyone's recs.

_________________
Trying to install KnoppMyth R5F27, ECS 671T-M, Celeron 430, 1gig RAM, 320gig SATA Seagate, Samsung SATA SH-S203N DVD drive, Onboard video and audio, DVICO Fusion HDTV 5 Lite, Seasonic S12II-330watt PS


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 4:24 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi Colinnwn,

You're on the right track regarding the quality change. But my usage of the keyword 'flash_128.swf' is definitely misleading. That keyword is used in other files as well. So the easiest way would be to retian the use of 'flash_128.swf' and change the details within.

EG.
Code:
<Stream flash_128.swf>
Feed feed1.ffm
Format swf
AudioBitRate 16
AudioChannels 1
AudioSampleRate 11025
AudioCodec mp3
VideoBitRate 300
VideoFrameRate 10
VideoSize cif
VideoGopSize 30
VideoCodec flv
</Stream>


BigB


Top
 Profile  
 
PostPosted: Tue Feb 13, 2007 5:45 am 
Offline
Joined: Thu Feb 01, 2007 12:44 am
Posts: 66
Location: Dallas, TX
So after bigB clearing me up on how to change the quality of the Flash stream, and making a final change to streamrecording.php (spartas recommendation to change HTTP_HOST to SERVER_NAME if not running on port 80), streaming Flash now works on my intranet and over the internet! Thanks to all for the help!

Now I can start trying to figure out why streaming TV has no audio in Windows Media Player locally or over the internet, and why VLC now has only audio locally, and doesn't work at all over the internet. Oh joy!

Perhaps I am making poor choices with the stream type? Does anyone have recommended "low-bandwidth" settings known to work with either WMP or VLC?

_________________
Trying to install KnoppMyth R5F27, ECS 671T-M, Celeron 430, 1gig RAM, 320gig SATA Seagate, Samsung SATA SH-S203N DVD drive, Onboard video and audio, DVICO Fusion HDTV 5 Lite, Seasonic S12II-330watt PS


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 9:53 am 
Offline
Joined: Wed Feb 15, 2006 9:08 pm
Posts: 12
First off I'd like to thank you for implementing this. I am in the Air Force and eventually when I get shuffled around and such I look forward to still watching some of my recorded shows from home. I think this work is great.

I was having the same problems as many in this thread but using some of the tricks I managed to get the streaming to work. Now, however the stream runs for about 10 minutes and stops. I watch the backend processes using top and it's showing the ffmpeg running for about 1 minute and then stops. The stream plays for a few more minutes and thats when it stops. It's like it's going faster on the ffmpeg but then hits some bump and decides to stop but the flash player plays all the video it did get sent. I don't know what soft of log file I could look in for start for info to help anyone. I'd really love to get this working entirely so that I will have this available to me. Thanks again so much for getting this work going and to the entire project. I only wish I had some skill I could donate other than answering the very few forum questions I can answer.

_________________
Keep your stick on the ice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 4:19 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
I'm glad that flash streaming has been handy for some people, hopefully most of the issues have been ironed out by now.

In my quest to get live tv flash streaming going (don't get too excited yet) i have worked out how to get mplayer to pipe video to ffmpeg. I'll report back here after i have done some testing, but i'm hoping that mplayer will be more tolerant to corrupt files. Hopefully this will fix your problems.

In the mean time, what format are the problematic files in? Are they from a DVB (ATSC) card, or an mpeg encoding card?

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 4:35 pm 
Offline
Joined: Wed Feb 15, 2006 9:08 pm
Posts: 12
I'm having this trouble with all my recordings. I have a pvr-250 so they are all mpeg-2 PS. I do have an ATI TV Wonder Pro in there that I am thinking of enabling. I could give a recording from that a whirl if you think it might provide some good info.

_________________
Keep your stick on the ice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 4:42 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
I was hoping that mpeg files from the pvr-250 would be pretty clean. I can reproduce this type of problem at home, so i'll try a few things first, and post my results.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 6:14 pm 
Offline
Joined: Wed Feb 15, 2006 9:08 pm
Posts: 12
OK. Could it just be that the ffmpeg is finishing with it's entire transcode before the stream is actually completely transfered to the player through MythWeb? I thought i saw that ffserver stops running when ffmpeg stops running. If thats the case and the video hasn't completely been streamed to the frontend and ffmpeg is done then that would produce this sort of thing. I could be wrong. Just a thought.

_________________
Keep your stick on the ice.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ] 
Go to page Previous  1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu