[FFmpeg-devel] Unrecognized video

Nicolas Julien nicolas.julien at cdvi.com
Tue Sep 22 09:48:59 EEST 2020


Hi,

Camera is Hikvision DS-2CD2141G1-IDW1.
The sample I uploaded comes from a replay of the camera (micro SD card).
I get the rtsp link of the replay using an onvif request and I record it with openrtsp.
Trying to understand, I may have found a solution: when I rename the file with the extension .h265, the conversion works with ffmpeg!
Command : ffmpeg -i test.h265 -c copy test.mp4 is ok.

________________________________________
De : ffmpeg-devel [ffmpeg-devel-bounces at ffmpeg.org] de la part de Carl Eugen Hoyos [ceffmpeg at gmail.com]
Date d'envoi : mardi 22 septembre 2020 00:32
À : FFmpeg development discussions and patches
Objet : Re: [FFmpeg-devel] Unrecognized video

Am Mo., 21. Sept. 2020 um 11:24 Uhr schrieb Nicolas Julien
<nicolas.julien at cdvi.com>:

> I just uploaded a video file (named video.h264) to https://streams.videolan.org/upload/ web site.
> This video is from the recorded replay of an IP camera, with openrtsp.
> I am trying to convert this H265 video to mp4 format with ffmpeg but I am getting a lot of errors.

The first 37 bytes look similar to a video stream but are invalid for
a hevc video,
making auto-detection more difficult. Not sure if this should be fixed,
could you tell us the name of the IP camera?
Could this be a bug in openrtsp?

Thank you for the sample, Carl Eugen

00000000  00 00 00 01 67 4d 00 32  9d a8 0a 00 2d 69 b8 08  |....gM.2....-i..|
00000010  08 0a 00 00 03 00 02 00  00 03 00 51 08 00 00 00  |...........Q....|
00000020  01 68 ee 3c 80 00 00 00  01 40 01 0c 01 ff ff 01  |.h.<..... at ......|

"67" and "4d" are not valid, neither is "ee" in the second "NAL".
00 00 00 01 4 01 is the actual start of the video stream.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list