View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Sat Jul 26, 2008 6:44 am 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
Yeah I used to use VLC as well. It was a bit cumbersome to have to manually set up streams (through MythWeb) everytime and load VLC on the side, but it certainly didn't the job.

I was a little surprised MythStreamTV was removed as well, since the 0.21 streaming capabilities seem listed as experimental. But like most things here, I'm certain there is a solid, logical reason for that action.


Top
 Profile  
 
PostPosted: Mon Jul 28, 2008 10:35 am 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
Hi,

I still get picture + static for flash and picture + no sound for asx. I've still got no idea why this is not working!

To actually get the asx stream working (with picture but no sound) I used MPlayer. To do this I had to remove all authentication on MythWeb in apache by commenting out http://www.knoppmythwiki.org/index.php? ... thWebHowTo :
Code:
#<Directory />
#     AuthType           Digest
#     AuthName           "MythTV"
#     AuthUserFile       /etc/<em class="highlight marker searchword-1">htdigest</em>
#     Require            valid-user
#     BrowserMatch       "MSIE"      AuthDigestEnableQueryStringHack=On
#</Directory>

which was towards the end of the apache config file.

Then restarting the MythBox. This avoids the authentication issue with WMP and MPlayer but still does not allow WMP (version: 11.0.5721.5145) to play the asx stream at all - it hangs when connecting to the stream (after locating it) with the following message:

"Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."

I take it therefore that WMP is missing a codec to play asx streams.

MPlayer will play the stream (with no sound) however, simply download MPlayer GUI for Windows and right-click on it -> Open URL and then type in the URL to the stream on MythWeb which is the URL that your browser goes to when you click on the asx stream button.

I never got MythStream on R5F27 working with sound ( http://knoppmyth.net/phpBB2/viewtopic.p ... highlight= ) -> it was like the asx stream on MPlayer, perfect picture but no sound at all, except that it played in WMP!

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:41 pm, edited 1 time in total.


Top
 Profile  
 
PostPosted: Mon Jul 28, 2008 12:21 pm 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
I've just played around with WMP and read a bit about DVB-T codecs.

From this article:
http://www.gossamer-threads.com/lists/m ... ers/339873
I got a hint that DVB-T .mpg files are really encoded in TS (Transport Stream): MPEG-TS ( http://en.wikipedia.org/wiki/MPEG_transport_stream ) - something I was not aware of. What I understand is that there are several 'streams' multiplexed together in one file which mythtv gives the extension .mpg

In order to get back to basics and determine what WMP can actually play, I download a short clip by clicking on the direct download in MythWeb, but WMP would not play this even though I had MPEG2 codec installed (DVDs play fine for instance). Having understood that this might not be any ordinary mpg file I found a direct show codec called hdtvpump on an interesting site ( http://www.dvbportal.de/) at ( http://www.dvbportal.de/projects/hdtvpump/index.html ) and contrary to its name it will play SDTV (or EDTV as I now understand 576p is defined as: http://en.wikipedia.org/wiki/EDTV ).

So I installed this on a Windows XP machine and tried to play the downloaded .mpg file from MythWeb on my HDD. It wouldn't play and that's because this filter is only for .ts files. So following the hint on the dvbportal website I renamed the file to .ts and then in WMP clicked File -> Open -> ...file... and WMP gave a warning about not being able to play this file type (which I clicked "yes" to ignore) and then hdtvpump displayed a warning about being in ac3 mode for audio (presumably for hdtv) and said a restart was needed for MPEG audio mode. To get MPEG audio mode I clicked "properties" on the new plugin that had appeared in WMP (to display goto view -> plugins and tick "Transport Stream Controls") and then unticked "Prefer AC3 audio track" and clicked on the top audio stream in the audio stream box. The recording played fine with good picture and sound!

So at least I could actually play these files on a machine other than on MythTV in WMP (MPlayer clearly has this demuxing built in so does not require all this direct show codec installation).

To be able to play the asx stream direct from MythWeb I found a website exlaining the asx file: http://msmvps.com/blogs/chrisl/articles/17294.aspx
So I downloaded one and opened it in Notepad:
Code:
<ASX version = "3.0">
<TITLE>Golden Balls</TITLE>
<ENTRY>
<TITLE>Golden Balls - </TITLE>
<AUTHOR>MythTV - MythWeb</AUTHOR>
<COPYRIGHT>GPL</COPYRIGHT>
<REF HREF = "http://mythtv:80/mythweb/pl/stream/65003/1217264244" />
</ENTRY>
</ASX>

Whre "mythtv" is just the hostname of the box you are streaming from.

But this does not really help us because I do not know what the stream format is - only that if you paste the URL in the .asx file into MPlayer that you can view the stream with picture but no sound.

As MPlayer seems to have every codec you'll ever need I reckon the lack of sound is due to ffmpeg on the MythBox which must have trouble negotiating the mpeg-ts file and not select the correct audio (as there are several audio streams shown in hdtvpump). So I reckon that the original file dumped off the dvb-t card must have to be converted into MPEG-PS which is the other type of MPEG file that I am aware of and is apparently the one which most players are expecting to view. For the stream to work properly. This thread might help us:
http://www.gossamer-threads.com/lists/m ... vnz/332968

Let me know if you get any further with this!

Mythman

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:42 pm, edited 3 times in total.


Top
 Profile  
 
PostPosted: Mon Jul 28, 2008 12:37 pm 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
This user seems to report a similar problem back in 2005 (although I don't know the distro etc.)!!!!

http://www.gossamer-threads.com/lists/m ... nd;#151550

Except this time it appears to be with playback on MythTV itself. They recommend changing the recording type from PS to TS. But I cannot find it in the settings on mythtvsetup - I think it has been removed because recording in PS mode caused some sound dropping out problems:
http://www.gossamer-threads.com/lists/m ... nd;#110279

I think that MythTV currently records DVB-T to disk in TS format by default with no obvious way to change this - hence why we need direct show filters to demux the TS file and allow us to view the downloaded file from MythWeb in WMP (see previous posting).

I reckon it is ffmpeg which is getting confused by the TS file and not demuxing properly (splitting up the audio and video properly as in link at bottom of this post) = no / static sound on stream in MythWeb. Whereas the internal player in MythTV is quite happy to deal with TS streams.

So perhaps we want to continue to allow MythTV to record DVB-T in TS mode (to ensure good sound when viewing in MythTV) and then convert to the PS file type on-the-fly when we want to stream on MythWeb so as to allow ffmpeg to read the file properly and therefore re-encode it properly. Hopefully if this following program is finished now (or an alternative avaliable) then we can use this to do the conversion:
http://www.gossamer-threads.com/lists/m ... vnz/332968

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:43 pm, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 29, 2008 5:07 pm 
Offline
Joined: Fri Feb 24, 2006 4:39 pm
Posts: 30
Location: Seattle, Washington
Flash (and ASX) playback works for me. I'm not using the default ffmpeg--I needed faad (aac decoding) support for ffmpeg, so I uninstalled the default and re-installed from the debian-multimedia unstable repositories. I ended up with:
Code:
FFmpeg version SVN-r13582, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --disable-altivec --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger
  libavutil version: 49.7.0
  libavcodec version: 51.58.0
  libavformat version: 52.16.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Jul  7 2008 23:19:26, gcc: 4.3.1
FFmpeg SVN-r13582
libavutil   3213056
libavcodec  3357184
libavformat 3411968
libavdevice 3407872


That being said, I didn't get a chance to test this before I upgraded ffmpeg, so I'm not sure if that is what made the difference. I also don't see ffmpeg running while viewing a flash-encoded video?


Top
 Profile  
 
PostPosted: Wed Jul 30, 2008 2:21 pm 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
Hi,

Thanks for that, our ffmpeg's seem to be quite a bit different - you mention libfaad, what exactly is faad because my deault (straight after installation of R5.5 ffmpeg) has libfaac?

I'm sure ffmpeg is being used to stream flash and asx because if you have a look at: /usr/share/mythtv/mythweb/modules/stream/handler.pl
then it says:

Code:
# Find ffmpeg
    $ffmpeg = '';
    foreach my $path (split(/:/, $ENV{'PATH'}.':/usr/local/bin:/usr/bin'), '.') {
        if (-e "$path/ffmpeg") {
            $ffmpeg = "$path/ffmpeg";
            last;
        }
        elsif ($^O eq 'darwin' && -e "$path/ffmpeg.app") {
            $ffmpeg = "$path/ffmpeg.app";
            last;
        }
    }


and also:

Code:
 # Print the movie
        $ffmpeg_pid = open(DATA,
            "$ffmpeg -y -i ".shell_escape($filename)
            .' -s '.shell_escape("${width}x$height")
            .' -r 24 -f flv -ac 2 -ar 11025'
            .' -ab '.shell_escape("${abitrate}k")
            .' -b '.shell_escape("${vbitrate}k")
            .' -acodec libmp3lame /dev/stdout 2>/tmp/ffmpeg-output.log |'
            );
        unless ($ffmpeg_pid) {
            print header(),
                  "Can't do ffmpeg:  $!";
            exit;
        }
        print header(-type => 'video/x-flv');


So ffmpeg must be being used.

the 'default' ffmpeg on Knoppmyth R5.5:
Code:
FFmpeg version SVN-r12391, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libfaac --enable-liba52 --enable-libvorbis --enable-gpl --enable-shared --enable-libxvid --prefix=/usr --enable-libtheora --arch=i586 --cpu=i586 --enable-pthreads --enable-avfilter --enable-postproc
  libavutil version: 49.6.0
  libavcodec version: 51.51.0
  libavformat version: 52.9.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Apr 16 2008 05:24:04, gcc: 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
FFmpeg SVN-r12391
libavutil   3212800
libavcodec  3355392
libavformat 3410176
libavdevice 3407872


I take it to uninstall ffmpeg I type:
Code:
apt-get remove ffmpeg
as root;

and then please could you advise as to how to install ffmpeg with all these extensions?

Thanks,

Mythman + many others who are trying to get flash +asx working with DVB-T

PS: please can I confirm that you were trying to stream DVB-T files that were dumped off your DVB-T card straight onto your hard drive?

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:43 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 2:43 pm 
Offline
Joined: Fri Feb 24, 2006 4:39 pm
Posts: 30
Location: Seattle, Washington
FAAC and FAAD are the encoder and decoder respectively for aac (mp4) audio. So with just faac you can encode an audio file (or audio+video) for the ipod or other mp4-friendly device. However if you want to use ffmpeg to go the other way, e.g. convert aac to mp3, you need faad to decode the mp4 audio--that's my understanding.

WARNING!! Doing the following has the distinct possibility for ruining your software, so please make a backup first and don't expect me to be able to bail you out if it doesn't work!!:wink:

To change to the latest ffpmeg from debian-multimedia repos:

#modify 2 lines in /etc/apt/sources.list to match below (changed to "unstable"):
Code:
deb http://www.debian-multimedia.org unstable main
deb-src http://www.debian-multimedia.org unstable main


Then as root, run the following:
Code:
apt-get update
apt-get install ffmpeg


If it errors out with unresolved dependencies for mplayer (this is what mine did) then proceed with the following:
Code:
apt-get remove transcode mplayer
apt-get install ffmpeg
apt-get install transcode mplayer


check ffmpeg version now:
Code:
ffmpeg -version


Hopefully your flash (and everything else) will now work successfully, but please IF YOU CARE ABOUT YOUR CURRENT SETUP, DO A COMPLETE BACKUP FIRST.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 5:43 pm 
Offline
Joined: Fri Feb 24, 2006 4:39 pm
Posts: 30
Location: Seattle, Washington
Quote:
PS: please can I confirm that you were trying to stream DVB-T files that were dumped off your DVB-T card straight onto your hard drive?


My videos were captured from a PVR-150, which seems to put out similar files based on previous posts.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 8:06 pm 
Offline
Joined: Sat Jan 06, 2007 6:50 pm
Posts: 141
Location: Nashville, TN
yababom wrote:
To change to the latest ffpmeg from debian-multimedia repos:


I followed your direction and now I have audio on my flash playbacks from my PVR-150 captured via the composite cable. Thanks!

_________________
LinHES Release 6.04.00
Mboard MSI PM8PM-V P4M800
CPU - Intel Celeron D 336 Processor 2.80GHZ
Memo - Corsair VS512MB533D2 512MB DDR2-533
Hard D - Hitachi T7K500 250GB Serial ATA
Wireless - Netgear wg311
Tuner Card - PVR-150


Top
 Profile  
 
PostPosted: Thu Jul 31, 2008 2:07 pm 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
Hey yababom that really worked!

Flash player on MythWeb now plays DVB-T recordings with sound!
Thank you very much for that it works fantastically!! :D

I followed your instructions (thank you also for them) and got an error on first installing ffmpeg but it didn't seem to say anything about mplayer. Anyway I followed your advice and removed mplayer but ffmpeg still wouldn't install (came back with some error) here:

Code:
Unpacking libavutil49 (from .../libavutil49_3%3a20080706-0.2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libavutil49_3%3a20080706-0.2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/libavutil.so.49', which is also in package ffmpeg
Selecting previously deselected package libdirac0.
Unpacking libdirac0 (from .../libdirac0_0.10.0-0.1_i386.deb) ...
Preparing to replace libfaac-dev 1.25-0.1 (using .../libfaac-dev_1.26-0.1_i386.deb) ...
Unpacking replacement libfaac-dev ...
Preparing to replace libfaac0 1.25-0.1 (using .../libfaac0_1.26-0.1_i386.deb) ...
Unpacking replacement libfaac0 ...
Errors were encountered while processing:
 /var/cache/apt/archives/libavutil49_3%3a20080706-0.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Then I did apt-get remove transcode mplayer which worked fine.
Then I did apt-get install ffmpeg and had the following error output:
Code:
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libavcodec51 libavdevice52 libavformat52 libavutil49 libdc1394-22 libenca0
  libfaad0 libgif-dev libgif4 libgsm1 libmad0 libmad0-dev libmp3lame0
  liboil0.3 libschroedinger-1.0-0 libspeex1 libswscale0 libungif4-dev
  libungif4g libx264-60 mencoder
Suggested packages:
  speex w32codecs libdvdcss mplayer-doc
The following packages will be REMOVED:
  libfaad2-0 liblame-dev liblame0
The following NEW packages will be installed:
  libavcodec51 libavdevice52 libavformat52 libavutil49 libdc1394-22 libenca0
  libgif-dev libgif4 libmp3lame0 liboil0.3 libschroedinger-1.0-0 libswscale0
  libx264-60
The following packages will be upgraded:
  ffmpeg libfaad0 libgsm1 libmad0 libmad0-dev libspeex1 libungif4-dev
  libungif4g mencoder
9 upgraded, 13 newly installed, 3 to remove and 876 not upgraded.
Need to get 0B/8270kB of archives.
After unpacking 24.8MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 91680 files and directories currently installed.)
Removing libfaad2-0 ...
Removing liblame-dev ...
Selecting previously deselected package libenca0.
(Reading database ... 91670 files and directories currently installed.)
Unpacking libenca0 (from .../libenca0_1.9-6_i386.deb) ...
Preparing to replace libungif4-dev 4.1.4-4 (using .../libungif4-dev_4.1.6-5_all.deb) ...
Unpacking replacement libungif4-dev ...
Selecting previously deselected package libgif-dev.
Unpacking libgif-dev (from .../libgif-dev_4.1.6-5_i386.deb) ...
Preparing to replace libungif4g 4.1.4-4 (using .../libungif4g_4.1.6-5_all.deb) ...
Unpacking replacement libungif4g ...
Selecting previously deselected package libgif4.
Unpacking libgif4 (from .../libgif4_4.1.6-5_i386.deb) ...
Preparing to replace libmad0-dev 0.15.1b-2.1 (using .../libmad0-dev_0.15.1b-3_i386.deb) ...
Unpacking replacement libmad0-dev ...
Preparing to replace libmad0 0.15.1b-2.1 (using .../libmad0_0.15.1b-3_i386.deb) ...
Unpacking replacement libmad0 ...
Preparing to replace mencoder 1:1.0-rc1-0.0 (using .../mencoder_1%3a1.0.rc2svn20080706-0.1_i386.deb) ...
Unpacking replacement mencoder ...
(Reading database ... 91691 files and directories currently installed.)
Removing liblame0 ...
Selecting previously deselected package libmp3lame0.
(Reading database ... 91686 files and directories currently installed.)
Unpacking libmp3lame0 (from .../libmp3lame0_3.98-0.0_i386.deb) ...
Preparing to replace libspeex1 1.1.12-3 (using .../libspeex1_1.2~rc1-1_i386.deb) ...
Unpacking replacement libspeex1 ...
Selecting previously deselected package libx264-60.
Unpacking libx264-60 (from .../libx264-60_0.svn20080712-0.0_i386.deb) ...
Unpacking libavutil49 (from .../libavutil49_3%3a20080706-0.2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libavutil49_3%3a20080706-0.2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/libavutil.so.49', which is also in package ffmpeg
Preparing to replace libfaad0 2.5-2 (using .../libfaad0_2.6.1-3_i386.deb) ...
Unpacking replacement libfaad0 ...
Preparing to replace libgsm1 1.0.10-13 (using .../libgsm1_1.0.12-1_i386.deb) ...
Unpacking replacement libgsm1 ...
Selecting previously deselected package liboil0.3.
Unpacking liboil0.3 (from .../liboil0.3_0.3.15-1_i386.deb) ...
Selecting previously deselected package libschroedinger-1.0-0.
Unpacking libschroedinger-1.0-0 (from .../libschroedinger-1.0-0_1.0.5-1_i386.deb) ...
Selecting previously deselected package libavcodec51.
Unpacking libavcodec51 (from .../libavcodec51_3%3a20080706-0.2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libavcodec51_3%3a20080706-0.2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/libavcodec.so.51', which is also in package ffmpeg
Selecting previously deselected package libavformat52.
Unpacking libavformat52 (from .../libavformat52_3%3a20080706-0.2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libavformat52_3%3a20080706-0.2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/libavformat.so.52', which is also in package ffmpeg
Selecting previously deselected package libdc1394-22.
Unpacking libdc1394-22 (from .../libdc1394-22_2.0.2-1_i386.deb) ...
Selecting previously deselected package libavdevice52.
Unpacking libavdevice52 (from .../libavdevice52_3%3a20080706-0.2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libavdevice52_3%3a20080706-0.2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/libavdevice.so.52.0.0', which is also in package ffmpeg
Selecting previously deselected package libswscale0.
Unpacking libswscale0 (from .../libswscale0_3%3a20080706-0.2_i386.deb) ...
Preparing to replace ffmpeg 20080416-1 (using .../ffmpeg_3%3a20080706-0.2_i386.deb) ...
Unpacking replacement ffmpeg ...
Errors were encountered while processing:
 /var/cache/apt/archives/libavutil49_3%3a20080706-0.2_i386.deb
 /var/cache/apt/archives/libavcodec51_3%3a20080706-0.2_i386.deb
 /var/cache/apt/archives/libavformat52_3%3a20080706-0.2_i386.deb
 /var/cache/apt/archives/libavdevice52_3%3a20080706-0.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


So I typed apt-get install ffmpeg again and got the following errors:
Code:
Reading package lists... Done
Building dependency tree... Done
ffmpeg is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  ffmpeg: Depends: libavcodec51 (>= 3:20080706) but it is not going to be installed
          Depends: libavdevice52 (>= 3:20080706) but it is not going to be installed
          Depends: libavformat52 (>= 3:20080706) but it is not going to be installed
          Depends: libavutil49 (>= 3:20080706) but it is not going to be installed
  libswscale0: Depends: libavutil49 (>= 3:20080706) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Then followed apt-gets advice and typed apt-get -f install which gace the following output:
Code:
Reading package lists... Done
Building dependency tree... Done
ffmpeg is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  ffmpeg: Depends: libavcodec51 (>= 3:20080706) but it is not going to be installed
          Depends: libavdevice52 (>= 3:20080706) but it is not going to be installed
          Depends: libavformat52 (>= 3:20080706) but it is not going to be installed
          Depends: libavutil49 (>= 3:20080706) but it is not going to be installed
  libswscale0: Depends: libavutil49 (>= 3:20080706) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@media:~# apt-get -f install       
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libavcodec51 libavdevice52 libavformat52 libavutil49
The following NEW packages will be installed:
  libavcodec51 libavdevice52 libavformat52 libavutil49
0 upgraded, 4 newly installed, 0 to remove and 876 not upgraded.
18 not fully installed or removed.
Need to get 0B/2123kB of archives.
After unpacking 5005kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 91672 files and directories currently installed.)
Unpacking libavutil49 (from .../libavutil49_3%3a20080706-0.2_i386.deb) ...
Unpacking libavcodec51 (from .../libavcodec51_3%3a20080706-0.2_i386.deb) ...
Unpacking libavformat52 (from .../libavformat52_3%3a20080706-0.2_i386.deb) ...
Unpacking libavdevice52 (from .../libavdevice52_3%3a20080706-0.2_i386.deb) ...
Setting up libavutil49 (3:20080706-0.2) ...
Setting up libfaad0 (2.6.1-3) ...
Setting up libgsm1 (1.0.12-1) ...
Setting up libmp3lame0 (3.98-0.0) ...
Setting up liboil0.3 (0.3.15-1) ...
Setting up libschroedinger-1.0-0 (1.0.5-1) ...
Setting up libx264-60 (0.svn20080712-0.0) ...
Setting up libavcodec51 (3:20080706-0.2) ...
Setting up libavformat52 (3:20080706-0.2) ...
Setting up libdc1394-22 (2.0.2-1) ...
Setting up libavdevice52 (3:20080706-0.2) ...
Setting up libswscale0 (3:20080706-0.2) ...
Setting up ffmpeg (3:20080706-0.2) ...

Configuration file `/etc/ffserver.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** ffserver.conf (Y/I/N/O/D/Z) [default=N] ?
Setting up libenca0 (1.9-6) ...
Setting up libgif4 (4.1.6-5) ...
Setting up libgif-dev (4.1.6-5) ...
Setting up libmad0 (0.15.1b-3) ...
Setting up libmad0-dev (0.15.1b-3) ...
Setting up libspeex1 (1.2~rc1-1) ...
Setting up libungif4-dev (4.1.6-5) ...
Setting up libungif4g (4.1.6-5) ...
Setting up mencoder (1:1.0.rc2svn20080706-0.1) ...


I then did apt-get install ffmpeg and it said it was the newest version.
I then installed mplayer again by apt-get install mplayer and that installed just fine.

One thing I was unsure of was the configuration file - I just accepted the default no when prompted was this the correct thing to do?

I have not had a chance to verify whether everything else (like mplayer or the asx stream)works yet but hopefully it does!

Thanks again and good luck to everyone installing flash player on R5.5!

-Mythman

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:44 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 2:35 pm 
Offline
Joined: Fri Feb 24, 2006 4:39 pm
Posts: 30
Location: Seattle, Washington
Mythman13--You are welcome, and thanks for documenting your experiences: I'm sure others will find it useful.

My instructions were based on some rough notes that I had, but by the time I did this, I had already done a lot of tinkering with installing all the required dependencies to install ffmpeg from source, so I'm not surprised that your experiences varied from mine a bit.

Quote:
One thing I was unsure of was the configuration file - I just accepted the default no when prompted was this the correct thing to do?


In my case I examined the changes and didn't see anything major so I accepted the changes--but I'm not expert enough to say if that the right thing to do in every case


Top
 Profile  
 
 Post subject: Success for Flash!
PostPosted: Thu Jul 31, 2008 6:24 pm 
Offline
Joined: Sat May 26, 2007 9:51 pm
Posts: 130
Yababom - Thanks for the tips
Mythman13 - Thanks for the details.

I followed Yababom's direction, and ended following the same exact path as Mythman13. Great job to both of you. I tested MPlayer afterwards and after several minutes and testing controls, seems stable enough for me!

Flash works great now online. However, I still can't seem to get asx files working. I tried both with and without authentication, both MPlayer and WMP 11.0.5721.5230. No luck in even loading either.

But that should be ok if I have the flash working!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 6:11 am 
Offline
Joined: Sat Jan 06, 2007 6:50 pm
Posts: 141
Location: Nashville, TN
Now that we got flash working, does anyone know what kind of load it puts on networks? My reason for asking is I do not want to show up on the bandwidth reports at work and have my IP address blocked for streaming media rules. Sorry if this is to off topic.

_________________
LinHES Release 6.04.00
Mboard MSI PM8PM-V P4M800
CPU - Intel Celeron D 336 Processor 2.80GHZ
Memo - Corsair VS512MB533D2 512MB DDR2-533
Hard D - Hitachi T7K500 250GB Serial ATA
Wireless - Netgear wg311
Tuner Card - PVR-150


Top
 Profile  
 
 Post subject: Re: Success for Flash!
PostPosted: Fri Aug 01, 2008 7:08 am 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
tzoom84 wrote:
Mythman13 - Thanks for the details.

No problem, thanks once again to yababom for the advice!

tzoom84 wrote:
However, I still can't seem to get asx files working. I tried both with and without authentication, both MPlayer and WMP 11.0.5721.5230. No luck in even loading either.

I've got asx working in MPlayer, but it is a bit of a workaround and not as simple as clicking on the link button. My setup after doing the re-installing above is:

* No authentication on MythWeb at all (see previous posting on this thread)
* Use MPlayer on Windows computer on local network.
* Select programme recording you want to stream by right-clicking on the asx stream link and select "Save target as" or similar.
* Save the .asx file to your local hard disk and open with Notepad or nano or other text editor.
* Find the line <REF HREF="http://......." /> and copy the hyperlink to clipboard.
* Open up MPlayer and right-click on it and select "OpenURL", paste the URL from clipboard in and click "OK"
* The stream should start with good picture and audio in MPlayer

I have not got WMP working yet or been able to just play the asx stream by clicking on the icon - but still working on that as I need to first find the codec of the asx stream! I don't think you can stream with authentication on MythWeb as I don't think MPlayer or WMP would have the passwords.

wmcvetty wrote:
does anyone know what kind of load it puts on networks

No I'm not sure what load flash streaming puts on networks, but from my own expereience it is far less than asx streaming and on a wireless network it seems to load a bit of the stream, then pause and load a bit more with not very much activity on the wireless access point light. So I'd say it is quite light on the network, but looking at the file which does the transcoding: /usr/share/mythtv/mythweb/modules/stream/handler.pl it seems that you can change the bit-rate etc. to customise for your own network settings (obviously if you watch for longer you will transfer more data):
Code:
# Print the movie
        $ffmpeg_pid = open(DATA,
            "$ffmpeg -y -i ".shell_escape($filename)
            .' -s '.shell_escape("${width}x$height")
            .' -r 24 -f flv -ac 2 -ar 11025'
            .' -ab '.shell_escape("${abitrate}k")
            .' -b '.shell_escape("${vbitrate}k")
            .' /dev/stdout 2>/dev/null |'
            );
        unless ($ffmpeg_pid) {
            print header(),
                  "Can't do ffmpeg:  $!";
            exit;
        }
        print header(-type => 'video/x-flv');
        my $buffer;
        while (read DATA, $buffer, 262144) {
            print $buffer;
        }

It seems to mention variables $abitrate and $vbitrate which are set in the script as:
Code:
$width    = 320 unless ($width    && $width    > 1);
$vbitrate = 256 unless ($vbitrate && $vbitrate > 1);
$abitrate = 64  unless ($abitrate && $abitrate > 1);


So have a play around and try and find out what the bit rate actually is.

One thing that I'd like to change is the buffer size as I get the video and audio stopping approximately every 6 to 7 seconds as the transcoding trys to keep up with the playing. If you decrease this number (262144) down to 1 then the stream plays but with continuous stuttering, this suggests that transcoding on my P4 machine with 1GB of RAM takes longer than real time which I guess kinda makes sense. So I increased this number up to 462144 but this makes it take longer to start the stream and it still pauses every 6 to 7 seconds with the pauses no taking proportioanlly longer! Anyone got any suggestions on how to stop the stuttering - the only work around I have is to start the playing and rewinding it back to the beginnning again!

thanks, Mythman

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:45 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 7:27 am 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
Looking at the MPlayer debug console for an asx stream I get the following output:

Code:
Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)
TS file format detected.
VIDEO MPEG2(pid=101) AUDIO MPA(pid=102) SUB DVB(pid=103)  PROGRAM N. 1
Connecting to server
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [win32] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 00B28030]SwScaler: using unscaled yuv420p -> rgb32 special converter

VO: [directx] 720x576 => 768x576 BGRA


So it is a TS format mpeg2 file with mp2 audio! i.e. the original DVB-T recorded file! So I don't think it is being processed at all by ffmpeg! But I have no idea why after re-installing ffmpeg it should start playing?!

I don't think we shall be able to get WMP playing this though as WMP has problems displaying TS format mpeg files.

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Last edited by mythman13 on Mon Aug 04, 2008 12:45 pm, edited 2 times in total.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu