leandromoreira / leandromoreira/ffmpeg-libav-tutorial

Fix no PTS and delay for realtime streaming

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the 3_transcoding.c example and compare its realtime RTMP path with the linked FFmpeg-based push streamer guide. Reproduce the no-PTS behavior and the burst of data sent at once, then verify that the output has valid PTS values and is paced with a delay accepted by the streaming server.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.