[touch] Can't record camera video to a file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
Undecided
|
Zoltan Balogh | ||
qtmultimedia-opensource-src (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I can't seem to get a Camera qml object to record to a file. I get the error "Could not open file for video recording". I'm using the sample code below [1] and get the output below [2].
I'm using the camera, microphone, and video apparmor profiles. "/home/
=== [0] Environment ===
current build number: 154
device name: mako
channel: ubuntu-
last update: 2015-11-08 11:33:25
version version: 154
version ubuntu: 20151106.1
version device: 20150911
version custom: mako-1.1
=== [1] Code ===
import QtQuick 2.4
import QtMultimedia 5.4
import Ubuntu.Components 1.3
MainView {
id: root
application
width: units.gu(100)
height: units.gu(75)
Component.
}
Page {
title: i18n.tr("Testing")
VideoOutput {
source: camera
Camera {
id: camera
}
}
}
}
=== [2] Output ===
Loading module: 'libubuntu_
virtual QMediaService* AalServicePlugi
Creating a new static Service instance
virtual QMediaPlayer::State AalMediaPlayerC
virtual QMediaPlayer:
virtual QMediaPlayer:
void QMediaPlayer:
virtual void AalMediaPlayerC
PlaybackStatusC
virtual void AalMediaPlayerC
Local file URI: "file:/
setMedia() media: QUrl( "file:/
virtual QMediaPlayer:
Local file URI: "file:/
Setting media to: QUrl( "file:/
Setting player as current player
virtual void AalMediaPlayerC
Setting image resolution: QSize(3264, 1836)
Image aspect ratio: 1.77778
Setting thumbnail resolution: QSize(512, 288)
Thumbnail aspect ratio: 1.77778
virtual void AalMediaRecorde
shm_open() failed: Permission denied
void AudioCapture:
QMediaRecorder error: "Could not open file for video recording"
qml: location: /home/phablet/
** Application is now active
virtual QSGVideoNode* ShaderVideoNode
PlaybackStatus changed to: "stopped"
Rendering not enabled, returning without presenting frame
UbuntuWindow:
UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
summary: |
- [touch] Can't record video to a file + [touch] Can't record camera video to a file |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
status: | New → Confirmed |
milestone: | none → backlog |
And the same copy-paste about testing on Qt 5.5.1 in this bug :)
If 5.5.1 solves the problem, it is possible to consider trying out shipping Qt Multimedia 5.5 (only) on top of otherwise Qt 5.4.1 for stable image users. This should be possible unlike mixing some of the more core modules.