Lossless video cutting

Moderator: Ken Berry

User avatar
Ron P.
Advisor
Posts: 12002
Joined: Tue May 10, 2005 12:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Hewlett-Packard 2AF3 1.0
processor: 3.40 gigahertz Intel Core i7-4770
ram: 16GB
Video Card: NVIDIA GeForce GTX 645
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 4TB
Monitor/Display Make & Model: 1-HP 27" IPS, 1-Sanyo 21" TV/Monitor
Corel programs: VS5,8.9,10-X5,PSP9-X8,CDGS-9,X4,Painter
Location: Kansas, USA

Re: Lossless video cutting

Post by Ron P. »

Geesh I forgot about that one, "Save Trimmed...." command. Yes that does allow for no reencoding. :oops:
Ron Petersen, Web Board Administrator
RafaelLVX
Posts: 10
Joined: Tue Dec 13, 2016 3:56 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Lossless video cutting

Post by RafaelLVX »

Ken Berry wrote:Correct me if I'm wrong, but we seem to be talking about what I have been doing for the past twelve or so years with Video Studio. And I just reconfirmed it now with a little experiment. I put a random .mts file in the X9 timeline (though it could have been any version of VS -- I started back with VS7 and that's 7 without an X!) I chose a random spot in the clip and cut it with the scissors icon below the preview screen. Then I highlighted one part of the part clip. Then I went to File > Save Trimmed Video. And a totally real, totally new clip with exactly the same properties as the original, was created. And I could then do the same with the remaining part of the original clip.

And I repeat, these are completely new and separate clips, not just virtual ones. And the original clip remains intact as well. One thing to note if you try this yourself is that the Save Trimmed Video process does not ask where you want the new clip(s) to be stored. By default it stores them in C:\Users\[YourName]\Documents\Corel VideoStudio Pro\19.0 -- but of course once created you can move them wherever you want.

So from my point of view VS can certainly cut a video clip into real pieces with no re-encoding at all! :lol: 8)
I been fiddling with the demo for only a few days. I'll try what you said. I does sound like that's what I need. I'll report back. Thanks! :-)
RafaelLVX
Posts: 10
Joined: Tue Dec 13, 2016 3:56 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Lossless video cutting

Post by RafaelLVX »

Ken Berry wrote:Correct me if I'm wrong, but we seem to be talking about what I have been doing for the past twelve or so years with Video Studio. And I just reconfirmed it now with a little experiment. I put a random .mts file in the X9 timeline (though it could have been any version of VS -- I started back with VS7 and that's 7 without an X!) I chose a random spot in the clip and cut it with the scissors icon below the preview screen. Then I highlighted one part of the part clip. Then I went to File > Save Trimmed Video. And a totally real, totally new clip with exactly the same properties as the original, was created. And I could then do the same with the remaining part of the original clip.

And I repeat, these are completely new and separate clips, not just virtual ones. And the original clip remains intact as well. One thing to note if you try this yourself is that the Save Trimmed Video process does not ask where you want the new clip(s) to be stored. By default it stores them in C:\Users\[YourName]\Documents\Corel VideoStudio Pro\19.0 -- but of course once created you can move them wherever you want.

So from my point of view VS can certainly cut a video clip into real pieces with no re-encoding at all! :lol: 8)
Oh, the demo doesn't have that option to save trimmed, I'm gonna have to take your word for it. :)
ConsumerDV
Posts: 4
Joined: Mon Dec 26, 2016 7:26 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i5 3.3 GHz
ram: 16GB
Video Card: Intel HD4600
Hard_Drive_Capacity: 4TB

Re: Lossless video cutting

Post by ConsumerDV »

Ron P. wrote:
canuck wrote:We are not talking about joining videos but only about cutting/trimming
Yes, I understand that. However if you cut or trim a video file, it will need to be rendered, which would be a new video file. That rendering does require the usage of codecs correct? It does require (re)encoding. Reencoding seems to scare or worry people, and they need not be. Simple edits do not have serious impact on video quality. Mixing several different formats, complex projects may.
Intra video can be cut with straight cuts completely losless.

For inter-frame video, a certain number of frames, depending on the format, will have to be re-encoded. AFAIK, it is up to 15 frames for popular 30p/60i/60p formats and up to 12 frames for 24p or something like that, because the complete GOP has to be re-encoded.

It was the main reason I bought the X8 to do straight cuts of AVCHD Progressive, but the app simply does not work, throws an error. What a mess.
User avatar
lata
Site Admin
Posts: 14280
Joined: Thu Jan 19, 2012 6:21 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC A88XM-A USB 3 1 Rev X 0x
processor: 4 10 gigahertz AMD A10-7890K Radeon R7
ram: 16 gb
Video Card: on board
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500 SSD
Monitor/Display Make & Model: LG W2242 [Monitor]
Corel programs: CVSX, 19, 20, 22 PSP2023, PI, MS3D
Location: UK
Contact:

Re: Lossless video cutting

Post by lata »

Hi ConsumerDV

You say “but the app simply does not work, throws an error”

What error?

Errors are nothing to do with Lossless Video Cutting but certainly a problem with the program or a compatibility issue between the program and the video file.
I would advise you start a new post regarding the crashes,

Oh I see you have done that, I will comment there. :oops:
New forum for PSP and VS users, register if you need help

https://psp-vs-forums.freeforums.net
ConsumerDV
Posts: 4
Joined: Mon Dec 26, 2016 7:26 am
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i5 3.3 GHz
ram: 16GB
Video Card: Intel HD4600
Hard_Drive_Capacity: 4TB

Re: Lossless video cutting

Post by ConsumerDV »

lata wrote:Hi ConsumerDV

You say “but the app simply does not work, throws an error”

What error?

Errors are nothing to do with Lossless Video Cutting but certainly a problem with the program or a compatibility issue between the program and the video file.
I would advise you start a new post regarding the crashes,

Oh I see you have done that, I will comment there. :oops:
Fixed by installing a bunch of updates. Thanks.
Nick Mirro
Posts: 35
Joined: Tue Apr 15, 2008 5:06 am

Re: Lossless video cutting

Post by Nick Mirro »

Ken Berry wrote:So from my point of view VS can certainly cut a video clip into real pieces with no re-encoding at all! :lol: 8)
So "saving trimmed video" renders but does not re-encode. Just learning this now. Hope this is right... Rendering is just the process of re-writing frames, which is lossless. Encoding is compressing, which is lossy. ?
MrJohnny
Posts: 206
Joined: Fri Sep 30, 2016 8:48 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC. RAMPAGE V EXTREME
processor: 3.00 gigahertz Intel Core i7-5960X
ram: 32GB
Video Card: NVIDIA GeForce GTX 960
sound_card: onboard
Hard_Drive_Capacity: 8TB
Monitor/Display Make & Model: ASUS VH226
Corel programs: VS X5 Ult, VS X6 Ult, VS X9Ult,VS X10Ult

Re: Lossless video cutting

Post by MrJohnny »

Nick
This is from the VS manual:
Corel VideoStudio combines the video, titles, sounds, and effects in a
process called rendering. Project settings determine how your movie
project is rendered when you preview it. The output video can then be
played back on your computer, burned to disc, or uploaded to the
Internet.
I take this to mean VS assembles (renders) the timeline into one file, encoded or re-encoded as necessary, depending on the project settings and the original clip properties. So if the project setting calls for uncompressed video (large file!) the file will be encoded without compression.

John
User avatar
lata
Site Admin
Posts: 14280
Joined: Thu Jan 19, 2012 6:21 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC A88XM-A USB 3 1 Rev X 0x
processor: 4 10 gigahertz AMD A10-7890K Radeon R7
ram: 16 gb
Video Card: on board
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500 SSD
Monitor/Display Make & Model: LG W2242 [Monitor]
Corel programs: CVSX, 19, 20, 22 PSP2023, PI, MS3D
Location: UK
Contact:

Re: Lossless video cutting

Post by lata »

Hi Guys

It is general practice to set our project properties to match the video properties.
The Show Messages will do that for compliant video (for want of a better description.)
By compliant video I mean the video properties can be used to set project properties.

If we are using different formats then the project properties could be set to match the longest footage, may not always be the case. Otherwise the project properties can be set to our output settings.

Rendering will use some form of compression to create that output video.

To achieve a format with no compression I think the only option would be AVI where we can indeed set the compression type to None, file size will be approx. 65 Gb per hour of footage.
Any other format will use some form of codec. There is no point in converting MP4, Mov , MTS, in fact any format to AVI no compression.

Share – “Same as first clip” would use the clips properties to render the project, this is probably the fastest render option, rendering like for like. Smart Render would be used, so unedited portions will render fast and edited sections slower, the encoder having to combine clips / filters etc.

As we match the project properties to Video clips properties, Share Same as Project Properties would be identical to Same as First Clip.
New forum for PSP and VS users, register if you need help

https://psp-vs-forums.freeforums.net
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Re: Lossless video cutting

Post by Ken Berry »

Nick Mirro wrote:Rendering is just the process of re-writing frames, which is lossless. Encoding is compressing, which is lossy. ?
As the two previous posts by lata (Trevor) and Mr Johnny I think will by now have made clear, this is not correct. As the quote from the VS manual has it, rendering is just the process of converting a project in the timeline -- which can be made up of a variety of videos in the same or different formats, photos, music, voiceovers, titles, transitions, and filters -- into a single new video which has a single format. And while the whole project is being rendered, some or all of the individual elements of the project will be encoded depending on the output format that has been chosen.

And further, depending on the output format (apart from uncompressed .avi), some element of compression will be involved affecting some or all of the video/photos/audio in the project.

This is where SmartRender comes in. If your project has a lot of video in it (or all of it) in a particular format, and you are rendering to exactly the same format (Share > Same As Project Settings or Same As First Clip), then there is really no need to re-encode the existing video. So with SmartRender enabled, during the rendering process, only those parts of the project which are different from the chosen output format, or those parts of the project which have had something done to them (like filters) will be encoded or re-encoded.

So getting back to your original question in a "clear as mud" sort of way, rendering is just the process of converting a project into a new video. But it will involve encoding or re-encoding at least some parts of the project, and in turn this will also involve some form of compression or, in the case of uncompressed avi, decompression. Note here that even with uncompressed avi as the chosen output format, encoding will happen if the project does not contain any such avi.

And finally, the only lossless part of the rendering process will be for those bits which are SmartRendered. If SmartRender is not used, or for those parts of the project which need encoding or re-encoding, then using a lossy codec (which includes just about everything except uncompressed avi) will mean that the encoding which occurs as part of the rendering process will involve some loss of quality. The amount of loss might be tiny depending on what codec is chosen, and perhaps not detectable by the naked eye, but it will be there nonetheless.

So to re-write your question in a way which gives the answers (I hope):
Rendering is the process of converting a project into a video. SmartRendering is just the process of re-writing frames, which is lossless. Encoding, apart from uncompressed avi, is compressing, which is lossy -- though even the process of conversion to uncompressed avi involves encoding and decompressing.
Ken Berry
MrJohnny
Posts: 206
Joined: Fri Sep 30, 2016 8:48 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC. RAMPAGE V EXTREME
processor: 3.00 gigahertz Intel Core i7-5960X
ram: 32GB
Video Card: NVIDIA GeForce GTX 960
sound_card: onboard
Hard_Drive_Capacity: 8TB
Monitor/Display Make & Model: ASUS VH226
Corel programs: VS X5 Ult, VS X6 Ult, VS X9Ult,VS X10Ult

Re: Lossless video cutting

Post by MrJohnny »

Hi Trevor (lata) and Ken

Happy New Year.

Thanks for the clarifications. The “Save Trimmed...” command is very useful. This appears to copy the trimmed clip information in the original format, regardless of project settings. Although it does not ask where to save, it will redirect the saved trimmed clip to the Working Folder named under Preferences.

As far as I know, all rendering uses some form of encoding (codec) to produce the video file for replay.

https://en.wikipedia.org/wiki/Codec

The use of a codec to encode the information does not necessarily equate to compression or “lossy”. Uncompressed video is encoded and decoded on replay.

https://en.wikipedia.org/wiki/Uncompressed_video

The use of a codec to compress video information does not necessarily equate to “lossy”, there are lossless compression codecs available at the expense of file size.

VideoStudio allows “None” for compression under the AVI and Mov file types for output. This may be useful when trying to preserve quality. Previously lost data (quality) will not be recovered by doing so.

John
Post Reply