Opened 4 years ago

Closed 4 years ago

Last modified 10 months ago

#9861 closed defect (needs_more_info)

Cannot open hevc mp4 file that was saved by ffmpeg itself

Reported by: chao Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: chao Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffprobe no_start_code_hevc.mp4
ffmpeg n5.1
built on Ubuntu 20.04.4 LTS

I used command

ffmpeg -i "rtsp://XXXX" -an -vcodec copy no_start_code_hevc.mp4

to save a footage file from a security camera. The result mp4 file is invalid. ffprobe returns

[extract_extradata @ 0x560de7b1bb80] No start code is found.
test.mp4: Invalid data found when processing input

Attachments (1)

no_start_code_hevc.mp4 (967.6 KB ) - added by chao 4 years ago.

Download all attachments as: .zip

Change History (9)

by chao, 4 years ago

Attachment: no_start_code_hevc.mp4 added

in reply to:  description comment:1 by Carl Eugen Hoyos, 4 years ago

Replying to chao:

ffmpeg -i "rtsp://XXXX" -an -vcodec copy no_start_code_hevc.mp4

This is missing complete, uncut console output but there is no guarantee that this command line produces a valid output file.

comment:2 by Carl Eugen Hoyos, 4 years ago

Component: avcodecffmpeg

in reply to:  2 comment:3 by chao, 4 years ago

Replying to Carl Eugen Hoyos:
I assume you mean the RTSP URL is cut out?
It's from a GeoVision security camera that's not owned by me.
Let me see whether I can share the RTPS URL here.

comment:4 by Carl Eugen Hoyos, 4 years ago

Valid tickets contain a command line together with the complete, uncut console output, in this case of the command that created the invalid file.

comment:5 by chao, 4 years ago

Well, I don't get the permission to publish the RTSP URL here.
I was hoping the mp4 file would be useful..

comment:6 by Carl Eugen Hoyos, 4 years ago

We don’t care about the url, we want to see the command line you tested together with the console output.

comment:7 by Carl Eugen Hoyos, 4 years ago

Component: ffmpegundetermined
Resolution: needs_more_info
Status: newclosed

comment:8 by Yu Liu, 10 months ago

I think i've met the same problem. use ffmpeg save rtsp(video codec is hevc) to mp4,and ffplay shows 'No start code is found'
tested with 7.1.1 and this issue has has been fixed,while 7.1 still has same problem
maybe this commit fixed this?
https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/5813e5aa344b8c03c83bf62e729be0f447944ed1

Note: See TracTickets for help on using tickets.