Will Vegas re-encode?

ram17 wrote on 6/1/2020, 5:44 PM

I need your suggestion guys. I've edited in VP17 a 3 cam set up, 9 hour long project. The requirement of the client is to render it into 3 parts, which I already did. Now, upon delivery client also want another rendered output but now as a whole & I want to use the 3 split parts to join as one to sped up the render. Question is: If I use the split files in rendering, would Vegas re-encode the said files even if using the same template & renderer? (files are in MP4 rendered from VOUKODER template x264)

If not, kindly recommend me an app that I can partner with Vegas, free or paid as long it gets the job done efficiently w/o needing to re encode if possible. Thanks...

Comments

john_dennis wrote on 6/1/2020, 5:58 PM

If you used the same render template for each of the three parts.

FFMPEG will join the files without re-encoding.

VideoReDo TV Suite with join the files only transcoding a few frames at the transitions.

michael-harrison wrote on 6/1/2020, 6:55 PM

@john_dennis are you certain about #1? I'd read it was dependent on file type and mp4 wasn't in the list.

System 1:

Windows 10
i9-10850K 10 Core
128.0G RAM
Nvidia RTX 3060 Studio driver [most likely latest]
Resolution        3840 x 2160 x 60 hertz
Video Memory 12G GDDR5

 

System 2:

Lenovo Yoga 720
Core i7-7700 2.8Ghz quad core, 8 logical
16G ram
Intel HD 630 gpu 1G vram
Nvidia GTX 1050 gpu 2G vram

 

ram17 wrote on 6/1/2020, 7:45 PM

If you used the same render template for each of the three parts.

FFMPEG will join the files without re-encoding

@john_dennis just to confirm, would rendering in VP with Voukoder will really not re-encode those files? With same render template & settings which I've used in rendering all those three parts & apply to the new project for combining them.

ram17 wrote on 6/1/2020, 7:54 PM

@john_dennis are you certain about #1? I'd read it was dependent on file type and mp4 wasn't in the list.

yeah, that's what I know too but asking to be sure & to confirm also, to avoid unnecessary work.

john_dennis wrote on 6/1/2020, 8:37 PM

@ram17 @michael-harrison

I'm not absolutely certain about FFMPEG command line joining of MP4. Except for the syntax of the commands, it wouldn't take longer than a file copy to find out.

https://stackoverflow.com/questions/49371422/how-to-merge-two-videos-without-re-encoding

VideoReDo TV Suite uses FFMPEG under the hood and it can join AVC and AAC in an MP4 wrapper without re-encoding every frame (it might encode a few frames at the file boundaries).

 

Howard-Vigorita wrote on 6/1/2020, 8:45 PM

@john_dennis are you certain about #1? I'd read it was dependent on file type and mp4 wasn't in the list.

yeah, that's what I know too but asking to be sure & to confirm also, to avoid unnecessary work.

Ffmpeg wiki page for the "concat" demuxer and protocol filters is here. Demuxer requires matching codecs in all clips but the protocol filter apparently does not. They both require all the frame sizes to match. I usually use the protocol one and can verify it works for avc or hevc mp4, mxf, and mov files but I've always done this with the clips from the same camera so everything always matches up. The way I do it is to first create a clip-list of clips in a directory by running a script like this:

(for %%i in (*.mp4) do @echo file '%%i') | sort > mp4_list.txt

I sort them because my camera clips have sequence numbers in the file name but may not appear in that order in the raw windows directory. I often edit the mp4_list.txt output file with notepad if there are any files in the directory I don't want in the list. Then I run this ffmpeg command to join all the clips in the list.

ffmpeg -f concat -i mp4_list.txt -c:v copy -c:a copy -map 0:v:0 -map 0:a:0 mp4_cat.mp4

That command assumes there's one video stream and one audio stream. If there's 2 mono audio streams, you'd probably want to add an additional map command to copy both audio streams or other stuff if you want to join the 2 mono streams into one stereo stream. Mp4_cat.mp4 is the output file.

john_dennis wrote on 6/1/2020, 8:49 PM

Thanks Howard.

fifonik wrote on 6/1/2020, 8:59 PM

Out of curiosity, have you checked audio at the places where the concatenations happened?

With all these audio offsets, this might cause some glitches.

Camcorder: Panasonic X1500 + Panasonic X920 + GoPro Hero 11 Black

Desktop: MB: MSI B650P, CPU: AMD Ryzen 9700X, RAM: G'Skill 32 GB DDR5@6000, Graphics card: MSI RX6600 8GB, SSD: Samsung 970 Evo+ 1TB (NVMe, OS), HDD WD 4TB, HDD Toshiba 4TB, OS: Windows 10 Pro 22H2

NLE: Vegas Pro [Edit] 11, 12, 13, 15, 17, 18, 19, 22

Author of FFMetrics and FFBitrateViewer

ram17 wrote on 6/1/2020, 9:28 PM

Out of curiosity, have you checked audio at the places where the concatenations happened?

With all these audio offsets, this might cause some glitches.

Yup, its ok they're sub-divided neatly. Every parts are different topic so they're separated by titles/intro & fade outs.

joelsonforte.br wrote on 6/1/2020, 10:43 PM

You can use the feature Smart Trim of the Vegasaur or Video Redo to do this. See video bellow.

 

wwaag wrote on 6/2/2020, 10:23 AM

Here's another option--the Happy Otter MP4 File Joiner, a free tool I wrote a couple of years ago. It has four different options for joining files that make use of FFmpeg, MP4Box and Exiftool. The reason for 4 options is that not all footage will work correctly without glitches such as added frames, audio out-of-sync, variable frame rate output, etc. The audio sync issue was one reason for including the option to re-render the audio in Vegas. The user should always be very careful and test the results, regardless of the method used for joining. Here's a screen grab of the UI showing the different joining options.

It can be freely downloaded here. https://tools4vegas.com/library/

Another option to VideReDo is TMPGEnc's MPEG Smart Renderer https://tmpgenc.pegasys-inc.com/en/product/tmsr5.html which also supports joining and smart-rendering of MP4 formats.

 

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 6/2/2020, 11:07 AM

I want to use the 3 split parts to join as one to sped up the render.

If that's the only reason, and you still have the original projects, I would combine or nest them and go that route instead.

Otherwise, VideoRedo will re-establish GOP integrity with new IDR frames and resync if necessary. But cocatenated files "usually" play OK.

TheRhino wrote on 6/3/2020, 8:20 PM

cocatenated files "usually" play OK.

For paid work I always re-render the whole project in Vegas just to make sure the video does not have glitches at the joints... I guarantee my work, so I don't want to have to fix something on my own time because I trusted an app I am not familiar with... I charge clients a very reasonable "workstation use" fee when they want additional file types in addition to those listed in the original quote, which helps me maintain equipment... Even a lengthy 9 hour 4K project would render-out overnight on my current system & I don't have to waste time learning a new app or double-checking to make sure it didn't mess-up my video...

 

Workstation C with $600 USD of upgrades in April, 2021
--$360 11700K @ 5.0ghz
--$200 ASRock W480 Creator (onboard 10G net, TB3, etc.)
Borrowed from my 9900K until prices drop:
--32GB of G.Skill DDR4 3200 ($100 on Black Friday...)
Reused from same Tower Case that housed the Xeon:
--Used VEGA 56 GPU ($200 on eBay before mining craze...)
--Noctua Cooler, 750W PSU, OS SSD, LSI RAID Controller, SATAs, etc.

Performs VERY close to my overclocked 9900K (below), but at stock settings with no tweaking...

Workstation D with $1,350 USD of upgrades in April, 2019
--$500 9900K @ 5.0ghz
--$140 Corsair H150i liquid cooling with 360mm radiator (3 fans)
--$200 open box Asus Z390 WS (PLX chip manages 4/5 PCIe slots)
--$160 32GB of G.Skill DDR4 3000 (added another 32GB later...)
--$350 refurbished, but like-new Radeon Vega 64 LQ (liquid cooled)

Renders Vegas11 "Red Car Test" (AMD VCE) in 13s when clocked at 4.9 ghz
(note: BOTH onboard Intel & Vega64 show utilization during QSV & VCE renders...)

Source Video1 = 4TB RAID0--(2) 2TB M.2 on motherboard in RAID0
Source Video2 = 4TB RAID0--(2) 2TB M.2 (1) via U.2 adapter & (1) on separate PCIe card
Target Video1 = 32TB RAID0--(4) 8TB SATA hot-swap drives on PCIe RAID card with backups elsewhere

10G Network using used $30 Mellanox2 Adapters & Qnap QSW-M408-2C 10G Switch
Copy of Work Files, Source & Output Video, OS Images on QNAP 653b NAS with (6) 14TB WD RED
Blackmagic Decklink PCie card for capturing from tape, etc.
(2) internal BR Burners connected via USB 3.0 to SATA adapters
Old Cooler Master CM Stacker ATX case with (13) 5.25" front drive-bays holds & cools everything.

Workstations A & B are the 2 remaining 6-core 4.0ghz Xeon 5660 or I7 980x on Asus P6T6 motherboards.

$999 Walmart Evoo 17 Laptop with I7-9750H 6-core CPU, RTX 2060, (2) M.2 bays & (1) SSD bay...

Former user wrote on 6/3/2020, 9:01 PM

cocatenated files "usually" play OK.

For paid work I always re-render the whole project in Vegas just to make sure the video does not have glitches at the joints...

I've used a joiner, file had no glitches when played, played fine between joints when played in vegas, but when I uploaded it to youtube, it constantly got stuck, and never uploaded. Was not using a sophisticated joiner like video redo though.

 

Musicvid wrote on 6/3/2020, 10:25 PM

For paid work I always re-render the whole project in Vegas just to make sure the video does not have glitches at the joints.

Heh, you should check VRD6. Nothing like it for mux, not fuss.