Question / Help "An unspecified error orrcured while recording"

cRaZy-bisCuiT

New Member
When I try to record I get the following message:

Error Message
Code:
An unspecified error orrcured while recording

Terminal output
Code:
info: video settings reset:
   base resolution:  1920x1080
   output resolution: 1920x1080
   downscale filter:  Bicubic
   fps:  60/1
   format:  NV12
info: Settings changed (video)
info: ------------------------------------------------
warning: rtmp-common.c: [initialize_output] Could not find service ''
warning: Failed to open video codec: Invalid argument
warning: ffmpeg_data_init failed
info: ==== Recording Stop ================================================


Where could I find any additional logs? Maybe from FFMPEG? I have no idea what's happening there.


Settings
Type: Custom Output (FFMPEG)
Container Format: flv
Video Bitrate: 3500
Video Encoder: h264_vaapi (libx264)

System
Code:
inxi -Fz
System: Kernel: 4.9.0-1-MANJARO x86_64 (64 bit)
  Desktop: Xfce 4.12.3 Distro: Manjaro Linux
Machine:  Device: desktop Mobo: ASRock model: Z77 Pro3
  BIOS: American Megatrends v: P2.10 date: 07/12/2013
CPU:  Quad core Intel Core i5-3570K (-MCP-) cache: 6144 KB
  clock speeds: max: 4200 MHz 1: 1928 MHz 2: 1927 MHz 3: 1990 MHz
  4: 2042 MHz
Graphics:  Card-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
  Card-2: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480]
  Display Server: X.Org 1.18.4 driver: amdgpu
  Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
  GLX Renderer: Gallium 0.4 on AMD POLARIS10 (DRM 3.8.0 / 4.9.0-1-MANJARO, LLVM 3.9.0)

OBS-Log
Code:
~                                                                              
▶ obs
qt5ct: using qt5ct plugin
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 4 logical cores
info: Processor: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
info: Physical Memory: 7874MB Total
info: Kernel Version: Linux 4.9.0-1-MANJARO
info: Distribution: "Manjaro Linux" Unknown
info: Portable mode: false
QObject::connect: invalid null parameter
info: OBS 0.16.6-1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 44100
    speakers:        2
info: OpenGL version: 4.3 (Core Profile) Mesa 13.0.2

info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bilinear
    fps:               60/1
    format:            NV12
info: ---------------------------------
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
info: NVENC supported
info: ---------------------------------
info:   Loaded Modules:
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-jack.so
info:     linux-decklink.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info: ==== Startup complete ===============================================
error: Service '' not found
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 9.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
info: pulse-input: Server name: 'pulseaudio 9.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1b.0.analog-stereo'
info: Switched to scene 'Scene 1'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene 1':
info:     - source: 'Window Capture (Xcomposite)' (xcomposite_input)
info: ------------------------------------------------
qt5ct: D-Bus system tray: no
qt5ct: custom style sheet is disabled
info: Update check: last known remote version is 0.4.0
info: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
info: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/
Attempted path: /usr/share/obs/obs-studio/themes/
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               60/1
    format:            NV12
info: Settings changed (video)
info: ------------------------------------------------
warning: rtmp-common.c: [initialize_output] Could not find service ''
warning: Failed to open video codec: Invalid argument
warning: ffmpeg_data_init failed
info: ==== Recording Stop ================================================
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/
Attempted path: /usr/share/obs/obs-studio/themes/
info: Settings changed (outputs)
info: ------------------------------------------------
warning: Failed to open video codec: Invalid argument
warning: ffmpeg_data_init failed
info: ==== Recording Stop ================================================
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/
Attempted path: /usr/share/obs/obs-studio/themes/
info: Settings changed (outputs)
info: ------------------------------------------------
info: ---------------------------------
info: [x264 encoder: 'streaming_h264'] preset: ultrafast
info: [x264 encoder: 'streaming_h264'] settings:
    rate_control: CBR
    bitrate:      2500
    buffer size:  2500
    crf:          0
    fps_num:      60
    fps_den:      1
    width:        1920
    height:       1080
    keyint:       250
    vfr:          off

info: libfdk_aac encoder created
info: libfdk_aac bitrate: 160, channels: 2
warning: [rtmp stream: 'adv_stream'] URL is empty
info: [rtmp stream: 'adv_stream'] Connection to (null) failed: -1
info: ==== Streaming Stop ================================================
warning: Failed to open video codec: Invalid argument
warning: ffmpeg_data_init failed
info: ==== Recording Stop ================================================
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/
Attempted path: /usr/share/obs/obs-studio/themes/
info: libfdk_aac encoder destroyed
info: Settings changed (outputs)
info: ------------------------------------------------
warning: Failed to open video codec: Invalid argument
warning: ffmpeg_data_init failed
info: ==== Recording Stop ================================================
 
Last edited:

cRaZy-bisCuiT

New Member
To get hardware accelerated video encoding working - this is at least what I try to. Do you have any idea how I could do that with my current setup in a different way? HW encoding I'd like to obvious reasons like lower cpu load with an acceptable quality.

For the records, in general va-api encoding works:
Code:
ffmpeg -vaapi_device /dev/dri/renderD129 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mkv

...works like a charme!
 
Top