Re: [Live-devel] testOnDemandRTSPServer always stream audio/MPA and video/MPV?

2011-02-01 Thread Ross Finlayson
sms->addSubsession(MPEG4VideoFileServerMediaSubsession::createNew(*env, v_inputFileName, reuseFirstSource)); sms->addSubsession(ADTSAudioFileServerMediaSubsession::createNew(*env, a_inputFileName, reuseFirstSource)); [...] And I have a stream that have MPEG4-GENERIC and MP4V-ES. The prob

Re: [Live-devel] RTSP H264 frame inversion

2011-02-01 Thread Ross Finlayson
Yes, your input device object should be setting the "fPresentationTime" field in its implementation of "doGetNextFrame()", when it delivers each NAL unit. Concerning this point, I've a misunderstanding about how set this value. I'll explain : my frames are coming in a decoding order, that me

Re: [Live-devel] RTSP H264 frame inversion

2011-02-01 Thread korpal
> > Thanks for this fast answer. For me, it's correct that VLC cannot read the >> file, the file I sent you contains only NAL paquets (See joined screenshot >> with details), and so is not readable by VLC, correct me if I'm wrong. >> > > I don't know why your file is not readable by VLC. You'll ne

Re: [Live-devel] iPhone CAN"T play the TS files generated by testH264VideoToTransportStream

2011-02-01 Thread Ross Finlayson
We converted those h264 files to TS files using testH264VideoToTransportStream, the TS files are good for VLC and media player. However, we manually put the converted TS files to our lighttpd server for streaming, iphone can not display any TS video clips from testH264VideoToTransportStream. Can y

Re: [Live-devel] iPhone CAN"T play the TS files generated by testH264VideoToTransportStream

2011-02-01 Thread Dunling Li
Hi Ross, Thanks for your useful guide. Here is my situation: We use HTTP live streaming to send TS files to iphone. Our sever is lighttpd. We split our a video clip into multiple 4 seconds h264 files, then convert them to TS files in the server for streaming. We have simple h264 to TS convertor

Re: [Live-devel] testOnDemandRTSPServer always stream audio/MPA and video/MPV ?

2011-02-01 Thread edi87
Ok, I tried and found a way to stream this as I need. I simply do: { char const* streamName = "MPEGTEST"; char const* v_inputFileName = "test_2.m4e"; char const* a_inputFileName = "test_2.aac"; ServerMediaSession* sms = ServerMediaSession::createNew(*env, streamName, streamN

Re: [Live-devel] Simple Filter leading to a CODEC

2011-02-01 Thread Ross Finlayson
Thanks. Actually, my problem right now is not with RTP at all, it's with how to access the picture frames to implement the codec. If you want to do this using our library, then you would write your own 'filter' class - i.e., a subclass of "FramedFilter" - for encoding each frame. In particul

Re: [Live-devel] Simple Filter leading to a CODEC

2011-02-01 Thread Brian Michalk
On 2/1/2011 10:05 AM, Ross Finlayson wrote: This is a brand new codec, so I'll need to specify an RTP payload for that. It's for low bitrate high packet loss networks, and works off of single frame encoding, because a dropped iFrame is not desirable. OK, let us know when you've submitted an

Re: [Live-devel] Simple Filter leading to a CODEC

2011-02-01 Thread Ross Finlayson
This is a brand new codec, so I'll need to specify an RTP payload for that. It's for low bitrate high packet loss networks, and works off of single frame encoding, because a dropped iFrame is not desirable. OK, let us know when you've submitted an Internet Draft that describes your proposed

Re: [Live-devel] Simple Filter leading to a CODEC

2011-02-01 Thread Brian Michalk
This is a brand new codec, so I'll need to specify an RTP payload for that. It's for low bitrate high packet loss networks, and works off of single frame encoding, because a dropped iFrame is not desirable. On 01/31/2011 08:38 PM, Ross Finlayson wrote: You're getting a little ahead of yourse

Re: [Live-devel] TS file with high VBR

2011-02-01 Thread Ross Finlayson
I found it quite hard to just extend existing classes (MPEG2TransportStreamFramer, MPEG2TransportFileServerMediaSubsession and DynamicRTSPServer) as many methods are private instead of protected: is this intentional ? Usually not; I just don't like declaring variables as "protected:" unless I

Re: [Live-devel] TS file with high VBR

2011-02-01 Thread Christophe Lemoine
Hi Ross, Thanks for spending time on this issue. I understand that this is a major change and it have to be considered carefully. I could not find a good tuning that works with very high VBR TS files. So I end up using CBR files for now. Not only this creates very big files (generating