Skip to content

Commit

Permalink
Revert ffmpeg changes #1159 #1167
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed May 4, 2024
1 parent 8e986c2 commit e8fc74e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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+genpts -flags +low_delay"
flags = "-fflags +flush_packets+nobuffer -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 @@ -62,6 +62,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", "passthrough", "-async", "1"]
+ ["-max_muxing_queue_size", "1", "-max_delay", "0.1", "-rtbufsize", "32"]
+ ["-f", "tee"]
+ [rtsp_ss + get_record_cmd(uri, audio_out, record) + livestream]
Expand Down

0 comments on commit e8fc74e

Please sign in to comment.