View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 37 posts ] 
Go to page Previous  1, 2, 3

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Feb 19, 2007 6:27 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
I've written it so that ffserver is kept alive until there are no clients connected to the stream, so it should still be alive even when ffmpeg bombs out.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 7:17 pm 
Offline
Joined: Wed Feb 15, 2006 9:08 pm
Posts: 12
hmm this isn't true on my system, unless something odd is happening. I just watched using top both ffmpeg and ffserver end at the same time, about 2 minutes after starting a stream. Is there some way I can get you some log or debug info?

_________________
Keep your stick on the ice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 7:39 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
yes,

in this file;
/var/www/mythweb/data/serverecording

These two lines have stdout and stderr redirected to /dev/null, change it to point to files in the same dir.

/usr/bin/ffserver -f /etc/ffserver.conf 1> /dev/null 2> /dev/null &

nice -n 10 /usr/bin/ffmpeg -i $DIRECTORY/$file -aspect 16:9 http://localhost:8090/feed1.ffm 1> /dev/null 2>> /dev/null &


EG.
/var/www/mythweb/data/ffserver.stdout
/var/www/mythweb/data/ffserver.stderr

and
/var/www/mythweb/data/ffmpeg.stdout
/var/www/mythweb/data/ffmpeg.stdout

So the first line will look like;
/usr/bin/ffserver -f /etc/ffserver.conf 1> /var/www/mythweb/data/ffserver.stdout 2> /var/www/mythweb/data/ffserver.stderr &

(all one line).
Please note that ffmpeg.stdout will grow very large.

Hope this helps.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 9:18 am 
Offline
Joined: Wed Feb 15, 2006 9:08 pm
Posts: 12
OK I outputted some log files. The same thing happened here as normal. The streaming stopped early and ffserver dropped out with it. The playing continued for a few more minutes and then stopped. Here is the output of my logs.

Code:
root@mythbox-be:/home/mythtv# cat var/www/mythweb/data/ffmpeg.stdout
root@mythbox-be:/home/mythtv#


Code:
root@mythbox-be:/home/mythtv# cat var/www/mythweb/data/ffmpeg.stderr
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)
Input #0, mpeg, from '/myth/tv/1009_20070219210000.mpg':
  Duration: 00:59:56.0, start: 0.289378, bitrate: 3029 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 3000 kb/s, 29.97 fps(r)
  Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Stream #0.0: Audio: mp3, 11025 Hz, mono, 16 kb/s
  Stream #0.1: Video: flv, yuv420p, 352x288, q=3-31, 300 kb/s, 25.00 fps(c)
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
[flv @ 0xb7dd3ee8]removing common factors from framerate
Press [q] to stop encoding
[flv @ 0xb7dd3ee8]rc buffer underflow


and here is ffserver output, I don't see anything funny in here.

Code:
root@mythbox-be:/home/mythtv# cat /var/www/mythweb/data/ffserver.stderr
root@mythbox-be:/home/mythtv# cat /var/www/mythweb/data/ffserver.stdout
ffserver started.
127.0.0.1 - - [Tue Feb 20 09:09:05 2007] "GET /feed1.ffm HTTP/1.0" 200 8245
127.0.0.1 - - [Tue Feb 20 09:09:05 2007] "GET /feed1.ffm HTTP/1.0" 200 12341
127.0.0.1 - - [Tue Feb 20 09:09:09 2007] "GET /stat.html HTTP/1.0" 200 1861
127.0.0.1 - - [Tue Feb 20 09:09:14 2007] "GET /stat.html HTTP/1.0" 200 2003
127.0.0.1 - - [Tue Feb 20 09:09:19 2007] "GET /stat.html HTTP/1.0" 200 2004
127.0.0.1 - - [Tue Feb 20 09:09:24 2007] "GET /stat.html HTTP/1.0" 200 2005
127.0.0.1 - - [Tue Feb 20 09:09:29 2007] "GET /stat.html HTTP/1.0" 200 2005
127.0.0.1 - - [Tue Feb 20 09:09:35 2007] "GET /stat.html HTTP/1.0" 200 2005
127.0.0.1 - - [Tue Feb 20 09:09:40 2007] "GET /stat.html HTTP/1.0" 200 2006
127.0.0.1 - - [Tue Feb 20 09:09:45 2007] "GET /stat.html HTTP/1.0" 200 2006
127.0.0.1 - - [Tue Feb 20 09:09:50 2007] "GET /stat.html HTTP/1.0" 200 2006
127.0.0.1 - - [Tue Feb 20 09:09:55 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:00 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:05 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:10 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:15 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:20 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:25 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:30 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:35 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:40 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:45 2007] "GET /stat.html HTTP/1.0" 200 2007
127.0.0.1 - - [Tue Feb 20 09:10:50 2007] "GET /stat.html HTTP/1.0" 200 2010
127.0.0.1 - - [Tue Feb 20 09:10:55 2007] "GET /stat.html HTTP/1.0" 200 2010
127.0.0.1 - - [Tue Feb 20 09:11:00 2007] "GET /stat.html HTTP/1.0" 200 2010
127.0.0.1 - - [Tue Feb 20 09:11:05 2007] "GET /stat.html HTTP/1.0" 200 2010
192.168.0.6 - - [Tue Feb 20 09:11:06 2007] "GET /flash_128.swf HTTP/1.1" 200 11635206
127.0.0.1 - - [Tue Feb 20 09:11:10 2007] "GET /stat.html HTTP/1.0" 200 1872


Sorry for the long post. I hope this helps some.

_________________
Keep your stick on the ice.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 4:39 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Hi,

I can't see anything abnormal in those files, the buffer underflow is pretty normal. anything in the stderr files?

As a side note, I see that i may need to detect the video format of the original and adjust the output at necessary.

In ffserver.conf change the frame rate from 25 to 29.97, and the frame size to 360x240. I doubt this will fix anything, but there is a slight change it might be more gentle on the encoder.

BigB.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 06, 2007 3:19 pm 
Offline
Joined: Thu Jan 18, 2007 12:59 am
Posts: 11
Hey All

I am having difficult getting streaming to work correctly. When I select a recording to watch everthing seems to be working correctly however when i try to connect to a stream (http or mms) it buffers and seems like it starts to play but i don't get any audio or video. I am running R5E50. Does anyone have any tips or advice? Please let me know, thanks.

-T


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 06, 2007 10:13 pm 
Offline
Joined: Thu Feb 01, 2007 12:44 am
Posts: 66
Location: Dallas, TX
I have it working with VLC. Try the following settings

Video Codec:DIV3
Video Speed:128
Audio Codec:MP3
Audio Speed:32
Video Size:25%
Video FPS:5
Stream Protocol:http

When it tells you the address, copy and paste it into VLC under File>Open Network Stream>Network>http... radio button. You can play around with all the other settings besides video and audio codecs and stream protocol to get more quality dependent on the speed of your connection to the mythbox.

If you are trying to use WMP, I can get video, but no audio regardless of what I try in WMP 11.

Video Codec: must be WMV2, WMP doesn't support DIV3 natively
Stream Protocol: must be mms, http plays at like 1 frame per 2 seconds, apparently WMP's support of http is broken.

Everything else you should be able to choose whatever and get video, if not audio.

_________________
Trying to install KnoppMyth R5F27, ECS 671T-M, Celeron 430, 1gig RAM, 320gig SATA Seagate, Samsung SATA SH-S203N DVD drive, Onboard video and audio, DVICO Fusion HDTV 5 Lite, Seasonic S12II-330watt PS


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ] 
Go to page Previous  1, 2, 3



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu