[Live-devel] Record a H265 stream from IP camera to file

Nicolas Julien nicolas.julien at cdvi.com
Mon Sep 21 02:06:24 PDT 2020


Hi,

I tested the command lines.
openrtsp generates the raw files as expected :

Started playing session
Receiving streamed data...
Outputting data from the "video/H265" subsession to "video-H265-2-00010-00020"
Outputting data from the "video/H265" subsession to "video-H265-3-00020-00030"
Outputting data from the "video/H265" subsession to "video-H265-4-00030-00040"
etc...


Unfortunately the conversion with ffmpeg does not work because the program detects a lot of errors :

[h264 @ 03965300] no frame!
[h264 @ 03965300] missing picture in access unit with size 4840
[h264 @ 03965300] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 03965300] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org)

________________________________________
De : live-devel [live-devel-bounces at us.live555.com] de la part de Ross Finlayson [finlayson at live555.com]
Date d'envoi : vendredi 11 septembre 2020 13:41
À : LIVE555 Streaming Media - development & use
Objet : Re: [Live-devel] Record a H265 stream from IP camera to file

> On Sep 11, 2020, at 8:52 PM, Nicolas Julien <nicolas.julien at cdvi.com> wrote:
>
> Any idea why this is not working?

The error message says why:

> Warning: we don't implement a QuickTime Video Media Data Type for the "H265" track, so we'll insert a dummy "????" Media Data Atom instead.  A separate, codec-specific editing pass will be needed before this track can be played.

Specifically, our implementation of outputting “.mp4”-format files does not yet handle writing “.mp4”-format files that contain H.265 video.  (See the “if” statement in “liveMedia/QuickTimeFileSink.cpp”, starting at line 644.)

One way you can overcome this problem is to instead record a raw H.265 video file, *not* a “.mp4”-format file.  I.e. run:
        openrtsp -b 200000 -u admin admin -v -d 10 -w 2560 -h 1440 -f 15 rtsp://192.168.1.64:554/Streaming/Tracks/101?transportmode=unicast&replaymode=onvifreplay
i.e., without the “-4” option, and without stdout redirection.

This will give you a video file, named something like “VIDEO-1-H265”, which you can rename as “test.h264” (note, with a “.h264” filename suffix, even though the data is H.265).  Then use “ffmpeg” to convert this to a “.mp4”-format file, e.g.
        ffmpeg -i test.h264 -c copy test.mp4


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel



More information about the live-devel mailing list