Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#1095 closed defect (fixed)

libxavs: encoded file doesn't decode with built-in decoder

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: cavs
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

please test if reproductible and not a build (libxavs) fault

C:\>ffmpeg -i 320.png -vcodec libxavs out.avi
ffmpeg version N-38622-g1eabd71 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar  7 2012 00:18:03 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 10.100 / 54. 10.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 63.100 /  2. 63.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from '320.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24, 320x240, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'rgb24' for codec 'libxavs', auto-selecting format 'yu
v420p'
[buffer @ 02161B40] w:320 h:240 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 02161DC0] auto-inserting filter 'auto-inserted scale 0' between th
e filter 'src' and the filter 'out'
[scale @ 02161540] w:320 h:240 fmt:rgb24 -> w:320 h:240 fmt:yuv420p flags:0x4
[libxavs @ 026FFA40] using cpu capabilities
[libxavs @ 026FFA40] profile JiZhun, level 6.4
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf54.2.100
    Stream #0:0: Video: cavs (CAVS / 0x53564143), yuv420p, 320x240, q=2-31, 25 t
bn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> libxavs)
Press [q] to stop, [?] for help
frame=    1 fps=  0 q=2.0 Lsize=       6kB time=00:00:00.04 bitrate=1241.6kbits/
s
video:0kB audio:0kB global headers:0kB muxing overhead 1201.467505%
[libxavs @ 026FFA40] slice I:1     Avg QP: 2.00  size:   469
[libxavs @ 026FFA40] mb I  I16..4:  0.0% 100.0%  0.0%
[libxavs @ 026FFA40] final ratefactor: 5.27
[libxavs @ 026FFA40] 8x8 transform  intra:100.0%  inter:-1.$%
[libxavs @ 026FFA40] kb/s:93.8
C:\>ffmpeg -i out.avi out2.avi
ffmpeg version N-38622-g1eabd71 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar  7 2012 00:18:03 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 10.100 / 54. 10.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 63.100 /  2. 63.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from 'out.avi':
  Metadata:
    encoder         : Lavf54.2.100
  Duration: 00:00:00.08, start: 0.000000, bitrate: 620 kb/s
    Stream #0:0: Video: cavs (CAVS / 0x53564143), yuv420p, 320x240, 25 tbr, 25 t
bn, 25 tbc
w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
Output #0, avi, to 'out2.avi':
  Metadata:
    ISFT            : Lavf54.2.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200
 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (cavs -> mpeg4)
Press [q] to stop, [?] for help
frame=    0 fps=  0 q=0.0 Lsize=       6kB time=00:00:00.00 bitrate=   0.0kbits/
s
video:0kB audio:0kB global headers:0kB muxing overhead 1.#INF00%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters i
f used)

Attachments (2)

320.png (792 bytes ) - added by ami_stuff 12 years ago.
out.avi (6.1 KB ) - added by ami_stuff 12 years ago.

Download all attachments as: .zip

Change History (7)

by ami_stuff, 12 years ago

Attachment: 320.png added

by ami_stuff, 12 years ago

Attachment: out.avi added

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: libxavs added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Reproducible with

$ ./ffmpeg -i tests/lena.pnm -vcodec libxavs out.avi

-vcodec libxavs eats one frame, at least two frames have to be encoded to get a playable file.

comment:2 by Elon Musk, 11 years ago

Component: undeterminedavcodec

comment:3 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: openclosed

comment:4 by Timothy Gu, 10 years ago

Keywords: xavs added

comment:5 by Carl Eugen Hoyos, 10 years ago

Keywords: cavs added; libxavs xavs removed

An error and a warning are still shown:

$ ffmpeg -i out.avi -f framecrc -
ffmpeg version N-64033-g7f52960 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 18 2014 12:58:38 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 67.100 / 55. 67.100
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, avi, from 'out.avi':
  Metadata:
    encoder         : Lavf54.2.100
  Duration: 00:00:00.08, start: 0.000000, bitrate: 620 kb/s
    Stream #0:0: Video: cavs (CAVS / 0x53564143), yuv420p, 320x240, 25 fps, 25 tbr, 25 tbn, 25 tbc
#software: Lavf55.43.100
#tb 0: 1/25
Output #0, framecrc, to 'pipe:':
  Metadata:
    encoder         : Lavf55.43.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc55.67.100 rawvideo
Stream mapping:
  Stream #0:0 -> #0:0 (cavs (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[cavs @ 0x2e934a0] weighted prediction not yet supported
[cavs @ 0x2e934a0] no frame decoded
0,          0,          0,        1,   115200, 0xb4979039
    Last message repeated 1 times
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=  19.0kbits/s
video:112kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Note: See TracTickets for help on using tickets.