Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (86)

Sur d’autres sites (15293)

  • ffserver + ffmpeg, stream out rtsp, ffplay cannot play, but movie player can

    17 juillet 2014, par user1914692

    Ubuntu 12.04
    I use ffserver + ffmpeg.

    There are a little revision of the original /etc/ffserver.conf :

    RTSPPort 5454
    RTSPBindAddress 0.0.0.0

    # ...

    <stream>
    Format rtp
    # coming from live feed 'feed1'
    Feed feed1.ffm
    </stream>

    The command of ffmpeg (Option 1) is :

    ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv'  http://localhost:8090/feed1.ffm

    BTW, if I use Option 2 as below, it does not work :

    ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv'  http://192.168.1.105:8090/feed1.ffm
    ## not work:
    [http @ 0x21a9c80] HTTP error 404 Not Found
    http://192.168.1.105:8090/feed1.ffm: Input/output error

    So now I need to display the stream.
    On the other computer :

    (Option 1) ffplay rtsp://192.168.1.105:5454/test2-rtsp.mpg

    Not work. [Output] rtsp UDP timeout, retrying with TCP.

    (Option 2) movie player : Open location : rtsp ://192.168.1.105:5454/test2-rtsp.mpg
    it works !

  • Create movie programatically

    14 novembre 2019, par Martin Delille

    I would like to create a movie programatically.

    My first iteration is to create a picture sequence with QPainter rendering (see https://github.com/MartinDelille/videogenerator) and then assemble them with ffmpeg but I would be more happy to generate the video file directly.

    I choose QPainter, but I’m open to QML rendering mechanism which is more modern in my opinion.

    What would be the best approach for this ?

  • Split a movie so that each GIF is under a certain file size

    9 novembre 2014, par Terence Eden

    Problem

    I want to convert a long movie into a series on animated GIFs.

    Each GIF needs to be <5MB.

    Is there any way to determine how large a GIF will be while it is being encoded ?

    Progress So Far

    I can split the movie into individual frames :

    ffmpeg -i movie.ogv -r 25 frameTemp.%05d.gif

    I can then use convert from ImageMagick to create GIFs. However, I can’t find a way to determine the likely file size before running the command.

    Alternatively, I can split the movie into chunks :

    ffmpeg -i movie.ogv -vcodec copy -ss 00:00:00 -t 00:20:00 output1.ogv

    But I’ve no way of knowing if, when I convert the file to a GIF it will be under 5MB.

    A 10 second scene with a lot of action may be over 5MB (bad !) and a static scene could be under 5MB (not a problem, but not very efficient).

    Ideas

    I think that what I want to do is convert the entire movie into a GIF, then find a way to split it by file size.

    Looking at ImageMagick, I can split a GIF into frames, but I don’t see a way to split it into animated GIFs of a certain size / length.

    So, is this possible ?