[FFmpeg-trac] #8801(ffmpeg:new): x11grab of screen/area produces mp4 file without streams
FFmpeg
trac at avcodec.org
Sun Jul 19 08:09:44 EEST 2020
#8801: x11grab of screen/area produces mp4 file without streams
-------------------------------------+-------------------------------------
Reporter: | Type: defect
johnaaronrose |
Status: new | Priority: normal
Component: ffmpeg | Version:
| unspecified
Keywords: x11grab | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
'm using Ubuntu 18.04 with ffmpeg 3.4.6
I want to grab (video & sound) of the whole screen or grab (video & sound)
of a region (e.g. window or area, in the screen) using ffmpeg. I found an
example at https://wiki.ubuntu.com/ScreenCasts/ffmpeg:
ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0 -vcodec huffyuv screencast.avi
But it doesn't create an avi file and gives "Output file #0 does not
contain any stream".
I adapted it slightly (i.e. for my monitor) but it didn't work:
ffmpeg -f x11grab -r 25 -s 1920x1080 -i :0.0 -f pulse -vcodec libx265
v.mp4
I've tried other variants e.g.:
ffmpeg -r 25 -video_size 1920x1080 -f x11grab -i :0.0 -f pulse -ac 2 -i
default -vcodec libx265 -y /home/john/Temporary/v.mp4
>/home/john/Temporary/l.txt 2>&1
That creates a .mp4 file but but won't play (in vlc or video player) as it
has unknown video codec & audio codec in its properties.
Summary of the bug:
How to reproduce:
{{{
% ffmpeg -i input ... output
ffmpeg version
built on ...
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8801>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list