[FFmpeg-user] ratecontrol_init: can't open stats file

radiocm vadim.lungu at radiocom.md
Wed Aug 15 09:45:17 CEST 2012


Hello everyone,

I'm trying to transcode some video that I'm getting through rtp and I get
the following errors:

[libx264 @ 0x9d92aa0] ratecontrol_init: can't open stats file

the command that I'm using look like 
[CODE]
ffmpeg -re -y -pix_fmt yuv420p \
-map 0:0  \
-map 0:1 \
-loglevel warning  \
-loglevel verbose \
-f h264 \
-f rtp \
-i rtp://239.0.12.4:5000 \
-strict experimental \
-acodec aac \
-ab 128k \
-ar 48000 \
-ac 2 \
-async 1 \
-b 512k \
-bt 4000 \
-maxrate 4000k \
-vcodec libx264 \
-vpre medium \
-r 25 \
-s 1340x970 \
-aspect 16:9 \
-pass 2 \
-bufsize 5000k \
-f h264 \
-f mp2 -f rtp -y rtp://10.0.254.47:5000 \
[/CODE]

The the output of the executed command look like:
[CODE]
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug  8 2012 04:04:33 with gcc 4.4.7
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-shared --enable-postproc --enable-avfilter --enable-pthreads
--enable-x11grab --enable-bzlib --enable-libdc1394 --enable-libfaac
--enable-libgsm --enable-libmp3lame --enable-libnut --enable-libschroedinger
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-zlib
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[rtp @ 0x97b74d0] SDP:
v=0
c=IN IP4 239.0.12.4
m=application 5000 RTP/AVP 33

[NULL @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[NULL @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS referenced
[h264 @ 0x97bc100] non-existing SPS 1 referenced in buffering period
[h264 @ 0x97bc100] non-existing PPS 0 referenced
[h264 @ 0x97bc100] decode_slice_header error
[h264 @ 0x97bc100] no frame!
[h264 @ 0x97bc100] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x97bc100] number of reference frames exceeds max (probably corrupt
input), discarding one
[rtp @ 0x97b74d0] max_analyze_duration reached
[rtp @ 0x97b74d0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 50.00
(50/1) -> 50.00 (50/1)
Input #0, rtp, from 'rtp://239.0.12.4:5000':
  Duration: N/A, start: 93372.288433, bitrate: 128 kb/s
    Stream #0.0: Video: h264, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 51.40
fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, 2 channels, s16, 128 kb/s
[buffer @ 0x97bd260] w:720 h:576 pixfmt:yuv420p
[scale @ 0x9ae0200] w:720 h:576 fmt:yuv420p -> w:1340 h:970 fmt:yuv420p
flags:0xa0000004
[libx264 @ 0x97bb9c0] using SAR=157/122
[libx264 @ 0x97bb9c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x97bb9c0] ratecontrol_init: can't open stats file
Output #0, rtp, to 'rtp://10.0.254.47:5000':
    Stream #0.0: Video: libx264, yuv420p, 1340x970 [PAR 157:122 DAR
10519:5917], q=10-51, pass 2, 512 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: libfaac, 48000 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect
parameters such as bit_rate, rate, width or height

[/CODE]

Anyone has some ideas ?

Thank you all of you.



-----
Best regards, Vadim.
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ratecontrol-init-can-t-open-stats-file-tp4652568.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list