Project

General

Profile

Difficult but possible??? I like to record TV, merge audio from another source and still see the recording in the current recordings menu.

Added by Wim K almost 3 years ago

Hi all,

This is a long shot. Maybe it's just not possible, but who knows. Asking doesn't hurt I guess.

I am a F1 fan and watch now on cable tv, so I have tvheadend record the show. But for next year I am thinking of changing to F1TV Pro. I also want to keep listening to my favorite commentator who broadcasts on internet radio (and is not a voice to choose on F1TV Pro).

If I look live, I can just mute the sound from F1TV Pro and get the audio from the internetradio station. But if I have to stop for a moment, I have to stop both at exactly the same time to keep them in sync which is almost impossible. And if I watch later it's even more troublesome.
So my question is: is there a way to have tvheadend record the livestream from F1TV Pro, merge the audio from the internetradio and see the show in "current recordings" menu? Playing it back in Kodi gives me the opportunity to sync audio and video, that would be the easiest way to sync audio and video I think.

The only other option I can think of, would be to play the muted video and the audio on the pc and have OBS Studio save the screen capture. But how can I than have tvheadend present it to me as a "current recording"?

Thanks in advance,

Wim


Replies (6)

RE: Difficult but possible??? I like to record TV, merge audio from another source and see the recording in the current recordings menu. - Added by Wim K almost 3 years ago

EDIT: what if I record (linear) TV broadcast with tvheadend and just want to change the audio from another source (I would be recording the audio from the internet station). Could that be done "live" and watch the recording (with the edited audio) from current recordings menu?

RE: Difficult but possible??? I like to record TV, merge audio from another source and still see the recording in the current recordings menu. - Added by Wim K almost 3 years ago

Hi Saen,

I have no knowledge at the moment of ffmpeg, so before starting a long journey do you think it would work? Could I watch the recording "live" with the other audio? No need to mux the video and audio to a different file and import the recording into tvheadend etcetera? Or only possible to watch after the ending of the recording? And finally, would a RPI 4B be powerfull enough for it?

Thanks,

Wim

RE: Difficult but possible??? I like to record TV, merge audio from another source and still see the recording in the current recordings menu. - Added by Wim K almost 3 years ago

Hi Saen,

Before the pleasure of studying ffmpeg and experimentering to get the muxing done, there's the pleasure of breaking down the project into pieces, trying to understand if it's possible and achievable for me (I'm not an expert like you).
I'm still in the latter phase and I enjoy hearing from you experts what's your thought about this. And sure, I already looked a bit at ffmpeg before posting.

So I was asking myself:
1. is the RPI4B powerfull enough to have tvheadend make a recording, have ffmpeg mux the stream, play the muxed recording in progress on a client (and do some other small stuff)?

And what about tvheadend? TVHeadend makes a recording, I am muxing that file, I guess saving it to another file so I have to overwrite the recording database WHILE the recording is still going on (otherwise I can't see it in the current recordings menu).
2. Can I overwrite that database while recording?
3. Does tvheadend let me mux the stream while recording?

And finally:
4. Is this the right way, or is there a perhaps easier solution?

Thanks,

Wim

RE: Difficult but possible??? I like to record TV, merge audio from another source and still see the recording in the current recordings menu. - Added by Wim K almost 3 years ago

I just thought of an (easier and perhaps better) alternative for question 2: I can "import" the muxed file as a seperate recording after it's started.

EDIT: in either case, I have to stop and start tvheadend to see the "new" recording. But when I stop tvheadend the recording stops too, restarts and makes a new file, I have to change the muxing from the old file to the new file. In what was my first option I would then have to update the database again. And then the whole thing just keeps happening over and over. So that would't work. Not a problem in the alternative but this is a bit of a hustle. Any ideas?

    (1-6/6)