[FFmpeg-user] emerge has unconnected output? Works on FFMPEG 4, not 3

Karl Messner karlmessner at gmail.com
Mon Nov 23 17:14:54 EET 2020


Michael,

Thank you so much for your help. I made the changes you suggested and now I'm getting this:


ffmpeg -report -i videos/intro720.mp4 -i videos/raw.mp4 -i videos/outro720.mp4 -i videos/music.mp3 -filter_complex " \
[0]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v0];\
[1]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v1];\
[2]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v2];\
[3:a]volume=.015[a0];\
[1:a][a0]amerge[amix];\
[v0][0:a:0] [v1][amix] [v2][2:a:0]concat=n=3:v=1:a=1[v][a]" -map "[v]" -map "[a]" -f mp4 videos/out1606144376.mp4 2>&1





[Parsed_amerge_10 @ 0x21c96c0] No channel layout for input 1
[Parsed_amerge_10 @ 0x21c96c0] No channel layout for input 2
[AVFilterGraph @ 0x1a76460] The following filters could not choose their formats: Parsed_amerge_10
Consider inserting the (a)format filter near their input or output.
Error configuring complex filters.
Input/output error



Any idea?

Karl

Here's the whole report:





ffmpeg started on 2020-11-23 at 10:12:56
Report written to "ffmpeg-20201123-101256.log"
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
  configuration: --enable-gpl --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfdk-aac --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libfreetype --enable-libvpx
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/intro720.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
    episode_sort    : 0
    season_number   : 0
    media_type      : 0
    hd_video        : 0
  Duration: 00:00:08.34, start: 0.023220, bitrate: 331 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 16:15 DAR 256:135], 269 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 53 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/raw.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2020-11-18 19:47:11
    com.android.version: 10
    com.android.manufacturer: Google
    com.android.model: Pixel XL
  Duration: 00:01:15.98, start: 0.000000, bitrate: 17097 kb/s
    Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 16997 kb/s, SAR 1:1 DAR 16:9, 29.91 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2020-11-18 19:47:11
      handler_name    : VideoHandle
    Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2020-11-18 19:47:11
      handler_name    : SoundHandle
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/outro720.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.12.100
    episode_sort    : 0
    season_number   : 0
    media_type      : 0
    hd_video        : 0
  Duration: 00:00:09.15, start: 0.023220, bitrate: 208 kb/s
    Stream #2:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 198 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[mp3 @ 0x1a75ac0] Skipping 0 bytes of junk at 138.
[mp3 @ 0x1a75ac0] Estimating duration from bitrate, this may be inaccurate
Input #3, mp3, from 'videos/music.mp3':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    encoder         : Lavf57.19.100
  Duration: 00:01:56.69, start: 0.000000, bitrate: 192 kb/s
    Stream #3:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
[Parsed_amerge_10 @ 0x21c96c0] No channel layout for input 1
[Parsed_amerge_10 @ 0x21c96c0] No channel layout for input 2
[AVFilterGraph @ 0x1a76460] The following filters could not choose their formats: Parsed_amerge_10
Consider inserting the (a)format filter near their input or output.
Error configuring complex filters.
Input/output error









> On Nov 23, 2020, at 8:31 AM, Michael Koch <astroelectronic at t-online.de> wrote:
> 
> Am 23.11.2020 um 13:50 schrieb KarlMessner:
>> Good morning folks,
>> 
>> Any idea what I'm doing wrong here:
>> 
>> /usr/local/bin/ffmpeg -report -i videos/intro720.mp4 -i videos/raw.mp4 -i
>> videos/outro720.mp4 -i videos/music.mp3 -filter_complex " \
>> [0]
>> scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v0];
>> \
>> [1]
>> scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v1];
>> \
>> [2]
>> scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1[v2];
>> \
>> [3:a]volume=.015[a0]; \
>> *[1:a][a0]amerge[amix]; \
>> *[v0][0:a:0] [v1][aMix] [v2][2:a:0] concat=n=3:v=1:a=1[v][a]" -map "[v]"
>> -map "[a]" -f mp4 videos/out1606134367mp4 2>&1
> 
> it's another error: amix != aMix
> 
> Michael
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org <mailto:ffmpeg-user at ffmpeg.org>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org <mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".



More information about the ffmpeg-user mailing list