News:

--

Main Menu

FLV video corrupted after editing on 2.6.19

Started by Bangaio, April 12, 2017, 09:14:19 PM

Previous topic - Next topic

Bangaio

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

Quote from: Bangaio on April 12, 2017, 09:14:19 PM
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

FLV handle fixed, but wrong framerate still persists. Thanks for the reply.

eumagga0x2a

#3
Please provide a sample (edit: and try the MKV muxer).


Jan Gruuthuse

#5
re-encoding only helps.
There issues with the flv recording, on 2.7.0 got plenty of these:

[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.

mean

A lot of frames are detected as having  duplicated timestamp, they are skipped

mean

The file is corrupted, i.e . it has been created by a software that does not manage H264 correctly