Question / Help [Debian] Can't record video, but can record audio, stream, and preview

TristanBomb

New Member
I'm facing quite a curious issue where OBS cannot record video. The preview and streaming work just as intended, but when I record, there is only audio. I couldn't find this bug anywhere else online, and I have reason to believe this is NOT a bug with playback. I've tested both SMPlayer and Totem (default "Videos" in GNOME) and tried uploading to YouTube; all 3 report no audio. Unfortunately, I cannot test in VLC because it segfaults on my machine, and I've never been able to resolve that.

Otherwise, OBS works as intended. I have tried recording to mp4, flv, and mov with no luck; encoding is x264. Settings like resolution and FPS don't seem to have any bearing on the result.

OS is Debian 8 Jessie.
Processor is an Intel Core i5-6600.
Graphics card is a GeForce GTX 960.
 

Attachments

  • Test Footage.flv.zip
    181 KB · Views: 22
  • Log.txt
    14.1 KB · Views: 20

TristanBomb

New Member
Do you have anything in /var/log/syslog? Does it matter if you switch from .flv to .mp4?
The filename doesn't seem to affect anything at all. I've tried FLV, MP4, and MOV - none appear to work. This is the relevant portion of syslog:

Code:
May 25 11:13:26 tristancomp obs.desktop[15034]: Attempted path: share/obs/obs-studio/locale.ini
May 25 11:13:26 tristancomp obs.desktop[15034]: Attempted path: /usr/share/obs/obs-studio/locale.ini
May 25 11:13:26 tristancomp obs.desktop[15034]: Attempted path: share/obs/obs-studio/themes/
May 25 11:13:26 tristancomp obs.desktop[15034]: Attempted path: /usr/share/obs/obs-studio/themes/
May 25 11:13:26 tristancomp obs.desktop[15034]: info: encoder 'simple_h264_stream' destroyed
May 25 11:13:26 tristancomp obs.desktop[15034]: info: encoder 'simple_aac' destroyed
May 25 11:13:26 tristancomp obs.desktop[15034]: info: output 'simple_stream' destroyed
May 25 11:13:26 tristancomp obs.desktop[15034]: info: output 'simple_file_output' destroyed
May 25 11:13:26 tristancomp obs.desktop[15034]: info: output 'simple_stream' (rtmp_output) created
May 25 11:13:26 tristancomp obs.desktop[15034]: info: encoder 'simple_h264_stream' (obs_x264) created
May 25 11:13:26 tristancomp obs.desktop[15034]: info: encoder 'simple_aac' (libfdk_aac) created
May 25 11:13:26 tristancomp obs.desktop[15034]: info: output 'simple_file_output' (ffmpeg_muxer) created
May 25 11:13:26 tristancomp obs.desktop[15034]: info: Settings changed (outputs)
May 25 11:13:26 tristancomp obs.desktop[15034]: info: ------------------------------------------------
May 25 11:13:28 tristancomp obs.desktop[15034]: info: ---------------------------------
May 25 11:13:28 tristancomp obs.desktop[15034]: info: [x264 encoder: 'simple_h264_stream'] preset: veryfast
May 25 11:13:28 tristancomp obs.desktop[15034]: info: [x264 encoder: 'simple_h264_stream'] profile: main
May 25 11:13:28 tristancomp obs.desktop[15034]: info: [x264 encoder: 'simple_h264_stream'] settings:
May 25 11:13:28 tristancomp obs.desktop[15034]: bitrate:     2500
May 25 11:13:28 tristancomp obs.desktop[15034]: buffer size: 2500
May 25 11:13:28 tristancomp obs.desktop[15034]: crf:         0 (0 when CBR is enabled)
May 25 11:13:28 tristancomp obs.desktop[15034]: fps_num:     30
May 25 11:13:28 tristancomp obs.desktop[15034]: fps_den:     1
May 25 11:13:28 tristancomp obs.desktop[15034]: width:       1920
May 25 11:13:28 tristancomp obs.desktop[15034]: height:      1080
May 25 11:13:28 tristancomp obs.desktop[15034]: keyint:      120
May 25 11:13:28 tristancomp obs.desktop[15034]: vfr:         off
May 25 11:13:28 tristancomp obs.desktop[15034]: cbr:         on
May 25 11:13:28 tristancomp obs.desktop[15034]: info: libfdk_aac encoder created
May 25 11:13:28 tristancomp obs.desktop[15034]: info: libfdk_aac bitrate: 160, channels: 2
May 25 11:13:28 tristancomp obs.desktop[15034]: info: ==== Recording Start ===============================================
May 25 11:13:28 tristancomp obs.desktop[15034]: info: [ffmpeg muxer: 'simple_file_output'] Writing file '/home/tristan/Videos/OBS/2016-05-25_11-13-28.mp4'...
May 25 11:13:28 tristancomp obs.desktop[15034]: [mp4 @ 0x1b6a120] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
May 25 11:13:29 tristancomp obs.desktop[15034]: [mp4 @ 0x1b6a120] track 0: codec frame size is not set
May 25 11:13:33 tristancomp obs.desktop[15034]: info: libfdk_aac encoder destroyed
May 25 11:13:33 tristancomp obs.desktop[15034]: Couldn't create encoderinfo: [ffmpeg muxer: 'simple_file_output'] Output of file '/home/tristan/Videos/OBS/2016-05-25_11-13-28.mp4' stopped
May 25 11:13:33 tristancomp obs.desktop[15034]: info: Output 'simple_file_output': stopping
May 25 11:13:33 tristancomp obs.desktop[15034]: info: Output 'simple_file_output': Total encoded frames: 170
May 25 11:13:33 tristancomp obs.desktop[15034]: info: Output 'simple_file_output': Total drawn frames: 169
May 25 11:13:33 tristancomp obs.desktop[15034]: info: ==== Recording Stop ================================================
May 25 11:13:37 tristancomp org.gnome.Nautilus[1360]: (nautilus:15074): GnomeDesktop-WARNING **: Unable to create loader for mime type video/mp4: Unrecognized image file format
May 25 11:13:37 tristancomp org.gnome.Nautilus[1360]: (nautilus:15074): GnomeDesktop-WARNING **: Error creating thumbnail for file:///home/tristan/Videos/OBS/2016-05-25_11-13-28.mp4: Unrecognized image file

Those last two lines seem pretty interesting, and it seems that no viewer (out of Nautilus's preview, Totem, SMPlayer, and YouTube's video uploader) like how OBS encodes/saves videos. Perhaps it's corrupt or just broken.

However, as it turns out, if you tell OBS to use type "Custom Output (FFmpeg)," everything actually works fine, so it's only the Default recording type that has issues. For now, I suppose I can just use the Custom Output. I didn't notice its existence when I first posted this issue, though - was it added in an update?
 
Top