webrtc
webrtc copied to clipboard
Update docs to suggest other libraries for reading/writing media to disk
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.
https://github.com/notedit/pion-webrtc-recorder
Is this lib using pion underneath or it depends on mediasoup?
@notedit Thanks for the record example, any webrtc demo playing from flv disk file?
@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.
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 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
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
Is this issue obsolete now? Because h264 reader is added and ffmpeg example is in plan.
:+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.