[FFmpeg-trac] #3983(undetermined:new): Problem creating files forn HLS using 2 pass
FFmpeg
trac at avcodec.org
Sat Sep 27 14:15:48 CEST 2014
#3983: Problem creating files forn HLS using 2 pass
-------------------------------------+-------------------------------------
Reporter: Racingyacht | Type: defect
Status: new | Priority: important
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: I am creating mp4 test files for HLS. My setup is for
two pass. Files with -profile:v main -level 3.1 pass ok. Files with
-profile:v baseline -level 3.(0 or 1) fail with:
'Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height'.
Please note, I have broken down testing, trying one file at a time using
different parameters. FFmpeg updated today to the latest version in git. I
have been able to create the file on single pass. However, I need to
create multiple files for a HLS implementation and need to synchronize the
files.
How to reproduce: ffmpeg -y -i sintel_trailer-1080p.mp4 -c:v libx2
64 -b:v 2400k -maxrate 2240k -bufsize 2240k -r 24 -g 72 -pass 1 -c:a
libfdk_aac
-b:a 128k -f mp4 /dev/null && ffmpeg -i sintel_trailer-1080p.mp4
-profile:v base
line -level 3.0 -bf 0 -c:v libx264 -b:v 1200k -maxrate 1200k -bufsize
1200k -r 2
4 -g 72 -pass 2 -c:a libfdk_aac -profile:a aac_low -b:a 96k -s 640x480
test1f.mp
4
version:
ffmpeg -version
ffmpeg version git-2014-03-07-61ff043
built on Mar 7 2014 18:23:07 with gcc 4.4.7 (GCC) 20120313 (Red Hat
4.4.7-4)
configuration: --prefix=/root/ffmpeg_build --extra-
cflags=-I/root/ffmpeg_build/include --extra-
ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl
--enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame
--enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.101 / 55. 33.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
{{{
# ffmpeg -y -i sintel_trailer-1080p.mp4 -c:v libx2
64 -b:v 2400k -maxrate 2240k -bufsize 2240k -r 24 -g 72 -pass 1 -c:a
libfdk_aac
-b:a 128k -f mp4 /dev/null && ffmpeg -i sintel_trailer-1080p.mp4
-profile:v base
line -level 3.0 -bf 0 -c:v libx264 -b:v 1200k -maxrate 1200k -bufsize
1200k -r 2
4 -g 72 -pass 2 -c:a libfdk_aac -profile:a aac_low -b:a 96k -s 640x480
test1f.mp
4
ffmpeg version git-2014-03-07-61ff043 Copyright (c) 2000-2014 the FFmpeg
develop
ers
built on Mar 7 2014 18:23:07 with gcc 4.4.7 (GCC) 20120313 (Red Hat
4.4.7-4)
configuration: --prefix=/root/ffmpeg_build --extra-
cflags=-I/root/ffmpeg_build
/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin
--extra-lib
s=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-
libmp3lame --e
nable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.101 / 55. 33.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sintel_trailer-1080p.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : Sintel Trailer
artist : Durian Open Movie Team
encoder : Lavf52.62.0
copyright : (c) copyright Blender Foundation |
durian.blender.org
description : Trailer for the Sintel open movie project
Duration: 00:00:52.21, start: 0.000000, bitrate: 2240 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080
, 2108 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 12
6 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
[libx264 @ 0x22c5740] max bitrate less than average bitrate, assuming CBR
[libx264 @ 0x22c5740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x22c5740] profile Main, level 4.0
[libx264 @ 0x22c5740] 264 - core 142 r2 956c8d8 - H.264/MPEG-4 AVC codec -
Copyl
eft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1
deblo
ck=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0
me_rang
e=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_
offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
interlac
ed=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=
0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=72 keyint_min=7
scenecut=40 int
ra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=2240 ratetol=1.0
qcomp=0.60
qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2240 vbv_bufsize=2240 nal_hrd=none
filler
=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/dev/null':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
description : Trailer for the Sintel open movie project
title : Sintel Trailer
artist : Durian Open Movie Team
copyright : (c) copyright Blender Foundation |
durian.blender.org
encoder : Lavf55.33.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 1
920x1080, q=-1--1, pass 1, 2400 kb/s, 12288 tbn, 24 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040),
48000 Hz
, stereo, s16, 128 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfdk_aac)
Press [q] to stop, [?] for help
frame= 46 fps=0.0 q=0.0 size= 0kB time=00:00:01.94 bitrate=
0.2kbits/s
frame= 63 fps= 52 q=21.0 size= 17kB time=00:00:02.64 bitrate=
53.3kbits/
frame= 78 fps= 44 q=24.0 size= 155kB time=00:00:03.28 bitrate=
387.1kbits/
frame= 91 fps= 40 q=26.0 size= 323kB time=00:00:03.81 bitrate=
691.9kbits/
frame= 104 fps= 37 q=26.0 size= 484kB time=00:00:04.37 bitrate=
906.0kbits/
frame= 117 fps= 35 q=27.0 size= 656kB time=00:00:04.90
bitrate=1094.6kbits/
frame= 131 fps= 34 q=27.0 size= 842kB time=00:00:05.48
bitrate=1258.5kbits/
frame= 144 fps= 33 q=27.0 size= 1039kB time=00:00:06.03
bitrate=1410.4kbits/
frame= 157 fps= 32 q=27.0 size= 1228kB time=00:00:06.57
bitrate=1530.9kbits/
frame= 169 fps= 32 q=28.0 size= 1395kB time=00:00:07.08
bitrate=1613.2kbits/
frame= 183 fps= 31 q=29.0 size= 1483kB time=00:00:07.65
bitrate=1586.1kbits/
frame= 197 fps= 31 q=29.0 size= 1645kB time=00:00:08.23
bitrate=1636.1kbits/
frame= 211 fps= 30 q=28.0 size= 1830kB time=00:00:08.83
bitrate=1697.4kbits/
frame= 226 fps= 30 q=28.0 size= 2036kB time=00:00:09.45
bitrate=1764.5kbits/
frame= 242 fps= 30 q=28.0 size= 2284kB time=00:00:10.11
bitrate=1850.7kbits/
frame= 256 fps= 30 q=23.0 size= 2464kB time=00:00:10.68
bitrate=1888.9kbits/
frame= 1253 fps= 31 q=-1.0 Lsize= 12081kB time=00:00:52.12
bitrate=1898.7kbits/s
video:11236kB audio:812kB subtitle:0 data:0 global headers:0kB muxing
overhead 0.270858%
[libx264 @ 0x22c5740] frame I:29 Avg QP:11.91 size: 29880
[libx264 @ 0x22c5740] frame P:770 Avg QP:17.58 size: 12502
[libx264 @ 0x22c5740] frame B:454 Avg QP:13.86 size: 2230
[libx264 @ 0x22c5740] consecutive B-frames: 47.2% 12.1% 4.3% 36.4%
[libx264 @ 0x22c5740] mb I I16..4: 85.2% 0.0% 14.8%
[libx264 @ 0x22c5740] mb P I16..4: 27.8% 0.0% 0.0% P16..4: 21.9% 0.0%
0.0% 0.0% 0.0% skip:50.3%
[libx264 @ 0x22c5740] mb B I16..4: 0.9% 0.0% 0.0% B16..8: 5.1% 0.0%
0.0% direct: 2.2% skip:91.8% L0:32.8% L1:55.4% BI:11.8%
[libx264 @ 0x22c5740] coded y,uvDC,uvAC intra: 7.3% 20.6% 1.7% inter: 3.4%
7.8% 0.0%
[libx264 @ 0x22c5740] i16 v,h,dc,p: 49% 30% 13% 8%
[libx264 @ 0x22c5740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 23% 7% 6%
5% 5% 4% 4%
[libx264 @ 0x22c5740] i8c dc,h,v,p: 68% 19% 11% 2%
[libx264 @ 0x22c5740] Weighted P-Frames: Y:36.8% UV:18.8%
[libx264 @ 0x22c5740] kb/s:1762.97
ffmpeg version git-2014-03-07-61ff043 Copyright (c) 2000-2014 the FFmpeg
developers
built on Mar 7 2014 18:23:07 with gcc 4.4.7 (GCC) 20120313 (Red Hat
4.4.7-4)
configuration: --prefix=/root/ffmpeg_build --extra-
cflags=-I/root/ffmpeg_build/include --extra-
ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl
--enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame
--enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.101 / 55. 33.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sintel_trailer-1080p.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : Sintel Trailer
artist : Durian Open Movie Team
encoder : Lavf52.62.0
copyright : (c) copyright Blender Foundation |
durian.blender.org
description : Trailer for the Sintel open movie project
Duration: 00:00:52.21, start: 0.000000, bitrate: 2240 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080, 2108 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 126 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
File 'test1f.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x3b729a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x3b729a0] different weightp setting than first pass (0 vs 2)
Output #0, mp4, to 'test1f.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
description : Trailer for the Sintel open movie project
title : Sintel Trailer
artist : Durian Open Movie Team
encoder : Lavf52.62.0
copyright : (c) copyright Blender Foundation |
durian.blender.org
Stream #0:0(und): Video: h264, yuv420p, 640x480, q=-1--1, pass 2, 1200
kb/s, 90k tbn, 24 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac, 48000 Hz, stereo, s16 (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfdk_aac)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3983>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list