Log in

View Full Version : clever FFmpeg-GUI, small FFmpeg UI, fully portable, no installation.


Pages : 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15

guest
4th April 2023, 01:16
The keyframes cannot be moved, they are set by the encoder during encoding.

I just did a test with a h264 video.
I loaded the video in Virtualdub2 and chose a B-Frame as startpoint.
As endpoint I looked for an I-frame.
I noted start time and end time and entered them into clever FFmpeg GUI,
selected Frame accurate cut above, pressed check times and then pressed cut.
Then checked the cut video in Virtualdub2.
The start frame fits exactly, the last frame is as desired the last P-frame before the entered I-frame (this guarantees a closed GOP).
So everything as desired, frame accurate and smart rendered.

Well, it seems to be the "luck of the draw", EVERY video is different, the one you tested obviously had the keyframes in the correct position for the cut, I mean, some of the episodes I've done have been perfect, and others don't come close to the desired cut point.

It's not your fault, it's just the way it is, unfortunately, it just doesn't work for me, on the videos I want to cut :(

I was hoping that I might have been able to do it with an avisynth script in the encoding app I use, but I can't get it to cut the audio, so that's even worse.

I have tried a couple of other app's, one I'd never heard of, "Lossless Cut", but it's got it's own problems.

So it's unfortunate, for me, that I can't use "clever" for my project, as far as video cutting is concerned, but it's still very good for audio processing :)

guest
9th April 2023, 14:33
Hi ProWo,

Just wondering if there is a possibility to add a frame rate converter to "clever" ?

I understand that it can be done with FFmpeg, so hopefully just type in the new fps you want, and let it do it's magic?

Regards

ProWo
9th April 2023, 14:56
Hi ProWo,

Just wondering if there is a possibility to add a frame rate converter to "clever" ?

I understand that it can be done with FFmpeg, so hopefully just type in the new fps you want, and let it do it's magic?

Regards
Do you mean change frame rate without reencode?
If so, this will not be added, because the result is a video poorly supported by many players.

guest
9th April 2023, 15:39
Do you mean change frame rate without reencode?
If so, this will not be added, because the result is a video poorly supported by many players.

Not necessarily, if it has to be re-encoded, so be it.

ProWo
9th April 2023, 15:56
Not necessarily, if it has to be re-encoded, so be it..
With reencode the frame rate change is already implemented.
Set the fps value like you want (in the video encode section) and reencode.

guest
9th April 2023, 19:28
.
With reencode the frame rate change is already implemented.
Set the fps value like you want (in the video encode section) and reencode.

Oh, OK....I did look thru before I asked...maybe I didn't look in the right place.

Sorry & thanks.

Update:- couldn't get it to change fps :(

tebasuna51
10th April 2023, 08:24
The fps of a video stream can be changed without recode with eac3to for .h264 streams, or can be changed at container level with mkvtoolnix for mkv files.

I can't help you how make that with ffmpeg.

ProWo
10th April 2023, 15:40
Update:- couldn't get it to change fps :(

Here in the example a 23.976 fps video is transcoded into a 25 fps video. The change length checkbox is used to adjust the duration of the video to the new frame rate, so all frames remains unchanged.
If it is not checked, the duration remains unchanged, but frames are dropped or added.

https://files.videohelp.com/u/292773/1_4.jpg

locotus
10th April 2023, 19:04
Do that solution work for telecined content?

guest
11th April 2023, 01:56
Here in the example a 23.976 fps video is transcoded into a 25 fps video. The change length checkbox is used to adjust the duration of the video to the new frame rate, so all frames remains unchanged.
If it is not checked, the duration remains unchanged, but frames are dropped or added.

Well, it's nice to get the instructions from the creator, HOWEVER, this is NOT doing what I was expecting it to...

This actually increases the video playback speed, and reduces the length of the clip

I need it to increase the frame rate from 23.9xx to 60 fps without ANY increase in "speed".

This clip was about an hour long, but it's now less than half, and after doing all those settings & clicking "Encode", it was done in an instant, and produced a 0kb file :(

ProWo
11th April 2023, 08:10
Well, it's nice to get the instructions from the creator, HOWEVER, this is NOT doing what I was expecting it to...

This actually increases the video playback speed, and reduces the length of the clip
Did you read what I wrote above?


I need it to increase the frame rate from 23.9xx to 60 fps without ANY increase in "speed".
Did you read what I wrote above?
Uncheck the Change length box.


This clip was about an hour long, but it's now less than half, and after doing all those settings & clicking "Encode", it was done in an instant, and produced a 0kb file :(
Works flawlessly here.
Which ffmpeg version are you using?

ProWo
11th April 2023, 08:19
Do that solution work for telecined content?
Yes it does, but with telecined video that is not the way to go.
If your video is a 29.97 fps video coming from a 23.976 fps source, the IVTC filter is the right choice.
This will return the 29.97 fps video to its original 23.976 fps state and remove the frames added during the telecine process.
If you just change the frame rate (while keeping the duration the same), it will only add or remove more frames and pretty much ruin the video.

guest
11th April 2023, 10:24
Did you read what I wrote above?
Uncheck the Change length box.

Interestingly enough, before I sent the previous post, I had tried with all the same settings but NOT the "Change Length", and basically got the same result, and instant "encode" and 0Kb's...

And if memory serves, I did a run with 50 in the "fps" box, and that did process, but it was still the original 23.9xx.

I am still using those Game of Thrones episodes that didn't like the Cut function, so maybe they are the problem....

Works flawlessly here.
Which ffmpeg version are you using?

Did you do your test on a 4K video, setting it at 60 ??

I get my builds from here:-

https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest

ProWo
11th April 2023, 12:18
Interestingly enough, before I sent the previous post, I had tried with all the same settings but NOT the "Change Length", and basically got the same result, and instant "encode" and 0Kb's...

And if memory serves, I did a run with 50 in the "fps" box, and that did process, but it was still the original 23.9xx.

I am still using those Game of Thrones episodes that didn't like the Cut function, so maybe they are the problem....



Did you do your test on a 4K video, setting it at 60 ??

I get my builds from here:-

https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest

Retested with this build from your source
https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl-shared.zip and a 4k video, no problem, works fine.

guest
11th April 2023, 12:24
Retested with this build from your source
and a 4k video, no problem, works fine.

Well, the mystery continues.....

It's not that I only use it on 1 PC, so it's not that.

It's always the way, isn't it, you try and explain a problem, and the creator has no issue's.

ProWo
11th April 2023, 14:20
Well, the mystery continues.....

It's not that I only use it on 1 PC, so it's not that.

It's always the way, isn't it, you try and explain a problem, and the creator has no issue's.
It would be nice if you stayed fair.
You write about problems that I cannot reproduce here. There can be many reasons for this, different operating systems, different video sources, different software versions, etc.
You could try a different video for example.

guest
11th April 2023, 15:43
Retested with this build from your source
and a 4k video, no problem, works fine.

It would be nice if you stayed fair.
You write about problems that I cannot reproduce here. There can be many reasons for this, different operating systems, different video sources, different software versions, etc.
You could try a different video for example.

Sorry, I think you've taken this the wrong way.

I was trying to say that its not just a particular pc that I'm having an issue on.

Its like taking your car to a mechanic, explaining the problem, they can't find the problem, so they can't do anything about it...they take it for test drive, no problems, but when you drive back home, the problem is still there.

I'm running Windows 11 22H2..

I will try another video.

ProWo
13th April 2023, 13:20
Newest beta (v3.1.0.03), online now.
Fixed: missing variable reset bug.
Changed: seeking approach in cut section, cosmetics on many forms.
Added: Virtualdub2 as viewer in cut section.

guest
14th April 2023, 06:53
Newest beta (v3.1.0.03), online now.
Fixed: missing variable reset bug.
Changed: seeking approach in cut section, cosmetics on many forms.
Added: Virtualdub2 as viewer in cut section.

I think I may have found what the problem is...

Using this latest build, I imported a short 4K clip, and changed the FPS to 60 (from 23.97x), changed it to x265, CRF to 16, preset to medium, but when the profile is changed, was when the encode was done in an instant, with a 0kb file.

If left @ auto, it was fine with all the other settings.

Virtualdub2 is a nice addition.

ProWo
14th April 2023, 12:56
I think I may have found what the problem is...

Using this latest build, I imported a short 4K clip, and changed the FPS to 60 (from 23.97x), changed it to x265, CRF to 16, preset to medium, but when the profile is changed, was when the encode was done in an instant, with a 0kb file.

If left @ auto, it was fine with all the other settings.
Thanks for the hint.
Indeed, when encoding with x265 encoder, the profiles of x264 encoder were used and that could not work.
This bug is now fixed in the latest beta (v3.0.1.04).

ProWo
14th April 2023, 12:57
Newest beta (v3.1.0.04), online now.
Fixed: bug with x265 profile settings.

guest
14th April 2023, 14:20
Newest beta (v3.1.0.04), online now.
Fixed: bug with x265 profile settings.

I just tried this on my little laptop, loaded an x264 clip...

Went thru the settings, but there seems to be a different possible issue with "Profile", with both x264, or x265, it's "stuck" @ Auto...:(, no other options.

Tried it several times with different clips, and FFmpeg's.

All the other options worked OK...

ProWo
14th April 2023, 17:07
I just tried this on my little laptop, loaded an x264 clip...

Went thru the settings, but there seems to be a different possible issue with "Profile", with both x264, or x265, it's "stuck" @ Auto...:(, no other options.

Tried it several times with different clips, and FFmpeg's.

All the other options worked OK...
This is not an issue, it happens because your video has no bit depth info and therefore the app can't do the correct profile selection.
Change Bit Depth to 8 or 10 bits and the possible profiles can be selected.
The best choice is auto anyway, because then the encoder chooses the best profile by itself.
Actually the profile selection is only built in for compatibility reasons, that is if you need a certain profile for some reason.

guest
15th April 2023, 03:18
This is not an issue, it happens because your video has no bit depth info and therefore the app can't do the correct profile selection.
Change Bit Depth to 8 or 10 bits and the possible profiles can be selected.
The best choice is auto anyway, because then the encoder chooses the best profile by itself.
Actually the profile selection is only built in for compatibility reasons, that is if you need a certain profile for some reason.

OK, well that worked :)

But I have to say that I am still not having any success with changing the frame rate...I have tried 2 different clips, one with 23.97x & another with 119.88, and setting them @ 60, there are not changing.

Wait just a minute....it seems that the framerate HAS been changed, however, that change in not reflected when checking with MediaInfo !!!

But if I reload the clips I have just "converted" with clever, then clever displays the new framerate, as do other encoding apps.

So something is being "lost in translation" regarding the new fps, and MediaInfo...

And sadly, the 4K HDR10 clip still loses the HDR10 tag, and is also changed from level 6.1 to 5.1 :(, in MediaInfo.

Is there something wrong with MediaInfo ??

Is there another similar tool I can try to test ??

ProWo
15th April 2023, 08:13
And sadly, the 4K HDR10 clip still loses the HDR10 tag, and is also changed from level 6.1 to 5.1
Use the HDR10 Button in the x256 settings.

guest
15th April 2023, 15:14
Use the HDR10 Button in the x256 settings.

I guess it will take me a little while to figure out all the in's & out's...

I just did a conversion, and changed several settings, and it's all displayed in MediaInfo :)

Thanks for your patience & instruction :)

Would it be possible to add a kb/s setting in the Encoder section, and of course retain the CRF setting ? Just to have the 2 different options.

And maybe also have the P-level option for x264 & non HDR x265 in the Encoder section as well ?

I only mention that, due to that option being available when it IS HDR x265, so might as well have it for all.

ProWo
27th April 2023, 16:12
Newest beta (v3.1.0.05), online now.
Changed: Cut section again.

guest
28th April 2023, 05:42
Newest beta (v3.1.0.05), online now.
Changed: Cut section again.

Hi ProWo,

Me again...So I have just given your latest beta a test run, and it seems to do the cuts where I want them (well, on the clips I tested), it does more "testing" on the file, then choose "Cut",
it does all it steps (10 in all), and ALL the temp files are shown in the folder I set for the output, then when it's all done the little "DONE" window pops up,
click on that, it proceeds to "clean up" all the temp files, and then the folder becomes empty :scared:

I did search for it, but was no where to be found, so I tried it on another PC, different file, same result...

So something nasty seems to happen after you click on "DONE".

So due to this, I can't check the "cutted" file, to check the edit, the P-level, and if it's retained the HDR10 tag :(

I was going to attach some screenshots, but I think I've described it well enough.

ProWo
28th April 2023, 06:56
The output file should have the same name as the input file, with _cutted added.

guest
28th April 2023, 09:41
The output file should have the same name as the input file, with _cutted added.

Correct, and its always done that for me, until this latest build.

If I have the output folder open, before I click on "DONE", all the temp files are there....as soon as I click on "DONE" they ALL disappear before my eyes, and then the folder is empty...NO cutted file !!!!!

ProWo
28th April 2023, 10:43
I don't know what to say.
Just tested it, the temp files are deleted as intended and the cut file is in the output folder.

guest
28th April 2023, 11:01
I don't know what to say.
Just tested it, the temp files are deleted as intended and the cut file is in the output folder.

It's just another mystery, and these things always happen to me :(

That's why I tested it on 2 different PC's, with different input files.

I think I've used "clever" enough recently to know how to set it up, I mean all it needs is to "know" where ffmpeg is, and the output folder...simple.

But when you see the files disappear and leave the folder empty is rather frustrating, to say the least.

I guess I'll have to try it on yet another PC...

Regards

MORE:- I just tried it on my little laptop with an mp4, watched it create the temp files, click "DONE", ALL gone... so 3 different machines now...

ProWo
28th April 2023, 11:11
If you don't click on the OK button in the small Done window, can you see the output file then?

guest
28th April 2023, 11:31
If you don't click on the OK button in the small Done window, can you see the output file then?

No, just the temp files...

I just did something else, those first couple of tests were using Frame Accurate, but using KeyFrame it just creates the cutted file, with no temp files...but for whatever reason the cutted file would not play in PotPlayer :(

ProWo
8th May 2023, 13:28
Newest beta (v3.1.0.06), online now.
Fixed: Keep HDR metadata on recoding HDR Video with H.265
Added: HDR to SDR with tonemap and desaturation settings, with any avaiable video codec.

ProWo
9th May 2023, 06:43
Please post a mediainfo report (text mode) from the tested video here.

ProWo
9th May 2023, 10:27
Newest beta (v3.1.0.07), online now.
Fixed: Bugs in HDR10 commandline.

guest
9th May 2023, 11:42
Newest beta (v3.1.0.07), online now.
Fixed: Bugs in HDR10 commandline.

I forgot to mention, that in the "Cut" section, I could only choose Keyframe...not the frame accurate :(

ProWo
9th May 2023, 16:24
I forgot to mention, that in the "Cut" section, I could only choose Keyframe...not the frame accurate :(
This is intentional, as HDR10 encoding is very costly for the part that needs to be re-encoded.
For this reason, I have disabled it for now.

ProWo
9th May 2023, 16:25
I thought I had already shown enough MediaInfo info of the conversion (on the right of the previous post)
You have posted the mediainfo from the encoded video, not from the source one.

guest
10th May 2023, 03:40
This is intentional, as HDR10 encoding is very costly for the part that needs to be re-encoded.
For this reason, I have disabled it for now.

Tried the latest build, it obviously detects the HDR10, and there are no other options shown, and the cutted encode retains all the originals specs :)

guest
10th May 2023, 03:41
You have posted the mediainfo from the encoded video, not from the source one.

This is the MediaInfo of the source clip:-

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L6.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 min 0 s
Bit rate : 14.9 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.075
Stream size : 214 MiB (72%)
Title : GalenMao@HDSky
Default : No
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0020 cd/m2, max: 1000 cd/m2

ProWo
12th May 2023, 09:30
May 12, 2023 release version 3.1.1.
Fixed: missing variable reset bug, x265 profile settings bug, Bugs in HDR10 commandline.
Added: Keep section open checkbox (for audio encoding ,video encoding, cut section), switch background color button, Keep HDR metadata on recoding HDR Video with H.265, HDR to SDR with tonemap and desaturation settings for any avaiable video codec.
Changed: seeking approach in cut section, cosmetics on many forms.

guest
13th May 2023, 04:04
May 12, 2023 release version 3.1.1.
Fixed: missing variable reset bug, x265 profile settings bug, Bugs in HDR10 commandline.
Added: Keep section open checkbox (for audio encoding ,video encoding, cut section), switch background color button, Keep HDR metadata on recoding HDR Video with H.265, HDR to SDR with tonemap and desaturation settings for any available video codec.
Changed: seeking approach in cut section, cosmetics on many forms.

Hi, just tried the newest build, seems to do most things, and keeps the P-level & HDR10, as per original.

But it still doesn't cut exactly where the user might like the cut. :( (Damn those Keyframes)

Sorry.

As you can see by my signature, I use RipBot, it just had a Trim function added to it by the author, it trims the video, audio & soft subtitles, but I'm pretty sure it's Avisynth based.

Works VERY well, it was a LONG time coming to that app.

ProWo
16th May 2023, 15:31
Newest beta (v3.1.1.01), online now.
Improved: DVD Rip imports all streams now.
Added:Info link for tonemap and desat (HDR10 to SDR).

ProWo
20th June 2023, 07:25
Newest beta (v3.1.1.02), online now.
Fixed: created chapters with short title missing, bitmap subtitle burn in issue with wrong sizes.
Added: (subtitles burn in): automatic scale and allignment for bitmap subtitles.

ProWo
3rd July 2023, 10:04
July 03, 2023 release version 3.1.2.
Fixed: Created chapters with short title missing, bitmap subtitle burn in issue with wrong sizes.
Added: Info link for tonemap and desat (HDR10 to SDR), (subtitles burn in): automatic scale and allignment for bitmap subtitles.
Improved: DVD Rip imports all streams now.
Changed: Audio channels remap for all reasonable combinations.

ProWo
4th July 2023, 20:33
Newest beta (v3.1.2.01), online now.
Improved: raw h264/hevc videostream handling.
Added: dat videofile(vcd/svcd) handling.

ProWo
6th July 2023, 20:04
Newest beta (v3.1.2.02), online now.
Fixed: bug in raw h264/hevc videostream handling.

ProWo
11th July 2023, 17:15
Newest beta (v3.1.2.03), online now.
Improved: raw h264/hevc handling.
Changed: various options/settings handling in main section and video encoding section, selected streams handling in multiplex section..
Added: rotate without reencoding (metadata only, main section), rotate and flip (video encode section).