Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Video file shows only black screen

Help
PaulFXH
2007-04-23
2013-06-03
  • PaulFXH
    PaulFXH
    2007-04-23

    Hi,
    i'm using Ubuntu Edgy (6.10) on a HP Pavilion dv1000 laptop which has an integrated Intel 945GM graphics card.
    I downloaded recordMyDesktop (0.3.4) yesterday and the install (both the command line and the GUI version) went fine.
    I use mencoder to convert the resulting .ogg file to .avi but I cannot get the .avi file to show any more than a black screen. I have tried to run it in Totem and also in WMP10 (sent it over to a Windows box).

    If I run Totem from a terminal it gives the following message:

    ** Message: don't know how to handle video/mpeg, mpegversion=(int)4, framerate=(fraction)15/1, width=(int)1280, height=(int)768
    ** Message: don't know how to handle video/mpeg, mpegversion=(int)4, framerate=(fraction)15/1, width=(int)1280, height=(int)768

    I have already posted this problem in loell's thread in Ubuntuforums and he suggested reducing the size of the screen (from the widescreen 1280x768) to something around 500x500. This I did but it gave a similar message and only a black screen in Totem. Here's the error message:

    ** Message: don't know how to handle video/mpeg, mpegversion=(int)4, framerate=(fraction)15/1, width=(int)464, height=(int)512
    ** Message: don't know how to handle video/mpeg, mpegversion=(int)4, framerate=(fraction)15/1, width=(int)464, height=(int)512

    I also post here below the output I get in the terminal when I run the command line version of recordMyDesktop which may be of use in the diagnosis of the problem:

    Initial recording window is set to:
    X:0 Y:0 Width:1280 Height:768
    Adjusted recording window is set to:
    X:0 Y:0 Width:1280 Height:768
    Your window manager appears to be beryl

    Detected 3d compositing window manager.
    Reverting to full screen capture at every frame.
    To disable this check run with --no-wm-check
    (though that is not advised, since it will probably produce faulty results).

    Initializing...
    Buffer size adjusted to 4096 from 4096 frames.
    Opened PCM device hw:0,0
    Playback frequency 22050Hz is not available...
    Using 48000Hz instead.
    Recording on device hw:0,0 is set to:
    2 channels at 48000Hz
    Capturing!
    Saved 177 frames in a total of 182 requests
    Shutting down.....
    Encoding started!
    This may take several minutes.
    Pressing Ctrl-C will cancel the procedure (resuming will not be possible, but
    any portion of the video, which is already encoded won't be deleted).
    Please wait...
    [100%]
    Encoding finished!
    Wait a moment please...

    Done.
    Written 1569661 bytes
    (896366 of which were video data and 673295 audio data)

    Cleanning up cache...
    Done!!!
    Goodbye!

    Hope you can help me.
    Thanks
    Paul

     
    • What's the results when playing the initial/unmodified .ogg file?
      Does it display a black screen too?

      BTW, The output of recordMyDesktop is normal.

      John.-

       
    • PaulFXH
      PaulFXH
      2007-04-23

      Thanks for the reply. Unfortunately, I've been kicked off our Linux machine (sharing with a very angry lady) and am posting this from a Windows box.
      I didn't actually try to run the .ogg file and, for the above reasons, won't be able to check this until tomorrow.
      Nevertheless, I have made just a little progress. I installed a number of codecs relevant to Totem using this code:

      sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gxine libxine-main1 libxine-extracodecs ogle ogle-gui

      Now when I run Totem from a terminal (using the already recorded .avi files) no error message appears. Additionally, at the very start and very end of the file run (about maybe half a second or less) a very clear image of my desktop appears.

      So the problem seems to be an inadequately configured player rather than any problem with recordMyDesktop. I'm going to have to hunt around to see if there's anything else I'm missing.

       
    • PaulFXH
      PaulFXH
      2007-04-24

      OK, I've done a lot of experimenting but still can't get recordMyDesktop to work. In particular, I removed the 0.3.4 version and installed the 0.3.0 version of recordMyDesktop (command line) and the 0.3.1 version of the GTK.
      Now when I run it (GTK), I get an error message stating that the sound card cannot be opened/configured and giving a Status 768.

      What's interesting it that, I presume after installing all of the codecs, xvidcap which was similarly giving a black screen only with mplayer, now works perfectly.
      I would assume therefore that I'm almost there with your product but need a little help.
      Any clues?

      Thanks
      Paul

       
      • Version 0.3.0.* is quite old and has many bugs, at least two of
        which could block the program at startup. It also produces improperly
        interleaved streams and requires too much hard disk space for cache
        (fixed in 0.3.3).

        Please upgrade to the latest version and let me know if the
        unmodified ogg file is playable.

        That's as far as I can offer any support.
        Matters regarding conversion to other file formats, or installation
        of proper codecs needed to play these formats, are issues that fall
        completely outside the scope of this application.

        John.-

         
    • PaulFXH
      PaulFXH
      2007-04-25

      Hi John
      Thanks for your reply.
      I have now installed the 0.3.4 versions of recordMyDesktop and the gtk but I haven't made much progress.
      Here's what happens now:

      1) The "can't configure sound card" error which I was getting with the gtk version no longer appears and recording and encoding appear to take place normally.
      2) However, when I play the .ogg files in Totem, I get essentially the same behaviour as I was already getting with the .avi files (converted from the .ogg files with mencoder). That is, a clear view of my desktop shows up for less than half a second at the very start followed by a black screen until the very end of the video when, perhaps, another quarter second flash of the desktop becomes visible.
      Note that I get this behaviour even when I turn down both the video and sound qualities to 20% on the GUI and use a reduced desktop area (about 25% of the original size)
      3) When I use the command line version, again recording and encoding takes place as normal. This time, however, when I use Totem to play the .ogg files, Totem opens and closes almost immediately without showing anything. This is the same behaviour I get with xvidcap unless I reduce the size of the desktop area I'm trying to record. However, I don't know how to reduce the recorded screen area in the command line version.
      Nevertheless, I did try the command "recordmydesktop --quick-subsampling --zero-compression" which however made no differnce in that Totem again just opened and closed immediately.

      Thanks for any comments
      Paul

       
      • Hi Paul,

        Can you send me a file? This problem is one I haven't heard of
        or encountered myself before, so I need to see exactly what is it
        and examine the resulting file.

        Also, using the --quick-subsampling and --zero-compression , or a smaller area
        probably has nothing to do with the problem. The output in your first post
        had this line:
        "Saved 177 frames in a total of 182 requests "

        Which means that whatever problem there is, it has nothing to do with the CPU
        load on your computer.

        So, please try to send me an unmodified ogg file, either by linking to it
        or by direct mail at <johnvarouhakis <at> gmail <dot> <com>.
        Just a few seconds (~10) will be enough, but if you can send more,
        please do so.
        If you keep the quality at 20%, the size should be quite small.

        John.-

        P.S. The commandline options for changing the size are :
        -x and -y, to define upper left area
        -width -height, for size

        try man recordmydesktop for more information.
        Though like I said this probably doesn't have anything
        to do with your problem.

         
    • PaulFXH
      PaulFXH
      2007-04-25

      John
      I've just sent you an email with a short .ogg file that I recorded earlier. As I explained in the email, when I run this in Totem and move the window around, it may actually show the video as it should be. (I have since confirmed this since I sent the email).
      However, I also tried to run the same .ogg file in mplayer.
      Now I had earlier tried this from the GUI and got an error stating "Error opening/initializing the selected video_out (-vo) device."

      However, when I run mplayer from a terminal, it actually shows the video completely. Nevertheless, it does give the follwoing error message:

      MPlayer 2:0.99+1.0pre8-0ubuntu8 (C) 2000-2006 MPlayer Team
      CPU: Intel(R) Celeron(R) M CPU        410  @ 1.46GHz (Family: 6, Model: 14, Stepping: 8)
      CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
      Compiled with runtime CPU detection.

      Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
      Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
      Opening joystick device /dev/input/js0
      Can't open joystick device /dev/input/js0: No such file or directory
      Can't init input joystick
      Setting up LIRC support...
      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 out.ogg.13.
      [Ogg] stream 0: video (Theora v3.2.0), -vid 0
      [Ogg] stream 1: audio (Vorbis), -aid 0
      Ogg file format detected.
      VIDEO:  [theo]  832x592  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
      ==========================================================================
      Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
      AUDIO: 22050 Hz, 1 ch, s16le, 90.0 kbit/25.51% (ratio: 11248->44100)
      Selected audio codec: [vorbis] afm: libvorbis (OggVorbis Audio Decoder)
      ==========================================================================
      open: No such file or directory
      Couldn't open: /dev/mga_vid
      open: No such file or directory
      Couldn't open: /dev/mga_vid
      [VO_TDFXFB] Can't open /dev/fb0: Permission denied.
      [VO_3DFX] Unable to open /dev/3dfx.
      ==========================================================================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      [theora @ 0x87dc78c]Missing extradata!
      Could not open codec.
      VDecoder init failed :(
      Opening video decoder: [theora] Theora/VP3
      VDec: vo config request - 832 x 592 (preferred colorspace: Planar YV12)
      VDec: using Planar YV12 as output csp (no 0)
      Movie-Aspect is 1.41:1 - prescaling to correct movie aspect.
      VO: [xv] 832x592 => 832x592 Planar YV12
      Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3))
      ==========================================================================
      alsa-init: using device default
      alsa: 48000 Hz/1 channels/2 bpf/32768 bytes buffer/Signed 16 bit Little Endian
      AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
      Starting playback...
      A:   5.6 V:   3.5 A-V:  2.104 ct:  0.043  53/ 53 96% 45% 28.2% 50 0

                 ************************************************
                 **** 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
        -MPlayer 2:0.99+1.0pre8-0ubuntu8 (C) 2000-2006 MPlayer Team
      CPU: Intel(R) Celeron(R) M CPU        410  @ 1.46GHz (Family: 6, Model: 14, Stepping: 8)
      CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
      Compiled with runtime CPU detection.

      Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
      Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
      Opening joystick device /dev/input/js0
      Can't open joystick device /dev/input/js0: No such file or directory
      Can't init input joystick
      Setting up LIRC support...
      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 out.ogg.13.
      [Ogg] stream 0: video (Theora v3.2.0), -vid 0
      [Ogg] stream 1: audio (Vorbis), -aid 0
      Ogg file format detected.
      VIDEO:  [theo]  832x592  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
      ==========================================================================
      Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
      AUDIO: 22050 Hz, 1 ch, s16le, 90.0 kbit/25.51% (ratio: 11248->44100)
      Selected audio codec: [vorbis] afm: libvorbis (OggVorbis Audio Decoder)
      ==========================================================================
      open: No such file or directory
      Couldn't open: /dev/mga_vid
      open: No such file or directory
      Couldn't open: /dev/mga_vid
      [VO_TDFXFB] Can't open /dev/fb0: Permission denied.
      [VO_3DFX] Unable to open /dev/3dfx.
      ==========================================================================
      Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
      [theora @ 0x87dc78c]Missing extradata!
      Could not open codec.
      VDecoder init failed :(
      Opening video decoder: [theora] Theora/VP3
      VDec: vo config request - 832 x 592 (preferred colorspace: Planar YV12)
      VDec: using Planar YV12 as output csp (no 0)
      Movie-Aspect is 1.41:1 - prescaling to correct movie aspect.
      VO: [xv] 832x592 => 832x592 Planar YV12
      Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3))
      ==========================================================================
      alsa-init: using device default
      alsa: 48000 Hz/1 channels/2 bpf/32768 bytes buffer/Signed 16 bit Little Endian
      AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
      Starting playback...
      A:   5.6 V:   3.5 A-V:  2.104 ct:  0.043  53/ 53 96% 45% 28.2% 50 0

                 ************************************************
                 **** 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:  37.2 V:  37.9 A-V: -0.634 ct:  2.036 569/569 82% 21% 16.7% 248 0
      alsa-uninit: pcm closed

      Exiting... (End of file)

      So, this is defintely progress although I'm still unclear exactly what my problem is.

      Thanks
      Paul

       
      • Mplayer tends to spit out a lot of output. From what I see though,
        it is using xv so perhaps totem is using some other extension,
        which might be causing this weird behavior.

        But like I said in the mail, the file is ok and the problem
        relies in your configuration. And I'm almost sure that using
        metacity instead of beryl, will solve this.

        Since this has to do with configuring totem with beryl,
        you might get some better answers in beryl's or your
        distribution's forums.

        John.-

         
    • PaulFXH
      PaulFXH
      2007-04-25

      John
      Thanks for your reply above and for your email reply.
      I tried running recordMyDesktop with Beryl switched off and Metacity on, but it made little difference as far as I could see.
      Additionally, I ran mplayer with the command you gave in the email but again, no significant change was noted (although I'm not sure I would have expected any as mplayer was working fine---at least, from the terminal).
      As things stand I have concluded that the problems I had are related to the limited resources on this laptop. I'll be able to test your product on two much more powerful desktops when I get home in about 6 weeks time.
      Many thanks for your help and advice and good luck with your project.
      Paul

       
    • PaulFXH
      PaulFXH
      2007-04-27

      Just an update.
      Today, I recorded a full-screen desktop video which I found (once again) mplayer wouldn't handle (just shutdown without playing it). However, when I used the command you recommended in the email: (mplayer -vo x11 out.ogg) the fullscreen video played perfectly.
      Additionally, I tried sound for the first time with recordMyDesktop and it too worked perfectly.
      It seems therefore that ALL of the problems I had were all to do with the players rather than with recordMyDesktop.
      Thanks again for a great product and for your help.
      Paul