Hi!
I need to transcode the jpeg image that is continuously being updated (
http://80.240.228.233/liveimgs/camera003_233.jpg) to the mpeg-4 and vice versa.
Is there any VLC developer who would like to extend the VLC code to be able to do this.
This job would be paid.
Please apply if any one would like to do this, and for which amount of money!!
wrote a quick hack shell script to do this (might might notice a few hundred http gets when I tested).
./file dir
the jpg to build a mpeg stream for is hardcoded at present
.
I'm not sure if/how vlc can stream from a pipe, so this outputs to a file. Since it's a shell script, it will get behind eventually (it's non realtime, the sleep 1 + echo will take longer than 1.00000 seconds, so simply vlcing the file "for ever" would eventually reach end of file.
A 2gig Intel CPU wasn't able to keep up with this... it's piggy and slow. Proof of concept though.
Code: Select all
#!/bin/bash
test -d ${1}/ || { echo "$0: what dir?"; exit 1; }
spf=1 # seconds per file
fps=25 # hard set below, ppmtoy4m
tmpfilecount=$(for i in $(seq 1 $fpf); do echo tmp; done | xargs)
(
cd ${1} || exit
while sleep 1; do
echo cam1_camera007_233.jpg
done ) |
while read file; do
jpegtopnm ${1}/$file 2>/dev/null > tmp
cat $tmpfilecount
done |
ppmtoy4m -n 0 -F$fps:1 -I t -A 59:54 -L |
mpeg2enc -f 8 -n p -o ${1}.m2v