[FFmpeg-trac] #2456(avfilter:open): can't concatenate two video files because of different SARs
FFmpeg
trac at avcodec.org
Thu Apr 11 14:01:04 CEST 2013
#2456: can't concatenate two video files because of different SARs
------------------------------------+------------------------------------
Reporter: DK | Owner:
Type: defect | Status: open
Priority: normal | Component: avfilter
Version: git-master | Resolution:
Keywords: aspect | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by cehoyos):
{{{
$ ffmpeg -i tests/lena.pnm sar0.mp4
ffmpeg version N-51893-gd83c481 Copyright (c) 2000-2013 the FFmpeg
developers
built on Apr 11 2013 13:59:45 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --disable-indev=jack --enable-libx264
libavutil 52. 26.100 / 52. 26.100
libavcodec 55. 2.100 / 55. 2.100
libavformat 55. 2.100 / 55. 2.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 52.101 / 3. 52.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from 'tests/lena.pnm':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
[format @ 0x25931c0] This syntax is deprecated. Use '|' to separate the
list items.
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x25911e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX
[libx264 @ 0x25911e0] profile High 4:4:4 Predictive, level 1.3, 4:4:4
8-bit
[libx264 @ 0x25911e0] 264 - core 128 - H.264/MPEG-4 AVC codec - Copyleft
2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=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=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'sar0.mp4':
Metadata:
encoder : Lavf55.2.100
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 256x256,
q=-1--1, 12800 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (ppm -> libx264)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=28.0 Lsize= 6kB time=00:00:00.04
bitrate=1283.8kbits/s
video:5kB audio:0kB subtitle:0 global headers:0kB muxing overhead
13.429935%
[libx264 @ 0x25911e0] frame I:1 Avg QP:30.12 size: 4947
[libx264 @ 0x25911e0] mb I I16..4: 7.0% 62.9% 30.1%
[libx264 @ 0x25911e0] 8x8 transform intra:62.9%
[libx264 @ 0x25911e0] coded y,u,v intra: 74.9% 36.6% 41.4%
[libx264 @ 0x25911e0] i16 v,h,dc,p: 56% 6% 11% 28%
[libx264 @ 0x25911e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 7% 15% 11% 4%
8% 4% 14% 7%
[libx264 @ 0x25911e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 6% 14% 15% 6%
10% 4% 13% 3%
[libx264 @ 0x25911e0] kb/s:989.40
}}}
{{{
$ ffmpeg -i sar0.mp4 sar1.avi
ffmpeg version N-51893-gd83c481 Copyright (c) 2000-2013 the FFmpeg
developers
built on Apr 11 2013 13:59:45 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --disable-indev=jack --enable-libx264
libavutil 52. 26.100 / 52. 26.100
libavcodec 55. 2.100 / 55. 2.100
libavformat 55. 2.100 / 55. 2.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 52.101 / 3. 52.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sar0.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.2.100
Duration: 00:00:00.04, start: 0.000000, bitrate: 1283 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 /
0x31637661), yuv444p, 256x256, 1124 kb/s, 25 fps, 25 tbr, 12800 tbn, 50
tbc
Metadata:
handler_name : VideoHandler
Output #0, avi, to 'sar1.avi':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
ISFT : Lavf55.2.100
Stream #0:0(und): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 256x256,
q=2-31, 200 kb/s, 25 tbn, 25 tbc
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg4)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=3.8 Lsize= 15kB time=00:00:00.04
bitrate=3097.6kbits/s
video:10kB audio:0kB subtitle:0 global headers:0kB muxing overhead
58.331630%
}}}
{{{
$ ffmpeg -i sar0.mp4 -i sar1.avi -filter_complex concat out.avi
ffmpeg version N-51893-gd83c481 Copyright (c) 2000-2013 the FFmpeg
developers
built on Apr 11 2013 13:59:45 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --disable-indev=jack --enable-libx264
libavutil 52. 26.100 / 52. 26.100
libavcodec 55. 2.100 / 55. 2.100
libavformat 55. 2.100 / 55. 2.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 52.101 / 3. 52.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sar0.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.2.100
Duration: 00:00:00.04, start: 0.000000, bitrate: 1283 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 /
0x31637661), yuv444p, 256x256, 1124 kb/s, 25 fps, 25 tbr, 12800 tbn, 50
tbc
Metadata:
handler_name : VideoHandler
Input #1, avi, from 'sar1.avi':
Metadata:
encoder : Lavf55.2.100
Duration: 00:00:00.04, start: 0.000000, bitrate: 3097 kb/s
Stream #1:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46),
yuv420p, 256x256 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
[Parsed_concat_0 @ 0x251c6e0] Input link in1:v0 parameters (size 256x256,
SAR 1:1) do not match the corresponding output link in0:v0 parameters
(256x256, SAR 0:1)
[Parsed_concat_0 @ 0x251c6e0] Failed to configure output pad on
Parsed_concat_0
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2456#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list