Permalink
Browse files

New Features. Read CHANGELOG

  • Loading branch information...
1 parent 4be45aa commit a96803d08e0a82d3712c5b7b5fe3e5616e8aed10 @runexec committed Mar 18, 2012
Showing with 22 additions and 0 deletions.
  1. BIN VIDEO_2_NFO.png
  2. +22 −0 video2nfo.sh
View
BIN VIDEO_2_NFO.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
22 video2nfo.sh
@@ -126,8 +126,12 @@ done
# list 1 files per line, replace with '.' with space,
# sort numeric of second column, replace space with '.'
# now the video sequence of images are in order from least to greatest
+printf "\n%s" "Fancy tile sequence: Please wait..."
@runexec
runexec Mar 18, 2012

Status bar addition.

+
for image in `ls -1 v2nfo*png | tr '\.' ' ' | sort -k 2 -n | tr ' ' '\.'`
do
+ printf "%s" '.' # don't print \r\n
@runexec
runexec Mar 18, 2012

Display progress with dots.

+
# video2nfo watermark
convert $image -gravity South -pointsize 12 \
-splice 0x16 -annotate +0+2 'video2nfo.sh - Video 2 NFO' nfotmp.png
@@ -148,6 +152,24 @@ done
# ImageMagick v6 to combine images
montage v2nfo.*.png -tile 2x -geometry +1+1 VIDEO_2_NFO.png
+echo $'\n'
@runexec
runexec Mar 18, 2012

Using ffmpeg/ffprobe to get info in json format.

+echo "Adding details with ffprobe..."
+
+# ffprobe from ffmpeg to get the details of the video file
+info="`ffprobe -show_format -print_format json -show_streams "${VIDEO_FILE}" 2> /dev/null |
+grep -v filename |
+tr '"' ' ' |
+tr ':' '-' |
+tr '_' '\.'|
+tr ',' ' '`" # info.end
+
+tmp="v2nfo.tmporary.png"
+
@runexec
runexec Mar 18, 2012

Merge the two images.

+rm $tmp 3> /dev/null
+convert VIDEO_2_NFO.png label:"${info}" -append $tmp
+mv $tmp VIDEO_2_NFO.png
+
# Remove the tmp files
rm v2nfo*.png
+echo "COMPLETE!"

0 comments on commit a96803d

Please sign in to comment.