How to save incoming h264 stream without re-encoding?

Nathanael D. Noblet nathanael at gnat.ca
Fri May 25 11:45:37 PDT 2012


On 05/24/2012 09:54 PM, W.A. Garrett Weaver wrote:
> I found the solution to the intermittent delay problem. What you have to
> do is reduce the latency on gstrtpjitterbuffer to 10ms instead of being
> 500ms.
>
> gst-launch-0.10 udpsrc multicast-group=224.1.1.1 auto-multicast=true
> port=5010 caps='application/x-rtp, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)H264,
> sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\=\",
> payload=(int)96, ssrc=(uint)3315029550, clock-base=(uint)3926529534,
> seqnum-base=(uint)45576' ! gstrtpjitterbuffer drop-on-latency=true
> latency=10 ! rtph264depay ! ffdec_h264 ! x264enc ! matroskamux !
> filesink location=movie.mkv
>
> The result is this:
> http://www.youtube.com/watch?v=br--9h3-g4U
>
> This works good if the computer on the receiving end is sufficiently
> fast enough to compress video, since mine is, this is an adequate
> solution. Still, it would be nice to record the h264 stream directly to
> a file instead of having to re compress.

I do something somewhat similar (I capture encoded video from IP network 
cameras and only remux to a file)...

What happens if you have rtph264hdepay ! matroskamux ! filsink??? Why 
doesn't that work for you?


-- 
Nathanael d. Noblet
t 403.875.4613


More information about the gstreamer-devel mailing list