[FFmpeg-trac] #4590(avfilter:open): concat filter does not work to loop audio
FFmpeg
trac at avcodec.org
Fri Jan 29 00:03:10 CET 2016
#4590: concat filter does not work to loop audio
------------------------------------+------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: open
Priority: normal | Component: avfilter
Version: git-master | Resolution:
Keywords: concat | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Changes (by richardpl):
* status: new => open
* component: undetermined => avfilter
Old description:
> As reported by irc user chama
> The following works as expected:
> {{{
> $ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -i fate-
> suite/svq3/Vertical400kbit.sorenson3.mov -i fate-
> suite/svq3/Vertical400kbit.sorenson3.mov -filter_complex
> [0:a][1:a][2:a]concat=n=3:v=0:a=1 out.wav
> }}}
> The output file has a correct length of 2:10
>
> The following claims to encode 2:10 but the output file is much shorter:
> {{{
> $ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -filter_complex
> [0:a][0:a][0:a]concat=n=3:v=0:a=1 out.wav
> ffmpeg version N-72624-g196b885 Copyright (c) 2000-2015 the FFmpeg
> developers
> built with gcc 4.7 (SUSE Linux)
> configuration: --enable-gpl
> libavutil 54. 26.101 / 54. 26.101
> libavcodec 56. 41.101 / 56. 41.101
> libavformat 56. 34.100 / 56. 34.100
> libavdevice 56. 4.100 / 56. 4.100
> libavfilter 5. 16.101 / 5. 16.101
> libswscale 3. 1.101 / 3. 1.101
> libswresample 1. 1.100 / 1. 1.100
> libpostproc 53. 3.100 / 53. 3.100
> Guessed Channel Layout for Input Stream #0.1 : mono
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
> suite/svq3/Vertical400kbit.sorenson3.mov':
> Metadata:
> creation_time : 2001-03-20 16:17:18
> title : Vertical Online SV3 Demo
> title-eng : Vertical Online SV3 Demo
> artist : Logan Kelsey
> artist-eng : Logan Kelsey
> copyright : © Vertical Online 2001
> copyright-eng : © Vertical Online 2001
> encoder : Sorenson Video 3
> encoder-eng : Sorenson Video 3
> Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s
> Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc),
> 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc (default)
> Metadata:
> creation_time : 2001-03-20 16:17:18
> handler_name : Apple Alias Data Handler
> encoder : Sorenson Video 3
> Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz,
> 1 channels, s16p, 176 kb/s (default)
> Metadata:
> creation_time : 2001-03-20 16:17:18
> handler_name : Apple Alias Data Handler
> Output #0, wav, to 'out.wav':
> Metadata:
> ISFT : Lavf56.34.100
> INAM : Vertical Online SV3 Demo
> title-eng : Vertical Online SV3 Demo
> IART : Logan Kelsey
> artist-eng : Logan Kelsey
> ICOP : © Vertical Online 2001
> copyright-eng : © Vertical Online 2001
> Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
> mono, s16, 705 kb/s (default)
> Metadata:
> encoder : Lavc56.41.101 pcm_s16le
> Stream mapping:
> Stream #0:1 (adpcm_ima_qt) -> concat:in0:a0
> Stream #0:1 (adpcm_ima_qt) -> concat:in1:a0
> Stream #0:1 (adpcm_ima_qt) -> concat:in2:a0
> concat -> Stream #0:0 (pcm_s16le)
> Press [q] to stop, [?] for help
> Multiple frames in a packet from stream 1
> [Parsed_concat_0 @ 0x26bed40] Buffer queue overflow, dropping.
> Last message repeated 59539 times
> [output stream 0:0 @ 0x26bf600] 100 buffers queued in output stream 0:0,
> something may be wrong.
> size= 3817kB time=00:02:10.72 bitrate= 239.2kbits/s
> video:0kB audio:3817kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.004247%
> }}}
> {{{
> $ ffmpeg -i out.wav
> ffmpeg version N-72624-g196b885 Copyright (c) 2000-2015 the FFmpeg
> developers
> built with gcc 4.7 (SUSE Linux)
> configuration: --enable-gpl
> libavutil 54. 26.101 / 54. 26.101
> libavcodec 56. 41.101 / 56. 41.101
> libavformat 56. 34.100 / 56. 34.100
> libavdevice 56. 4.100 / 56. 4.100
> libavfilter 5. 16.101 / 5. 16.101
> libswscale 3. 1.101 / 3. 1.101
> libswresample 1. 1.100 / 1. 1.100
> libpostproc 53. 3.100 / 53. 3.100
> Guessed Channel Layout for Input Stream #0.0 : mono
> Input #0, wav, from 'out.wav':
> Metadata:
> artist : Logan Kelsey
> copyright : © Vertical Online 2001
> title : Vertical Online SV3 Demo
> encoder : Lavf56.34.100
> Duration: 00:00:44.32, bitrate: 705 kb/s
> Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 1
> channels, s16, 705 kb/s
> At least one output file must be specified
> }}}
New description:
As reported by irc user chama
The following works as expected:
{{{
$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -i fate-
suite/svq3/Vertical400kbit.sorenson3.mov -i fate-
suite/svq3/Vertical400kbit.sorenson3.mov -filter_complex
[0:a][1:a][2:a]concat=n=3:v=0:a=1 out.wav
}}}
The output file has a correct length of 2:10
The following claims to encode 2:10 but the output file is much shorter:
{{{
$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -filter_complex
[0:a][0:a][0:a]concat=n=3:v=0:a=1 out.wav
ffmpeg version N-72624-g196b885 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 54. 26.101 / 54. 26.101
libavcodec 56. 41.101 / 56. 41.101
libavformat 56. 34.100 / 56. 34.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
suite/svq3/Vertical400kbit.sorenson3.mov':
Metadata:
creation_time : 2001-03-20 16:17:18
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : (c) Vertical Online 2001
copyright-eng : (c) Vertical Online 2001
encoder : Sorenson Video 3
encoder-eng : Sorenson Video 3
Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s
Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc),
320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc (default)
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
encoder : Sorenson Video 3
Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, 1
channels, s16p, 176 kb/s (default)
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Output #0, wav, to 'out.wav':
Metadata:
ISFT : Lavf56.34.100
INAM : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
IART : Logan Kelsey
artist-eng : Logan Kelsey
ICOP : (c) Vertical Online 2001
copyright-eng : (c) Vertical Online 2001
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono,
s16, 705 kb/s (default)
Metadata:
encoder : Lavc56.41.101 pcm_s16le
Stream mapping:
Stream #0:1 (adpcm_ima_qt) -> concat:in0:a0
Stream #0:1 (adpcm_ima_qt) -> concat:in1:a0
Stream #0:1 (adpcm_ima_qt) -> concat:in2:a0
concat -> Stream #0:0 (pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[Parsed_concat_0 @ 0x26bed40] Buffer queue overflow, dropping.
Last message repeated 59539 times
[output stream 0:0 @ 0x26bf600] 100 buffers queued in output stream 0:0,
something may be wrong.
size= 3817kB time=00:02:10.72 bitrate= 239.2kbits/s
video:0kB audio:3817kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.004247%
}}}
{{{
$ ffmpeg -i out.wav
ffmpeg version N-72624-g196b885 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 54. 26.101 / 54. 26.101
libavcodec 56. 41.101 / 56. 41.101
libavformat 56. 34.100 / 56. 34.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'out.wav':
Metadata:
artist : Logan Kelsey
copyright : (c) Vertical Online 2001
title : Vertical Online SV3 Demo
encoder : Lavf56.34.100
Duration: 00:00:44.32, bitrate: 705 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 1
channels, s16, 705 kb/s
At least one output file must be specified
}}}
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4590#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list