How to fix an upsidedown video?
Hi.
I've got a video that's upsidedown. How can this be fixed? Preferably without reencoding? Thanks. |
You can do it with ffmpeg. Something like
Code:
ffmpeg -i in.mp4 -vf "transpose=2" out.mp4 |
Quote:
This did work but it did not keep the video as VP8 and Vorbis (it only kept Vorbis) Code:
ffmpeg -i 1.mkv -vf vflip,hflip -r 30 -qscale 0 -acodec copy 2.mkv |
try
Code:
-vf "transpose=2,transpose=2" |
you could just do this in playback with mpv
Code:
mpv video.mp4 -vf "transpose=2,transpose=2" |
Rotate, from my notes.
Code:
ffmpeg -i infile.mp4 ... -vf "transpose=1" outfile.mp4 Code:
ffmpeg -i input.mp4 -vf "transpose=1,transpose=1" output.mp4 Code:
ffmpeg -i input2.mp4 -vf "rotate=PI/1" output2.mp4 |
ahh, yeah the flip might be important
|
Quote:
Code:
mpv 1.mkv -vf "transpose=2,transpose=2" Code:
Option vf: transpose doesn't exist. |
How could I convert a .mp4 video to have VP8 & Vorbis (to a .mkv or .webm file) and keep the same quality?
|
Quote:
|
odd
Code:
mpv --version libavfilter7 in sid you will need libavfilter6 if you are still on stretch |
Quote:
Code:
mpv --version Code:
mpv 0.23.0 (C) 2000-2016 mpv/MPlayer/mplayer2 projects |
wait you can recode with the filter?
by default ffmpeg will encode to h264 and vorbis Code:
ffmpeg -i inputfile.mkv \ to get full list of codecs ffmpeg -codecs personally, I do like Code:
nice -n 19 ffmpeg \ crf 20 is probably over the top 28 is the default , but I find I can see difference take a sample Code:
ffmpeg -ss 00:04:30.0 -t 00:03:00.0 -i input.mkv -c copy sample.mkv and try different values on the sample you will see/hear the quality diff, and get an idea of how large the file will be and how long it will take edit: the bold will effect both the size and quality ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, or placebo ultrafast is , well fastest, will make the smallest file but the least quality veryslow , slowest , largest , best quality the crf , higher the number the lower the quality/size |
Quote:
|
to recap
in post 10 you said it worked BUT was no longer VP8 ( ffmpeg defaults to AVC and Vorbis) This will keep the vp8 codec and the vorbis Code:
ffmpeg -i inputfile.mkv \ Code:
ffmpeg -i inputfile.mkv -c:v vp8 -c:a copy -vf "transpose=2,transpose=2" outputfile.mkv But I don't know what the quality will be like If you really want to keep the VP8 codec you will have to play with it to get the best quality ( or acceptable ), I don't know vp8 or vp9 settings I would ned to research them. If the codec is not so important Code:
ffmpeg -i inputfile.mkv \ you could play with the crf lower numbers will give better quality and higher filesize higher numbers with give lesser quality and smaller filesize The preset ultrafast superfast veryfast faster fast medium slow slower veryslow < - - - less quality smaller size < - - > higher quality larger size > the HEVC codec may be more difficult to 'play' depending on device. I hope that makes sense |
All times are GMT -5. The time now is 06:18 AM. |