Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 185727
Alex Hales
  • 0
Alex HalesTeacher
Asked: June 10, 20222022-06-10T05:21:07+00:00 2022-06-10T05:21:07+00:00

ffmpeg – Consuming Media in an External Endpoint(RTP OUT)

  • 0

[ad_1]

I am working on a web application which has the feature of recording where i need to record the videos & audios of the users on the server who joins the multiparty video conference.

I am using mediasoup webrtctransport to carry user streams to server and converting it into plainrtptransport on server. In plainrtptransport.connect() , i’m passing the local ip and remotertpport as params.

Then i am using sdp file which uses the same remotertpport mentioned in the plainrtptransport and spawning a ffmpeg process which uses the sdp file and generates a recording file.

sdp = v=0 o=- 0 0 IN IP4 127.0.0.1 s=FFmpeg c=IN IP4 127.0.0.1 t=0 0 m=video ${Video.RtpPort} RTP/AVP 101 a=rtpmap:101 VP8/90000 a=sendonly m=audio ${Audio.RtpPort} RTP/AVP 100 a=rtpmap:100 opus/48000/2 a=sendonly;

NOTE: The remotertpports mentioned above are randomly picked and these ports are checked if they are free before being assigned and the ports are different for audio and video consumers.

FFmpeg command i am using :

ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -hide_banner -loglevel debug -protocol_whitelist pipe,udp,rtp -fflags +genpts -f sdp -i pipe:0 -vcodec copy -acodec copy outputfile.webm

Now my issue is the above code snippet works fine i am getting the user video and audio stream recorded on server and saved as webm format but sometimes i am getting an error in ffmpeg logs stating that

Opening an input file: pipe:0.
[sdp @ 0x62c8540] Opening ‘pipe:0’ for reading
[sdp @ 0x62c8540] video codec set to: vp8
[sdp @ 0x62c8540] audio codec set to: opus
[sdp @ 0x62c8540] audio samplerate set to: 48000
[sdp @ 0x62c8540] audio channels set to: 2
[udp @ 0x62d0f80] end receive buffer size reported is 425984
[udp @ 0x62d0c40] end receive buffer size reported is 425984
[sdp @ 0x62c8540] setting jitter buffer size to 500
[udp @ 0x62ca080] end receive buffer size reported is 425984
[udp @ 0x62d08c0] bind failed: Address already in use
[udp @ 0x62d1480] bind failed: Address already in use
[AVIOContext @ 0x62d1880] Statistics: 265 bytes read, 0 seeks
pipe:0: Invalid data found when processing input

I would really appreciate if you have any idea on how to proceed. Please tell me if more information is needed.

Thanks a lot!

[ad_2]

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 325 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 295 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 292 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.