VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date
    Dec 2018
    Location
    Spain
    Search Comp PM
    I'm trying to cut the commercials out of a TV broadcast using Avidemux, but I've encountered this problem in my first tests: the audio cuts off at the point of my first edit. For some reason, the resulting file's audio stream ends at the point of my first trim point, after which there's only video. I'm providing the MediaInfo data for both files, so maybe some of the knowledgeable people here can point out what the problem might be. I can only point out that for some reason my edit shows "Source duration" in its info, and also the compression has been changed from constant to variable. I have no idea what that is about. By the way, I'm only using keyframes as edit points to avoid any problems, but after the first failed attempts I also tried other alternatives, with similar results. I'm using the Copy option for both video and audio.

    Original:
    Code:
    General
    Complete name                  : C:\Users\Matias\Videos\Original.mp4
    Format                         : MPEG-4
    Format profile                 : Base Media
    Codec ID                       : isom (isom/iso2/avc1/mp41)
    File size                      : 3.63 GiB
    Duration                       : 2 h 0 min
    Overall bit rate               : 4 331 kb/s
    Writing application            : Lavf56.40.101
    
    Video
    ID                             : 1
    Format                         : AVC
    Format/Info                    : Advanced Video Codec
    Format profile                 : Main@L4
    Format settings                : CABAC / 3 Ref Frames
    Format settings, CABAC         : Yes
    Format settings, ReFrames      : 3 frames
    Codec ID                       : avc1
    Codec ID/Info                  : Advanced Video Coding
    Duration                       : 2 h 0 min
    Bit rate                       : 4 198 kb/s
    Width                          : 1 280 pixels
    Height                         : 720 pixels
    Display aspect ratio           : 16:9
    Frame rate mode                : Variable
    Frame rate                     : 29.970 (29970/1000) FPS
    Minimum frame rate             : 0.508 FPS
    Maximum frame rate             : 29.970 FPS
    Color space                    : YUV
    Chroma subsampling             : 4:2:0
    Bit depth                      : 8 bits
    Scan type                      : Progressive
    Bits/(Pixel*Frame)             : 0.152
    Stream size                    : 3.52 GiB (97%)
    Codec configuration box        : avcC
    
    Audio
    ID                             : 2
    Format                         : AAC LC
    Format/Info                    : Advanced Audio Codec Low Complexity
    Codec ID                       : mp4a-40-2
    Duration                       : 2 h 0 min
    Bit rate mode                  : Constant
    Bit rate                       : 126 kb/s
    Channel(s)                     : 2 channels
    Channel layout                 : L R
    Sampling rate                  : 44.1 kHz
    Frame rate                     : 43.066 FPS (1024 SPF)
    Compression mode               : Lossy
    Stream size                    : 108 MiB (3%)
    Default                        : Yes
    Alternate group                : 1
    Edit: (notice the shorter length for the audio stream)

    Code:
    General
    Complete name                  : C:\Users\Matias\Videos\Edit.mp4
    Format                         : MPEG-4
    Format profile                 : Base Media / Version 2
    Codec ID                       : mp42 (mp42/isom)
    File size                      : 1 014 MiB
    Duration                       : 32 min 34 s
    Overall bit rate mode          : Variable
    Overall bit rate               : 4 351 kb/s
    Encoded date                   : UTC 2019-02-11 04:00:20
    Tagged date                    : UTC 2019-02-11 04:01:14
    
    Video
    ID                             : 1
    Format                         : AVC
    Format/Info                    : Advanced Video Codec
    Format profile                 : Main@L4
    Format settings                : CABAC / 3 Ref Frames
    Format settings, CABAC         : Yes
    Format settings, ReFrames      : 3 frames
    Codec ID                       : avc1
    Codec ID/Info                  : Advanced Video Coding
    Duration                       : 32 min 34 s
    Bit rate                       : 4 245 kb/s
    Width                          : 1 280 pixels
    Height                         : 720 pixels
    Display aspect ratio           : 16:9
    Frame rate mode                : Variable
    Frame rate                     : 29.970 (29970/1000) FPS
    Minimum frame rate             : 29.004 FPS
    Maximum frame rate             : 29.980 FPS
    Color space                    : YUV
    Chroma subsampling             : 4:2:0
    Bit depth                      : 8 bits
    Scan type                      : Progressive
    Bits/(Pixel*Frame)             : 0.154
    Stream size                    : 989 MiB (98%)
    Encoded date                   : UTC 2019-02-11 04:00:20
    Tagged date                    : UTC 2019-02-11 04:01:14
    Codec configuration box        : avcC
    
    Audio
    ID                             : 2
    Format                         : AAC LC
    Format/Info                    : Advanced Audio Codec Low Complexity
    Codec ID                       : mp4a-40-2
    Duration                       : 26 min 6 s
    Source duration                : 26 min 6 s
    Bit rate mode                  : Variable
    Bit rate                       : 126 kb/s
    Channel(s)                     : 2 channels
    Channel layout                 : L R
    Sampling rate                  : 44.1 kHz
    Frame rate                     : 43.066 FPS (1024 SPF)
    Compression mode               : Lossy
    Stream size                    : 23.5 MiB (2%)
    Source stream size             : 23.5 MiB (2%)
    Title                          : Stereo
    Encoded date                   : UTC 2019-02-11 04:00:20
    Tagged date                    : UTC 2019-02-11 04:01:04
    Any help will be greatly appreciated.
    Last edited by MGRV; 10th Feb 2019 at 22:37.
    Quote Quote  
  2. You can't really edit VFR video (or only with extreme difficulty, and not with avidemux because it involves timecode editing) ; you usually have to convert it to CFR before editing

    Frame rate mode : Variable
    Frame rate : 29.970 (29970/1000) FPS
    Minimum frame rate : 0.508 FPS
    Maximum frame rate : 29.970 FPS

    If it's a TV broadcast , you should be recording in CFR mode
    Quote Quote  
  3. Member
    Join Date
    Dec 2018
    Location
    Spain
    Search Comp PM
    Originally Posted by poisondeathray View Post
    You can't really edit VFR video (or only with extreme difficulty, and not with avidemux because it involves timecode editing) ; you usually have to convert it to CFR before editing
    Can that be done without re-encoding? Sorry if it's a dumb question and thanks for your reply!
    Quote Quote  
  4. Originally Posted by MGRV View Post
    Originally Posted by poisondeathray View Post
    You can't really edit VFR video (or only with extreme difficulty, and not with avidemux because it involves timecode editing) ; you usually have to convert it to CFR before editing
    Can that be done without re-encoding? Sorry if it's a dumb question and thanks for your reply!
    Not really, or with extreme difficulty taking account of timecodes for different sections.

    If you re-encode it to make it CFR (basically inserting duplicate frames where your dropped frames were), then you could edit it "normally", but that involves at least one or more re-encoding steps.
    Quote Quote  
  5. Member
    Join Date
    Dec 2018
    Location
    Spain
    Search Comp PM
    Thanks for your reply. I guess the only solution would be something like the 'smart editing' some pieces of software do. I'll live with fast-forwarding on commercials!
    Quote Quote  
  6. Originally Posted by MGRV View Post
    Thanks for your reply. I guess the only solution would be something like the 'smart editing' some pieces of software do. I'll live with fast-forwarding on commercials!
    They can't handle VFR properly either.

    Very difficult to edit as VFR
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!