You aren't specific about what your "media" is... but I am assuming you are
streaming something equivalent to a file's contents. Your first task is to
figure out the container format and what it contains. This is the job of
libavformat, and the codec context is not relevant at this point.
I would recommend calling av_find_stream_info(AVFormatContext*) after opening
the stream. This will attempt to detect characteristics about the data,
including all the contained streams, and create codec contexts for you.
Andy
On 7/21/2010 2:54 AM, Debjyoti Mukherjee wrote:
Hi Deepti
How do i fill avcodeccontext structure if i dont have information about media
file? My issue is i am getting chunk by chunk media data over tcp. Now i how do
i proceed in this case. I am trying to do some real time transcoding. Hope i am
clear about my issue.
Thanks and Regards,
Debjyoti Mukherjee
------------------------------ --------------------
Calsoft Labs, Bangalore
Ph: +91-988-655-9096 (M)
Email:debjyo...@calsoftlabs. com
------------------------------ -------------------- ----- Original Message -----
From: "Deepti Saraswat"<[email protected]>
To: "Libav* user questions and discussions"<[email protected]>
Cc: [email protected], [email protected]
Sent: Tuesday, 20 July, 2010 4:51:35 PM
Subject: Re: [libav-user] Can ffmpeg decode video streams from the network (not
from file)
Hi,
Please have a look at ffplay.c file . av_open_input_file can take any RTSP
url as an input and can decode incoming packets from network.
if you are not using RTSP url to get the video packets then simply fill
the avcodeccontext structure in a right manner and start decoding the
incoming packets.
Deepti
|---------+------------------------------->
| | Debjyoti Mukherjee |
| |<debjyo...@calsoftla|
| | bs.com> |
| | Sent by: |
| | libav-user-boun...@m|
| | playerhq.hu |
| | |
| | |
| | 07/20/2010 02:43 PM |
| | Please respond to |
| | Libav* user |
| | questions and |
| | discussions |
| | |
|---------+------------------------------->
------------------------------------------------------------------------------------------------------------------------------|
| |
| To: [email protected] |
| cc: |
| Subject: [libav-user] Can ffmpeg decode video streams from the network (not
from file) |
------------------------------------------------------------------------------------------------------------------------------|
Hello ,
I would like to know if ffmpeg can decode chunks of video streams that
come from TCP packets, the av_open_input_file only opens a file
...How do I make it read streams from TCP packets .. Can you please
suggest ideas or alternatives?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user