[mythtv-commits] Ticket #4181: mythweb flash nuv ffmpeg segfault
MythTV
mythtv at cvs.mythtv.org
Sat Nov 17 16:18:19 UTC 2007
#4181: mythweb flash nuv ffmpeg segfault
-------------------------------------------------+--------------------------
Reporter: michael bishop <clever at nbnet.nb.ca> | Owner: xris
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythweb | Version: unknown
Severity: medium | Mlocked: 0
-------------------------------------------------+--------------------------
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: $!";
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4181>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list