Author Topic: Video MP4 AVC play failed after merging  (Read 1711 times)

Kelvin

  • Newbie
  • *
  • Posts: 7
Video MP4 AVC play failed after merging
« on: June 25, 2017, 05:27:54 AM »
Hi guys
I downloaded two video from youtube, format mp4 AVC. After I merge them with avidemux,  it cannot play when it gets to the latter video.

Avidemux 2.7 nightly build on Windows 10 64bit.
http://www.avidemux.org/nightly/win64/avidemux_r170623_win64Qt5_438.zip

Two video from youtube:

You can download by youtube-dl:

command line:
  • > youtube-dl -f 138 56lXwJcBYk8
  • > youtube-dl -f 266 haXIeJNyJ_E

I attached the project file for more detail.
« Last Edit: June 25, 2017, 05:30:45 AM by Kelvin »

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3404
Re: Video MP4 AVC play failed after merging
« Reply #1 on: June 25, 2017, 10:27:53 PM »
Appending WFM at least with MKV muxer.

Kelvin

  • Newbie
  • *
  • Posts: 7
Re: Video MP4 AVC play failed after merging
« Reply #2 on: June 26, 2017, 03:01:29 AM »
what does "Appending WFM" mean?

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3404
Re: Video MP4 AVC play failed after merging
« Reply #3 on: June 26, 2017, 08:54:05 AM »
Oh, I see now. Only keyframes can be decoded in the appended video after the whole was saved in copy mode.

("WFM" means "works for me", but it really doesn't as I see now).

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3404
Re: Video MP4 AVC play failed after merging
« Reply #4 on: June 26, 2017, 08:54:45 PM »
Remarkably, an attempt to join these videos with ffmpeg 3.3.1 results in exactly the same issue (at least when using software decoding). It doesn't matter which video comes first; the second one can't be decoded.

720p versions of the videos doesn't exhibit this problem, btw.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3404
Re: Video MP4 AVC play failed after merging
« Reply #5 on: June 27, 2017, 03:57:10 PM »
Looks like differing stream identifiers (138 vs 266) indicate also different encoding options, which makes videos not mergeable.

Kelvin

  • Newbie
  • *
  • Posts: 7
Re: Video MP4 AVC play failed after merging
« Reply #6 on: June 30, 2017, 03:30:05 PM »
Yes, the stream 266 has higher quality than 138, that why I choose 266. Hope you find out and fix issue in future version, to make avidemux better and better :D

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3404
Re: Video MP4 AVC play failed after merging
« Reply #7 on: June 30, 2017, 05:02:10 PM »
You can't mix 138 and 266. I guess, there is nothing Avidemux could do about it unless you reencode.