Skip to content

Commit

Permalink
use genpts #388
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Dec 24, 2023
1 parent 91c093d commit 15659b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/wyzebridge/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_ffmpeg_cmd(
- list of str: complete ffmpeg command that is ready to run as subprocess.
"""

flags = "-fflags +flush_packets+nobuffer -flags +low_delay"
flags = "-fflags +flush_packets+nobuffer+genpts -flags +low_delay"
livestream = get_livestream_cmd(uri)
audio_in = "-f lavfi -i anullsrc=cl=mono" if livestream else ""
audio_out = "aac"
Expand Down Expand Up @@ -60,7 +60,7 @@ def get_ffmpeg_cmd(
+ re_encode_video(uri, is_vertical)
+ (["-map", "1:a", "-c:a", audio_out] if audio_in else [])
+ (a_options if audio and audio_out != "copy" else [])
+ ["-fps_mode", "cfr", "-async", "0"]
+ ["-max_muxing_queue_size", "256", "-max_delay", "50", "-rtbufsize", "256k"]
+ ["-movflags", "frag_keyframe+empty_moov"]
+ ["-f", "tee"]
+ [rtsp_ss + get_record_cmd(uri, audio_out, record) + livestream]
Expand Down

0 comments on commit 15659b9

Please sign in to comment.