Replacing Audio in Video-Keeping Video file size issue

garfield-s wrote on 4/14/2020, 3:26 PM

Hi,

i would like to replace the audio track of an 8gig .MP4 video file and keep the same file size. At the moment when i go to export the movie with the new audio the resulting video file is 3 times as big. The original file is 1920 x 1080 at 25fr so i cant understand what is causing the massive increase in file size. I am new to the world of video FYI - go easy :)

best,

Garfield

Comments

johnebaker wrote on 4/15/2020, 2:41 AM

@garfield-s

Hi and welcome to the forum.

Without more information on your source video files and the export preset you are using - see this topic for where to get MediaInfo and the information to post, the most likely cause is that the source video is more compressed than the exported video.

John EB
Forum Moderator

 

VPX 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 24H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

garfield-s wrote on 4/15/2020, 3:39 AM

@garfield-s

Hi and welcome to the forum.

Without more information on your source video files and the export preset you are using - see this topic for where to get MediaInfo and the information to post, the most likely cause is that the source video is more compressed than the exported video.

John EB
Forum Moderator

 

Hi John,

many thanks for the welcome and help.

Is there a way to simply replace audio in a video without having to re encode?

I downloaded mediainfo and here is the result -


Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp41/iso2/isom)
File size                                : 8.19 GiB
Duration                                 : 1 h 59 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 9 836 kb/s
Encoded date                             : UTC 2020-02-02 19:25:18
Tagged date                              : UTC 2020-02-02 19:25:18

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 1 frame
Format settings, GOP                     : M=1, N=50
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 59 min
Bit rate mode                            : Variable
Bit rate                                 : 9 624 kb/s
Maximum bit rate                         : 10 000 kb/s
Width                                    : 1 920 pixels
Clean aperture width                     : 1 888 pixels
Height                                   : 1 080 pixels
Clean aperture height                    : 1 062 pixels
Display aspect ratio                     : 16:9
Clean aperture display aspect ratio      : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.186
Stream size                              : 8.01 GiB (98%)
Language                                 : English
Encoded date                             : UTC 2020-02-02 19:25:18
Tagged date                              : UTC 2020-02-02 19:25:18
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 1 h 59 min
Source duration                          : 1 h 59 min
Bit rate mode                            : Constant
Bit rate                                 : 197 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 165 MiB (2%)
Source stream size                       : 165 MiB (2%)
Language                                 : English
Encoded date                             : UTC 2020-02-02 19:25:18
Tagged date                              : UTC 2020-02-02 19:25:18

I cant see how to output the same size file in MEP?

Best,

Adam

johnebaker wrote on 4/15/2020, 4:24 AM

@garfield-s

Hi Adam

Thanks for the MediaInfo analysis.

The source file is highly compressed with a video bit rate of 9,836 kb/s compared to the standard MP4 1920x1080 25fps export preset which has an average video bit rate of 22 000 kbs to a max of 28000 kbs.

The difference will give you an approximate doubling in file size - is this what you are seeing?

Is there a way to simply replace audio in a video without having to re encode?

Not without re-encoding, you would have to change the video bit rate, in the export setting,to a similar value to the source video - under the Advanced button in the export dialog.

However this will result in the quality dropping and potentially blockiness appearing in the final video.

Unless it is absolutely essential to have the file size so small, I would advise against dropping the video bit bitrate.

HTH

John EB

 

VPX 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 24H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

CubeAce wrote on 4/15/2020, 6:38 AM

@garfield-s

Can you do a similar text output from Media Info from the original clip please?

I'm wondering if the original file was recorded in H265.

 

Windows 10 Enterprise. Version 22H2 OS build 19045.5737

Direct X 12.1 latest hardware updates for Western Digital hard drives.

Asus ROG STRIX Z390-F Gaming motherboard Rev 1.xx with Supreme FX inboard audio using the S1220A code. Driver No 6.0.8960.1 Bios version 1401

Intel i9900K Coffee Lake 3.6 to 5.1GHz CPU with Intel UHD 630 Graphics .Driver version Graphics Driver 31.0.101.2135 for 7th-10th Gen Intel® with 64GB of 3200MHz Corsair DDR4 ram.

1000 watt EVGA modular power supply.

1 x 250GB Evo 970 NVMe: drive for C: drive backup 1 x 1TB Sabrent NVMe drive for Operating System / Programs only. 1X WD BLACK 1TB internal SATA 7,200rpm hard drives.1 for internal projects, 1 for Library clips/sounds/music/stills./backup of working projects. 1x500GB SSD current project only drive, 2x WD RED 2TB drives for latest footage storage. Total 31TB of 10 external WD drives for backup.

ASUS NVIDIA GeForce RTX 3060 12GB. nVidia Studio driver version 572.60 - 3584xCUDA cores Direct X 12.1. Memory interface 192bit Memory bandwidth 360.05GB/s 12GB of dedicated GDDR6 video memory, shared system memory 16307MB PCi Express x8 Gen3. Two Samsung 27" LED SA350 monitors with 5000000:1 contrast ratios at 60Hz.

Running MMS 2024 Suite v 23.0.1.182 (UDP3) and VPX 14 - v20.0.3.180 (UDP3)

M Audio Axiom AIR Mini MIDI keyboard Ver 5.10.0.3507

VXP 14, MMS 2024 Suite, Vegas Studio 16, Vegas Pro 18, Vegas Pro 21,Cubase 4. CS6, NX Studio, Mixcraft 9 Recording Studio. Mixcraft Pro 10 Studio. CS6 and DXO Photolab 8, OBS Studio.

Audio System 5 x matched bi-wired 150 watt Tannoy Reveal speakers plus one Tannoy 15" 250 watt sub with 5.1 class A amplifier. Tuned to room with Tannoy audio application.

Ram Acoustic Studio speakers amplified by NAD amplifier.

Rogers LS7 speakers run from Cambridge Audio P50 amplifier

Schrodinger's Backup. "The condition of any backup is unknown until a restore is attempted."

garfield-s wrote on 4/15/2020, 6:48 AM

@garfield-s

Hi Adam

Thanks for the MediaInfo analysis.

The source file is highly compressed with a video bit rate of 9,836 kb/s compared to the standard MP4 1920x1080 25fps export preset which has an average video bit rate of 22 000 kbs to a max of 28000 kbs.

The difference will give you an approximate doubling in file size - is this what you are seeing?

Is there a way to simply replace audio in a video without having to re encode?

Not without re-encoding, you would have to change the video bit rate, in the export setting,to a similar value to the source video - under the Advanced button in the export dialog.

However this will result in the quality dropping and potentially blockiness appearing in the final video.

Unless it is absolutely essential to have the file size so small, I would advise against dropping the video bit bitrate.

HTH

John EB

 

Hi John,

yes it is about double the size so that makes sense. I think Premiere has a "match original" preset in its settings. Not sure what that does exactly but if the quality of the video remains the same could be a nice feature.

The smaller size is a convenience rather that an absolute, so i will use the HD mp4 preset.

Many thanks for your assistance,

best regards!

 

 

 

 

 

garfield-s wrote on 4/15/2020, 10:24 AM

@garfield-s

Can you do a similar text output from Media Info from the original clip please?

I'm wondering if the original file was recorded in H265.

Hi,

i dont have the original file. Just the compressed .MP4 that needs the audio replacing.

best!

CubeAce wrote on 4/15/2020, 11:08 AM

@garfield-s

That will make trying to keep the quality good even harder. Sorry to hear that.

Ray.

 

Windows 10 Enterprise. Version 22H2 OS build 19045.5737

Direct X 12.1 latest hardware updates for Western Digital hard drives.

Asus ROG STRIX Z390-F Gaming motherboard Rev 1.xx with Supreme FX inboard audio using the S1220A code. Driver No 6.0.8960.1 Bios version 1401

Intel i9900K Coffee Lake 3.6 to 5.1GHz CPU with Intel UHD 630 Graphics .Driver version Graphics Driver 31.0.101.2135 for 7th-10th Gen Intel® with 64GB of 3200MHz Corsair DDR4 ram.

1000 watt EVGA modular power supply.

1 x 250GB Evo 970 NVMe: drive for C: drive backup 1 x 1TB Sabrent NVMe drive for Operating System / Programs only. 1X WD BLACK 1TB internal SATA 7,200rpm hard drives.1 for internal projects, 1 for Library clips/sounds/music/stills./backup of working projects. 1x500GB SSD current project only drive, 2x WD RED 2TB drives for latest footage storage. Total 31TB of 10 external WD drives for backup.

ASUS NVIDIA GeForce RTX 3060 12GB. nVidia Studio driver version 572.60 - 3584xCUDA cores Direct X 12.1. Memory interface 192bit Memory bandwidth 360.05GB/s 12GB of dedicated GDDR6 video memory, shared system memory 16307MB PCi Express x8 Gen3. Two Samsung 27" LED SA350 monitors with 5000000:1 contrast ratios at 60Hz.

Running MMS 2024 Suite v 23.0.1.182 (UDP3) and VPX 14 - v20.0.3.180 (UDP3)

M Audio Axiom AIR Mini MIDI keyboard Ver 5.10.0.3507

VXP 14, MMS 2024 Suite, Vegas Studio 16, Vegas Pro 18, Vegas Pro 21,Cubase 4. CS6, NX Studio, Mixcraft 9 Recording Studio. Mixcraft Pro 10 Studio. CS6 and DXO Photolab 8, OBS Studio.

Audio System 5 x matched bi-wired 150 watt Tannoy Reveal speakers plus one Tannoy 15" 250 watt sub with 5.1 class A amplifier. Tuned to room with Tannoy audio application.

Ram Acoustic Studio speakers amplified by NAD amplifier.

Rogers LS7 speakers run from Cambridge Audio P50 amplifier

Schrodinger's Backup. "The condition of any backup is unknown until a restore is attempted."

Scenestealer wrote on 4/15/2020, 6:46 PM

@garfield-s

Unless it is absolutely essential to have the file size so small, I would advise against dropping the video bit bitrate.

What John said is true to a point but you could try setting the video bitrate in the advanced export window to something smaller - say 15000kbps or less and see how it looks.

System Specs: Intel 6th Gen i7 6700K 4Ghz O.C.4.6GHz, Asus Z170 Pro Gaming MoBo, 16GB DDR4 2133Mhz RAM, Samsung 850 EVO 512GB SSD system disc WD Black 4TB HDD Video Storage, Nvidia GTX1060 OC 6GB, Win10 Pro 2004, MEP2016, 2022 (V21.0.1.92) Premium and prior, VPX7, VPX12 (V18.0.1.85). Microsoft Surface Pro3 i5 4300U 1.9GHz Max 2.6Ghz, HDGraphics 4400, 4GB Ram 128GB SSD + 64GB Strontium Micro SD card, Win 10Pro 2004, MEP2015 Premium.