Re: Regarding how to extracting video from RTP packets using ffmpeg API or Source code
On Wed, Aug 08, 2018 at 17:40:14 +0530, chetan goni wrote:
> Please provide note on how to extracting video from RTP packets using
> ffmpeg API or Source code
You need to be a bit more specific to what you're trying to achieve.
- What does extracting mean, i.e. what do you expect the output format to
be? Shall it be transparent, or decoded/raw, or some new format?
- What kind of RTP packets do you have? A regular RTP stream?
- Are you willing to use the ffmpeg command line program, or do you
want to programmatically use the libav* libraries?
It you answered "programatically" to the last question, you should post
your issue on the list libav-user.
From your previous thread, it is hard to understand whether you have a
good grasp of ffmpeg's concepts yet.
Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code
On Thu, Aug 09, 2018 at 10:39:32 +0530, chetan goni wrote:
> How can extract video and audio from those pakets and make
> output file which can play in VLC or any other media player.
> Chetan : yes regular RTP strem.
On Thu, Aug 09, 2018 at 19:07:26 +0530, chetan goni wrote:
> I am given all error detail info and not hiding anything details..
No, you omitted the banner, but, sigh, I give in.
> For audio I am using mulaw and video h263 codec.
> Please provide any steps
You haven't resolved the riddle:
You quote a command line with "-i Video.bin", but your ffmpeg says that
the input file is "audio.bin". If "audio.bin" is indeed an audio file,
you can't decode that as h263. My guess is that you made a small error
in your actual command line.
> I have extracted RTP payload from RTP packets containing audio
> and ran below command and got the audio file and played in vlc
> ffmpeg -f mulaw -ar 8000 -ac 1 -i Audio.bin output.wav
> But when i tried with video same procedure and it is giving error
> ffmpeg -f h263 -i Video.bin -f flv out.flv
If Video.bin were a h263 file "-f h263" would not be needed as
FFmpeg can auto-detect raw h263 (mulaw cannot be auto-detected,
your therefore have to force this format), if it is a network dump it
probably cannot be read by FFmpeg.