[Ffmpeg-devel] feeding ffmpeg with ESes?

Zoltan NAGY nagyz
Tue Jul 19 12:23:31 CEST 2005


Luca Abeni wrote:

>Hello,
>
>On Mon, 2005-07-18 at 15:21 +0200, Zoltan NAGY wrote:
>  
>
>>If so, how could I feed this data into ffmpeg so I can get the video 
>>displayed?
>>    
>>
>If the video is MPEG4, you cannot simply dump the packet payload into a
>file and play the file, but you also have to fill the AVCodec extradata
>witht the global headers extracted from the SDP.
>  
>
hm, could you tell me a bit more about it?
if I look into the sdp I see:

m=audio 1234 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/44100
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1210; 
SizeLength=13;IndexLength=3; IndexDeltaLength=3; Profile=1;

m=video 1236 RTP/AVP 97
a=rtpmap:97 MP4V-ES/90000
a=fmtp:97 profile-level-id=3; 
config=000001b001000001b58913000001000000012000c48d8800cd0a041e1463000001b246466d706567302e342e392d707265316234373331;

the first is mp4 audio, the second is mp4 video. how could I write a 
program to decode it?

how do I circumvent av_open_input_file? or I have to do all the things 
manually?
please give me some hint :)

I'm using ffplay's source as an example.

Thanks in advance,

Zoltan NAGY,
Software Engineer





More information about the ffmpeg-devel mailing list