webrtc icon indicating copy to clipboard operation
webrtc copied to clipboard

Update docs to suggest other libraries for reading/writing media to disk

Open lichao201626 opened this issue 3 years ago • 9 comments

Summary

We want h264 media support include reader and writer.

Motivation

I know there is midia support for ivf file and ogg file. But there is no support for flv file or other files. We are using the h264 video stream now and not only the vp8. We want to save file in flv format. I can only see a H264 writer, and I am curious why there is no h264 reader, or flv reader?

Describe alternatives you've considered

A clear and concise description of the alternative solutions you've considered.

Additional context

Add any other context or screenshots about the feature request here.

lichao201626 avatar Sep 22 '20 07:09 lichao201626

https://github.com/notedit/pion-webrtc-recorder

notedit avatar Sep 22 '20 08:09 notedit

Is this lib using pion underneath or it depends on mediasoup?

ldenoue avatar Sep 22 '20 09:09 ldenoue

@notedit Thanks for the record example, any webrtc demo playing from flv disk file?

lichao201626 avatar Sep 22 '20 11:09 lichao201626

@ldenoue Thanks for the reply, I'd like to using pion underneath, record from the camera H264 video stream and aac audio stream saving to flv files, then sharing my existed flv files support playback and etc. There are some examples saving vp8 to webm file or play from ivf disk file. As for my media format there may need some more work.

lichao201626 avatar Sep 22 '20 11:09 lichao201626

I think that the rtp-forwarder example would let you pipe the rtp packets to ffmpeg: if you just tell ffmpeg what output format you want, it will save to the right format.

See my question and answers in this issue https://github.com/pion/example-webrtc-applications/issues/62

ldenoue avatar Sep 22 '20 12:09 ldenoue

@ldenoue yeah, that's right. If I am not using third lib like ffmpeg, I am trying to read the rtp packet and codec to nalus and then write to flv tag, that is why I get the problem

lichao201626 avatar Sep 22 '20 12:09 lichao201626

Sorry I have been slow on this :(

@notedit your library looks fantastic! I would love to recommend it, maybe we should make a note in save-to-disk about it? I don't want to add support for more formats in-tree. The maintenance burden is pretty high, would rather see the community own little bits and pieces

Sean-Der avatar Oct 04 '20 04:10 Sean-Der

Is this issue obsolete now? Because h264 reader is added and ffmpeg example is in plan.

ashellunts avatar Nov 05 '20 12:11 ashellunts

:+1: I am fine with resolving!

Also with the 'features matrix' hopefully it will help people understand that pion/webrtc is solving a subset of what they are looking for.

If you need something beyond WebRTC you need to bind this with another lib.

Sean-Der avatar Nov 06 '20 05:11 Sean-Der