Jump to content
uglyned

Is there a way to live transcode video to an MP4 file?

Recommended Posts

uglyned

Just wondering - is there a way of achieving this?

 

Either transcoding live video and storing it in a file, or transcoding a recording file as it's being recorded?

 

Is there any way of achieving this?

 

Thanks in advance.

Share this post


Link to post
hackbart

Well actually this won't work. MP4 containers have the index at the end. Without the index you just have garbage. Live stream never ends, so you won't be able to create an index :)

What might work is mpeg dash, which is similar to HLS, but optional with mp4 chunks.

  • Like 1

Share this post


Link to post
uglyned
4 hours ago, hackbart said:

Well actually this won't work. MP4 containers have the index at the end. Without the index you just have garbage. Live stream never ends, so you won't be able to create an index :)

What might work is mpeg dash, which is similar to HLS, but optional with mp4 chunks.

 

Thanks for this - I'd been playing with ffmpeg through the day and thanks to Google had come to the same conclusion.

 

I was lucky that the only other container the application I was streaming to would accept was WMV and this one did work.

 

I've become something of a fan of virtual reality and the sportsbar game I play will now read video files to the TVs.

 

So now I'm using ffmpeg to connect to an RTSP stream from the recording service, transcoding, deinterlacing and saving to a WMV file.

 

The result - I can do 2 of my favourite things at the same time.

 

 

 

Share this post


Link to post
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...