Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
J
jami-daemon
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 87
    • Issues 87
    • List
    • Boards
    • Labels
    • Milestones
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • savoirfairelinux
  • jami-daemon
  • Issues
  • #135

Closed
Open
Opened Aug 15, 2019 by Sébastien Blin@sblin
  • Report abuse
  • New issue
Report abuse New issue

Can't send video if hardware acceleration enabled

Since commit c25567fe, if "hardware acceleration" is enabled, the video on the Lenovo P51 Ubuntu 19.04 is not sent.

[sdp @ 0x7ff14c1c0200] Stream #0: not enough frames to estimate rate; consider increasing probesize
[mjpeg @ 0x7ff1340a0c00] unable to decode APP fields: Invalid data found when processing input
[1565900238.308|11497|accel.cpp         :269  ] Attempting to use hardware decoder mjpeg with vaapi
[1565900238.308|11497|media_decoder.cpp :311  ] Decoding video using MJPEG (Motion JPEG) (mjpeg)
[1565900238.308|11497|video_input.cpp   :375  ] created decoder with video params : size=1280X720, fps=30.000000
[1565900238.308|11497|sinkclient.cpp    :415  ] Start sink <local / Jami Daemon_shm_11070_0>, size=1280x720, mixer=0
[mjpeg @ 0x7ff134099e40] unable to decode APP fields: Invalid data found when processing input
[1565900238.309|11497|accel.cpp         :51   ] Found compatible hardware format for mjpeg decoder with vaapi
[mjpeg @ 0x7ff134099e40] No support for codec mjpeg profile 192.
[mjpeg @ 0x7ff134099e40] Failed setup for format vaapi_vld: hwaccel initialisation returned error.
[1565900238.309|11497|accel.cpp         :58   ] Not using hardware decoding
[1565900238.309|11499|accel.cpp         :269  ] Attempting to use hardware decoder h264 with vaapi
[1565900238.309|11499|media_decoder.cpp :311  ] Decoding video using H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (h264)
[1565900238.310|11499|sinkclient.cpp    :195  ] ShmHolder[Jami Daemon_shm_11070_1]: new sizes: f=0, a=103
[1565900238.310|11499|sinkclient.cpp    :161  ] ShmHolder: new holder 'Jami Daemon_shm_11070_1'
[1565900238.310|11499|sinkclient.cpp    :415  ] Start sink <5818368387659495 / Jami Daemon_shm_11070_1>, size=1280x720, mixer=0
[1565900238.310|11503|accel.cpp         :51   ] Found compatible hardware format for h264 decoder with vaapi
[h264 @ 0x7ff14c35bcc0] No support for codec h264 profile 578.
[h264 @ 0x7ff14c35bcc0] Failed setup for format vaapi_vld: hwaccel initialisation returned error.
[1565900238.310|11503|accel.cpp         :58   ] Not using hardware decoding
[1565900238.313|11499|sinkclient.cpp    :195  ] ShmHolder[Jami Daemon_shm_11070_1]: new sizes: f=3686400, a=7372903
[1565900238.320|11497|accel.cpp         :299  ] Attempting to use hardware encoder h264_vaapi with vaapi
[1565900238.320|11497|media_encoder.cpp :497  ] [h264_vaapi] Using 8 threads
[1565900238.320|11497|media_encoder.cpp :604  ] Using profile Constrained Baseline (242) and level 41
[1565900238.320|11497|media_encoder.cpp :552  ] Failed to set x264 preset 'ultrafast'
[1565900238.320|11497|media_encoder.cpp :555  ] Failed to set x264 tune 'zerolatency'
[1565900238.320|11497|media_encoder.cpp :761  ] H264 encoder setup: crf=30, maxrate=1200000, bufsize=2400000
[h264_vaapi @ 0x7ff134370380] No usable encoding profile found.
[1565900238.320|11497|threadloop.cpp    :46   ] [threadloop:0x7ff1b8012868] Unwaited exception: Could not open encoder

Works if I add (accel.cpp:initDevice():)

if (av_hwdevice_ctx_create(&deviceCtx_, hwType_, "/dev/dri/renderD128", nullptr, 0) >= 0)
    return true;

Related issues

Assignee
Assign to
Iteration 15
Milestone
Iteration 15
Assign milestone
Time tracking
None
Due date
None
1
Labels
bug
Assign labels
  • View project labels
Reference: savoirfairelinux/ring-daemon#135