Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#2051 closed defect (duplicate)

Video merging sinking issue

Reported by: elbysam Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: async flv nellymoser
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Hi all,

We are trying to merge couple of videos.

Using code { ffmpeg -i input.flv -qscale:v 1 -y output.mpg }
then an issue occurred in audio / Video Sinking. ie the lips sink is not correct.

Attachments (3)

TestOrginal1.flv (425.2 KB) - added by elbysam 5 years ago.
input file 1st
TestOrginal2.flv (1.8 MB) - added by elbysam 5 years ago.
Input File 2
concat.txt (44 bytes) - added by cehoyos 5 years ago.

Change History (7)

comment:1 Changed 5 years ago by cehoyos

  • Keywords ffmpeg video merging removed
  • Priority changed from important to normal

To make this a valid ticket, please provide the command line you are using together with the complete, uncut console output.
And please consider providing a sample that allows to reproduce the problem.

Changed 5 years ago by elbysam

input file 1st

Changed 5 years ago by elbysam

Input File 2

comment:2 Changed 5 years ago by elbysam

Hi all,
We are trying to merge couple of videos.
Using code { ffmpeg -i input1.flv -qscale:v 1 -y output1.mpg }

{ ffmpeg -i input2.flv -qscale:v 1 -y output2.mpg }

for join videos using

{ cat output1.mpg output2.mpg > indeterminate_all.mpg }

We got complete output using following code

{ ffmpeg -i indeterminate_all.mpg -qscale:v 2 completeoutput.avi }

then an issue occurred in audio / Video Sinking. ie the lips sink is not correct.

Changed 5 years ago by cehoyos

comment:3 Changed 5 years ago by cehoyos

  • Keywords async flv nellymoser added
  • Resolution set to duplicate
  • Status changed from new to closed

I believe this is a duplicate of ticket #1555 (and some issues on roundup), not a regression afaict.
Reproducible with:
$ ffmpeg -i TestOrginal1.flv -qscale 2 out1.avi

Works fine with -async 1:
$ ffmpeg -async 1 -i TestOrginal1.flv -qscale 2 out1async1.avi

The concatenation works here for example with the following command line:
$ ffmpeg -async 1 -f concat -i concat.txt -qscale 2 outdemuxer.avi

comment:4 Changed 5 years ago by cehoyos

Here is another alternative (using the concat filter) that allows to concatenate the files and keep A/V sync (thanks to Clément Bœsch for the example):

$ ffmpeg -i TestOrginal1.flv -i TestOrginal2.flv -filter_complex '[0:0][0:1][1:0][1:1]concat=v=1:a=1[v],aresample=async=1[a]' -map [v] -map [a] -qscale 2 outfilter.avi

Or an equivalent shorter command line:

$ ffmpeg -i TestOrginal1.flv -i TestOrginal2.flv -filter_complex 'concat=a=1[v],aresample=async=1' -map [v] -qscale 2 outfiltershort.avi
Note: See TracTickets for help on using tickets.