DCS-LCSR / SignStream3

Sign language linguistics annotation software
2 stars 0 forks source link

Flipping video tool #565

Open gregorydimitriadis opened 1 year ago

gregorydimitriadis commented 1 year ago

Flipping video tool - to be coordinated with Augustine. He made an attempt, but the result was not synchronized with the original video. I don’t know whether he has an idea for fixing that problem…

cneidle commented 1 year ago

Hmm…

We have been using flipped versions of the videos in our RIT data collection.

On Sep 22, 2022, at 3:13 PM, Greg Dimitriadis @.***> wrote:

Flipping video tool - to be coordinated with Augustine. He made an attempt, but the result was not synchronized with the original video. I don’t know whether he has an idea for fixing that problem…

— Reply to this email directly, view it on GitHub https://github.com/DCS-LCSR/SignStream3/issues/565, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH7NQQ6U7U3HFKT6JLFRP3V7SVVTANCNFSM6AAAAAAQTLEMGI. You are receiving this because you are subscribed to this thread.

cneidle commented 1 year ago

I can confirm what is reported here -- i.e., that the flipped videos we have been using are not synchronized with the originals. That is not a problem for the files we have already annotated, but it is something that should be addressed in the future for left-handed signer videos we may wish to convert. Thanks. @kwasiopoku

cneidle commented 1 year ago

FYI - @kwasiopoku

RIT is now flipping left-handed videos they are collecting (and the flipped videos are synchronized with the originals). They are also doing some other editing (cropping, etc.) at the same time. Here's how Caluã says they are doing it, for future reference:

as we discussed, here's the FFMPEG command I'm using:

ffmpeg -ss 300 -i A001_09112205_C003.mov -frames:v 1800 -filter:v "[0:v]crop=out_h=in_h:out_w=1080[a];[a]hflip" -pix_fmt yuv420p -c:v libx264 -preset veryfast -crf 25 flipped.mov

I'll give a rundown of what it does:

This video selection syntax is potentially much more complex, but I didn't read too much into it since our use case was relatively simple.

I'm sharing this as general documentation of the process, but if you just want to mirror a video you can use:

ffmpeg -i INPUT.mp4 -vf hflip -c:a copy OUTPUT.mp4