Re: [Live-devel] question about parseSPropParameterSets()

2012-01-30 Thread Ross Finlayson
> After parseSPropParameterSets, I should be able to get sps and pps(in binary > format?) Yes, and that's exactly what the "sPropBytes" field is! It's a pointer to an array of "sPropLength" bytes (i.e., binary). > > But when i use print command to print the strings, I got some wired data. No

Re: [Live-devel] question about parseSPropParameterSets()

2012-01-30 Thread James Zhang
Hello Ross Thank you very much for your fast and nice reply. After parseSPropParameterSets, I should be able to get sps and pps(in binary format?) But when i use print command to print the strings, I got some wired data. I m not sure why it looks like that: code: for(unsigned i=0; i > I have

Re: [Live-devel] question about parseSPropParameterSets()

2012-01-30 Thread Ross Finlayson
G'day James, it's nice to hear from another University of Auckland person. > I have a question about parseSPropParameterSets() function. > > Based on my understanding, I think this function will read in the SPS and PPS > data, Yes, it will read in a coded ASCII string that represents the SPS a

[Live-devel] question about parseSPropParameterSets()

2012-01-30 Thread James Zhang
Hello everyone I have a question about parseSPropParameterSets() function. Based on my understanding, I think this function will read in the SPS and PPS data, then do base64 decode to generate a nal unit. I have fit the SPS and PPS data by using this unsigned int num=0; SPropRecord * sps=pars

Re: [Live-devel] motion JPEG over RTP over UDP streaming server (RFC2435).

2012-01-30 Thread Ross Finlayson
> After going through your 2 excellent faqs and Elphel source, am I correct to > say the quickest way to build a MJPEG streamer (from JPEG files in prototype) > would be to modify ElphelJPEGDeviceSource.cpp only? Actually, I don't recommend that you bother with streaming JPEG at all (especiall

[Live-devel] motion JPEG over RTP over UDP streaming server (RFC2435).

2012-01-30 Thread imin imup
Hello Ross, This email is a bit long. Please bear with me for a moment. After going through your 2 excellent faqs and Elphel source, am I correct to say the quickest way to build a MJPEG streamer (from JPEG files in prototype) would be to modify ElphelJPEGDeviceSource.cpp only? Please help me und

[Live-devel] How to create my custom FramedSource based on "DeviceSource" model.

2012-01-30 Thread Novalis Vapuru
I want to create my custom FramedSource based on "DeviceSource" model. Suppose that -- I have a shared global queue, call it IncomingQueue. -- IncomingQueue is FIFO queue. -- IncomingQueue.getNextFrame() -->return new Frame -- Frame.getData() return usigned char data -- Frama.getDataSize() re

Re: [Live-devel] How to to stream h264 encoded stream in a MP4 container with Live555

2012-01-30 Thread Novalis Vapuru
Well, I create a new class which is subclass of "OnDemandServerMediaSubsession" [ call it MyCustomServerMediaSubsession] which overrides the "createNewStreamSource()" and "createNewRTPSink()". methods. But the original code at testOnDemandRTSPSource for h264 is // A H.264 video elementary str

Re: [Live-devel] How to to stream h264 encoded stream in a MP4 container with Live555

2012-01-30 Thread Ross Finlayson
> So how or where should i modify the testOnRTSPServer so that intead > of reading from a file, > it justs get the output of MP4 demuxer? You will first need to define and implement your own new subclass of "OnDemandServerMediaSubsession" that reimplements the two pure virtual functions "create

[Live-devel] How to to stream h264 encoded stream in a MP4 container with Live555

2012-01-30 Thread Novalis Vapuru
Hi, I want to stream .h264 encoded stream in a .MP4 container. So i investigate testOnRTSPServer.cpp example. Basically it can sucessfully stream h264 raw stream[ i used VLC as a client]. [ H265 raw stream file ] --input---> testOnRTSPServer I know how to get/extract h264 raw stream i