Richard Neill <[EMAIL PROTECTED]> added the comment:
Thanks for your comment. I did actually try to rescue the sync (with -async 10)
at the time the files were created, but it doesn't actually work. Now I have a
year's archive of broken files, and there ought to be a way for ffmpeg to repair
them.
The reason for the original command is that what we're actually doing is filming
events in a debating chamber, and then streaming them in real-time when the
capacity overflows, as well as keeping a copy. I wanted to keep the ffmpeg bug
report more relevant by omitting that detail, but the full command is as
follows:
sudo dvgrab --format dv1 - | \
ffmpeg -f dv -i - -deinterlace -vcodec mpeg4 -b 5000 -acodec ac3 -ab 128
-f mpegts - | \
tee $ARCHIVE_FILE | \
vlc --verbose=$VLC_VERBOSITY --disable-screensaver
--no-sub-autodetect-file - \
:demux=ts :file-caching=3000 --sout '#std{access=http,mux=ts,dst=:8080}'
-I dummy
VLC is remarkably fussy about what it will accept (and doesn't have working DV
input, despite the manual), hence the need for the above.
I do take your point that the output filename probably has the wrong extension -
what should it be?
P.S. In case it's of interest, here is the "incantation" used by the clients:
#Run vlc. The second part of the 'playlist' makes it exit on end of file.
vlc $VLC_FULLSCREEN --verbose=$VLC_VERBOSITY --disable-screensaver
http://$STREAMSERVER:$STREAMPORT vlc:quit &
#Start a background resynchroniser process, to send A/V keysyms to VLC.
#half a second per hour, or so.
(while : ; do
sleep $RESYNC_DELAY
echo RESYNC "(50ms audio advance, every $RESYNC_DELAY seconds)"
echo -e "KeyStrPress Control_L \n KeyStrPress l \n KeyStrRelease l \n
KeyStrRelease Control_L \n" | xmacroplay :0 > /dev/null
done )&
#The whole thing is run in a loop, so as to ensure that the client will keep
trying to reconnect to the server.
______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue511>
______________________________________________________