Regarding how to extracting video from RTP packets using ffmpeg API or Source code

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Regarding how to extracting video from RTP packets using ffmpeg API or Source code

chetan goni
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTP packets using ffmpeg API or Source code

Moritz Barsnick
Hello Chetan,

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.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

chetan goni
In reply to this post by chetan goni
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

Moritz Barsnick
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.

Right on top of the ffmpeg homepage https://www.ffmpeg.org/, it says:

  Converting video and audio has never been so easy.
  $ ffmpeg -i input.mp4 output.avi

The docs show much more detail, if required.

So, please just try
$ ffmpeg -i rtp://your.proper.url output.mp4

If the input stream never ends, you need to interactively tell ffmpeg
to stop encoding by pressing 'q'.

Please do read the docs!
https://www.ffmpeg.org/ffmpeg.html

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

chetan goni
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

Moritz Barsnick
On Thu, Aug 09, 2018 at 16:24:51 +0530, chetan goni wrote:
> I have do not have   "rtp://your.proper.url " .I have RTP packets.
> Do you hav procedure to extract video from RTP

Ah, so you don't actually have an RTP stream, you have a packet dump of
an RTP stream.

In this thread, someone had that request, and had a PCAP capture of the
stream. It seems he used "pcapreader" to pipe it to ffmpeg, but also
provided the SDP file:
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-September/037224.html

If you have a raw packet dump, you can likely use it as input, or pipe
it directly to ffmpeg.

Alomst successful here, but follow the thread regarding his followup
about the audio format:
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-September/037296.html

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

chetan goni
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

Moritz Barsnick
On Thu, Aug 09, 2018 at 18:10:12 +0530, chetan goni wrote:
> ffmpeg  -f h263   -i Video.bin   -f flv  out.flv

I guess you need to tell ffmpeg the codec parameters such as
-frame_rate and -video_size, but I'm not sure.

> Input #0, h263, from 'audio.bin':
                        ^^^^^^^^^
Well, how did this happen? You can't decode the audio as H.263! ;-)

BTW, we prefer, the *complete, uncut* console output (even if it's
hundreds of lines). You may be hiding interesting details.

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpacketsusing ffmpeg API or Source code

chetan goni
In reply to this post by chetan goni
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpacketsusing ffmpeg API or Source code

chetan goni
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpacketsusing ffmpeg API or Source code

Moritz Barsnick
In reply to this post by chetan goni
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.

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpackets using ffmpeg API or Source code

Carl Eugen Hoyos-2
In reply to this post by chetan goni
2018-08-09 14:40 GMT+02:00, chetan goni <[hidden email]>:

> 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.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Regarding how to extracting video from RTPpacketsusing ffmpeg API or Source code

chetan goni
In reply to this post by chetan goni
CONTENTS DELETED
The author has deleted this message.