[FFmpeg-user] How to set H264 profile-level-id to 42E00C?

xiong xu xu.xiong.cn at gmail.com
Sat Aug 22 13:25:20 CEST 2015


Hi,

I failed with following:

pi at raspberrypi ~ $ ffmpeg  -f video4linux2  -i /dev/video0 -vcodec
h264 -b:v 90000  -payload_type 122 -s qvga -x264opts
profile-level-id=42E00C:max-br=384  -f rtp rtp://10.17.41.163:45900
ffmpeg version N-74455-g3afca32 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armel --target-os=linux --enable-gpl
--enable-libx264 --enable-nonfree
  libavutil      54. 30.100 / 54. 30.100
  libavcodec     56. 57.100 / 56. 57.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 33.100 /  5. 33.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1440241286.856327, bitrate: 752025 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
1920x1088, 752025 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
[libx264 @ 0x30ddfe0] bad option 'profile-level-id': '42E00C'
Output #0, rtp, to 'rtp://10.17.41.163:45900':
    Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, 30 fps
    Metadata:
      encoder         : Lavc56.57.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height

What's the correct way to set profile-level-id?

Thanks,
Xiong


More information about the ffmpeg-user mailing list