Welcome to GOFASTMOTORSPORTS.com ... ... ... Green Flag - Green Flag - Go Go Go ... ... Brought to you by Ricks Satellite - Where the Big Dish Rules!

Ricks Satellite Wildfeed and Backhaul Forum
Register Latest Topics
 
 
 


Reply
  Author   Comment   Page 2 of 4      Prev   1   2   3   4   Next
bluzee

Registered:
Posts: 2,185
Reply with quote  #16 
In windows you are saving to a regular file and running IPcleaner on that.  It goes until it hits the end of the file and stops.  If I save to a regular file in linux I believe the behaviour is the same.   What we do instead in linux is use a special file called a FIFO.  Data can flow in and out non stop.  Windows has no such animal.

Sounds like wejones is starting to have some luck putting the stream on the network with TSReader,  you might try that. 
wejones

Avatar / Picture

Registered:
Posts: 5,574
Reply with quote  #17 
Quote:
Originally Posted by photoman76
...

Unfortunately I have not been able to play these live or semi-live in Windows XP.
If you select pid 43 in Transedit and "Start Recording"  and then go to the recorded file and run IPCleaner on it, you will get 53 substreams.  If you click on a substream running VLC it will play until it gets to the point where you started IPCleaner and then it stops playing.  I understand that in Linux it will play forever, but I'm such a dunce when it comes to Linux that I've never been able to make it work.[frown]


You can play indefinitely, up to the memory on your hard disk anyway, if you do:
FILE
IP/DVB
select PID 43
select a stream, open it up to show the udp IP#
right click on the udp stream
select "save payload"   (before doing that, you should have selected a folder to save to in settings/IP/DVB settings

Once you have started it saving, you can open that file with VLC and it will play forever.  However obviously the file keeps getting bigger and bigger, so you need to delete it and start over next time.

 In linux, they have like a dummy file that acts like a buffer, so the file doesn't keep growing.  This should be possible in Windows too, but I don't know how to do it.

The multicast streaming works well, and I've now got it working on one of my XP computers, but not on the other ones,  TSREADER must have a NIC to stream to, even if you're going to play on the same computer, and it doesn't seem to like wireless NICs.  But it also doesn't seem to like something about my main computer either, as it bombs when I tell it to retransmit the stream.  I'm still working on the reason.  It works on another almost identical XP setup, and on my Win2k computer, but not on my main XP computer.  But playing from a file that's still being filled works well, as long as you have disk space.


photoman76

Registered:
Posts: 9,052
Reply with quote  #18 

I should have said "Unfortunately I have not been able to play these live or semi-live in Windows XP without TSReader."

With TSReader it works fine, but with Transedit, there are problems.

wejones

Avatar / Picture

Registered:
Posts: 5,574
Reply with quote  #19 
OK re it working via TSREADER but not Transedit.  Good that it works via TSREADER.

I haven't tried this yet, but I may have figured out a way to create a FIFO file that can be used in Windows.  On one of my computers, I have CYGWIN installed.   I started up CYGWIN, and created a FIFO file containing the text "hello'  via:

 $ mkfifo fifo $ echo 'hello' >> fifo

I then went back to windows.
You can see the file as a link via mycomputer. I then opened notepad, and tried to open the file,
but the file listing in notepad didn't see the fifo file. However I just typed in fifo as the file
name, and it brought up the file with the hello contents.
I was then able to add to the file in notepad, and after I saved the file, I could cat the new
contents in CYGWIN. The size of the file seemed to stay at 1 KB no matter how much I typed, and at least
when read in CYGWIN, the new stuff was at the end, and the material that was eliminated went away from the
start of the file, as expected.

However the strange thing, which is troubling, is that if I opened the file up again with notepad, the file still
seemed to have content that had been put in by notepad, but which had been eliminated due to the fifo nature
and didn't show up when viewed in CYGWIN.
Anyway, I don't have a receiver on this particular computer right now, but I'll try to test this out.
But I'm confused about why it's almost as if there are two files there, on in linux fifo format and the other in Windows
format.
So this may not work, but I'll try it tomorrow.


bluzee

Registered:
Posts: 2,185
Reply with quote  #20 
I've been able to get win apps to read from a fifo, but never write to one.   I'd check that the fifo notepad is reading and writing to is not just a plain txt file. 
wejones

Avatar / Picture

Registered:
Posts: 5,574
Reply with quote  #21 
Quote:
Originally Posted by bluzee
I've been able to get win apps to read from a fifo, but never write to one.   I'd check that the fifo notepad is reading and writing to is not just a plain txt file. 


I think you might be right.  I didn't think so at first, because I didn't see a new file appear in the mycomputer listing, but I missed it, because it showed up at the bottom of the list.  The original FIFO file had just the name FIFO, but it showed up as a link in mycomputer.  After I wrote to it a new FIFO file showed up at the bottom of the list, and where the original FIFO was, was a file called FIFO but ID'd as a link, and the listing in linux called this file FIFO.lnk.  
   I'm still confused by this though, because the fifo.lnk didn't have the original "hello" in it, but instead had about 130 bytes of gibberish.   I've tried to repeat the entire process to figure it out, but now everything hangs up once I try to do the echo command to put the hello in there.

  Anyway, I'm confused re what's happening. 


bluzee

Registered:
Posts: 2,185
Reply with quote  #22 
when you do

$ echo hello > fifo

That process will  sleep until something reads the fifo. So when you do

$ cat fifo 

you will see

hello

then you will see the echo process exit.

Now if you do

$ cat fifo

the cat process will sleep until something writes to the fifo...

$ echo hello > fifo

in the term running cat you'll see

hello

then cat will exit.   As long as something is writing cat will keep reading. Won't exit until the other app stops writing.

If you can create a fifo and have IPcleaner read from it I can think of a possible scenario that may work.   You would have to be able to stream the PID to your network with TSreader then run something like rtpdump in CYGWIN to receive that stream and dump to the fifo.  If IPcleaner can read the fifo while running in windows then it should work. 

I guess one way to test that is to

$ echo hello > fifo

in CYGWIN then open a DOS prompt and do

C:\  type fifo

I'm guessing at type.  I know dos doesn't have cat so.....
wejones

Avatar / Picture

Registered:
Posts: 5,574
Reply with quote  #23 
First off, I'm convinced now, that I had created a 2nd file called fifo like you suspected, and that I wasn't really writing to the first in first out file.   And secondly, I can see that attempting to access the CYGWIN FIFO files, and even making a dos text file of the same name causes CYGWIN functionality to get all messed up, and not behave as it's supposed to.

Thanks for the explanation of the "sleeping", as that part was really confusing me, although it got even more confusing.  

I have NOT been able to repeat what I did yesterday.  I've come close, but not quite. 
It is clear that attempts to read/write with that file messes up the normal function of the FIFO operation. 

I opened up 2 windows of CYGWIN .  At first, I couldn't get things to work at all right in CYGWIN, apparently because I had a dos fifo text file AND the linux fifo link, both with the same name. When I did a ls -la one fifo file showed up with a "p" at the left, which I assume is "pipe".  In windows explorer, both files showed up, but one had a .lnk extension.   I was trying to  echo in one linux window and  cat in another, but it wasn't working.  However, when I deleted the dos text file, THEN, it started working.  I could do a cat in one window and then do an echo in the other window, which would print to the first window, and wake both windows up.

Before messing with the dos/windows side of it, I created a fifo file in one CYGWIN window, and that window went to sleep.  If I did a ls -la in the other window, the fifo file showed up with a "p" at the left, which I assume is "pipe".  If I did a cat in the 2nd window,

I can't remember how I did it, but I did it three times, but I had 3 windows open, 2 with cat sleeping waiting for input, and when I did the echo in a 3rd window, only one of the first 2 windows would display the hello, and neither one of them would wake up.  I could keep echoing via the 3rd window, and it would only accumulate in one of the first two windows, and it wouldn't wake up.  But if I closed the sleeping window that wasn't showing the output, then the 2nd one would wake up after the next echo.   While in that state, I tried reading via dos, but it couldn't find the file.  It could read the fifo.lnk file, which had mostly gibberish, but also had the link to where the actual fifo buffer was located.  I could read that, but I couldn't write to it.

Anyway, the explanation of the sleeping helped understand a lot, but I'm still confused about how the process seems to get confused, both by windows/dos access and also by having multiple linux windows open. 

  But anyway, I don't think this can be a way of using a FIFO file usable by windows.  I think that it is possible, particularly because I once downloaded a MS package that I think involved creating an NFS file system capability in Windows, and I think it had the FIFO capability.  However it soon became clear that installing this package would severely alter the way my computer was set up, to the extent that I would lose other capabilities that I didn't want to lose, so I didn't install it.  It's also possible to write software that will do this sort of thing, with it's own buffers, but that's beyond my understanding, and I'm not sure the end result could interface with other software.  
But I've given up on this idea, except for trying to understand exactly what was causing the strange behavior I was seeing. 
 





bluzee

Registered:
Posts: 2,185
Reply with quote  #24 
As you mentioned it's first in first out or essentially  first come first served.  The behaviour you described sounds correct I think.

A pipe can fill one pail at a time.  If you want to fill two pails at a time you need to add a tee. 

Before IPcleaner got -sub=all  I had a tee in the pipeline and would run about 8 or 10 instances of it at the same time using sequential -sub=#s  Since -sub=all it's now a very simple process.  I just check for stream #128 and if all the files are done writing.  If both exist then the script restarts the process. 
wejones

Avatar / Picture

Registered:
Posts: 5,574
Reply with quote  #25 
Quote:
Originally Posted by bluzee
As you mentioned it's first in first out or essentially  first come first served.  The behaviour you described sounds correct I think.

A pipe can fill one pail at a time.  If you want to fill two pails at a time you need to add a tee. 

....
  

OK, that makes sense.  

Off topic, it's kind of neat, that the Windows task manager displays a couple of the CYGWIN linux processes real time, such as bash and a shell process. Sort of like the top command, but it's easier to view since it seems to put all the linux stuff up at the top, and it only has the processes being used. 


WellerTip

Registered:
Posts: 366
Reply with quote  #26 
MAC ff:87 is JukeBox Oldies
       ff:94 is Smooth Jazz


__________________
Work gets in the way of play everyday.
andyinyakima

Avatar / Picture

Registered:
Posts: 1,519
Reply with quote  #27 
OK,

What message do I go to in this thread to find out how to implement this.

IPcleaner only runs in Windows so I have to run it wine on Linux???
Is there a chance a Linux version can be written?

Can the script be incorporated into a program?

I'm still trying to get my head around this.

What satellite and transponder do you find you most use (Ku please)?

[confused]

Thanks!

I think if I understand this I might have a better chance with GSE.

There's a lot of knowledge in this thread.

__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
rempfer

Avatar / Picture

Registered:
Posts: 859
Reply with quote  #28 
Quote:
Originally Posted by bluzee

echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/dvb0_0/rp_filter
mplayer -cache 1500 udp://224.0.255.110:5500


I can't get past this point.  When I do the echo (as sudo) commands, I get 'permission denied' errors on both lines.  Help please?
bluzee

Registered:
Posts: 2,185
Reply with quote  #29 
You are correct.  I missed writing down a step. Sorry.  

Do this....

sudo -s

(enter your password)

then do...

echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/dvb0_0/rp_filter
exit

Now try mplayer.

rempfer

Avatar / Picture

Registered:
Posts: 859
Reply with quote  #30 
DarkSky's G28 Music-Streams.txt (post #5) gives a nice list of the Galaxie.TV radio channels available:
Code:
GALAXIE.TV Music Streams
Galaxy 28 3860 H 30000 Pid 43 (0x002B)

1 Rock Alternative
2 Soul Storm
3 Urban Beats
4 Smooth Jazz
5 Swinging Standards
6 Rock
7 The Blues
8 Maximum Party
9 Big Band
10 The Light
11 Nothin' but '90s
12 Dance Clubbin'
13 Bluegrass
14 Jazz Now
15 The Chill Lounge
16 The Spa
17 Baroque
18 Opera Plus
19 Chamber Music
20 Today's Latin Pop
21 Retro R&B
22 No Fences
23 Dance Classics
24 Holiday Hits
25 Hard Rock
26 Alt Rock Classics
27 Alt Country - Americana
28 Gospel
29 Celtic
30 Retro Latino
31 Latino Urbana
32 Latino Tejano
33 Regional Mexican
34 Carribbean Dance Hall
35 Caribbean Vintage
36 Soca
37 Adult Alternative
38 Classic Masters
39 Classic Rock
40 Country Classics
41 Easy listening
42 Flashback '70s
43 Folk Roots
44 Hit List
45 Hot Country
46 Jammin'
47 Jazz Masters
48 Jukebox Oldies
49 Kids' Stuff
50 Latino Tropical
51 Pop Adult
52 Pop Classics
53 Everything '80s


I have mulitcast set up here, and to select in VLC for example I
would enter udp://@224.0.255.116:5500 for Classic Country. I think
udp://@224.0.255.110:5500 is Bluegrass. How can I tell from DarkSky's
list what each station's IP address would be in order to tune it as shown?
Perhaps someone's already done a cheat sheet? If so, where might I find it?
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Fellow Members, your posts are welcome here! Do not worry about posting everything perfect. Different receivers and LNB's will give you different Frequencies and Symbol Rates. Some set top boxes, PCI cards and USB receivers, Do Not Require all of the same information that others may need. It is not Required to post everything that others may need to tune in a feed. It is just most important to share the find. We can always adjust the Frequency and Symbol Rates and try the various Modulations and FEC's on our own receivers until we get a lock and then give a polite reply with what works for your receiver, as that information might help others as well. We all appreciate the efforts and energy of the Posters!

Thank You for Visiting GOFASTMOTORSPORTS.com - Keep Your Eyes on the Sky and the Track!