Author |
Message |
bigB
|
Posted: Tue Jan 23, 2007 4:51 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi Greend,
So glad you got it going. Try looking at the ffserver.conf file for settings on the quality.
Code: <Stream flash_128.swf> Feed feed1.ffm Format swf AudioBitRate 8 AudioChannels 1 AudioSampleRate 11025 AudioCodec mp3 VideoBitRate 96 VideoFrameRate 2 VideoSize 144x80 VideoGopSize 10 VideoCodec flv
In that file you will find this section, and below it you should see some examples for higher quality.
Did you end up upgrading ffmpeg, or did you fix something else to get it to go?
BigB.
|
|
Top |
|
 |
greend139
|
Posted: Tue Jan 23, 2007 5:24 pm |
|
Joined: Sat Feb 04, 2006 1:50 pm
Posts: 24
|
im actually using the stock ffmpeg in R5E50. I disabled all the ACL functions in the ffserver.conf file and that got it going i guess. I was getting errors about the feed file before that.
|
|
Top |
|
 |
bigB
|
Posted: Wed Jan 24, 2007 7:02 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi Pro,
Try commenting out the ACL lines in the ffserver.conf. I'm very interested to hear if you can get this going.
BigB
|
|
Top |
|
 |
prosonik
|
Posted: Thu Jan 25, 2007 1:17 am |
|
Joined: Sat Nov 13, 2004 2:24 pm
Posts: 59
|
Hey,
ACL=no go. I tried latest FFmpeg from svn.. that didn't work ethier..
|
|
Top |
|
 |
bigB
|
Posted: Thu Jan 25, 2007 3:04 am |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Pro,
Sorry about this. I feel that this is one of those problems that if i was given an hour at it i could get it to go, but not so easy over a forum  So i may only be able to give some "shoot from the hip" advice.
Another thing to try, that is similar to the ACL tip, is to change any references to 'localhost' to your IP, specifically in the /var/www/mythweb/data/serverecording.
BigB.
|
|
Top |
|
 |
prosonik
|
Posted: Fri Jan 26, 2007 9:11 am |
|
Joined: Sat Nov 13, 2004 2:24 pm
Posts: 59
|
Hi there,
Already tried the changing the IP.. Tried the ACL. Next step, I'll probably delete one file at a time,l, and re-cut and paste this weekend. I'm still convinced it's some sort of permission error or something. Something that i have done wrong!. However, if i can find out what i've done wrong, and debug it that way, hopefully i can provide better feedback to others that try it. I'm really not a fan of the 'reset button' techs.
Speaking of that, what type of file permissions do you have?
# pic ffmpeg.stderr
Here is the current output
FFmpeg version SVN-r7695, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --enable-gpl --disable-debug --enable-xvid --enable-mp3lame --prefix=/usr
libavutil version: 49.2.0
libavcodec version: 51.29.0
libavformat version: 51.8.0
built on Jan 24 2007 15:10:43, gcc: 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)
Input #0, mpeg, from '/myth/tv/1008_20070123220000.mpg':
Duration: 00:29:40.3, start: 0.289400, bitrate: 5191 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 480x480, 6000 kb/s, 29.97 fps(r)
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Could not read stream parameters from 'http://192.168.2.141/feed1.ffm'
Prosonik
|
|
Top |
|
 |
greend139
|
Posted: Tue Jan 30, 2007 1:07 pm |
|
Joined: Sat Feb 04, 2006 1:50 pm
Posts: 24
|
BigB,
I was curious if you had any ideas on how to incorperate a flv player into this so it would be easy to skip about the stream after it has finished encoding. I'm playing around now with mixing flvplayer or flowplayer into the page. If you have any suggestions i would love to hear them.
Thanks.
|
|
Top |
|
 |
bigB
|
Posted: Tue Jan 30, 2007 4:07 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi Greend139,
My original attempts for Mythwebflash were to start ffmpeg encoding the file, then use something like flvplayer.swf to play the file. The result of this was it would playback the 10 or so seconds it had encoded before the flvplayer had grabbed the file then it would stop.
Fortunately I discovered ffserver which does similar things to VLC. The current encode process is like this...
FFMPEG -> FFSERVER -> FLASHPLAYER
I did have an idea on adding fast forward etc using the following process...
MPLAYER -> FFMPEG -> FFSERVER -> FLASHPLAYER
I am hoping that i can then control the playback process of Mplayer, i am yet to research this. Controls would then be similar to the playback controls for MythstreamTV, IE hyperlinks.
Keep me posted on your developements, i'm interested in cleaning up the playback window a little more.
BigB.
|
|
Top |
|
 |
yamez
|
Posted: Sat Feb 03, 2007 12:36 am |
|
Joined: Sat Aug 21, 2004 1:12 am
Posts: 32
Location:
Sydney, Australia
|
I'm using R5B7 and I can't get MythWebFlash working. I don't want to upgrade to R5E10 just yet.
spynotebook, could you post or email your working files and the directories they are in? The spot were I am confused is are there 2 different streamrecording.php files needed for 0.19? I've followed the wiki and spynotebook's notes yet all that happens is a new MythWeb listing opens in the browser. ffserver is installed.
|
|
Top |
|
 |
bigB
|
Posted: Mon Feb 05, 2007 5:32 am |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi Yamez,
The version of streamrecording.php you need from the wiki is
/var/www/mythweb/modules/tv/tmpl/default/streamrecording.php
This must be remaned to that listed toward the start of this thread.
Version 0.20 changes the way themes work, so there are a few differences in the structure of the files.
This process relies on the theme of mythweb being 'default'.
Hope this helps.
BigB.
|
|
Top |
|
 |
md10md
|
Posted: Sun Feb 25, 2007 2:47 pm |
|
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
|
I got it up and running on R5E50, but I can't for the life of me get the quality up from more than 2 fps. I changed the /etc/ffserver.conf but it doesn't change anything. Is there a file I'm missing?
|
|
Top |
|
 |
bigmrt123
|
Posted: Tue Mar 06, 2007 5:11 am |
|
Joined: Thu Jan 18, 2007 12:59 am
Posts: 11
|
Hey bigB, or anyone for that matter. Do you have an idea why i am getting an unsupported codec error when trying to view a recording? Here is the output of my ffmpeg stderr file:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC
libavutil version: 49.0.0
libavcodec version: 51.11.0
libavformat version: 50.5.0
built on Oct 14 2006 21:20:45, gcc: 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)
Seems that stream 0 comes from film source: 1000.00 (1000/1) -> 30.08 (361/12)
Input #0, nuv, from '/myth/tv/1043_20070202220000.nuv':
Duration: 05:25:49.9, start: 0.000000, bitrate: 1411 kb/s
Stream #0.0: Video: RJPG / 0x47504A52, 640x480, 30.08 fps(r)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 1411 kb/s
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Stream #0.0: Audio: mp3, 11025 Hz, mono, 8 kb/s
Stream #0.1: Video: flv, yuv420p, 144x80, q=3-31, 96 kb/s, 2.00 fps(c)
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
[flv @ 0xb7dfaee8]removing common factors from framerate
Unsupported codec (id=0) for input stream #0.0
I am running R5E50, but i am not sure why the FFmpeg version is SVN-rUNKNOWN. Also the duration on all the recordings i have tested come up with wrong values.
Any input on this would be greatly appreciated as i can't seem to find much information. Thanks.
|
|
Top |
|
 |
bigB
|
Posted: Tue Mar 06, 2007 4:56 pm |
|
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location:
Brisbane, Australia
|
Hi,
In most tests i have done, i have not had any success with streaming nuv files, either with MythstreamTV or flash streaming.
It appears that it can parse the format of the nuv file but can't decode 'RJPG' format (some sort of Motion Jpeg).
Sorry i can't help any more.
BigB.
|
|
Top |
|
 |
bigmrt123
|
Posted: Tue Mar 06, 2007 10:47 pm |
|
Joined: Thu Jan 18, 2007 12:59 am
Posts: 11
|
Hey bigB
Thanks a lot for the feedback, that actually did help quite a bit. I changed my recording profiles in myth tv to be mpeg-4 instead of rtjpeg and now not only does the flash playing capabilities work but the mythstream works as well. Thanks again.
-T
|
|
Top |
|
 |
Spud911
|
Posted: Wed Mar 14, 2007 9:57 pm |
|
Joined: Sun Nov 16, 2003 11:26 pm
Posts: 42
|
I got this running on R5E50 which was way simple following the wiki.
My only problem is that my videos freeze after 10 minutes or so of playing. I played with the bit rate and as I raise it the time it plays is shorter so I am guessing its a problem with the cached directory or something. Unfortunately I have no clue where that might be.
I checked all my drives and I have 30 gigs free on the smallest so I don't think its a drive space issue.
Anyone have any ideas?
|
|
Top |
|
 |