Posts: 254
Threads: 32
Joined: Aug 2022
Hello!
where are the rotation functions for these codecs?
I want to rotate left/right and flip/mirror vertically/horizontally
Posts: 10.548
Threads: 57
Joined: May 2017
(side note: codec = code and decoder, x264 and x265 are just encoders)
Last I checked, neither x264 nor x265 has an option to rotate.
Check for yourself
https://x265.readthedocs.io/en/master/cli.html and 'x264 --fullhelp'.
Side note:
Hybrid has options to rotate the output 90°cw, 90°ccw,180° and it options to flip vertical and horizontal. (see: Crop/Resize->Misc->Misc)
There is also an option which tells Hybrid whether container based rotation flags should be passed through, send to the filtering or ignored. (see: Config->Containers->General)
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 254
Threads: 32
Joined: Aug 2022
thanks!
flip/mirror functions = horizontal/vertical - work only with resize, without filters.
and when connecting filters, they cause a crash.
left/right rotation did not check
Posts: 10.548
Threads: 57
Joined: May 2017
01.09.2024, 05:42
(This post was last modified: 01.09.2024, 05:55 by Selur.)
Used flip vertical + Levels filter, got no crash and a flipped output.
Read sticky, share details.
Thanks
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 254
Threads: 32
Joined: Aug 2022
weird situation
Today everything is working as it should
Yesterday there was a video file with a micro error in the database, probably because of it the processing was incorrect
Posts: 10.548
Threads: 57
Joined: May 2017
Happy it works now for you.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 254
Threads: 32
Joined: Aug 2022
by the way
please recommend software that does Rotation-Flip and Trim without coding ???
Posts: 10.548
Threads: 57
Joined: May 2017
01.09.2024, 08:57
(This post was last modified: 01.09.2024, 09:05 by Selur.)
Depends on the containers that you use and the source you have.
If you have a source where the video is flipped due to a flag in the container (iirc only mov and mp4 support this) and you want to remove that flag remuxing with Hybrid (with 'Config->Containers->General->Rotation handling' set to 'ignore') should remove it.
Alternatively, assuming you use mov or mp4, you could use ffmpeg and something like
ffmpeg -display_rotation:v:0 90.0 -i input.mp4 -c copy output.mp4
see:
https://ffmpeg.org/ffmpeg-all.html#Video-Options (there are options to flip vertical and horizontal too)
to rotate the video 90° clockwise. (the '-c copy' makes sure no reencoding of the video&co takes place)
Cu Selur
Ps.: regarding trim
https://github.com/mifi/lossless-cut might be interessting.
PPs.: mkv also supports rotation&co, so you could use mkvtoolnix-gui for this
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 254
Threads: 32
Joined: Aug 2022
(01.09.2024, 08:57)Selur Wrote: Depends on the containers that you use and the source you have.
If you have a source where the video is flipped due to a flag in the container (iirc only mov and mp4 support this) and you want to remove that flag remuxing with Hybrid (with 'Config->Containers->General->Rotation handling' set to 'ignore') should remove it.
Alternatively, assuming you use mov or mp4, you could use ffmpeg and something like
ffmpeg -display_rotation:v:0 90.0 -i input.mp4 -c copy output.mp4
see: https://ffmpeg.org/ffmpeg-all.html#Video-Options (there are options to flip vertical and horizontal too)
to rotate the video 90° clockwise. (the '-c copy' makes sure no reencoding of the video&co takes place)
Cu Selur
Ps.: regarding trim https://github.com/mifi/lossless-cut might be interessting.
PPs.: mkv also supports rotation&co, so you could use mkvtoolnix-gui for this
AWESOME!!! Thank you very MUCH!!!
Posts: 254
Threads: 32
Joined: Aug 2022