mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Updated tdm-media to use avconv if ffmpeg is not present.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
bcc3729141
commit
2715984095
1 changed files with 8 additions and 3 deletions
|
|
@ -1,11 +1,16 @@
|
|||
#!/system/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
type ffmpeg > /dev/null 2>&1 && FFMPEG_OR_LIBAV=ffmpeg
|
||||
type avconv > /dev/null 2>&1 && FFMPEG_OR_LIBAV=avconv
|
||||
|
||||
function task.video.change.container {
|
||||
CONTAINER=$1;
|
||||
shift;
|
||||
echo "Using $FFMPEG_OR_LIBAV for conversion."
|
||||
for video in "$@"; do
|
||||
echo "Starting processing Video: $video";
|
||||
ffmpeg -i "$video" -vcodec copy -acodec copy "${video}.$CONTAINER"
|
||||
$FFMPEG_OR_LIBAV -i "$video" -vcodec copy -acodec copy "${video}.$CONTAINER"
|
||||
echo "Processing done.";
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue