Bug 797188 - 10-90 seconds delay before showing video
Summary: 10-90 seconds delay before showing video
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cheese
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 13:47 UTC by Carl-Johan Kjellander
Modified: 2012-06-10 23:57 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-10 23:57:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carl-Johan Kjellander 2012-02-24 13:47:47 UTC
Description of problem:
I'm trying to record video with cheese at default setting with
a Creative Live Cam Socialize HD 1080. But it just goes into an
infinite loop when you try to record.

Version-Release number of selected component (if applicable):
cheese-3.2.2-1.fc16.x86_64
But this also happened on F15

How reproducible:
100%

Steps to Reproduce:
1. Connect webcam
2. Start cheese
3. Click record video.
  
Actual results:
Cheese goes into an infinite loop and takes 100% CPU.

Expected results:
Record video.


Additional info:
Bus 001 Device 003: ID 041e:4087 Creative Technology, Ltd

Comment 1 Joachim Backes 2012-03-25 07:45:41 UTC
Having similar problems in F17 (cheese-3.3.92-1.fc17.x86_64), only 1 difference: after consuming about 45 secs full CPU time by cheese, the video appears on my screen, that means, no endless loop!

On the other hand, "mplayer tv:// -tv device=/dev/video0" shows the video immediately!

Comment 2 Joachim Backes 2012-04-13 07:38:54 UTC
(In reply to comment #0)
> Description of problem:
> I'm trying to record video with cheese at default setting with
> a Creative Live Cam Socialize HD 1080. But it just goes into an
> infinite loop when you try to record.
> 
> 
Trying to record in F17: A test shows the same behaviour as you described for the F16 version: infinite loop, nothing other (my webcam is connected before cheese is started).

Comment 3 Hans de Goede 2012-06-06 10:13:38 UTC
Hi,

Does the video preview work? IOW do you get normal video when not pressing record, but just watching the video live?

Regards,

Hans

Comment 4 Joachim Backes 2012-06-06 10:27:34 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Description of problem:
> > I'm trying to record video with cheese at default setting with
> > a Creative Live Cam Socialize HD 1080. But it just goes into an
> > infinite loop when you try to record.
> > 
> > 
> Trying to record in F17: A test shows the same behaviour as you described
> for the F16 version: infinite loop, nothing other (my webcam is connected
> before cheese is started).

I simply do: cheese  -d /dev/video0

Comment 5 Hans de Goede 2012-06-06 11:01:58 UTC
Hi,

(In reply to comment #4)
> (In reply to comment #2)
> > (In reply to comment #0)
> > > Description of problem:
> > > I'm trying to record video with cheese at default setting with
> > > a Creative Live Cam Socialize HD 1080. But it just goes into an
> > > infinite loop when you try to record.
> > > 
> > > 
> > Trying to record in F17: A test shows the same behaviour as you described
> > for the F16 version: infinite loop, nothing other (my webcam is connected
> > before cheese is started).
> 
> I simply do: cheese  -d /dev/video0

Ok, and your problem is the 45 second delay on startup, right? After that the video is shown as expected?
This likely is a g_application_register timeout. Are you running cheese under gnome, or under another desktop environment ?

Also have you installed all recent Fedora-17 updates?

Comment 6 Joachim Backes 2012-06-06 11:26:38 UTC
(In reply to comment #5)
> Hi,
> 
> (In reply to comment #4)
> > (In reply to comment #2)
> > > (In reply to comment #0)
> > > > Description of problem:
> > > > I'm trying to record video with cheese at default setting with
> > > > a Creative Live Cam Socialize HD 1080. But it just goes into an
> > > > infinite loop when you try to record.
> > > > 
> > > > 
> > > Trying to record in F17: A test shows the same behaviour as you described
> > > for the F16 version: infinite loop, nothing other (my webcam is connected
> > > before cheese is started).
> > 
> > I simply do: cheese  -d /dev/video0
> 
> Ok, and your problem is the 45 second delay on startup, right? After that
> the video is shown as expected?
> This likely is a g_application_register timeout. Are you running cheese
> under gnome, or under another desktop environment ?
> 
> Also have you installed all recent Fedora-17 updates?

1. The problem is indeed the very long delay at startup; after this delay,
   the webcam video is shown as expected
2. system is up to date
3. I'm running cheese under gnome (more exactly, gnome-3)

Comment 7 Hans de Goede 2012-06-06 13:58:15 UTC
I've prepared a gstreamer-plugins-good update for Fedora-17, which *may* fix this issue, please give it a try. Note I've also done a new cheese build fixing some (likely) unrelated issues. When testing please get both the updated cheese and the updated gstreamer-plugins-good. Download the rpms for your architecture here (for cheese you also need to download cheese-libs):
http://koji.fedoraproject.org/koji/buildinfo?buildID=322301
http://koji.fedoraproject.org/koji/buildinfo?buildID=322308

And then run as root:
rpm -Uvh *.rpm

Comment 8 Joachim Backes 2012-06-06 14:19:02 UTC
(In reply to comment #7)
> I've prepared a gstreamer-plugins-good update for Fedora-17, which *may* fix
> this issue, please give it a try. Note I've also done a new cheese build
> fixing some (likely) unrelated issues. When testing please get both the
> updated cheese and the updated gstreamer-plugins-good. Download the rpms for
> your architecture here (for cheese you also need to download cheese-libs):
> http://koji.fedoraproject.org/koji/buildinfo?buildID=322301
> http://koji.fedoraproject.org/koji/buildinfo?buildID=322308
> 
> And then run as root:
> rpm -Uvh *.rpm

I installed 

cheese-3.4.2-2.fc17.x86_64.rpm
cheese-libs-3.4.2-2.fc17.x86_64.rpm
gstreamer-plugins-good-0.10.31-2.fc17.x86_64.rpm

but there is still a delay of almost 1 minute until cheese shows the webcam video, and it still consumes a lot of CPU time until the webcam video is shown.

So my impression: the bug is not fixed :-(

Comment 9 Hans de Goede 2012-06-06 14:25:00 UTC
Joachim,

Do you have any files under: ~/Videos/Webcam, and if you do could you try moving them to some other place (or removing them altogether) ?

Regards,

Hans

Comment 10 Joachim Backes 2012-06-06 16:50:47 UTC
(In reply to comment #9)
> Joachim,
> 
> Do you have any files under: ~/Videos/Webcam, and if you do could you try
> moving them to some other place (or removing them altogether) ?
> 
> Regards,
> 
> Hans

Hans,

1. There is no ~/Videos directory
2. There is a ~/Webcam directory including some .jpg files which I removed now.
   But there is no change in the cheese behaviour after having removed the
  .jpg's: Still I see an initial cheese delay with consuming a lot of CPU.

Comment 11 Hans de Goede 2012-06-08 12:46:39 UTC
As you all have noticed, I've been working a lot on fixing cheese / gstreamer bugs the last few days, unfortunately the various bugs about cheese all contain comments about various different issues,
so in order to sort things out, I'm going to update the summary of various bugs, to make clear
which bug is about what.

Pease only add comments to bugs if the bug matches the problem you are having! If none of the below bugs match your issue, please file a new bug!

Here is a list of all bugs I'm actively working on, or which are on my todo list:

bug 797188   10-90 seconds delay before showing video
bug 810429   Cheese crashes on machines with radio/tv devices
bug 815134   Cheese not working with webcam on Thinkpad x120e / x121e
bug 815581   Could not map/get buffers from device '/dev/video0' errors when trying to record
bug 820959   Crash when selecting effects, followed by starting recording or switching resolution
bug 829957   Recorded pictures and videos do not appear in area at bottom of Cheese window
bug 830166   Long starup delay when 0 sized filed exist under Videos/Webcam

Comment 12 Fedora Update System 2012-06-08 21:11:20 UTC
gstreamer-plugins-bad-free-0.10.23-6.fc17,gstreamer-plugins-good-0.10.31-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/gstreamer-plugins-bad-free-0.10.23-6.fc17,gstreamer-plugins-good-0.10.31-3.fc17

Comment 13 Hans de Goede 2012-06-08 21:16:46 UTC
I've prepared a gstreamer-plugins-good and gstreamer-plugins-bad-free updates for Fedora-17, which should fix the delay at startup and when switching resolutions, please give them a try. Download the rpms for your architecture here:
http://koji.fedoraproject.org/koji/buildinfo?buildID=323174
http://koji.fedoraproject.org/koji/buildinfo?buildID=323190

And then run as root:
rpm -Uvh *.rpm

Comment 14 Richard Chan 2012-06-08 23:50:47 UTC
I can confirm that 45s delay is fixed with the latest two gstreamer updates

1. webcam window appears immediately
2. no GTK warnings at the CLI

Thank you!!

Comment 15 Fedora Update System 2012-06-10 01:30:23 UTC
Package gstreamer-plugins-bad-free-0.10.23-6.fc17, gstreamer-plugins-good-0.10.31-3.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gstreamer-plugins-bad-free-0.10.23-6.fc17 gstreamer-plugins-good-0.10.31-3.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9182/gstreamer-plugins-bad-free-0.10.23-6.fc17,gstreamer-plugins-good-0.10.31-3.fc17
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2012-06-10 23:57:32 UTC
gstreamer-plugins-bad-free-0.10.23-6.fc17, gstreamer-plugins-good-0.10.31-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.