Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to overlay http subtitle stream on http AV stream #932

Open
s60sc opened this issue Feb 8, 2024 · 10 comments
Open

How to overlay http subtitle stream on http AV stream #932

s60sc opened this issue Feb 8, 2024 · 10 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@s60sc
Copy link

s60sc commented Feb 8, 2024

Given the yaml file below, how to overlay a subtitle stream in SRT format from http://192.168.1.135/sustain?srt=3
Thanks

streams:

  CAM:
    - ffmpeg:http://192.168.1.135/sustain?stream=1#video=h264
    - ffmpeg:http://192.168.1.135/sustain?audio=2#audio=opus
@AlexxIT AlexxIT added the question Further information is requested label Feb 8, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 8, 2024

SRT not supported. What you are viewing? Is it usual TV?

@s60sc
Copy link
Author

s60sc commented Feb 8, 2024

Streams generated by an ESP32, viewed on the go2rtc built in player for testing. ChatGPT indicates ffmpeg can combine SRT and video eg
ffmpeg -i http://path_to_video_stream -i http://path_to_subtitle_stream -c:v copy -c:a copy -c:s mov_text
but how to incorporate this into the yaml file if possible.
Thanks.

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 8, 2024

What is inside your SRT? Is it some real time information?

@s60sc
Copy link
Author

s60sc commented Feb 8, 2024

At this stage just a series of timestamps

1
00:00:00 --> 00:00:01
17:58:52

2
00:00:01 --> 00:00:02
17:58:53

would something like:
- exec:ffmpeg -i http://192.168.1.135/sustain?stream=1 -i http://192.168.1.135/sustain?srt=3 -c:v copy -c:a copy -c:s mov_text

be in the right direction, but how to direct it to the go2rtc player as a h264 stream

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 8, 2024

Once again. For now go2rtc doesn't support any subtitles. Because I haven't seen any point to support them for real time tasks.
I thought you were going to tell me some interesting reason to support them. But so far, I don't see one :)

@s60sc
Copy link
Author

s60sc commented Feb 8, 2024

Fair enough, thanks for your time.
Actually it would have been useful for treal time sensor telemetry data,

@s60sc s60sc closed this as completed Feb 8, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 10, 2024

I haven't see useful software, that can generate subtitles in real time. For example voice recognition. Or even telemetry data from some sensors.

@s60sc
Copy link
Author

s60sc commented Feb 10, 2024

My esp32s3 app can generate real time telemetry data which it currently stores as an srt file along with an avi file which can be played back together with eg VLC. A user suggested adding streaming audio and referenced your app, and outputting an srt stream as well is straightforward

@AlexxIT AlexxIT added the enhancement New feature or request label Feb 10, 2024
@AlexxIT AlexxIT reopened this Feb 10, 2024
@AlexxIT AlexxIT self-assigned this Feb 10, 2024
@rjsachse
Copy link

This would be a great feature 👍

@AlexxIT AlexxIT removed their assignment May 26, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 26, 2024

That's a pretty big task. Need to add a new entity - text. I'll hold off until a better time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants