Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

Stream webcam using ffmpeg/avconv to RTMP libx264 doesn't wo

Who doesn't love them :) But for faster response on your Bug Reports, please visit: http://www.ffmpeg.org/bugreports.html
Forum rules
First of all, please remember that all the developers working on FFmpeg are volunteers, we are not paid for analyzing, debugging, fixing and answering bug reports. While we try our best to create high quality software and be responsive, if you should not get an answer, please consider the above and be aware of the fact that we receive many bug reports and the amount of time it takes to deal with them can be substantial. Nevertheless most issues get resolved, just please understand that there are no guarantees nor promises.

Stream webcam using ffmpeg/avconv to RTMP libx264 doesn't wo

Postby erezposner » Tue Mar 15, 2016 1:08 pm

i have been trying to stream my webcam to Ustream using RTMP.

using the standard command works great:

Code: Select all
avconv -f video4linux2 -r 25 -s 320x240 -i /dev/video0 -f flv rtmp://host/pass
but i encoutner a 15 seconds latency! therefore i decided to compress the video using libx264. i downloaded it and confirmed it is installed properly. but when running this command:

Code: Select all
avconv -f video4linux2 -r 25 -s 320x240 -i /dev/video0 -c:v libx264 -pix_fmt yuv420p-f flv rtmp://host/pass
on ffmpeg i get "Illegal instruction" and under avconv it starts to stream but nothing is shown in Ustream channel.

output from avconv command
Code: Select all
avconv version 9.14-6:9.14-1rpi1rpi1, Copyright (c) 2000-2014 the
Libav developers
built on Jul 22 2014 15:08:12 with gcc 4.6 (Debian 4.6.3-14+rpi1)
[video4linux2 @ 0x709740] The driver changed the time per frame from 1/5 to 1/30
    [video4linux2 @ 0x709740] Estimating duration from bitrate, this may
    be inaccurate   Input #0, video4linux2, from '/dev/video0':
      Duration: N/A, start: 5069.991764, bitrate: 36864 kb/s
        Stream #0.0: Video: rawvideo, yuyv422, 320x240, 36864 kb/s, 1000k    tbn, 30 tbc
    [libx264 @ 0x70a9e0] using cpu capabilities: none!
    [libx264 @ 0x70a9e0] profile High, level 1.2
    [libx264 @ 0x70a9e0] 264 - core 130 r2282 1db4621 - H.264/MPEG-4 AVC
    codec - Copyleft 2003-2013 -  l -
    options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
    psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
    8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
    threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
    interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
    b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
    keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
    mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25
    Output #0, flv, to
        encoder         : Lavf54.20.4
        Stream #0.0: Video: libx264, yuv420p, 320x240, q=-1--1, 1k tbn, 5 tbc
    Stream mapping:
      Stream #0:0 -> #0:0 (rawvideo -> libx264)
    Press ctrl-c to stop encoding
    frame=   44 fps=  3 q=23.0 size=      26kB time=0.20
    bitrate=1071.8kbits/s    bits/s

what could be the problem? thank you in advanced
Posts: 1
Joined: Tue Mar 15, 2016 1:04 pm

Re: Stream webcam using ffmpeg/avconv to RTMP libx264 doesn'

Postby llogan » Tue Mar 15, 2016 4:54 pm

avconv isn't from FFmpeg, and neither is the fake so-called "ffmpeg" you're using. Only FFmpeg tools are supported here at this FFmpeg forum.

You'll have to get help from the authors of that or use the real ffmpeg.
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Return to Bugs, bugs, bugs :)

Who is online

Users browsing this forum: No registered users and 2 guests