Robin Penea | 2 Jan 2008 16:04
Picon

MPEG4 streaming source to FIFO/Buffer

Hi everyone,

I've been spending a few hours to find any technical solution to this problem :

I want to send the MPEG4 stream I get from an IP Camera (Axis) to my piece of software which does motion analysis.
Until now I've been able get the MPEG4 stream and save it to a file using a sligthly modified version of openRTSP.
 Then I open the file in my program and I extract the frames using the library OpenCV (in fact it uses ffmpeg to do it).
I have tried to do more or less the same using testMpeg1or2VideoReceiver, but I can't see where i can input the username
and password (it is absolutely mandatory to have it for me) for the camera.

1. My goal is to avoid the file saving, because I need a live processing, so I thought about using a named pipe... Could you
give me any clue about the subclasses I should create or modify ? I've read about FramedSource and DeviceSource.. but
I'm not sure of which one I should modify. This library is quite big, and I don't know from which side start !

2. My other question is about the named pipe... I also thought I should use a "home made" buffer (a char* or anything...).
This way i could have a complete control on the flow of data (i already did that in MJPEG). Linked to the preceding question,
what class should I study/modify/grow ? Can you tell me which solution is the most reliable ?

3. Bonus question : do you think ffmpeg is able to decompress frames coming from a buffer ? I made a few try on a file, but I have no ideas on
the behavior when it is in this particular context.

Thanks in advance.

--
Robin Penea

_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Ross Finlayson | 2 Jan 2008 23:39
Favicon

Re: MPEG4 streaming source to FIFO/Buffer

>I want to send the MPEG4 stream I get from an IP Camera (Axis) to my 
>piece of software which does motion analysis.
>Until now I've been able get the MPEG4 stream and save it to a file 
>using a sligthly modified version of openRTSP.
>  Then I open the file in my program and I extract the frames using 
>the library OpenCV (in fact it uses ffmpeg to do it).
>I have tried to do more or less the same using testMpeg1or2VideoReceiver

That will never work, because the stream is not MPEG-1 or MPEG-2 video.

>, but I can't see where i can input the username
>and password (it is absolutely mandatory to have it for me) for the camera.

You should continue to use "openRTSP", using the "-u <username> 
<password>" option.

>
>1. My goal is to avoid the file saving, because I need a live 
>processing, so I thought about using a named pipe... Could you
>give me any clue about the subclasses I should create or modify ?

You should not need to write any more LIVE555 code; "openRTSP" should 
already be able to give you what you want.  Just run it with the "-v" 
option, to tell it to output the receive video stream to 'stdout'. 
Then, write your analysis application so that it reads from 'stdin', 
and just run

	openRTSP -v -u username password  rtsp://whatever | 
your-analysis-application

Notice the "|" character, which tells the shell to pipe 'stdout' from 
"openRTSP" into 'stdin' of your-analysis-application.  You should not 
need 'named pipes' for this, if your analysis application reads from 
'stdin'.
--

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
Zheng Han | 2 Jan 2008 20:17
Favicon

Help

Hi All:

 

I am new to Live555. I am currently working on a project that need to streaming multiple files one by one. Can any body tell me how to implement this? I try to use stdin in a child process (I use a pipe and redirect parent’s out to child’s in). The parent reads PS mpeg2 files and writes them to the pipe one by one and the child reads from the pipe and plays them. The child did play the file, but only played the first one. I hope it can play them one by one as the parent writes them one by one.

 

Is there anything wrong with my idea? Can anybody help me with this issue?

 

BTW, my project is running on WinXp.

 

Thanks,

 

 

Vincent Han

 

 

_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Ross Finlayson | 3 Jan 2008 00:12
Favicon

Re: Help

I am new to Live555. I am currently working on a project that need to streaming multiple files one by one. Can any body tell me how to implement this?

The easiest way is to use the "ByteStreamMultiFileSource" class in place of "ByteStreamFileSource".
-- --

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Nikhil Naik | 3 Jan 2008 00:25

Unicast streaming over the Internet using LIVE555

Hi Ross,

 

I have developed a RTSP Server and I can get it to stream just fine

over the LAN. However when I try to stream over the internet, I see a

connection but do not see an image come through. I can send commands

to and fro. I can see the DESCRIBE, SETUP, PLAY and TEARDOWN pass just

fine.

 

Any idea what might be going on?  Any suggestions on setting up unicast

streaming, since I have a feeling maybe I might not be getting it to stream

Unicast and Multicast does not work for me with an external IP. Currently I

am setting char* sessionAddressStr = "0.0.0.0"; as explained in post below,

to force it to go unicast. Do I need to set different ports for unicast?

 

http://www.livecaster.com/liveMedia/doxygen/html/testMPEG1or2VideoReceiver_8cpp.html

 

Also a point to not is that I m on Windows Vista OS and if this might in

any way be blocking anything (I have all firewalls turned OFF).

 

Any help would be greatly appreciated,

 

Thanks,

 

Nikhil

_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Ross Finlayson | 3 Jan 2008 01:29
Favicon

Re: Unicast streaming over the Internet using LIVE555

>I have developed a RTSP Server and I can get it to stream just fine
>over the LAN. However when I try to stream over the internet, I see a
>connection but do not see an image come through. I can send commands
>to and fro. I can see the DESCRIBE, SETUP, PLAY and TEARDOWN pass just
>fine.

Have you tried using our existing unicast RTSP server applications: 
"testOnDemandRTSPServer" and "live555MediaServer"?  Do those work for 
you?
--

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
Khuong Nguyen | 3 Jan 2008 02:26
Picon
Favicon

The quality of video is not good with streaming MPEG-2


Hi , 

I tried the live555MediaServer.exe in window to stream
the MPEG-2 video  .

And then I used openRTSP commandlive to receive that
stream .

The result , I got the video-MPV-2 file and I used VLC
to watch .. 
The quality of this video is not good , there are many
green color on the video ..

I don't know what happened .. 

So , I tried with the MPEG-1 video , the quality is
better , no display green color ..

Could you show me the problem ???

Thanks a lot ..
Khuong

      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Ross Finlayson | 3 Jan 2008 02:30
Favicon

Re: The quality of video is not good with streaming MPEG-2

>I tried the live555MediaServer.exe in window to stream
>the MPEG-2 video  .
>
>And then I used openRTSP commandlive to receive that
>stream .
>
>The result , I got the video-MPV-2 file and I used VLC
>to watch ..
>The quality of this video is not good , there are many
>green color on the video ..
>
>I don't know what happened ..
>
>So , I tried with the MPEG-1 video , the quality is
>better , no display green color ..
>
>
>Could you show me the problem ???

Most likely network packet loss.  MPEG-2 video is usually at a 
significantly higher bit rate than MPEG-1 video.
--

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
Ross Finlayson | 3 Jan 2008 02:53
Favicon

Re: The quality of video is not good with streaming MPEG-2

Also, a reminder that "openRTSP" has an option "-Q" for reporting 
quality-of-service statistics, including packet loss.

See http://www.live555.com/openRTSP/#other-options
--

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
Kiranjyothi | 3 Jan 2008 05:46

Does Live support WM9 streaming

Hi ,
 
I want to know whether Live55 has support of WM9 streaming or not.When i was looking into the code i didnt find such support.So Please clarify my query.
 
Thanks,
Kiran..
_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel

Gmane