Opened 12 years ago

Closed 12 years ago

#1194 closed defect (fixed)

mov enc: rawvideo as an output

Reported by: ami_stuff Owned by:
Priority: important Component: avformat
Version: git-master Keywords: regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

in the past something like this was possible:

C:\>ffmpeg -i test.bmp -vcodec rawvideo -pix_fmt rgb24 out.mov
FFmpeg version SVN-r18316, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack --prefix=/mingw --cross-prefix=i686-ming
w32- --cc=ccache-i686-mingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --e
xtra-cflags=-fno-common --enable-avisynth --enable-gpl --enable-zlib --enable-bz
lib --enable-libgsm --enable-libfaac --enable-pthreads --enable-libvorbis --enab
le-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libspeex --enable
-libxvid --enable-libfaad --enable-libschroedinger --enable-libx264
  libavutil     50. 2. 0 / 50. 2. 0
  libavcodec    52.22. 3 / 52.22. 3
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Apr  2 2009 16:33:19, gcc: 4.2.4
Input #0, image2, from 'test.bmp':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: bmp, bgr24, 1024x768, 25 tbr, 25 tbn, 25 tbc
Output #0, mov, to 'out.mov':
    Stream #0.0: Video: rawvideo, rgb24, 1024x768, q=2-31, 200 kb/s, 25 tbn, 25
tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    1 fps=  0 q=0.0 Lsize=    2305kB time=0.04 bitrate=471994.8kbits/s

video:2304kB audio:0kB global headers:0kB muxing overhead 0.028737%

currently it's not:

C:\>ffmpeg -i test.bmp -vcodec rawvideo -pix_fmt rgb24 out.mov
ffmpeg version N-39664-g6bfb304 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 10 2012 02:37:16 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 67.101 /  2. 67.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'test.bmp':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: bmp, bgr24, 1024x768, 25 tbr, 25 tbn, 25 tbc
w:1024 h:768 pixfmt:bgr24 tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0x1dc13a0] auto-inserting filter 'auto-inserted scale 0' between t
he filter 'src' and the filter 'out'
[scale @ 0x1dc2320] w:1024 h:768 fmt:bgr24 sar:0/1 -> w:1024 h:768 fmt:rgb24 sar
:0/1 flags:0x4
[mov @ 0x1dba560] Tag RGB[24]/0x18424752 incompatible with output codec id '14'
Output #0, mov, to 'out.mov':
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1024x768, q=2-31
, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp -> rawvideo)
Could not write header for output file #0 (incorrect codec parameters ?)

Change History (6)

comment:1 by Carl Eugen Hoyos, 12 years ago

Did out.mov play with QuickTime?

comment:2 by ami_stuff, 12 years ago

Yes, that's why it would be nice to have this "feature" back ;)

comment:3 by Carl Eugen Hoyos, 12 years ago

Does the following work?
$ ./ffmpeg -i tests/lena.pnm -vcodec rawvideo -pix_fmt rgb24 -vtag 0x20776172 out.mov

comment:4 by ami_stuff, 12 years ago

yes this works correctly

comment:5 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat
Keywords: regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Regression since 698f4cc.

comment:6 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.