JACK audio source: "Improper window specification" (exit status 2816)

Bug #1037402 reported by ^rooker
52
This bug affects 12 people
Affects Status Importance Assigned to Milestone
gtk-recordmydesktop
New
Undecided
Unassigned
gtk-recordmydesktop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

It seems that running rMD (v0.3.8) on Oneiric, using JACK as audio input is broken:

*) If JACK is selected as audio input, clicking the "record" button immediately returns with the message:
"exited with status: 2816. Description: Improper window specification."

*) I've found a HowTo-website describing the exact same behavior:
(http://angel-de-vicente.blogspot.co.at/2011_01_01_archive.html)

"[...] you can click "Use jack for audio capture", but with this option enabled I always got errors like "... exited with status: 2816. Description: Improper window specification.", so I decided to record the sound (with Ardour) and the video (with recordMyDesktop) separately, and then mix it with Kdenlive."

Unfortunately, I want to use rMD to record Ardour itself - so I can't easily use his workaround.

*) With rMD set to record the regular "DEFAULT" device (without JACK), the video transcoding (after stopping the recording), shows the progress-bar - staying at 0% infinitely. Until I quit "qjackctl". Then the rMD transcoding window closes itself, and outputs a broken .ogv file.

*) When restarting the rMD GTK-GUI with "JACK" enabled as audio source, clicking "record", returns the following error message:
"exited with status: 4352. Description: Port registration/connection failure."

*) rMD also does not show up as JACK client at all.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtk-recordmydesktop (Ubuntu):
status: New → Confirmed
Revision history for this message
saz (sprateek2-d) wrote :

Exactly the same what my rMD is showing.

Revision history for this message
Bug Reporter 11 (bugreporter11) wrote :

I confirm this bug. I only have JACK available for sound. My system (KX Studio / Kubuntu 12.04) doesn't have PulseAudio installed so I have to use JACK.

Revision history for this message
Steven Hilton (mshiltonj) wrote :

I'm still seeing this on 12.04. Does anyone know if this is still an issue on 14.04?

Revision history for this message
Nick (weegreenblobbie) wrote :

Yes, I'm running Ubuntu 14.04 with recordMyDesktop v0.3.8.1 and I ran into the same error message.

Revision history for this message
Nick (weegreenblobbie) wrote :

Here's a bread crumb. I edited /usr/lib/python2.7/dist-packages/recordMyDesktop/rmdTrayIcon.py to dump the full command-line:

$ recordmydesktop -o /home/nhilton/Desktop/rmd1.ogv --fps 30 -x 527 -y 320 --width 877 --height 571 --channels 1 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --overwrite --use-jack system:playback_1 system:capture_1

> Window size specification out of bounds!(current resolution:1920x1080)

The windows parameters x, y, width, height all looked okay to me. So next I tried to running without any windows parameters:

$ recordmydesktop -o /home/nhilton/Desktop/rmd1.ogv --fps 30 --channels 1 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --overwrite --use-jack system:playback_1 system:capture_1
> Initial recording window is set to:
> X:-5872 Y:0 Width:7792 Height:1080
> Adjusted recording window is set to:
> X:-5872 Y:4 Width:7792 Height:1072
> Your window manager appears to be GNOME Shell
>
>
> Detected 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...
> jack_client_new: deprecated
> Cannot connect input port recordMyDesktop-481:input_1 to system:playback_1

The window dimensions look odd, but then we get the underlying JACK error.

Revision history for this message
Randy (wigglebit) wrote :

The window size out of bounds is caused by a bug at rmd_parseargs.c:197
That line should read something like...

          POPT_ARG_STRING | RMD_USE_JACK_EXTRA_FLAG, &arg_return->use_jack, RMD_ARG_USE_JACK,

This is only an issue if you use the --use-jack argument

There is also another typo at rmd_parseargs.c:115
And that line should read...

        { "y", 'y',

I checkout the latest code, made these changes, compiled and everything worked. I'm too lazy to make an official patch.

Enjoy

Revision history for this message
Randy (wigglebit) wrote :

Actually the bug is in recordmydesktop.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.