lisamelton / video_transcoding

Tools to transcode, inspect and convert videos.
MIT License
2.39k stars 160 forks source link

Not able to preview and compare detect-crop suggestions #343

Open ghender3 opened 1 year ago

ghender3 commented 1 year ago

Perhaps because of user error, I've never been able to get the preview of detect-crop values using mplayer to work for me.

For example, this is today's output for the Handbrake values (ffmpeg had a different "opinion")

mpv --no-audio --vf "lavfi=[drawbox=10:2:1910:1076:invert:1]" /Path to .mkv mpv --no-audio --vf crop=1910:1076:10:2 /Path to .mkv

If I try to copy and paste either of the above commands into Terminal, I receive the following -

Error parsing commandline option vf: option requires parameter

And then I see - fatal error.

I even tried pasting the contents of BOTH lines into one long Terminal entry - same error message, same helpful news that it was fatal.

mpv is working fine, at least in the sense mpv/Path to .mkv immediately begins playing the film.

My workaround for the last 3-4 years has been to begin video-transcode using one of the crop values, kill the process after maybe 5 minutes, view with VLC and then repeat with the other crop values. Obviously, I almost forget the issue if I have have a number of files in a row where Handbrake CLI and ffmpeg agree.

Anyway, is there something I'm just not comprehending? I really like video-transcode, and this is more of a petty nuisance than anything else.

Thanks