Opened 10 years ago

Closed 10 years ago

#3942 closed defect (fixed)

misbehaviour of ``afade`` chained with ``amovie``

Reported by: while0pass Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: amovie afade
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

afade=t=in... chained with amovie changes nothing, afade=t=out... chained with amovie makes stream completely silient. Both issues seem valid only for amovie source and not for -i option source where everything is ok.

$ ffmpeg -y -filter_complex 'amovie=/home/nurono/Desktop/kmvso.mp3, atrim=start=0:end=10, afade=t=in:st=0:d=2' n1.mp3
 
ffmpeg version N-40693-gf7bbe0f- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 9 2014 02:20:35 with gcc 4.8 (Debian 4.8.3-10)
configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Output #0, mp3, to 'n1.mp3':
Metadata:
TSSE : Lavf56.4.101
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p (default)
Metadata:
encoder : Lavc56.1.100 libmp3lame
Stream mapping:
afade -> Stream #0:0 (libmp3lame)
Press [q] to stop, [?] for help
size= 157kB time=00:00:10.00 bitrate= 128.2kbits/s
video:0kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.141181%
 
 
 
$ ffmpeg -y -filter_complex 'amovie=/home/nurono/Desktop/kmvso.mp3, atrim=start=0:end=10, afade=t=in:st=0:d=2, afade=t=out:st=8:d=2' n2.mp3
 
ffmpeg version N-40693-gf7bbe0f- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 9 2014 02:20:35 with gcc 4.8 (Debian 4.8.3-10)
configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Output #0, mp3, to 'n2.mp3':
Metadata:
TSSE : Lavf56.4.101
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p (default)
Metadata:
encoder : Lavc56.1.100 libmp3lame
Stream mapping:
afade -> Stream #0:0 (libmp3lame)
Press [q] to stop, [?] for help
size= 157kB time=00:00:10.00 bitrate= 128.2kbits/s
video:0kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.141181%
 
 
 
$ ffmpeg -y -i /home/nurono/Desktop/kmvso.mp3 -filter_complex 'atrim=start=0:end=10, afade=t=in:st=0:d=2, afade=t=out:st=8:d=2' n3.mp3
 
ffmpeg version N-40693-gf7bbe0f- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 9 2014 02:20:35 with gcc 4.8 (Debian 4.8.3-10)
configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mp3, from '/home/nurono/Desktop/kmvso.mp3':
Metadata:
title : Warrior Concerto
artist : The Glitch Mob
track : /
album : We Can Make The World Stop
disc : /
Duration: 00:03:39.74, start: 0.025056, bitrate: 325 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
Metadata:
encoder : LAME3.98r
Side data:
replaygain: track gain - -10.300000, track peak - unknown, album gain - unknown, album peak - unknown,
Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg), 600x600 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title : Front cover
comment : Cover (front)
[swscaler @ 0x3cdc560] deprecated pixel format used, make sure you did set range correctly
[mp3 @ 0x3cf0940] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
Output #0, mp3, to 'n3.mp3':
Metadata:
TIT2 : Warrior Concerto
TPE1 : The Glitch Mob
TRCK : /
TALB : We Can Make The World Stop
TPOS : /
TSSE : Lavf56.4.101
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
Metadata:
encoder : Lavc56.1.100 libmp3lame
Stream #0:1: Video: png, rgb24, 600x600 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc
Metadata:
title : Front cover
comment : Cover (front)
encoder : Lavc56.1.100 png
Stream mapping:
Stream #0:0 (mp3) -> atrim (graph 0)
afade (graph 0) -> Stream #0:0 (libmp3lame)
Stream #0:1 -> #0:1 (mjpeg (native) -> png (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.9 q=0.0 Lsize= 946kB time=00:00:10.00 bitrate= 774.3kbits/s
video:789kB audio:157kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.039045%
 
 
$ mplayer n1.mp3
$ # my comments: only atrim applied, no afade=t=in, sound is on and unchanged
$
$ mplayer n2.mp3
$ # atrim applied, sound is totally off
$
$ mplayer n3.mp3
$ # all the filters applied as expected

Change History (2)

comment:1 by Carl Eugen Hoyos, 10 years ago

Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Not a regression afaict.

$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov out.mp2
$ ffmpeg -filter_complex "amovie=out.mp2, atrim=start=0:end=10, afade=t=in:st=0:d=2, afade=t=out:st=8:d=2" out.wav
ffmpeg version N-66242-g453944c Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 12 2014 00:49:57 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
[mp3 @ 0x33cfea0] Estimating duration from bitrate, this may be inaccurate
Output #0, wav, to 'out.wav':
  Metadata:
    ISFT            : Lavf56.4.101
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s (default)
    Metadata:
      encoder         : Lavc56.1.100 pcm_s16le
Stream mapping:
  afade -> Stream #0:0 (pcm_s16le)
Press [q] to stop, [?] for help
size=     861kB time=00:00:10.00 bitrate= 705.7kbits/s
video:0kB audio:861kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.008844%

The output file is not silent if the intermediate file is a wav file or the original mov.

If ac3 is used as intermediate format, the effect is even worse: The output file starts loud and gets silent after two seconds.

comment:2 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedavfilter
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.