leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
9.78k stars 937 forks source link

Fix no PTS and delay for realtime streaming #104

Open calanor opened 2 years ago

calanor commented 2 years ago

I need streaming sources to rtmp server and I ned to fix the output PTS and add delay to prevent to send all the data in an instant that its not accepted for the streaming server.

I Used this guide https://titanwolf.org/Network/Articles/Article?AID=3550447c-3b06-4998-a6bf-66b4e57e09b6 and work fine with the simplest FFmpeg-based push streamer code supplied.

How I apply this fixes in 3_transcoding.c example?