Bug 44260

Summary: [Qt] video tag doesn't work in QtWebKit from Qt 4.7-git
Product: WebKit Reporter: Bernhard Rosenkraenzer <bero>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: benjamin
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
URL: http://chaos.troll.no/~tavestbo/webkit/mediaelement/

Bernhard Rosenkraenzer
Reported 2010-08-19 07:08:25 PDT
With the version of QtWebKit included in the Qt 4.7 git repository, the video tag doesn't work. When going to what appears to e.g. http://chaos.troll.no/~tavestbo/webkit/mediaelement/ the poster is shown, but the video won't play. There's minor differences depending on which phonon backend is being used: phonon-gstreamer: The video simply doesn't play, no indication of what's going on and no indication of what's going on on the console. phonon-xine: The video doesn't play with no indication of what's going on Spewage on the console: params.c:OpenConfFile() - Unable to open configuration file "/home/arklinux/.smb/smb.conf": No such file or directory params.c:OpenConfFile() - Unable to open configuration file "/home/arklinux/.smb/smb.conf.append": No such file or directory Cannot connect to server socket err = Connection refused Cannot connect to server socket no message buffer overruns phonon-mplayer: browser crashes with an assert error inside phonon Spewage on console: setAspectRatio Aspect ratio: 0 objectDescriptionIndexes objectDescriptionProperties objectDescriptionIndexes objectDescriptionProperties subtitleAdded subtitleChanged New current subtitle: "None" startConnectionChange startConnectionChange Node: Phonon::MPlayer::MediaObject startConnectionChange Node: Phonon::MPlayer::VideoWidget connectNodes Phonon::MPlayer::MediaObject Phonon::MPlayer::VideoWidget endConnectionChange endConnectionChange Node: Phonon::MPlayer::MediaObject endConnectionChange Node: Phonon::MPlayer::VideoWidget startConnectionChange startConnectionChange Node: Phonon::MPlayer::MediaObject startConnectionChange Node: Phonon::MPlayer::AudioOutput connectNodes Phonon::MPlayer::MediaObject Phonon::MPlayer::AudioOutput endConnectionChange endConnectionChange Node: Phonon::MPlayer::MediaObject endConnectionChange Node: Phonon::MPlayer::AudioOutput setSource Source: "http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v" loadMedia "http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v" sendMPlayerCommand Error: MPlayer process not running resizeEvent Resize: QSize(0, 0) resizeEvent Resize: QSize(640, 426) MPlayerConfig Config file: "/home/arklinux/.config/phonon-mplayer/phonon-mplayer.conf" MPLAYER start Process started: "mplayer" "-identify -frames 0 -vo null -ao null http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v" MPLAYER MPlayer UNKNOWN-4.5.1 (C) 2000-2010 MPlayer Team MPlayer is from "2010" MPLAYER 159 audio & 341 video codecs MPLAYER Playing http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v. MPLAYER Resolving chaos.troll.no for AF_INET6... MPLAYER parseLine Resolving: "chaos.troll.no for AF_INET6" MPLAYER Couldn't resolve name for AF_INET6: chaos.troll.no MPLAYER Resolving chaos.troll.no for AF_INET... MPLAYER parseLine Resolving: "chaos.troll.no for AF_INET" MPLAYER Connecting to server chaos.troll.no[62.70.27.122]: 80... MPLAYER parseLine Connecting: "chaos.troll.no[62.70.27.122]: 80" stateChangedInternal BufferingState MPLAYER Cache size set to 320 KBytes MPLAYER Cache fill: 0.00% (0 bytes) MPLAYER parseLine Cache %: 0 "0.00" MPLAYER libavformat file format detected. MPLAYER ID_AUDIO_ID=0 MPLAYER ID_AID_0_LANG=eng MPLAYER parseLine Audio id: 0 attr: "LANG" value: "eng" audioChannelAdded MPLAYER [lavf] stream 0: audio (aac), -aid 0, -alang eng MPLAYER ID_VIDEO_ID=0 MPLAYER parseLine Video: true MPLAYER [lavf] stream 1: video (h264), -vid 0 MPLAYER VIDEO: [H264] 480x200 24bpp 23.976 fps 756.7 kbps (92.4 kbyte/s) MPLAYER Clip info: MPLAYER major_brand: M4VP MPLAYER ID_CLIP_INFO_NAME0=major_brand MPLAYER ID_CLIP_INFO_VALUE0=M4VP MPLAYER minor_version: 1 MPLAYER ID_CLIP_INFO_NAME1=minor_version MPLAYER ID_CLIP_INFO_VALUE1=1 MPLAYER compatible_brands: M4VPM4A mp42isom MPLAYER ID_CLIP_INFO_NAME2=compatible_brands MPLAYER ID_CLIP_INFO_VALUE2=M4VPM4A mp42isom MPLAYER copyright: © 2010 Sony Pictures Classics. All Rights Reserved MPLAYER parseLine Clip copyright: "© 2010 Sony Pictures Classics. All Rights Reserved" MPLAYER ID_CLIP_INFO_NAME3=copyright MPLAYER ID_CLIP_INFO_VALUE3=© 2010 Sony Pictures Classics. All Rights Reserved MPLAYER comment: Encoded and delivered by trailers.apple.com MPLAYER parseLine Clip comment: "Encoded and delivered by trailers.apple.com" MPLAYER ID_CLIP_INFO_NAME4=comment MPLAYER ID_CLIP_INFO_VALUE4=Encoded and delivered by trailers.apple.com MPLAYER title: Micmacs MPLAYER parseLine Clip title: "Micmacs" MPLAYER ID_CLIP_INFO_NAME5=title MPLAYER ID_CLIP_INFO_VALUE5=Micmacs MPLAYER ID_CLIP_INFO_N=6 MPLAYER ID_FILENAME=http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v MPLAYER ID_DEMUXER=lavfpref MPLAYER ID_VIDEO_FORMAT=H264 MPLAYER ID_VIDEO_BITRATE=756696 MPLAYER ID_VIDEO_WIDTH=480 MPLAYER parseLine Video width: 480 MPLAYER ID_VIDEO_HEIGHT=200 MPLAYER parseLine Video height: 200 MPLAYER ID_VIDEO_FPS=23.976 MPLAYER parseLine Video FPS: 23.976 MPLAYER ID_VIDEO_ASPECT=0.0000 MPLAYER parseLine Video aspect: 2.4 MPLAYER ID_AUDIO_FORMAT=MP4A MPLAYER ID_AUDIO_BITRATE=127944 MPLAYER ID_AUDIO_RATE=44100 MPLAYER ID_AUDIO_NCH=2 MPLAYER ID_START_TIME=0.00 MPLAYER ID_LENGTH=128.17 MPLAYER parseLine Media total time: 128169 MPLAYER ID_SEEKABLE=1 MPLAYER parseLine Media seekable: true MPLAYER ID_CHAPTERS=0 MPLAYER ========================================================================== MPLAYER Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family MPLAYER Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) MPLAYER ========================================================================== MPLAYER ID_VIDEO_CODEC=ffh264 MPLAYER ========================================================================== MPLAYER Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding) MPLAYER AUDIO: 44100 Hz, 2 ch, s16le, 127.9 kbit/9.07% (ratio: 15993->176400) MPLAYER ID_AUDIO_BITRATE=127944 MPLAYER ID_AUDIO_RATE=44100 MPLAYER ID_AUDIO_NCH=2 MPLAYER Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)) MPLAYER ========================================================================== MPLAYER AO: [null] 44100Hz 2ch s16le (2 bytes per sample) MPLAYER ID_AUDIO_CODEC=faad MPLAYER Starting playback... MPLAYER Exiting... (End of file) MPLAYER parseLine End of file detected MPLAYER ID_EXIT=EOF MPLAYER finished Bytes still available: 0 MPLAYER finished Process ended: exitCode: 0 exitStatus: 0 MPLAYER finished MPlayer process exited normally stateChangedInternal ErrorState play subtitleAdded subtitleChanged New current subtitle: "None" MPLAYER readMediaSettings MPLAYER MPLAYER MPLAYER MPLAYER start Process started: "mplayer" "-noquiet -slave -identify -msglevel demux=6 -framedrop -nokeepaspect -zoom -colorkey 0x020202 -monitorpixelaspect 1 -contrast 0 -brightness 0 -hue 0 -saturation 0 -volume 100 -prefer-ipv4 -ass -embeddedfonts -nomouseinput -sub-fuzziness 1 -input nodefault-bindings:conf=/dev/null -include ~/.mplayer/config -wid 18875233 http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v" MPLAYER MPlayer UNKNOWN-4.5.1 (C) 2000-2010 MPlayer Team MPLAYER 159 audio & 341 video codecs MPLAYER Playing http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v. MPLAYER Resolving chaos.troll.no for AF_INET... MPLAYER parseLine Resolving: "chaos.troll.no for AF_INET" MPLAYER Connecting to server chaos.troll.no[62.70.27.122]: 80... MPLAYER parseLine Connecting: "chaos.troll.no[62.70.27.122]: 80" stateChangedInternal BufferingState MPLAYER Cache size set to 320 KBytes ASSERT: "streamInterface" in file phonon/phonon/abstractmediastream.cpp, line 100 phonon-vlc: video area remains black, but the controls look like something is playing - e.g. the time indicator goes all the way to 2:08 Spewage on console: add aout default add aout alsa add aout oss add aout aout_file add aout aout_sdl add aout dummy setSource setSource yeap, 'tis a local file or url "http" stateChangedInternal newState: "BufferingState" previousState: "StoppedState" loadMediaInternal "http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v" stateChangedInternal newState: "StoppedState" previousState: "BufferingState" stateChangedInternal newState: "PausedState" previousState: "StoppedState" resizeEvent QSize(300, 150) setVolume Volume changed to - 100 From 50 resizeEvent QSize(640, 426) play updateMetaData(): artist: updateMetaData(): title: http://chaos.troll.no/~tavestbo/webkit/mediaelement/micmacs.sd.m4v stateChangedInternal newState: "PlayingState" previousState: "PausedState" updateVolume Volume changed to - 50 From 50 updateDuration Length changing from 0 to 128174 updateMetaData(): artist: updateMetaData(): title: Micmacs stateChangedInternal newState: "PlayingState" previousState: "PlayingState" ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2229:(snd_pcm_open_noupdate) Unknown PCM default [0x7f042c006af0] main audio output error: Potential ALSA version problem [0x7f042c006af0] main audio output error: VLC failed to initialize your sound output device (if any). Please update alsa-lib to version 1.0.23-2-g8d80d5f or higher to try to fix this issue. ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2229:(snd_pcm_open_noupdate) Unknown PCM default videoWidgetSizeChanged video width 480 height: 199 stateChangedInternal newState: "PlayingState" previousState: "PlayingState" [0xe3f6b0] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1200 ms) [0xe3f6b0] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1277 ms) [0xe3f6b0] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1448 ms) [0xe3f6b0] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 5273 ms) Missing reference picture decode_slice_header error Missing reference picture decode_slice_header error mmco: unref short failure I have verified that phonon and the backends in general do work (e.g. downloading the video referenced by the page and playing it with DragonPlayer works with all backends) - just not inside QtWebKit. On a side note: the styling given in the page ("background-color:magenta") is shown initially, but as soon as the poster image is loaded, the colors on the controls revert to their usual transparent gray.
Attachments
Benjamin Poulain
Comment 1 2010-11-12 08:27:56 PST
We are working on new backends based on QtMultimedia. Hopefully this will solve the issues with the media elements on Linux. I close the task as we are not actively maintaining the Phonon backend anymore. If you want to make patches just comment and we'll reopen it.
Note You need to log in before you can comment on or make changes to this bug.