Selur's Little Message Board
[HELP] x264/265 - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [HELP] x264/265 (/thread-3840.html)

Pages: 1 2


x264/265 - humanoid86 - 31.08.2024

Big Grin Hello!
where are the rotation functions for these codecs?

I want to rotate left/right and flip/mirror vertically/horizontally


RE: x264/265 - Selur - 31.08.2024

(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


RE: x264/265 - humanoid86 - 01.09.2024

Big Grin thanks!

Big Grin 
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


RE: x264/265 - Selur - 01.09.2024

Used flip vertical + Levels filter, got no crash and a flipped output.
Read sticky, share details.
Thanks

Cu Selur


RE: x264/265 - humanoid86 - 01.09.2024

Big Grin 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


RE: x264/265 - Selur - 01.09.2024

Happy it works now for you. Smile


RE: x264/265 - humanoid86 - 01.09.2024

Big Grin  by the way
please recommend software that does Rotation-Flip and Trim without coding ???


RE: x264/265 - Selur - 01.09.2024

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


RE: x264/265 - humanoid86 - 01.09.2024

(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!!! Heart


RE: x264/265 - humanoid86 - 01.09.2024

Big Grin Big Grin Big Grin 
Found "Shutter Encoder" copy scripts from it. Functions without coding and add Rotation left/right

https://drive.google.com/file/d/1zzVENW-Qcfzc_vsKeU_PUFZ4kkw_D4HN/view?usp=sharing

https://www.shutterencoder.com/