﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
4181	mythweb flash nuv ffmpeg segfault	michael bishop <clever@…>	xris	"my ffmpeg seems to segfault when converting the .nuv files from my frame grabber to flv
using this small patch(which depends on mencoder) ive worked arround the problem
it needs a fifo at /tmp/mythwebflash right now to work(forgoten too much perl to make it automaticaly)
basicaly mencoder just writes raw video/pcm audio to the fifo and ffmpeg converts that to flv


{{{
Index: mythweb/modules/stream/handler.pl
===================================================================
--- mythweb/modules/stream/handler.pl   (revision 14859)
+++ mythweb/modules/stream/handler.pl   (working copy)
@@ -141,7 +141,8 @@
     }
     elsif ($ENV{'REQUEST_URI'} =~ /\.flv$/i) {
     # Print the movie
-        $ffmpeg_pid = open(DATA, ""$ffmpeg -y -i $filename -s 320x240 -r 24 -f flv -ac 2 -ar 11025 -ab 64k -b 256k /dev/stdout 2>/dev/null |"");
+       $mplayer_pid = open(MPLAYER, ""mencoder -oac pcm -ovc raw -o /tmp/mythwebflash $filename 1>&2 2>/tmp/encodelog 1>&2 |"");
+        $ffmpeg_pid = open(DATA, ""$ffmpeg -y -i /tmp/mythwebflash -s 320x240 -r 24 -f flv -ac 2 -ar 11025 -ab 64k -b 256k /dev/stdout 2>/tmp/ffmpeglog |"");
         unless ($ffmpeg_pid) {
             print header(),
                   ""Can't do ffmpeg:  $!"";

}}}
"	patch	closed	minor	unknown	mythweb	unknown	medium	wontfix			0
