Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th September 2012, 16:51   #1  |  Link
senze
Registered User
 
Join Date: Aug 2012
Posts: 15
Is reencoding lossless?

If I do some cutting with e.g. virtual dub at P- or B-Frames what happens then?

Will there be an I Frame generated at the position? And more importantly, can someone tell me if this process will diminuish the perceived quality of the video?

In general, are there some intra or inter-prediction codecs which I can use to decode and then reencode into the same quality without having any quality loss?
senze is offline   Reply With Quote
Old 24th September 2012, 17:14   #2  |  Link
SassBot
Guest
 
Posts: n/a
You can't cut in virtualdub at P or B frames. Any applications that allow cutting on P or B frames will reencode the GOP so it would not technically be lossless.
  Reply With Quote
Old 24th September 2012, 19:39   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Re-encoding is never lossless, except when encoding to an un-compressed (or lossless compressed) format. There are no lossy formats that can re-encode in a lossless way.

When dealing with lossy compressed formats (MPEG2, MPEG-4 ASP, H.264/AVC, etc) then re-encoding will unavoidably cause some "generation loss".

Nevertheless, if you only are cutting and don't apply any filters, re-encoding may be avoided altogether. But this requires that you are cutting only at key-frames (I-Frames).

As soon as you are not cutting at an I-Frame (i.e. in the middle of a GOP), re-encoding will be required!

Some tools use "smart" re-encoding though, which means that only the first/last GOP of a segment (where you did the cut) will be re-encoded, while the rest is copied over 1:1.

Intra-only compression (e.g. MJPEG, AVC-Intra, etc) allows you to cut at any point without re-encoding, simply because all frames are I-Frames.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 24th September 2012 at 20:32.
LoRd_MuldeR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.