[FFmpeg-user] FFmpeg writes rawvideo, rgb24 to matroska mkv file but cannot play it.
Matthew Einhorn
moiein2000 at gmail.com
Wed Jan 1 05:35:15 CET 2014
Hi,
I am trying to write rgb24 frames to a mkv file, but the resulting file is
unplayable in ffmpeg or vlc. Before I file a report I want to rule out
idiocy from my part. I did see a ticket with a related issue, but it's
marked as fixed: https://trac.ffmpeg.org/ticket/252.
Starting with any good video, which in this case was MouseTwo.avi:
c:\FFmpeg>ffmpeg -i MouseTwo.avi -an -vcodec rawvideo -pix_fmt rgb24
output.mkv
ffmpeg version N-59453-gd52882f Copyright (c) 2000-2013 the FFmpeg
developers
built on Dec 30 2013 22:01:59 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.101 / 55. 22.101
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, avi, from 'MouseTwo.avi':
Duration: 00:01:14.93, start: 0.000000, bitrate: 613 kb/s
Stream #0:0: Video: indeo3 (IV32 / 0x32335649), yuv410p, 320x240, 15
tbr, 15
tbn, 15 tbc
Metadata:
title : CAPTURE.AVI Video #1
File 'output.mkv' already exists. Overwrite ? [y/N] y
Output #0, matroska, to 'output.mkv':
Metadata:
encoder : Lavf55.22.101
Stream #0:0: Video: rawvideo, rgb24, 320x240, q=2-31, 200 kb/s, 1k tbn,
15 t
bc
Metadata:
title : CAPTURE.AVI Video #1
Stream mapping:
Stream #0:0 -> #0:0 (indeo3 -> rawvideo)
Press [q] to stop, [?] for help
frame= 191 fps=0.0 q=0.0 size= 42980kB time=00:00:13.13
bitrate=26809.7kbits/
frame= 442 fps=429 q=0.0 size= 99461kB time=00:00:29.86
bitrate=27280.4kbits/
frame= 723 fps=468 q=0.0 size= 162692kB time=00:00:48.60
bitrate=27423.4kbits/
frame= 1004 fps=488 q=0.0 size= 225924kB time=00:01:07.33
bitrate=27486.4kbits/
frame= 1118 fps=484 q=0.0 Lsize= 251599kB time=00:01:14.93
bitrate=27505.5kbits
/s
video:251550kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.019392%
But then with ffprobe:
c:\FFmpeg>ffprobe output.mkv
ffprobe version N-59453-gd52882f Copyright (c) 2007-2013 the FFmpeg
developers
built on Dec 30 2013 22:01:59 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.101 / 55. 22.101
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[rawvideo @ 04086a80] Invalid pixel format.
[matroska,webm @ 0282f640] Failed to open codec in av_find_stream_info
[rawvideo @ 04086a80] Invalid pixel format.
Input #0, matroska,webm, from 'output.mkv':
Metadata:
ENCODER : Lavf55.22.101
Duration: 00:01:14.93, start: 0.000000, bitrate: 27505 kb/s
Stream #0:0: Video: rawvideo, 320x240, SAR 1:1 DAR 4:3, 15 fps, 15 tbr,
1k t
bn, 1k tbc (default)
Metadata:
title : CAPTURE.AVI Video #1
[rawvideo @ 04086a80] Invalid pixel format.
Could not open codec for input stream 0
Thanks in advance!
More information about the ffmpeg-user
mailing list