Hi Neil, Hi list,
I am using shake to do some video conversion with avconv.
While the exact params of avconv are not important here, they
may nevertheless be useful to illustrate my point / use case:
Some of the videos of this years OPLSS are recorded in stereo, but
sound can really be heard just on the left ear, which is annoying
when listening to the video with earphones (I can choose Audio > Stereo Mode > Left
in vlc, but find it tiring to do so at the beginning of every video part,
and therefore prefer to convert the videos beforehand) :
Load any of the videos from Stephanie Weirich's Lecture e.g.
from
https://www.cs.uoregon.edu/research/summerschool/summer14/curriculum.html
This is how I help myself:
avconv -y -i Stephanie2-2.mp4 -vcodec copy -f mp4 -acodec aac -ac 1 -strict experimental Stephanie2-2.mono.mp4
The resulting Stephanie2-2.mono.mp4 I can comfortably hear with
earphones.
Now when I do this kind of conversion with a redo script
default.mono.mp4.do
--------------------
# -*- shell-script -*-
redo-ifchange "$2.mp4"
avconv -y -i "$2.mp4" -vcodec copy -f mp4 -acodec aac -ac 1 -strict experimental "$3"
--------------------
I can see avconv's progress when calling
$ redo Stephanie3-1.mono.mp4
i.e. the last line
frame=10452 fps=404 q=-1.0 Lsize= 14437kB time=348.72 bitrate= 339.2kbits/s
changes every second or so - I assume avconv uses ncurses (but am not sure).
Anyway, it would be nice to see this kind of progress as well when using
shake (replace from missingh > Data.String.Utils ):
--------------------
"*.mono.mp4" *> \mono -> do
let mp4 = replace ".mono.mp4" ".mp4" mono
need [mp4]
() <- cmd Shell $ [
"avconv -y -i", mp4
, "-vcodec copy -f mp4 -acodec aac -ac 1 -strict experimental"
, mono
]
return ()
--------------------
Currently I cannot see this kind of ncurses (?) progress, but
maybe it's already possible, and I am just not aware how to
switch it on?
Anyway, would be nice to have, something for the wishlist therefore,
if it's not already possible somehow?
Thanks.
-Andreas