Inject metadata on all videos
Had a good luck with pseudo streaming with apache. It works nicely with flowplayer solution. Now I have to inject metadata into every single flv video.
There is a classic tool named flvtool2 but it is very slow and memory consuming is much. Luckily there is cool new tool named Yamdi appeared recently. With Yamdi you can inject metadata into very big flv file in a just few seconds while flvtool2 does that job about 10 mins.
Installing yamdi was very simple
All I did was
wget yamdi from http://yamdi.sourceforge.net/
gcc yamdi.c -o yamdi -O2 -Wall
mv yamdi /usr/bin/
There is older versions on yum repos but only recent version (1.8) has -w option that replaces original file with injected file.
And here is bash script that scans folder for *.flv and injects it with metadata and replaces with original file.
#!/bin/bash
VIDEOS_DIR=/webdir/videodir
for i in $VIDEOS_DIR/*.flv
do
yamdi -w -i $i -o ${i}.tmp
echo "conversion done on" $i
done
save above as something.sh and run with bash something.sh command
There is a classic tool named flvtool2 but it is very slow and memory consuming is much. Luckily there is cool new tool named Yamdi appeared recently. With Yamdi you can inject metadata into very big flv file in a just few seconds while flvtool2 does that job about 10 mins.
Installing yamdi was very simple
All I did was
wget yamdi from http://yamdi.sourceforge.net/
gcc yamdi.c -o yamdi -O2 -Wall
mv yamdi /usr/bin/
There is older versions on yum repos but only recent version (1.8) has -w option that replaces original file with injected file.
And here is bash script that scans folder for *.flv and injects it with metadata and replaces with original file.
#!/bin/bash
VIDEOS_DIR=/webdir/videodir
for i in $VIDEOS_DIR/*.flv
do
yamdi -w -i $i -o ${i}.tmp
echo "conversion done on" $i
done
save above as something.sh and run with bash something.sh command
Comments
Post a Comment