Streambaby - new streaming application

That does sound about the point that the buffer would fill. If you watch a video that has stopped but start watching from just before the point it stopped last time, I'm guessing that it would continue past the point that it froze last time. This would indicate that something is preventing Streambaby from rebuffering when you hit this point, but I don't know what that might be.

Does the position bar update correctly when playing a video? If not, this might indicate that Streambaby is not able to track where you are in the video.

That does sound about the point that the buffer would fill. If you watch a video that has stopped but start watching from just before the point it stopped last time, I'm guessing that it would continue past the point that it froze last time. This would indicate that something is preventing Streambaby from rebuffering when you hit this point, but I don't know what that might be.

Does the position bar update correctly when playing a video? If not, this might indicate that Streambaby is not able to track where you are in the video.

Click to expand...

Yes it tracks the time, but then it freezes at the 1 hour or so mark of the video. I can rewind until that point, but it cannot play past that point. If I try to fast forward past the buffer it reboots and starts at the beginning.

No it freezes. I can rewind, but it cannot play past that point. If I try to fast forward past the buffer it reboots and starts at the beginning.

Click to expand...

Is this for all files or unique to one? Is it possible the file is corrupt / making ffmpeg crash when it gets to that certain point? I think you'll see that behavior if ffmpeg fails at a certain point in the movie...

I don't think you ever answered these questions:

1) What file format are these files? mp4? .tivo? mpeg? avi? etc...
2) Can you approximate how many gigs in is the 'problem point' in the movie?
3) can you run something like 'ffmpeg -i <filename>' so we can see what ffmpeg reports about it?

Is this for all files or unique to one? Is it possible the file is corrupt / making ffmpeg crash when it gets to that certain point? I think you'll see that behavior if ffmpeg fails at a certain point in the movie...

Is this for all files or unique to one? Is it possible the file is corrupt / making ffmpeg crash when it gets to that certain point? I think you'll see that behavior if ffmpeg fails at a certain point in the movie...

Click to expand...

And if you are retesting it makes sense to turn on streambaby debugging first and then post the log again. Instructions for turning on the log is detailed here: debugging_problems

I'd love to use this, but I am a pretty busy guy these days, and don't really want to spend the time and effort to get everything compiled. I would love to see a set of binaries for the library dependancies, or better yet an installer package that installed everything for me.

At the very least, would anyone be willing to upload a tar.gz of their dependancies for Streambaby somewhere for OS X 10.5 so that I could download it?

I'd love to use this, but I am a pretty busy guy these days, and don't really want to spend the time and effort to get everything compiled. I would love to see a set of binaries for the library dependancies, or better yet an installer package that installed everything for me.

At the very least, would anyone be willing to upload a tar.gz of their dependancies for Streambaby somewhere for OS X 10.5 so that I could download it?

mphtrilogy, did you rip these videos yourself? It's just that if you have ripped a set of videos from DVD for example, but there's a problem with the program or settings used to rip them, this may be be specific to your ripping process. We may be able to replicate the issue. But if these videos are of different types or from different sources then it really points to a problem with your Streambaby installation. Obviously Streambaby works for most people, so we need to isolate what is different in your case that's causing this problem. It may be something to do with your setup or your videos. The more you can tell us, the more likely it will include a clue that will help one of us realise what the issue is.

If it is an option, you can PM me and we can arrange a way to send me a video. I'll happily try it and report back.

Whether I run the program as myself or root it starts up and appears to be ready to go but the Tivo does not see it. I thought maybe it was some issue specific to server so I tried it on my labtop which runs Ubuntu 9.04 and I get the same results. On Windows I follow pretty much the same procedure and it works every time.

Sorry to take your thread off topic but I'm not sure where else to turn. I'm a linux novice but trying to make the effort to switch and not take the easy path with windows.

...
...
#
# ./streambaby --help for more configuration file options
#

dir.1=/home/user/Videos
dir.1.name=Movies
#dir.2=/media/disk
#dir.2.name=External Drive
# Ip address to bind to
# most people don't need to change this.
#ip=192.168.1.2
# port to use
#port=7290
...
...
Whether I run the program as myself or root it starts up and appears to be ready to go but the Tivo does not see it. I thought maybe it was some issue specific to server so I tried it on my labtop which runs Ubuntu 9.04 and I get the same results. On Windows I follow pretty much the same procedure and it works every time.

Click to expand...

Ubuntu 8.04LTS was the version of Linux streambaby was developed on, and 9.04 is what I am currently running, so I am sure it works on those versions.

-- The first thing I would try is uncommenting the ip=xxx.xxx.xxx.xxx line in streambaby.ini (remove the #) and manually settting it to the IP you want streambaby to bind to (the main IP address of your linux system). I need to do this on my machine or Java likes to bind to the wrong IP.

-- Make sure you are running the latest (.27 I think, or the latest SVN version) as the older versions had difficulty on Linux systems with IPV6 enabled.

-- If none of the above solves the problem, are the Linux boxes on the same network segment as the Windows box (and the TiVo)? If you have some kind of router/bridge in between the linux boxes and the TiVo the broadcast may not make it to the TiVo. (I had this issue when I had a linksys router acting as a WiFi client bridge in front of the TiVo)

When you are playing a video with Streambaby, enter the Slow key, the video goes into slow motion, if you press the pause key, the video resumes play at normal speed. I'd like to request that Streambaby emulate Tivo playback such that when playing a video, enter the slow key, the video goes into slow motion, and if you press the pause key, the video pauses. All other combinations of play/slow/pause seem to work like Tivo playback except this one.

Click to expand...

I posted this a while ago and thought I'd try and figure it out on my own, but I have to say that I'm no Java expert. I got the following debug output when playing a video, pressing slow, and then pressing pause.

The code=9 is the slow key and it is setting the playback speed to 0.125 which plays the video in slow motion. The code=8 is the pause key, what I expect is the speed to be set to 0.0, but it is getting set to 1.0 which is normal playback speed.

I cannot figure out how the playback speed is getting set to 1.0 unless the isPaused function is broken. I've looked at both the changeSpeed function as well as the HME SDK source code and the isPaused function in the HME SDK returns a boolean, return speed == 0;

What am I missing? It's probably just my lack of knowledge about java. Anyone have any ideas before I breakdown and install a java dev/debug environment?

The ffmpeg & handbrake samples given in the wiki page should produce natively streamable mp4 files if encoding from most common mpeg2 sources with AC3 audio. Maybe you should start with a video that is known to stream natively

Click to expand...

Ah.. sure enough. That streamed perfectly with no additional transcoding. On that success, I redid my test encoding paying even closer attention to the example given and that worked as well. Perhaps I missed something in my first attempt?

Okay, so based on that, I have one set of known parameters that work. I suppose I could just experimenting with all of them to see what triggers the transcoding and what doesn't.

It seems like that should be unnecessary work, though. The code is already doing some sort of check on the parameters to decide if it passes some criteria.

So... is that part of the code available in source code or is it part of a closed-source extra lib? If it is available in source, can somebody point me to the right one? There are quite a few files in the SVN repo and I'm not sure where to start.

What am I missing? It's probably just my lack of knowledge about java. Anyone have any ideas before I breakdown and install a java dev/debug environment?

Click to expand...

I don't know-- But I just changed the line to read:

Code:

if (getLastSpeed() == 0)

instead of using isPaused()... Seems to do the trick. I've made the change in my local copy, so unless I end up finding a problem with it, it will be in the next release/SVN version.

I've also changed most other occurences of isPaused getSpeed to use getLastSpeed instead, hopefully I won't break anything.

(Note I didn't really look into this too much, except to confirm isPaused was returnging true while it was in slow-mode. It was easier just to make the change since getLastSpeed should return the correct value, as it is a value streambaby sets itself everytime it changes a speed)

Ah.. sure enough. That streamed perfectly with no additional transcoding. On that success, I redid my test encoding paying even closer attention to the example given and that worked as well. Perhaps I missed something in my first attempt?

Okay, so based on that, I have one set of known parameters that work. I suppose I could just experimenting with all of them to see what triggers the transcoding and what doesn't.

It seems like that should be unnecessary work, though. The code is already doing some sort of check on the parameters to decide if it passes some criteria.

So... is that part of the code available in source code or is it part of a closed-source extra lib? If it is available in source, can somebody point me to the right one? There are quite a few files in the SVN repo and I'm not sure where to start.

If you have a file that seems to meet those qualifications, but ends up transcoding, please post the mediainfo info for that file (there should be previous posts on how to do this, I'm not really familiar with the tool) and the information displayed when you type:
ffmpeg -i <filename>