[Live-devel] Problem trying to use libavcodec and live555

Shaswata Jash shaswata at alumnux.com
Mon Oct 30 03:53:22 PST 2006


If you are not using GLOBAL_HEADER flag in ffmpeg, then the seq-header must
have come with the first frame.
If that is not so, then you can find that header in
AVCodecContext->extradata.

With regards,
Shaswata

----- Original Message ----- 
From: "Antonio Garcia" <buscarini at gmail.com>
To: <live-devel at ns.live555.com>
Sent: Monday, October 30, 2006 4:36 PM
Subject: Re: [Live-devel] Problem trying to use libavcodec and live555


> First I want to five thanks to everyone for their support.
>
> I have accomplished to pass data to MPEG1or2RTPSink, and VLC receives
> it, but it keeps waiting for a sequence start header, so it doesn't
> show anything.
>
> So, what I do is this:
>
> file -> ffmpeg -> MPEG1or2RTPSink
>
>  > That can't possibly work, because "MPEG1or2VideoStreamFramer" (and
>  > "MPEG1or2VideoRTPSink") expects to see *encoded* MPEG (1 or 2) video
>  > data, not raw (decoded) video data.
>
> Sorry, I didn't explain it very well. In ffmpeg I only do a call to
> av_read_frame, which delivers an AVPacket with the data still encoded.
>
> This is the code I have:
>
> virtual void doGetNextFrame(){
>
> fFrameSize = _frame.size;
> if (fFrameSize > fMaxSize) {
> fNumTruncatedBytes = fFrameSize - fMaxSize;
> fFrameSize = fMaxSize;
> }
>
> memmove(fTo,_frame.data,fFrameSize);
>
>
> fDurationInMicroseconds = _frame.duration;
>
>
> nextTask() = envir().taskScheduler().scheduleDelayedTask(0,
> (TaskFunc*)afterGetting,this);
>
> };
>
> Sometimes liveMedia prints this warning:
>
> Warning: MPEG1or2VideoRTPSink::doSpecialFrameHandling saw strange
> first 4 bytes 0x531d050f, but we're not a fragment
>
>
> If I connect the ffmpeg with an MPEG1or2StreamFramer I receive
> nothing with VLC.
>
> So, anyone knows how to pass the video sequence start header from
> ffmpeg to liveMedia?
>
> Antonio García
>
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>



More information about the live-devel mailing list