Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record in mp4 fails on Arch Linux #248

Closed
glaubersm opened this issue Dec 15, 2017 · 3 comments
Closed

Record in mp4 fails on Arch Linux #248

glaubersm opened this issue Dec 15, 2017 · 3 comments
Labels
Milestone

Comments

@glaubersm
Copy link

Peek: 1.2.1
GTK: 3.22.26
GLib: 2.54.0

Details:

Command "ffmpeg -f x11grab -show_region 0 -framerate 10 -video_size 673x548 -i :0+477,276 -filter:v scale=iw/1:-1, crop=iw-mod(iw\,2):ih-mod(ih\,2) -codec:v libx264 -preset:v fast -profile:v baseline -pix_fmt yuv420p -y /home/xanadu/.cache/peek/peekZ016AZ.mp4" failed with status 256 (received signal 0).

Output:
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers  built with gcc 7.2.0 (GCC)  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-shared --enable-version3  libavutil      55. 78.100 / 55. 78.100  libavcodec     57.107.100 / 57.107.100  libavformat    57. 83.100 / 57. 83.100  libavdevice    57. 10.100 / 57. 10.100  libavfilter     6.107.100 /  6.107.100  libavresample   3.  7.  0 /  3.  7.  0  libswscale      4.  8.100 /  4.  8.100  libswresample   2.  9.100 /  2.  9.100  libpostproc    54.  7.100 / 54.  7.100Input #0, x11grab, from ':0+477,276':  Duration: N/A, start: 1513349699.326304, bitrate: N/A    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 673x548, 10 fps, 10 tbr, 1000k tbn, 1000k tbcStream mapping:  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))Press [q] to stop, [?] for helpIncompatible pixel format 'yuv420p' for codec 'libx264', auto-selecting format 'yuv420p10le'[swscaler @ 0x55c74838e0e0] Warning: data is not aligned! This can lead to a speed lossx264 [error]: baseline profile doesn't support a bit depth of 10[libx264 @ 0x55c7483839c0] Error setting profile baseline.[libx264 @ 0x55c7483839c0] Possible profiles: baseline main high high10 high422 high444Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightConversion failed!
@phw phw added the bug label Dec 15, 2017
@phw
Copy link
Owner

phw commented Dec 15, 2017

The issue seems to be

[error]: baseline profile doesn't support a bit depth of 10

I assume you have libx264-10bit installed then? Currently not sure how to work around this, have to research. One way of course would be to have this be detected somehow and disable the baseline profile for this case (with the downside of #111, but better than failing to record).

Current workaround is to install libx264 instead of libx264-10bit

@glaubersm
Copy link
Author

solved after replace libx264-10bit with libx264.
AppImage works even when libx264-10bit is installed.

Thank you.

@phw
Copy link
Owner

phw commented Dec 15, 2017

Yes, the AppImage has ffmpeg and libx264 bundled :)

Glad to see it is working for you now. I will try to find a solution to handle this case more cleanly.

@phw phw closed this as completed in bcc6612 Jan 18, 2018
@phw phw added this to the 1.2.2 milestone Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants