Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5073 closed defect (invalid)

Parsed_concat_1 @ 02ad98e0 Failed to configure output pad on Parsed_concat_1

Reported by: samverdikt Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,

I am concatenating 3 mpeg video files to one.I am using NRecodVideoConverter to do so which indeed uses FFmpeg.

-nostdin -y -loglevel info -i "C:\code\esocializ\src\esocializ\App_Data\Local\Intro_12b3071e-de24-4784-82bf-85e9accfe239"

-i "C:\code\esocializ\src\esocializ\App_Data\Local\Video_Subscriber_middle_108131c6-381d-4484-acee-19dabbb4160f-00f43610-ca1b-4ea7-932d-985a810bf258"
-i "C:\code\esocializ\src\esocializ\App_Data\Local\Outro_12b3071e-de24-4784-82bf-85e9accfe239" -t 500 -f mpeg -s 1080x720 -filter_complex " setsar=1/1[sarfix];[sarfix] concat=n=3:v=1 [v]" -map "[v]"
"C:\code\esocializ\src\esocializ\App_Data\Local\Video_Subscriber_108131c6-381d-4484-acee-19dabbb4160f-00f43610-ca1b-4ea7-932d-985a810bf258.mpeg"

Change History (9)

comment:1 Changed 2 years ago by cehoyos

  • Priority changed from important to normal

To make this a valid ticket please provide an actual FFmpeg command line (with default or higher verbosity, not with -loglevel info) together with the complete, uncut console output.

comment:2 follow-up: Changed 2 years ago by samverdikt

Below is the log:

C:\Users\work\Downloads\ffmpeg-20151130-git-7b11eea-win64-static\ffmpeg-20151130
-git-7b11eea-win64-static\bin

ffmpeg -i I.mp4 -i V.mp4 -i O.mp4 -t 500 -f mp4 -s 1080*720 -filter_complex "co

ncat=n=3:v=1 [v]" -map "[v]" output.mp4
ffmpeg version N-76957-g7b11eea Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av

isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc

--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl

e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --
enable-lzma --enable-decklink --enable-zlib

libavutil 55. 9.100 / 55. 9.100
libavcodec 57. 16.101 / 57. 16.101
libavformat 57. 19.100 / 57. 19.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 17.100 / 6. 17.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 'I.mp4':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.12.100

Duration: 00:00:03.52, start: 0.036281, bitrate: 2041 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x720

[SAR 40:33 DAR 20:11], 1926 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)

Metadata:

handler_name : VideoHandler?

Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp,

128 kb/s (default)

Metadata:

handler_name : SoundHandler?

Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'V.mp4':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.12.100

Duration: 00:00:31.29, start: 0.036281, bitrate: 1560 kb/s

Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x720,

1428 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)

Metadata:

handler_name : VideoHandler?

Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp,

128 kb/s (default)

Metadata:

handler_name : SoundHandler?

Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'O.mp4':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.12.100

Duration: 00:00:03.52, start: 0.036281, bitrate: 2041 kb/s

Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x720

[SAR 40:33 DAR 20:11], 1926 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)

Metadata:

handler_name : VideoHandler?

Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp,

128 kb/s (default)

Metadata:

handler_name : SoundHandler?

[Parsed_concat_0 @ 000000d2ed8bee80] Input link in1:v0 parameters (size 1080x720
, SAR 0:1) do not match the corresponding output link in0:v0 parameters (1080x72
0, SAR 40:33)
[Parsed_concat_0 @ 000000d2ed8bee80] Failed to configure output pad on Parsed_co
ncat_0
Error configuring complex filters.
Invalid argument

C:\Users\work\Downloads\ffmpeg-20151130-git-7b11eea-win64-static\ffmpeg-20151130
-git-7b11eea-win64-static\bin

comment:3 in reply to: ↑ 2 Changed 2 years ago by Cigaes

Replying to samverdikt:

[Parsed_concat_0 @ 000000d2ed8bee80] Input link in1:v0 parameters
  (size 1080x720, SAR 0:1) do not match the corresponding output link
  in0:v0 parameters (1080x720, SAR 40:33)


Do you find this error message unclear? Do you have suggestions to improve it?

comment:4 Changed 2 years ago by llogan

  • Resolution set to invalid
  • Status changed from new to closed

Not a bug. In this case use setsar filter.

comment:5 Changed 2 years ago by samverdikt

I did not find the error message unclear.
In my application whenever a video is uploaded. I convert it into mp4 format using constant width and height and frame rate.Only, after converting them to mp4 they are concatenated.

Why am I getting the above error message? As I am concatenating 3 videos of the same format,frame rate and width and height.

comment:6 Changed 2 years ago by llogan

From the concat filter docs:

All corresponding streams must have the same parameters in all segments; the filtering system will automatically select a common pixel format for video streams, and a common sample format, sample rate and channel layout for audio streams, but other settings, such as resolution, must be converted explicitly by the user.

Your inputs did not share the same parameters: specifically SAR.

Please note that the bug tracker is not a help resource. If you have additional questions you should direct them to the ffmpeg-user mailing list or the #ffmpeg IRC channel.

comment:7 Changed 2 years ago by samverdikt

  • Resolution changed from invalid to fixed

comment:8 Changed 2 years ago by samverdikt

  • Resolution changed from invalid to fixed

comment:9 Changed 2 years ago by llogan

  • Resolution changed from fixed to invalid

This was not a bug, so it should be set as "invalid".

Note: See TracTickets for help on using tickets.