Author Topic: FLV video corrupted after editing on 2.6.19  (Read 371 times)

Bangaio

  • Newbie
  • *
  • Posts: 5
FLV video corrupted after editing on 2.6.19
« on: April 12, 2017, 09:14:19 PM »
I finally switched from avidemux_2.6.11beta1_win64.exe to avidemux_2.6.19_win64.exe. (windows 7 x64)

Source: flv file (captured from livestream with ffmpeg)
Quote
Input #0, flv, from '00-2017.04.12-173926_mgzn.flv':
  Metadata:
    encoder         : Lavf57.61.100
  Duration: 00:02:00.02, start: 0.000000, bitrate: 571 kb/s
    Stream #0:0: Video: h264 (Baseline), yuv420p(tv, progressive), 640x480 [SAR 1:1 DAR 4:3], 25 fps, 29.97 tbr, 1k tbn, 50 tbc
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp

Edit: mp4v2 muxer in copy mode
Quote
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '00-2017.04.12-173926_mgzn_EDITavidemux2619.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2017-04-12T20:59:46.000000Z
  Duration: 00:00:44.99, start: 0.000000, bitrate: 375 kb/s
    Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 640x480 [SAR 1:1 DAR 4:3], 307 kb/s, 14.89 fps, 29.97 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2017-04-12T20:59:46.000000Z
      encoder         : JVT/AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
    Metadata:
      creation_time   : 2017-04-12T20:59:46.000000Z

Result: corrupted file

File edited with 2.6.11
Quote
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '00-2017.04.12-173926_mgzn_EDITavidemux2611.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2017-04-12T20:56:28.000000Z
  Duration: 00:00:45.02, start: 0.000000, bitrate: 568 kb/s
    Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 640x480 [SAR 1:1 DAR 4:3], 498 kb/s, 25.01 fps, 29.97 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2017-04-12T20:56:28.000000Z
      encoder         : JVT/AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
    Metadata:
      creation_time   : 2017-04-12T20:56:28.000000Z

Seems to be a fps problem...


Also, avidemux doesn't close handles from .flv files after the file is closed. I have to close them manually with Process Hacker, but that was a problem with previous versions too.

mm0359

  • Full Member
  • ***
  • Posts: 168
Re: FLV video corrupted after editing on 2.6.19
« Reply #1 on: April 13, 2017, 12:16:09 AM »
Also, avidemux doesn't close handles from .flv files after the file is closed. I have to close them manually with Process Hacker, but that was a problem with previous versions too.

This was fixed a few days ago.

Try a nightly.

Bangaio

  • Newbie
  • *
  • Posts: 5
Re: FLV video corrupted after editing on 2.6.19
« Reply #2 on: April 13, 2017, 09:05:16 PM »
FLV handle fixed, but wrong framerate still persists. Thanks for the reply.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1211
Re: FLV video corrupted after editing on 2.6.19
« Reply #3 on: April 13, 2017, 10:09:01 PM »
Please provide a sample (edit: and try the MKV muxer).
« Last Edit: April 13, 2017, 10:10:42 PM by eumagga0x2a »

Bangaio

  • Newbie
  • *
  • Posts: 5
Re: FLV video corrupted after editing on 2.6.19
« Reply #4 on: April 14, 2017, 06:41:37 AM »
MKV muxer results in the same framerate problem.

Files uploaded here:
https://mega.nz/#!WJFCUL5D!UogfCSX0kb-fJ6-JNLL6RlZLsXCjiJt1_VYb3pL0yvY

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5374
Re: FLV video corrupted after editing on 2.6.19
« Reply #5 on: April 14, 2017, 07:44:05 AM »
re-encoding only helps.
There issues with the flv recording, on 2.7.0 got plenty of these:
Code: [Select]
[getCompressedPicture] 07:40:53-656  Frame 2980 DTS is going back in time: expected: 00:01:59,722 got: 00:01:59,722 (119722000 vs 119682000)
 [getCompressedPicture] 07:40:53-656  Frame 2982 DTS is going back in time: expected: 00:01:59,789 got: 00:01:59,789 (119789000 vs 119782000)
 [getCompressedPicture] 07:40:53-656  Frame 2985 DTS is going back in time: expected: 00:01:59,922 got: 00:01:59,922 (119922000 vs 119882000)
while using copy.
« Last Edit: April 14, 2017, 07:50:12 AM by Jan Gruuthuse »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10910
Re: FLV video corrupted after editing on 2.6.19
« Reply #6 on: April 14, 2017, 07:48:59 AM »
A lot of frames are detected as having  duplicated timestamp, they are skipped

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10910
Re: FLV video corrupted after editing on 2.6.19
« Reply #7 on: April 14, 2017, 08:15:29 AM »
The file is corrupted, i.e . it has been created by a software that does not manage H264 correctly