#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)
Change History (9)
by , 4 years ago
| Attachment: | no_start_code_hevc.mp4 added |
|---|
comment:1 by , 4 years ago
follow-up: 3 comment:2 by , 4 years ago
| Component: | avcodec → ffmpeg |
|---|
comment:3 by , 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 , 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 , 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 , 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 , 4 years ago
| Component: | ffmpeg → undetermined |
|---|---|
| Resolution: | → needs_more_info |
| Status: | new → closed |
comment:8 by , 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



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