View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: MythstreamTV BAD CHOPPY
PostPosted: Sat Jun 30, 2007 9:35 am 
Offline
Joined: Sun Jun 24, 2007 6:09 am
Posts: 9
Hi folks,
So I've installed newest release (R5 F1) and I'm playing around with MythStreamTV. If I go through and select a program then start streaming (I've tried all kinds of settings and even dropped everything down as low as it can go for the streaming properties) then I fire up the link Winblows Media Player comes up and starts buffering.. It's constantly buffering and I'll get a little snapshot of video then back to buffering. I've checked my CPU and disk and network usage in rrd and all are pretty low. Running this on a P4 2.4 ghz. with 512 meg ram. wired 100 meg lan. Is there a readme that shows tweaking on the streaming?? Or anything someone might have experienced like this and have some insight??


Thanx,
Aqua


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 02, 2007 11:39 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
Im getting recordings to stream, but they are TOO FAST....almost like the Chipmunks.

Havent had a chance to debug yet. Anyone else see this?

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 16, 2007 1:45 pm 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
khrusher:

I'm having the same problem with the streaming. On all default install settings, all the streams tend to be slightly too fast.

It isn't to the point where they sound like chipmunks, but just basically a slight 'fast forward'. This occurs with any stream configuration I set up on MythWeb.

I saw from other threads that you've been working with mythstreamtv for a few months. Have you always had this issue, on other releases?

I'll post if I find the issue.


Top
 Profile  
 
PostPosted: Mon Jul 16, 2007 11:41 pm 
Offline
Joined: Thu May 25, 2006 9:28 pm
Posts: 8
I just installed R5F1 and StreamTV has the same or similar problem as described above. For me it streams OK, but both on the LAN and across the internet it is skipping frames, it constantly play at a too-high rate of speed (pitches are noticeably high) and keeps dropping frames by advancing to the next one. The effect is that every 5th word of dialogue is sliced in two, making it unwatchable. I notice VLC 0.8.6a is being used; perhaps there is a way to revert it to 0.8.5? By the way I tried watching the streams with VLC player 0.8.6c and that didn't help either. This problems occurs with both WMV and DIV3 encoding.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 7:49 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
I did some work wtih mythstreamtv on an older version of mythtv. When I was working on it, mythweb was still in the 'old' themed format.

I have recently upgraded to R5F1 and now hav issues.

My pre-updated system was working perfectly, streaming recordings, Live TV, using streaming setting save in the database. I would like to get bacl to that but the first step is getting the streaming to work for recordings.

I thinking about rebuilding ffmpeg and vlc. Maybe post-R5F1 builds will have this corrected.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 11:00 am 
Offline
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
I'm not having "too fast" problem on my home lan running R5F1 and VLC 0.8.6 (wxWidgets interface). In mythweb the only change I make from default is http protocol. However I do experience considerable pixelation and lineart deinterlacing seems to be somewhat helpful - viewing on an analog lcd.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 2:11 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
hmm, all of my testing has been via Internet to work....but that worked before the upgrade.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
PostPosted: Tue Jul 17, 2007 3:01 pm 
Offline
Joined: Thu May 25, 2006 9:28 pm
Posts: 8
I should have said that the files I record are 720x480 MPEG2 files. And this is a clean install from scratch of R5F1. My next test will be to watch a "live" recording just after it begins - since it is streaming out at a speed faster than real time, at some point the client will "catch up" to the current recording, then we'll see what happens....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 8:39 pm 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
Well a quick update from my end after some testing tonight.
I tried several media players. And results aren't consistent across them:
VLC - 'slightly fast forward' effect in playback with what seems to be a sporadic audio jitter
MPlayer - Audio / Video fine. However, out of sync even with autosync settings enabled
Windows Media Player - no sound (actually, i never got sound from WMP)
Media Player Classic - Doesn't load / render

These are all from manually opening with the Open URL options in each player (i.e. http://(ip address):8001 )

Also, these issues occur for all settings of audio and video encoding. However, the seemingly best results for testing were with: DIV3 video, MPGA audio, 128 kbps video, 65 kbps audio, 25% size, 5 fps, HTTP.

On top of this, the mythstream.sh dies after approximately 3 seconds after it is called.
Using the following call:
Code:
# /myth/streamtv/mythstreamtv.sh 'DIV3' 'mpga' '128' '64' '.25' '5' 'http' '' '' '/myth/tv/1031_20070706150000.mpg'


The results from the mythstreamtv log are:


Code:
Starting Stream of 5
VLC media player 0.8.6a Janus
starting VLC root wrapper... using UID 0 (root)
[00000287] main interface: creating httpd
[00000281] main playlist: nothing to play


After the 3 mins, the processes die as well.

So thats where I am at right now.. any good alternatives? (Tried MythTV Player for windows, but the audio was out of sync there and there is currently no support for syncing I believe)


Top
 Profile  
 
 Post subject: Audio jitter
PostPosted: Wed Jul 18, 2007 3:50 pm 
Offline
Joined: Thu May 25, 2006 9:28 pm
Posts: 8
tzoom84, your description of the playback problem that I'm seeing is perfect. Playback seems noticeably faster than real time, and there is a jitter in the audio that keeps leaping ahead, lopping off words in the dialogue. It's hard for me to tell if the video is "jumping" as well. I'm not having problems with the stream dying though, I can run it for a long time without it dropping. This is an installation (on Sunday) of R5F1 from scratch on a blank HD so I've made no modifications to mythweb or mythstream.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 18, 2007 7:11 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
interesting comments on the various players. However, I see vlc errors in the server output even w/o starting a client.

I have tried streaming an old recording R4V? and had same results.

Also my results are consistent for all video and audio formats

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject: VLC log?
PostPosted: Wed Jul 18, 2007 7:17 pm 
Offline
Joined: Thu May 25, 2006 9:28 pm
Posts: 8
khrusher, I'm curious where is the output of VLC, how would someone check it while running a stream? I'm curious to see if this "stock" installation would show errors.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 19, 2007 1:39 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
in the directory that has mythstreamtv.sh, there is a log.txt file.

/myth/streamtv/log.txt on my R5F1 box.

you can increase the verbosity of the VLC output by adding 'v' to the command in mythstreamtv.sh in two places. change the -v wiht -vvv

Code:
      if [ $PROTOCOL = "mms" ]; then
        /usr/bin/vlc -vvv -I http --http-host=:8002  --sout-transcode-fps=$FPS --sout-transcode-deinterlace $1 ":sout=#transcode{vcodec=$VCODEC,acodec=mpga,vb=$VB,ab=$AB,scale=$SIZE}:std{access=mmsh,mux=asfh,url=:8001}"
      elif [ $PROTOCOL = "http" ]; then
        /usr/bin/vlc -vvv -I http --http-host=:8002  --sout-transcode-fps=$FPS --sout-transcode-deinterlace $1 ":sout=#transcode{vcodec=$VCODEC,acodec=mpga,vb=$VB,ab=$AB,scale=$SIZE}:std{access=http{user=$HTTP_USER,pwd=$HTTP_PWD,mime=video/x-ms-asf},mux=asf,url=:8001}"
      fi


for debugging, you can run the mythstreamtv.sh right form the command line, takes a bit to get the args correct, but does make it easirt (IMHO).

Here is an example:
Code:
/myth/streamtv/mythstreamtv.sh 'WMV2' 'A52' '128' '64' '.25' '5' 'http' '' '' '/myth/tv/1076_20070717205900.mpg'

this will pump the messages to the screen

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 3:17 pm 
Offline
Joined: Thu May 25, 2006 9:28 pm
Posts: 8
Thanks khrusher, for the log info, now I'm going to read these logs. But I just had to quickly post that I discovered that switching the audio portion of the recording settings to 48kHz instead of the default 32kHz resolved the audio problem with streaming, for me. Now I'm going to check the logs and report what they say about the change.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 21, 2007 2:09 pm 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
Some updates on my end.
1. I noticed that the mythstreamtv.sh uses the VLC command without ever setting the audio codec selected in mythweb. If one wants to switch this, they can change mythstreamtv.sh to:
Code:
      if [ $PROTOCOL = "mms" ]; then
        /usr/bin/vlc -vvv -I http --http-host=:8002  --sout-transcode-fps=$FPS --sout-transcode-deinterlace $1 ":sout=#transcode{vcodec=$VCODEC,acodec=$ACODEC,vb=$VB,ab=$AB,scale=$SIZE}:std{access=mmsh,mux=asfh,url=:8001}"
      elif [ $PROTOCOL = "http" ]; then
        /usr/bin/vlc -vvv -I http --http-host=:8002  --sout-transcode-fps=$FPS --sout-transcode-deinterlace $1 ":sout=#transcode{vcodec=$VCODEC,acodec=$ACODEC,vb=$VB,ab=$AB,scale=$SIZE}:std{access=http{user=$HTTP_USER,pwd=$HTTP_PWD,mime=video/x-ms-asf},mux=asf,url=:8001}"
      fi

..note the change from 'mpga' to $ACODEC where acodec= is.

Although, the reason why it is probably mpga by default always, is because the other two don't seem to work...at least for me. So even though I changed it to allow that argument, I always keep it at mpga

2. It turns out that my streams DON'T die off after 3 minutes as long as I have mythweb open to the 'create stream' page, where the web controls lie. Kind of weird but I'll stick with that for now and just leave mythweb open. Perhaps it looks for a logged in user to stream?

3. I still can't seem to fix my audio jitter, despite whatever audio codec or speed I use. I did switch to basically every video and audio codec listed on the VLC site (using a manual command to start the stream from command-line each time). But no luck.

I do get a lot of warnings when I spit out the log. Here are some examples of warnings within the first 30 seconds - 1 minute:

Code:
[00000292] main input warning: clock gap, unexpected stream discontinuity
[00000294] stream_out_transcode private debug: drift is too high, resetting master sync
[00000415] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1185048227133458, last: 1185048227143334)
[00000415] ffmpeg encoder debug: warning, clipping 1 dct coefficients to -127..127 (msmpeg4@0x81a07b0)
[00000416] main private warning: backward_pts != dts (-20221)
[00000416] main private warning: backward_pts != current_pts (-13393)
[00000416] main private warning: vout synchro warning: pts != current_date (43336)


These are in no particular order, because most of them tend to repeat throughout the streaming process. Additionally, the most POPULAR warining is the "drift is too high" warning which sort of overloads all the others over time.

Are these warnings normal? I don't know how to interpret them, as issues, or nothing special.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 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