Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Adding and reading timestamp to an image using ffmpeg

    17 novembre 2013, par Andrew Simpson

    I am not sure if i should be posting this type of question here and I have not uploaded any code as I am talking about concepts.

    I have a C# winform desktop application.

    It produces a flow of jpegs that have derived from a motion detection algorithm.

    I use the Graphics.DrawText to add a time stamp directly onto the image when it was created.

    I then use ffmpeg to produce a ogg video file.

    When i play the video file back I obviously see the image with the time stamp.

    What I would like to be able to do is read in code the time stamp that is on every image. I had thought of using some sort of OCR to do this but it seems overkill to me. I also have considered creating a separate text file that acts as the 'index' of the video file. But then I have to manage the 'transaction' between 2 different files.

    Corruption to the text file could happen.

    I would like a way of encapsulating this information to be easily read by my C# code.

    Has anyone had any experience doing this? Any recommendations pls?

    Many Thanks

  • Encoder (codec none) not found for output stream #0:1 [on hold]

    16 novembre 2013, par Gururak

    Hi i built ffmpeg executable on Redhat5. I want to mix two Audio using the command multiple "ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT.mp3".

    I enabled libflamemp3 library without any error.

    [root@localhost ~]# ffmpeg -i /root/media/Katlalli.mp3 -i /root/media/Katlalli.mp3 -filter_complex amix=inputs=2:duration=first:dropout_transition=2 /root/media/OUTPutnew123.mp3
    ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
      built on Nov 14 2013 03:17:10 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-46)
      configuration: --enable-libmp3lame
      libavutil      52. 48.100 / 52. 48.100
      libavcodec     55. 39.100 / 55. 39.100
      libavformat    55. 19.104 / 55. 19.104
      libavdevice    55.  5.100 / 55.  5.100
      libavfilter     3. 90.100 /  3. 90.100
      libswscale      2.  5.101 /  2.  5.101
      libswresample   0. 17.104 /  0. 17.104
    [mp3 @ 0x193ef240] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '/root/media/Katlalli.mp3':
      Metadata:
        artist          : Yograj Bhat
        title           : Katlalli Karadige
        track           : 3
        album           : Paramathma
        album_artist    : Puneet Rajkumar
        genre           : Kannada
        composer        : V.Harikrishna
        date            : 2011
      Duration: 00:04:41.46, start: 0.000000, bitrate: 191 kb/s
        Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
        Stream #0:1: Video: mjpeg, yuvj420p(pc), 200x200 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
        Metadata:
          title           : thumbnail
          comment         : Cover (front)
    [mp3 @ 0x194090a0] Estimating duration from bitrate, this may be inaccurate
    Input #1, mp3, from '/root/media/Katlalli.mp3':
      Metadata:
        artist          : Yograj Bhat
        title           : Katlalli Karadige
        track           : 3
        album           : Paramathma
        album_artist    : Puneet Rajkumar
        genre           : Kannada
        composer        : V.Harikrishna
        date            : 2011
      Duration: 00:04:41.46, start: 0.000000, bitrate: 191 kb/s
        Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
        Stream #1:1: Video: mjpeg, yuvj420p(pc), 200x200 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
        Metadata:
          title           : thumbnail
          comment         : Cover (front)
    File '/root/media/OUTPutnew123.mp3' already exists. Overwrite ? [y/N] y
    Output #0, mp3, to '/root/media/OUTPutnew123.mp3':
      Metadata:
        artist          : Yograj Bhat
        title           : Katlalli Karadige
        track           : 3
        album           : Paramathma
        album_artist    : Puneet Rajkumar
        genre           : Kannada
        composer        : V.Harikrishna
        date            : 2011
        Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp (default)
        Stream #0:1: Video: none, q=2-31, 128 kb/s, 90k tbn
        Metadata:
          title           : thumbnail
          comment         : Cover (front)
    Stream mapping:
      Stream #0:0 (mp3) -> amix:input0
      Stream #1:0 (mp3) -> amix:input1
      amix -> Stream #0:0 (libmp3lame)
      Stream #0:1 -> #0:1 (mjpeg -> ?)
    Encoder (codec none) not found for output stream #0:1
    

    But when i try to combine two mp3 audio, "ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT.mp3".

    I am getting error like

    "Encoder (codec none) not found for output stream #0:1"

    so please help me how to link or install "libmp3flame" on Redhat5.

  • 'av_interleaved_write_frame() : Unknown error' when trying to read RTSP stream

    16 novembre 2013, par ddario

    I'm trying to re-stream an RTSP stream with FFmpeg; stream source is a camera. This is my command:

    ffmpeg -i rtsp://admin:admin@192.168.1.119/defaultPrimary?streamType=u -f mpegts rtp://0.0.0.0:1234
    

    After starting, FFmpeg keeps looping these messages for a few seconds:

    [h264 @ 00000000025fa600] non-existing PPS referenced
    [h264 @ 00000000025fa600] non-existing PPS 0 referenced
    [h264 @ 00000000025fa600] decode_slice_header error
    [h264 @ 00000000025fa600] no frame!
    

    and finally:

    [rtsp @ 00000000003f6ea0] decoding for stream 1 failed
    [rtsp @ 00000000003f6ea0] Could not find codec parameters for stream 1 (Video: h
    264): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, rtsp, from 'rtsp://admin:admin@192.168.1.119/defaultPrimary?streamType
    =u':
      Metadata:
        title           : Live
      Duration: N/A, start: 536870.877625, bitrate: 64 kb/s
        Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
        Stream #0:1: Video: h264, 90k tbr, 90k tbn, 180k tbc
        Stream #0:2: Data: none
    Output #0, mpegts, to 'rtp://0.0.0.0:1234':
      Metadata:
        title           : Live
        encoder         : Lavf55.21.100
        Stream #0:0: Audio: mp2, 16000 Hz, mono, s16, 128 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (pcm_mulaw -> mp2)
    Press [q] to stop, [?] for help
    av_interleaved_write_frame(): Unknown error
    

    Increasing analyzeduration and probesize didn't help.
    I'm using the latest Windows static binaries.

  • FFmpeg X264 multithread decoding

    16 novembre 2013, par Xin He

    I want to do H264 multithread decoding using FFmpeg. First I use X264 to encode yuv420 to file.x264 ./x264 -o file.x264 --slices 4 --input-res 1280x720 --fps 25 file_560x420.yuv

    The slices count is 4.

    However, when I use FFmpeg to decode, ./ffmpeg -y -threads 4 -thread_type slice -i file.x264 final.yuv

    FFmpeg calls func"execute_decode_slices" four times, not in a multithread way. I also found that in *execute_decode_slices(h, context_count)*, the context_count is 1. FFmpeg call this 4 times.

    Could someone help to solve this problem?

    Thanks very much!

  • AndroidFFMPEG Appunite library issue

    16 novembre 2013, par Steve

    I am facing some with androidFfmpeg library on video seek.

    Can anyone help me out on this reported issue. jni_player_seek problem