This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] x264/265
#1
Big Grin Hello!
where are the rotation functions for these codecs?

I want to rotate left/right and flip/mirror vertically/horizontally
Reply
#2
(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
Reply
#3
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
Reply
#4
Used flip vertical + Levels filter, got no crash and a flipped output.
Read sticky, share details.
Thanks

Cu Selur
Reply
#5
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
Reply
#6
Happy it works now for you. Smile
Reply
#7
Big Grin  by the way
please recommend software that does Rotation-Flip and Trim without coding ???
Reply
#8
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
Reply
#9
(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
Reply
#10
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-...sp=sharing

https://www.shutterencoder.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)