Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Ubuntu Server 16.10 - run ffmpeg on startup in background

    12 février 2017, par Greg

    i'm trying to find information about starting a background script that should run ffmpeg streaming in the background.

    I need to have this script started as soon as everything else in Ubuntu Server has started but i find that i should use /etc/rc.local which is not present in my newly installed system.

    Can you give me a hint here?

    The script i want to run (and keep running as long as the server is working) is as follows:

    #! /bin/bash
    
    USTREAM_URL="rtmp://xxxx.xxx.xxx"
    
    SOURCE="rtsp://xxx.xxx.xxx"
    KEY="mykey"
    
    while :
    do
    
    ffmpeg \
        -v 16 -i "$SOURCE" \
        -an -pix_fmt yuv420p \
        -threads 2 -qmax 15 \
        -f flv "$USTREAM_URL/$KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true"
    
    sleep 5
    done
    
  • Compile vlc-android on macos Sierra, many errors

    12 février 2017, par appworks

    This is the error message capture,Under MAC mini(macOS Sierra 10.12.3):

    I'm trying to compile VLC-android player using MAC mini, the error message is below:

    {standard input}: Assembler messages:
    {standard input}:146: Error: unknown register alias 'GP'
    clang38: error: assembler command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [libavcodec/arm/ac3dsp_armv6.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    {standard input}: Assembler messages:
    {standard input}:446: Error: unknown register alias 'POUT'
    {standard input}:448: Error: unknown register alias 'PIN'
    {standard input}:450: Error: unknown register alias 'PCOEF'
    {standard input}:452: Error: unknown register alias 'OLDFPSCR'
    

    What am I doing wrong?

  • 'Range' request header in ffmpeg

    12 février 2017, par cole

    Recently I am working on parsing some videos's address from a web site.After parsing,I use IjkPlayer based on ffmpeg to play it.However I get 403 code,with Chi-Hsuan Yen's (A author of youtube-dl) help,I know ‘range' header result in the 403 response code.

    A Solution

    set Range :space

    However

    If I set Range :space,I can't seek this video when I play it on Android Phone.So do you have another solution for 403 code?


    Update:

    My Issue

    https://github.com/Bilibili/ijkplayer/issues/2667

    A same URL have different response on Chrome and Firefox

  • Is it possible for Nginx rtmp server to receive RTSP and convert it to RTMP stream using ffmpeg ? [on hold]

    11 février 2017, par Jun Kim

    I want to stream live video and audio from android built-in camera to nginx rtmp server to publish it to multiple clients.

    From this open source api https://github.com/fyhertz/libstreaming-examples, I successfully implemented example 3, which streams live video and audio using rtsp to wowza media server. It works fine.

    In order to implement it with nginx rtmp server instead of wowza media server, I read some comments saying that I could convert RTSP live stream to RTMP by using ffmpeg in nginx.conf file. However, it doesn't seem to work.

    Below ffmpeg command is what i put in nginx.conf file. "ffmpeg -rtsp_transport rtp -i "rtsp url" -vcodec copy -f flv -r 25 -s 1920x1080 "rtmp url" (since libstreaming streams camera using rtp over udp)

    Does anybody know if it is possible for nginx media server to receive RTSP from android and convert it to RTMP stream and publish it to multiple clients?

    If it is impossible, should I use different api that helps streaming live content over RTMP from android phone to nginx rtmp server, such as JacaCV? (https://github.com/bytedeco/javacv)

  • YUV Player on Linux for streaming video

    11 février 2017, par guraaf

    Is there any YUV video/frame player for Linux? Source code not required. My code will be generating video frames at some interval, typically 30fps but could vary based on performance and other factors. I want to display the new frame available on screen.

    Right now, I dump the output of my code to a binary file and then view it later but I want a real-time YUV viewer that I can hook up to my code and keep refreshing the screen. Any tools or tips?

    Thanks a lot!