[FFmpeg-trac] #4644(avdevice:new): Corrupt H264 when streaming H264 from v4l2 device
FFmpeg
trac at avcodec.org
Thu Jul 23 06:10:48 CEST 2015
#4644: Corrupt H264 when streaming H264 from v4l2 device
------------------------------------+------------------------------------
Reporter: noah | Owner:
Type: defect | Status: new
Priority: normal | Component: avdevice
Version: git-master | Resolution:
Keywords: v4l2 h264 | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by noah):
Per the suggestion in the linked thread, I did three more tests (default
with `AVSTREAM_PARSE_HEADERS`, `AVSTREAM_PARSE_FULL_ONCE` and
`AVSTREAM_PARSE_FULL`) with two different containers (.mov and .nut) and a
more recent code base.
I can confirm that the more recent code produce the same results as
previously reported.
I've uploaded the resulting files to upload.ffmpeg.org with the following
names:
{{{
$ ls -1rt |xargs du -sk
9944 ffmpeg-headers.mov
80 ffmpeg-20150722-222055-headers.mov.log
7752 ffmpeg-full-once.mov
48 ffmpeg-20150722-222152-full-once.mov.log
6980 ffmpeg-full.mov
44 ffmpeg-20150722-222221-full.mov.log
4 ffmpeg-headers.nut
16 ffmpeg-20150722-222554-headers.nut.log
6580 ffmpeg-full.nut
40 ffmpeg-20150722-222605-full.nut.log
6716 ffmpeg-full-once.nut
40 ffmpeg-20150722-222620-full-once.nut.log
}}}
(I'm sorry I didn't think of including the ticket ID in the filenames
before they were uploaded..)
Usage of either `AVSTREAM_PARSE_FULL_ONCE` or `AVSTREAM_PARSE_FULL` when
capturing in `libavdevice/v4l2.c` appears to produce at least .mov files
that play nicely with Quicktime Player (OSX 10.10) and VLC (v2.2.1).
When attempting to play the the file which was captured with
`AVSTREAM_PARSE_HEADERS` (as is the default in git master) in Quicktime
Player, the playback won't start even if I hit the play button. If I
manually seek into the middle of the file and start playing from there,
all I get is a black screen.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4644#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list