Little troubles with DVB-S2 via MPlayer

Hi,
I use the MPlayer already for quite a while to stream DVB-S and DVB-S2 with it. But for approximately two weeks something changed while watching HD-channels: the video track lags every few seconds; the audio track is quiet normal. However, the non-HD channels hide the problem.
E.g. while watching a German HD-channel, I find following terminal outputs:
[h264 @ 0xf2b820]mmco: unref short failure
[h264 @ 0xf2b820]reference picture missing during reorder
[h264 @ 0xf2b820]Missing reference picture
[h264 @ 0xf2b820]Increasing reorder buffer to 2
h264 @ 0xf2b820]Increasing reorder buffer to 3
[h264 @ 0xf2b820]Increasing reorder buffer to 4
[mpegts @ 0xeb3080]PES packet size mismatch
**** Your system is too SLOW to play this! ****
Specially this message I can't understand, because I'm using a CPU AMD Phenom II X4 955 3,2 GHz, 8 GB Corsair XMS3 DDR3 RAM and the graphic card ASUS GTX 460 Top GDDR5 PCIe 1024 MB. But, let's continue with the outputs:
[h264 @ 0xf2b820]concealing 880 DC, 880 AC, 880 MV errors
[h264 @ 0xf2b820]mmco: unref short failure
[h264 @ 0xf2b820]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
[h264 @ 0xf2b820]illegal short term buffer state detected
Furthermore I'm using two HHD WD20EARS, which are connected to RAID1 via 3ware 9650SE-2LP, and the DVB hardware decoder card Hauppauge WinTV-NOVA-HD-S2. My desktop environment is KDE SC 4.8.
For starting the DVB-S2 streaming I use szap-s2 -r -p -S 1 -c ~/.mplayer/hdchannels.conf "NAME-OF-THE-HD-CHANNEL" in one terminal and mplayer /dev/dvb/adapter0/dvr0 -demuxer lavf -cache 8192 in a second terminal.
I just mention all this stuff because I've absolutly no idea, what could be the reason. Before this troubles started, two weeks ago, everything worked flawlessly. Checking the /etc/log/pacman.log I can find out, that the Linux kernel was upgraded from 3.2.6-2 to 3.2.7-1 on 24th February. I'm not sure, but maybe since that time these failures appears. Presently I'm using Linux 3.2.8-1.
Has anyone an idea what might just be the cause? (Perhaps it could be a option to try the LTS-kernel?)
Last edited by maik-hro (2012-04-13 10:39:59)

So, today I just made some small tests. First of all I tried to start a HD-channel with WinTV7 on Windows 7: The channel was streamed correctly for almost one minute and than it was lost - and I had no possibilty to get it back.
After that I tried again to start the same HD-channel on Linux. I apologize in advance to the large amount of text but following is the terminal output of the first minute (finally canceled by STRG + C):
MPlayer SVN-r34799-4.6.3 (C) 2000-2012 MPlayer Team
183 audio & 398 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /dev/dvb/adapter0/dvr0.
Cache fill: 17.97% (1507328 bytes)
libavformat version 54.2.100 (internal)
libavformat file format detected.
[NULL @ 0xf50700]non-existing SPS 10 referenced in buffering period
[NULL @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 10 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 11 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 11 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 12 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 12 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 13 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 13 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 14 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 14 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS referenced
[h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
[h264 @ 0xf50700]non-existing PPS 0 referenced
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]no frame!
[h264 @ 0xf50700]mmco: unref short failure
[h264 @ 0xf50700]mmco: unref short failure
[h264 @ 0xf50700]Increasing reorder buffer to 1
[h264 @ 0xf50700]Increasing reorder buffer to 2
[h264 @ 0xf50700]Increasing reorder buffer to 3
[h264 @ 0xf50700]Increasing reorder buffer to 4
[h264 @ 0xf50700]mmco: unref short failure
[mpegts @ 0xed4800]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (mp2), -aid 0
LAVF: Program 11100
LAVF: Program 11110
LAVF: Program 11120
VIDEO: [H264] 1280x720 0bpp 50.000 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in /dev/dvb/adapter0/
Cache not responding! [performance issue]
Cache not responding! [performance issue]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.8.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
[h264 @ 0xf50700]Missing reference picture
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0xf50700]Missing reference picture
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0xf50700]Missing reference picture
[h264 @ 0xf50700]decode_slice_header error
[h264 @ 0xf50700]concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0xf50700]Increasing reorder buffer to 1
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
A:61580.2 V:61580.9 A-V: -0.639 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 50%
[h264 @ 0xf50700]reference picture missing during reorder
[h264 @ 0xf50700]Missing reference picture
[h264 @ 0xf50700]mmco: unref short failure
A:61580.3 V:61581.1 A-V: -0.742 ct: -0.004 0/ 0 ??% ??% ??,?% 2 0 50%
[h264 @ 0xf50700]Increasing reorder buffer to 2
[h264 @ 0xf50700]Increasing reorder buffer to 3
[h264 @ 0xf50700]Increasing reorder buffer to 4
[h264 @ 0xf50700]mmco: unref short failure
A:61585.5 V:61586.0 A-V: -0.430 ct: -0.490 0/ 0 86% 7% 0.7% 125 0 50%
[mpegts @ 0xed4800]PES packet size mismatch
A:61585.9 V:61586.3 A-V: -0.400 ct: -0.520 0/ 0 85% 7% 0.7% 125 0 50%
**** Your system is too SLOW to play this! ****
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
A:61589.5 V:61587.1 A-V: 2.333 ct: -0.432 0/ 0 83% 7% 0.8% 125 0 50%
[h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
A:61589.5 V:61587.2 A-V: 2.334 ct: -0.430 0/ 0 83% 7% 0.8% 125 0 50%
[h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
A:61589.5 V:61587.2 A-V: 2.332 ct: -0.428 0/ 0 83% 7% 0.8% 125 0 50%
[h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
A:61592.2 V:61589.9 A-V: 2.242 ct: -0.422 0/ 0 58% 5% 0.9% 125 0 50%
[h264 @ 0xf50700]mmco: unref short failure
A:61592.6 V:61590.2 A-V: 2.438 ct: -0.396 0/ 0 61% 5% 0.9% 131 0 50%
[h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
A:61646.7 V:61646.7 A-V: 0.000 ct: 1.818 0/ 0 62% 6% 0.8% 724 0 50%
MPlayer interrupted by signal 2 in module: decode video
MPlayer interrupted by signal 2 in module: enable_cache
A:61646.7 V:61646.7 A-V: 0.000 ct: 1.818 0/ 0 62% 6% 0.8% 724 0 50%
Exiting... (Quit)
Starting the same channel in SD I get these feedback:
MPlayer SVN-r34799-4.6.3 (C) 2000-2012 MPlayer Team
183 audio & 398 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing dvb://ARD.
dvb_tune Freq: 11836000
Cache fill: 17.58% (368640 bytes)
TS file format detected.
VIDEO MPEG2(pid=101) AUDIO MPA(pid=102) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.8.100 (internal)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
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.
[VD_FFMPEG] Trying pixfmt=1.
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.
[VD_FFMPEG] Trying pixfmt=2.
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.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x576 => 1024x576 Planar YV12
A:36766.2 V:36766.2 A-V: -0.001 ct: -0.332 19241/19241 14% 2% 0.7% 9 0 49%
I will not get rid of the feeling that it might actually be due to faulty input signals. May something's wrong with the satellite system (LNB, multi switch, something else)?

Similar Messages

  • IPhoto: trouble with sending photos via gmail.

    For some reasons, for about one or two months ago start having troubles with sending photos from iPhoto via gmail.
    It used to work perfectly, but now refuses to send photos. Pop up message says that there are some trouble with accessing accounts.
    Once I restart my computer it works well again.

    Hello ilya,
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the message?
    Then click the Show Details button & Check again.
    Mail: Can't send messages, "Cannot send message using the server smtp.xxxxx.com" alert appears...
    http://support.apple.com/kb/TS1482

  • Having a little trouble with the "export" dialog box

    Hi all,
    When I get to the export dialog box, I'm not able to type directly in the "Custom Name" space.  I have to click around and fiddle with some of the drop-down menus (and then get back to the "name format" that I like) and only then can I triple-click or backspace on the former name and input a new name in the "Custom Name" blank.
    Also, the "Export Versions" tab is highlighted, but hitting the "return" key doesn't make the export happen.  I have to mouse up to that button and click it that way.
    Is anyone else having any trouble with inputting information on the export page?  And ideas?
    Thanks as always.

    Yes, the name format is Custom Name with Index.  But when I click in the field, I can't edit it.
    Mark,
    For me, this preset is working well. Have you checked, if the preset for  "Custom Name with Index" correct?  You can verify it, by setting the "File Naming" format to "Edit". The preset should look like this:
    I'd try to edit the preset, save it, and edit it back, to create a new preset file.
    If that does not help, remove the user Aperture User Preferences, as described in this document:  Aperture 3: Troubleshooting Basics
    And as I said, hitting "return" doesn't start the export.
    That also your "Export" button is not responding to return, even if it is highlighted in blue, is a sign, that your preferences file might have a problem.
    Regards
    Léonie

  • Trouble with "incomplete transfers" via Cyberduck

    Coincidentally or not, since upgrading to iWeb 09 I've had a lot of trouble uploading my updated pages to the website. I haven't made any huge changes to the pages and they're very light-duty pages (all text plus one low-res photo per page). . they just keep coming back as Incomplete Transfers when I try to upload them via Cyberduck.
    Should I try another FTP? Is this a common Cyberduck problem?
    All thoughts are appreciated,
    roxpat

    After two days of messing with it. . .and posting the above message. . .it suddenly started working just fine. Go figure.

  • A little trouble with a Zen X

    I recently attempted to put some files on my Nomad Zen Xtra with the most recent PlaysForSure firmware after a format of my PC and a fresh driver install, but when I attempted to do so, the Creative transfer software was not working properly. As a result, I attempted to use Windows Media Player, which worked, but it screwed up my file structure a bit. I decided to go ahead and format the device and then transfer all of my files back to it via Windows Media Player, but in the process of transfering files the battery died to the unit (charger came unplugged). I proceeded to reboot the device and try to continue the process, but for some reason the computer would not let me connect to the device. When I plugged it in it came up as an MTP device in Device Manager (detected and installed), but none of the connection software actually detected the unit as present. I then decided I would reset the OS on the device so I booted in recovery mode and did so. Upon reconnecting the device, however, I found that even the firmware patch would not validate the presence of the device. I then uninstalled the drivers and reinstalled to try again, but got nowhere. At that point I decided I might try the *old* firmware, but once again I got the same problem- "not detected".
    When it's plugged into the computer Device Manager shows the device and XP's "Autoplay" dialog comes up asking me how I'd like to add files, but of course none of the options it shows me are actually operational. I sent a letter to tech support, but I'm not exactly hopeful that they'll be any use whatsoever. If you guys have some advice, I'd greatly appreciate it.

    I've had connection problems before, but re-installing all of the software components of the zen xtra fixed them. Aren't you using the Creative Software to transfer songs onto your player?
    I didn't think it worked with anything else.

  • Still having a little trouble with template

    Hi,
    Can anyone please take a look at the following page and tell
    me what's going on with my faux columns?
    BPI
    Test Site - Activities Page. Since my pages are varying heights
    I eliminated the "page height" command for my center content div,
    using the "clearer" convention in my style sheet. Seems to work
    great in IE but I'm having a problem with FF and Netscape. I'm
    thinking that the Code isn't quite right somewhere in my template
    page (pasted below) but I'm not sure. Any help appreciated. Thanks

    It works to clear the floats BEFORE the containing div is
    closed - that's
    what forces the container to re-contain all of the stuff
    that's floated.
    Your code was clearing the float AFTER closing the container,
    and that
    doesn't do the job.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "webmom24" <[email protected]> wrote in
    message
    news:e86m4j$es$[email protected]..
    > Thanks Gary. That worked. Of course, I'm curious now why
    the code works
    > fine as
    > is on the home page (with it in the other position). Can
    you tell me what
    > this
    > little bit of code does? I'd like to try and understand
    it... right now
    > it's a
    > mystery to me why it works LOL. Thanks again.
    >
    > Maureen
    >

  • Having a little trouble with GridBagLayout.

    OK. What i basically need to do is have JPanel (GridBagLayout) with a JTextField covering cells from 0-3, then have a JButton in cell 4. This is all on one line.
    Because i am only adding two components to the JPanel, and asking it to act as though it had 5, i guess it doesn't like it. I think it should work like that but what can i do :) ...
    Help would be appreciated, thanks.

    GridBagLayout doesn't size the components in it based on the number of cells the component occupies (except relative to other rows/columns which you don't have). It sizes on the preferred size of the component along with the fill and weight of the GridBagConstraints for each component.
    I usually set preferred size of the textfield to 4 times the button, set the weightx of both components to 1.0 and then set the fill for both components to HORIZONTAL.
    You could also set the preferred sizes the same, the weightx of the textfield to 4.0, the weightx of the button to 1.0 and the fill for both to HORIZONTAL.

  • I am having a little trouble with classes

    I can not figure out what is wrong or missing from this code because I keep getting "declare in file" error code
    this is the simple code
    import java.util.Scanner; //program uses class Scanner
    import java.text.NumberFormat;//used to format currency
    import java.util.Locale;
    public class Employee
    public Employee();
    //main method begins execution of Java application
    //create Scanner to obtain input from command window
    Scanner input=new Scanner (System.in);
    //varibles declared
    String Emp_name;//Stores employee name
    double Hours_worked;///Stores hours worked
    double PayRate;//Stores PayRate
    System.out.print("Enter Employee;s name:");//prompt
    Emp_name=input.nextLine();//read employee's name entered
    System.out.print("Enter the pay rate of the Employee:");//prompt
    PayRate=input.nextDouble();//read the payrate of employee
    System.out.print("Enter the Employee's Hours worked:");//prompt
    Hours_worked=input.nextDouble();//read hourlyrate of pay entered by user
    NumberFormat nf=NumberFormat.getCurrencyInstance(Locale.US);
    System.out.printIn("Employee" + Emp_name);//display employee_Name
    System.out.printf("Employee's Pay: $" +nf.format(Hours_worked*PayRate));//display GPA
    }

    masterbuild,
    Firstly, post your code between code tags.
    [code]... your code goes here ...[/code]
    so it looks like thisdouble check it using preview before you commit the post.
    Now, Please don't be offended, That's not a bad first try, but it's just all wrong, which is part of the learning process.
    Here's a list the problems I can see with that code, and what to do about them... if you address these problems you should end up with a working program.
    Number 1
    public class Employee
    public Employee();
    //main method begins execution of Java application
    {As The Pair of Condiments and The Sick Brainiac have already stated... lose the semicolon!... it should look like this...
    public class Employee
      public Employee() {
    Number 2
    //main method begins execution of Java application
    What main method? I don't see any main method... Where's your main method? It should look like this
      public void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("employee's name : ");
        String name = input.nextLine();
        System.out.print("hourly rate : ");
        double hourlyRate = input.nextDouble();
        System.out.print("hours worked : ");
        double hoursWorked = input.nextDouble();
        System.out.printf("%s's gross pay is $%s\n", name, NUMBER_FORMATTER.format(hoursWorked*hourlyRate));
      }* The convention is to use camelCase (hump in the middle) for variable names, and CapitalCase for class names. See http://java.sun.com/docs/codeconv/
    Number 3
    The numberFormatter would best be declared as a class attribute, so you can reuse whenever you print a currency amount... as in...
    public class Employee
      private static final NumberFormat NUMBER_FORMATTER = NumberFormat.getCurrencyInstance(Locale.US);
      public Employee() {
        ....Also... these three comments worry me a bit...
    // Stores employee name
    // Stores hours worked
    // Stores PayRate
    None of these values are being "stored". These three values are local variables, which exist only while the method (actually block) in which they are declared is executing... after that they are "forgotten". To a programmer the word "store" implies that the values are being persisted in a file, or database... that is the values are being stored in any fashion for reuse by a subsequent execution of this program, or indeed another program. I think it's just that you don't know the lingo yet, but I just wanted to be sure that you know that these values will be forgotten as soon as the main method is finished.
    Cheers. Keith.

  • Trouble with LR download via Cloud Membership

    I just purchase the creative cloud membership and am trying to download lightroon.  When i click on the blue download bar, a Cloud pop-up appears, that lists which programs are to date, then lists all Apps, but LR is not an option on this list??????

    Lightroom is close to the bottom of along list of applications. So, scroll right to bottom, but remember to first togle All Apps to show the new Apps list

  • Capturing Troubles with Premiere Pro CS5.5

    Hello!
    I am fairly new to Premiere and I'm having a little trouble with the capturing option.
    I have Premiere Pro CS5.5, a MacBook Pro (13 inch), a Sony HDR-CX 110 camera connected to the MacBook with an HDMI cable and a HDMI displayport adapter.
    I think I have everything I need to get it connected but it seems that whenever I select capture the window that pops up tells me that my device is offline.
    I have a 13 inch MacBook Pro. I bought it in August of 2010. I have a Sony HDR-CX 110 camera. I have it hooked up to a HDMI Displayport adapter via a HDMI cable and the camera is plugged into the wall and turned on playback mode. I know the displayport works because I have a dual monitor set up and the adapter works because I have connected my TV to my Mac so there should be nothing wrong with the adapters and ports. But for some reason the camera doesn't appear to show up whenever I try to do this capturing option.
    The camera's box does say "compatible with iMovie" and I have been able to import footage I collected without the camera plugged in to the computer, such as a guitar performance and an interview. That process was pretty simple and was connected to my computer via a USB.
    Now, I think that maybe I'm just trying to do something more advanced with the camera and the camera can't do it. But if I am wrong (and I hope I am) I don't where to go from here? Any help would be so greatly appreciated!
    Thank you =)

    That will only work if your camera HAS a firewire connection... I think for Mac it is call iLink, but since I'm Win I'm not sure about that
    Just do what was said and copy the folder to your hard drive and import from there

  • Trouble with MacBook Pro finding AirPort networks

    I recently bought a new (refurbished) MacBook Pro (15", 1.83GHz), to replace my old iBook, which was one of the early white models, circa 2001.
    Everything about my new computer is wonderful, of course, except that every time I boot up, wake from sleep, or turn on the AirPort, it takes up to a full minute for the AirPort to find any open networks. This happens at school (where there are AirPort base stations all over the place), at home (where we have a Belkin router, and several neighbors have others), and at my parents' house (where they have a linksys router). It doesn't seem to matter whether the networks use encryption or not, nor how close or far I am from the nearest router. If I know the name of a nearby open network and type it in, I can get it, usually. On my old iBook, I had a little trouble with some of the networks at school sometimes, but never with this kind of delay across the board, and certainly never at home nor at my parents'.
    Also, at home, when the the AirPort finally does find the available networks, it NEVER chooses my router first, even though it's the only one in the neighborhood that I listed under "Preferred Networks."
    I've read some similar posts, dealing with problems with accessing encrypted networks, but nothing seemed to address my particular issue. It might be a defect with the AirPort or firmware, but I wanted to check, first.
    (Oh, and I'm not a complete newbie, but tech-speak often goes over my head. Please keep it simple.)
    Thanks!

    This is how I fixed the problem on my MBP.
    Go to Macintosh HD > Library > Preferences
    Delete the folder SystemConfiguration
    Go to System Prefrences > Network > Show+Network Port Configuration. Check Airport and Built-in Ethernet and make sure Airport is on the top of the list.
    Reconfigure your wep passwords and it should work. Worked for me. Also, you will have to redo your power settings.
    Regards,
    David Rodriguez

  • Hi! I'm just having a little trouble when it comes to battery charging of my iPhone 5 with its new iOS 7! It doesn't indicates that the battery is fully charge unlike the old version of iOS! They said it should be pulsating but it's not

    Hi! I'm just having a little trouble when it comes to battery charging of my iPhone 5 with its new iOS 7! It doesn't indicates that the battery is fully charge unlike the old version of iOS! I already read some reviews and discussion about this. They said that the lightning bolt should pulsate when charging but it's not!

    Thanks for the replies. It took a while not hearing anything so thought I was alone. I have done many of the suggestions already. The key here is that it occurs on both phones with apps, and phones still packaged in a box.
    A Genius Bar supervisor also checked his Verizon data usage log and found the same 6 hour incremental use. Suprisingly, he did not express much intrigue over that. Maybe he did, but did not show it.
    I think the 6 hour incremental usage is the main issue here. I spoke with Verizon (again) and they confirmed that all they do is log exactly when the phone connected to the tower and used data. The time it records is when the usage started. I also found out that the time recorded is GMT.
    What is using data, unsolicited, every 6 hours?
    Why does it change?
    Why does it only happen on the iPhone 5 series and not the 4?
    Since no one from Apple seems to be chiming in on this, and I have not received the promised calls from Apple tech support that the Genius Bar staff said I was suppose to receive, it is starting to feel like something is being swept under the rug.
    I woke up the other day with another thought ... What application would use such large amounts of data? Well ... music, video, sound and pictures of course. Well ... what would someone set automatically that is of any use to them? hmmm ... video, pictures, sound. Is the iPhone 5 succeptible to snooping? Can an app be buried in the IOS that automatically turns on video and sound recording, and send it somewhere ... every 6 hours? Chilling. I noted that the smallest data usage is during the night when nothing is going on, then it peaks during the day. The Genius Bar tech and I looked at each other when I drew this sine wave graph on the log print outs during an appointment ...

  • I'm having trouble with back to my MAC.  I had everything working on my home wifi network but now I am at my daughter's house and trying to connect via a verizon hotspot wifi connection.  I'm wondering if the Verizon hookup is a problem.

    I'm having trouble with back to my MAC.  I had everything working on my home wifi network but now I am at my daughter's house and trying to connect via a verizon hotspot wifi connection.  I'm wondering if the Verizon hookup is a problem.

    I finally figured it out.  Needed to update her Airport firmware and allow guest access, and also changed Sharing preferences to Allow Access for All Users.

  • I'm having trouble with my iCloud photos. I thought i could be a little sneaky and take a photo of my photos that were more than 30 days old, so they would be uploaded along with my new photos. that part worked, but i can't upload them to Snapfish?!

    i'm having trouble with my iCloud photos. I thought i could be a little sneaky and take a photo of my photos that were more than 30 days old, so they would be uploaded along with my new photos. that part worked, but i can't select them to upload them to Snapfish?! Any thoughts? I'm bummed. I've got a few hundred photos on my iPhone that I'd like to move seemlessly - or somehow at all.

    hopefully something in here is helpful?
    http://support.apple.com/kb/HT4486

  • I've been having trouble with in getting iMessage to send messages. I decided to connect to my VPN (along with wifi) and it worked. Why won't it work via my wifi connection alone?

    I've been having trouble with in getting iMessage to send messages. I decided to connect to my VPN (along with wifi) and it worked. Why won't it work via my wifi connection alone?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

Maybe you are looking for

  • ProSelect no longer allowed access to Lr catalog (ver. 3.0+)

    It appears that Adobe have changed the  functionality of Lightroom 3 so that it is no longer possible to open  Raw images in Lightroom 3 from ProSelect (any version). Previous versions of Lightroom allowed ProSelect to pass a list of  image file loca

  • Date parameters using MDX query

    Hello experts, Not sure if this question falls under SSAS or SSRS but I'm writing it here for now and hopefully get the answer. I'm using SSAS cube to develop a report using SSRS and this is the first time I'm doing it. I want to filter records based

  • Adobe mercury playback engine question

    Hi all. Firts of all, sorry for the forum nickname, the registration process drove me crazy with the unavailable names... :-) I own a post production studio and one of my  workstations is a quad core (9400 Intel cpu) equipped with 4GBs of DDR3  RAM a

  • Trick to group multiple albums into one?

    Ive got about 20 albums from one artist and it takes up a huge amount of space in the album view. Is there a trick, other than changing all the names of the album to group them all into one?

  • Faces - selectBooleanRadio - how to wire up bindings?

    Anybody got any idea how to wire up a Faces selectBooleanRadio to write set literal values through to a binding? The doco examples show you how to configure selectBooleanRadio components in a group, so this allows you to have more than 2 selectBoolea