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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th September 2017, 10:42   #1  |  Link
cafevincent
Registered User
 
Join Date: Feb 2003
Posts: 111
encoding with effects like 'mirror image', 'double fps', 'add grain' etc?

I am curious if there is a way to encode using simple effects like combining source with another video layer containing film grain, scratches and burns. Or encode in mirror image or even reverse order (from end to beginning)? Or doubling the frame rate for smoother motion (half duration). This would be fun for creating smooth timelapse versions of some nature footage.

I'm not sure if these are things to look for in a codec or filter/shader or what or are these maybe features in some editing programs?

Please also mention if mirror image is possible during playback. I can't find such a shader for some reason. I would imagine it would be super popular for watching an old movie again. And I assume reverse playback on-the-fly probably doesn't exist.

Last edited by cafevincent; 5th January 2018 at 11:20.
cafevincent is offline   Reply With Quote
Old 5th January 2018, 10:53   #2  |  Link
cafevincent
Registered User
 
Join Date: Feb 2003
Posts: 111
bump.
cafevincent is offline   Reply With Quote
Old 7th January 2018, 17:19   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
1. These are definitely things that do not belong in the encoder and thus you should look into a tool which uses the encoder but allows filtering of the source.
2.
Quote:
reverse playback on-the-fly
should be possible with ffplay
Code:
ffplay -i inputfile.mp4 -vf reverse -af areverse
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 9th January 2018, 15:16   #4  |  Link
cafevincent
Registered User
 
Join Date: Feb 2003
Posts: 111
well what about changing the framerate when encoding? why doesn't doesn't it change the speed of the video?
cafevincent is offline   Reply With Quote
Old 25th January 2018, 20:51   #5  |  Link
cafevincent
Registered User
 
Join Date: Feb 2003
Posts: 111
I am also looking for ways of upscaling SD material.
cafevincent is offline   Reply With Quote
Old 27th January 2018, 12:13   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Changing the frame rate doesn't change the frame count so why should the encoding speed change.

Regarding upscaling: should not bei part of the encoder.
Search for 'super resolution' and similar.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 27th January 2018, 12:24   #7  |  Link
cafevincent
Registered User
 
Join Date: Feb 2003
Posts: 111
well I would imagine that framerate defines what amount of frames is displayed in a second (speed of video). if I encode a 1 minute video that has 30fps and in the encoder change it into 60fps then I should obviously end up with a 30sec video at 60fps should I not?

When the encoder drops me a full 1 minute video with 60fps I'm just super confused about where those extra frames came from and are they repeats of the same frames and also what in the world might be the point of this? unless it's a SVP type of feature.
cafevincent is offline   Reply With Quote
Old 27th January 2018, 12:28   #8  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
There are different ways to change the frame rate. What you describe is like the AssumeFPS() filter in AviSynth. What Selur describes is more like the ChangeFPS() or ConvertFPS() filters.
http://avisynth.nl/index.php/FPS
sneaker_ger is offline   Reply With Quote
Old 27th January 2018, 13:30   #9  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Sneaker is right.
Just changing the frame rate doesn't change the frame count.
If you increase the frame count the encoding time goes up, if you decrease the frame count encoding time down.
For the encoder the fps shouldn't really matter (aside from calculating an average bitrate or similar).
So if you use SVP or ffmpegs framerate, minterpolate or simple frame repetition you create new frames which increases the frame count thus encoding takes longer.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 27th January 2018, 18:13   #10  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
IIRC there is some quality downgrade for higher fps using CRF based encoding, also aq-motion should consider frame duration too

edit:if they ported crf rate control straight from x264, it should be still somewhere in the code

Code:
commit c583687fab832ba7eaf8626048f05ad1f861a855 [revision 1867]
Author: Fiona Glaser <fiona@x264.com>
Date: Thu Dec 23 19:33:01 2010 -0500

VFR/framerate-aware ratecontrol, part 2
MB-tree and qcomp complexity estimation now consider the duration of a frame in their calculations.
This is very important for visual optimizations, as frames that last longer are inherently more important quality-wise.
Improves VFR-aware PSNR as much as 1-2db on extreme test cases, ~0.5db on more ordinary VFR clips (e.g. deduped anime episodes).

WARNING: This change redefines x264's internal quality measurement.
x264 will now scale its quality based on the framerate of the video due to the aforementioned frame duration logic.
That is, --crf X will give lower quality per frame for a 60fps video than for a 30fps one.
This will make --crf closer to constant perceptual quality than previously.
The "center" for this change is 25fps: that is, videos lower than 25fps will go up in quality at the same CRF and videos above will go down.
This choice is completely arbitrary.

Note that to take full advantage of this, x264 must encode your video at the correct framerate, with the correct timestamps.
__________________
powered by Google Translator

Last edited by Motenai Yoda; 27th January 2018 at 23:22.
Motenai Yoda is offline   Reply With Quote
Reply

Tags
effects, encoding, mirror, shaders, x265

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 10:04.


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