[FFmpeg-trac] #5352(avcodec:open): encoding error with VideoToolbox H.264 Encoder and profile high
FFmpeg
trac at avcodec.org
Sun Mar 20 13:05:58 CET 2016
#5352: encoding error with VideoToolbox H.264 Encoder and profile high
---------------------------------------+-----------------------------------
Reporter: ponpon | Owner: kernrj
Type: defect | Status: open
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: crash SIGSEGV | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------------+-----------------------------------
Comment (by ponpon):
Replying to [comment:1 kernrj]:
i tied it and could have encoded.
do i need to mind the following message of ffmpeg?
{{{
[h264_videotoolbox @ 0x7fa64a809600] Color range not set for YUV 4:2:0.
Using MPEG range.
}}}
to cehoyos
thank you for your suggestion.
{{{
ffmpeg -y -i city_4cif.y4m -c:v h264_videotoolbox -profile:v high
h264_videotoolbox.mp4
ffmpeg version 3.0.git Copyright (c) 2000-2016 the FFmpeg developers
built with clang version 3.7.0 (tags/RELEASE_370/final)
configuration: --cc=clang-mp-3.7 --cxx=clang++-mp-3.7 --disable-ffplay
--disable-ffprobe --disable-doc
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.103 / 57. 28.103
libavformat 57. 28.102 / 57. 28.102
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
Input #0, yuv4mpegpipe, from 'city_4cif.y4m':
Duration: 00:00:10.00, start: 0.000000, bitrate: 291965 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 704x576,
SAR 128:117 DAR 1408:1053, 60 fps, 60 tbr, 60 tbn, 60 tbc
Output #0, mp4, to 'h264_videotoolbox.mp4':
Metadata:
encoder : Lavf57.28.102
Stream #0:0: Video: h264 (h264_videotoolbox) ([33][0][0][0] / 0x0021),
yuv420p, 704x576 [SAR 128:117 DAR 1408:1053], q=2-31, 200 kb/s, 60 fps,
15360 tbn, 60 tbc
Metadata:
encoder : Lavc57.28.103 h264_videotoolbox
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_videotoolbox))
Press [q] to stop, [?] for help
[h264_videotoolbox @ 0x7fa64a809600] Color range not set for YUV 4:2:0.
Using MPEG range.
frame= 600 fps=219 q=-0.0 Lsize= 605kB time=00:00:10.00 bitrate=
495.7kbits/s speed=3.65x
video:602kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.557511%
}}}
{{{
ffmpeg -v 9 -loglevel 99 -y -i city_4cif.y4m -c:v h264_videotoolbox
-profile:v high h264_videotoolbox.mp4
ffmpeg version 3.0.git Copyright (c) 2000-2016 the FFmpeg developers
built with clang version 3.7.0 (tags/RELEASE_370/final)
configuration: --cc=clang-mp-3.7 --cxx=clang++-mp-3.7 --disable-ffplay
--disable-ffprobe --disable-doc
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.103 / 57. 28.103
libavformat 57. 28.102 / 57. 28.102
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-i' ... matched as input file with argument
'city_4cif.y4m'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_videotoolbox'.
Reading option '-profile:v' ... matched as option 'profile' (set profile)
with argument 'high'.
Reading option 'h264_videotoolbox.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file city_4cif.y4m.
Successfully parsed a group of options.
Opening an input file: city_4cif.y4m.
[file @ 0x7fed68410fa0] Setting default whitelist 'file,crypto'
Probing yuv4mpegpipe score:100 size:2048
[yuv4mpegpipe @ 0x7fed6880e600] Format yuv4mpegpipe probed with size=2048
and score=100
[yuv4mpegpipe @ 0x7fed6880e600] Before avformat_find_stream_info() pos: 38
bytes read:32768 seeks:0
[yuv4mpegpipe @ 0x7fed6880e600] All info found
[yuv4mpegpipe @ 0x7fed6880e600] 0: start_time: 0.000 duration: 0.001
[yuv4mpegpipe @ 0x7fed6880e600] stream: start_time: 0.000 duration: 10.000
bitrate=291965 kb/s
[yuv4mpegpipe @ 0x7fed6880e600] After avformat_find_stream_info() pos:
608300 bytes read:608300 seeks:0 frames:1
Input #0, yuv4mpegpipe, from 'city_4cif.y4m':
Duration: 00:00:10.00, start: 0.000000, bitrate: 291965 kb/s
Stream #0:0, 1, 1/60: Video: rawvideo, 1 reference frame (I420 /
0x30323449), yuv420p, 704x576, 1/60, SAR 128:117 DAR 1408:1053, 60 fps, 60
tbr, 60 tbn, 60 tbc
Successfully opened the file.
Parsing a group of options: output file h264_videotoolbox.mp4.
Applying option c:v (codec name) with argument h264_videotoolbox.
Applying option profile:v (set profile) with argument high.
Successfully parsed a group of options.
Opening an output file: h264_videotoolbox.mp4.
[file @ 0x7fed68500ec0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0x7fed68410a20] Setting 'video_size' to
value '704x576'
[graph 0 input from stream 0:0 @ 0x7fed68410a20] Setting 'pix_fmt' to
value '0'
[graph 0 input from stream 0:0 @ 0x7fed68410a20] Setting 'time_base' to
value '1/60'
[graph 0 input from stream 0:0 @ 0x7fed68410a20] Setting 'pixel_aspect' to
value '128/117'
[graph 0 input from stream 0:0 @ 0x7fed68410a20] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 0x7fed68410a20] Setting 'frame_rate' to
value '60/1'
[graph 0 input from stream 0:0 @ 0x7fed68410a20] w:704 h:576
pixfmt:yuv420p tb:1/60 fr:60/1 sar:128/117 sws_param:flags=2
[format @ 0x7fed68411a80] compat: called with args=[nv12|yuv420p]
[format @ 0x7fed68411a80] Setting 'pix_fmts' to value 'nv12|yuv420p'
[AVFilterGraph @ 0x7fed68501180] query_formats: 4 queried, 3 merged, 0
already done, 0 delayed
Output #0, mp4, to 'h264_videotoolbox.mp4':
Metadata:
encoder : Lavf57.28.102
Stream #0:0, 0, 1/15360: Video: h264 (h264_videotoolbox), 1 reference
frame ([33][0][0][0] / 0x0021), yuv420p, 704x576 [SAR 128:117 DAR
1408:1053], 1/60, q=2-31, 200 kb/s, 60 fps, 15360 tbn, 60 tbc
Metadata:
encoder : Lavc57.28.103 h264_videotoolbox
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_videotoolbox))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
Clipping frame in rate conversion by 0.000008
[h264_videotoolbox @ 0x7fed69009600] Color range not set for YUV 4:2:0.
Using MPEG range.
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056
Last message repeated 103 times
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056itrate=
573.1kbits/s speed=3.44x
Last message repeated 105 times
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056itrate=
535.8kbits/s speed=3.48x
Last message repeated 106 times
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056itrate=
534.0kbits/s speed= 3.5x
Last message repeated 111 times
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056itrate=
510.6kbits/s speed=3.55x
Last message repeated 110 times
[rawvideo @ 0x7fed69008000] PACKET SIZE: 608256, STRIDE: 1056itrate=
496.4kbits/s speed=3.58x
Last message repeated 51 times
[output stream 0:0 @ 0x7fed684117c0] EOF on sink link output stream
0:0:default.
No more output streams to write to, finishing.
frame= 600 fps=215 q=-0.0 Lsize= 605kB time=00:00:10.00 bitrate=
495.7kbits/s speed=3.59x
video:602kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.557511%
Input file #0 (city_4cif.y4m):
Input stream #0:0 (video): 600 packets read (364953600 bytes); 600
frames decoded;
Total: 600 packets (364953600 bytes) demuxed
Output file #0 (h264_videotoolbox.mp4):
Output stream #0:0 (video): 600 frames encoded; 600 packets muxed
(616131 bytes);
Total: 600 packets (616131 bytes) muxed
600 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x7fed68500fe0] Statistics: 34 seeks, 627 writeouts
[AVIOContext @ 0x7fed68500060] Statistics: 364957238 bytes read, 0 seeks
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5352#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list