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:
Edit: (notice the shorter length for the audio stream)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
Any help will be greatly appreciated.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
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
Last edited by MGRV; 10th Feb 2019 at 22:37.
-
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 -
-
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. -
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!
-
Similar Threads
-
VirtualDub output audio to PCM when direct stream copy is selected
By pchan in forum EditingReplies: 16Last Post: 8th Jan 2017, 03:10 -
Stream 0: audio first, then Stream 1: video PROBLEMS
By andwan0 in forum Newbie / General discussionsReplies: 5Last Post: 9th Dec 2016, 17:34 -
Issue with Yamb and MP4Box (adding audio-stream to video-stream)
By slax65 in forum Video ConversionReplies: 2Last Post: 21st May 2015, 05:39 -
When I cut/convert a .mpg file the audio is shorter than the video?
By Whitezombie455 in forum EditingReplies: 7Last Post: 7th Feb 2015, 21:57 -
Shorter Audio Stream = Delay?
By Djard in forum AudioReplies: 8Last Post: 12th Oct 2014, 12:31