Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Jerky Video from Jpgs encoded with ffmpeg [closed]

    16 février 2012, par Glstunna

    I have a bunch of jpg snapshots taken from a 3d program at perfect time frames. But when I have the videos compiled/encoded into a video by ffmpeg, I notice an annoying jerkiness. The jerkiness is not that pronounced, but enough to be annoying, especially during slow camera pans.

    This is what I use:

    "ffmpeg-lgpl.exe" -y  -r 29.97 -i "C:\vidsnaps\vid_%d.jpg" -b 8000k "C:\Users\peki.ICE\Documents\macbattle.mpg" 
    

    I chose mpg (mpeg1video) because that is the format readily available in all end-user systems like XP without downloading extra codecs. The video images are guaranteed to match that framerate 29.97 as the camera in the 3d program pretty much waits for each frame to be dumped to file before moving to the next one.

    What other fancy ffmpeg flags do I have to set for this thing to stop being jerky.

    EDIT: see video example here and notice the light jerk/stuttering. http://www.youtube.com/watch?v=g-slsJBZA2w&feature=youtu.be

  • Ffmpeg and mpeg trouble

    16 février 2012, par sgmart

    I want to keep video quality when converting from one format to another, specifically from avi to mpeg. I have tried with the option offered ffmpeg target and I achieved the same quality of video but the resulting file size is large compared to the original, how I can reduce that size?

    I've tried this:

    ffmpeg -i input_file.avi -target ntsc-dvd output_file.mpeg

  • How to get audio track assignment in ffmpeg

    16 février 2012, par David542

    Is there a way to get the audio track assignment in ffmpeg? For example, if you are in QuickTime, you can view info (Command - I), and see the track assignment. It looks something like this:

    Apple ProRes 422 (HQ), 1,920 x 1,080
    Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Left**
    Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Right**
    Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **Center**
    Linear PCM, 24 bit little-endian signed integer, 48000 Hz, **LFE Screen**
    etc...
    

    When I do $ ffmpeg -i, it does not show the track assignments --

    Stream #0:12(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
    Metadata:
      creation_time   : 2010-09-16 02:23:49
      handler_name    : ?Apple Alias Data Handler
    Stream #0:13(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
    Metadata:
      creation_time   : 2010-09-16 02:23:49
      handler_name    : ?Apple Alias Data Handler
    Stream #0:14(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s
    Metadata:
      creation_time   : 2010-09-16 02:23:49
      handler_name    : ?Apple Alias Data Handler
    Stream #0:15(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s
    Metadata:
      creation_time   : 2010-09-16 02:23:49
      handler_name    : ?Apple Alias Data Handler
    Stream #0:16(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s
    

    Is there a way to get the track assignments in ffmpeg or another program?

  • FFMPEG conversion to MXF [closed]

    16 février 2012, par MFB

    I have to wrap an MPEG2 video file in an MXF container and convert the audio in the process. I have the MXF wrapping working but it won't convert the audio stream (which needs to be 16bit, 48kHz Linear PCM).

    Here's what I'm trying:

    ffmpeg -i input.mpg -map 0:0 -map 0:1 -vcodec copy -f mpeg2video -acodec pcm_s16le -ar 48000 -ac 2 output.mxf
    

    Results:

    ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
      built on Jan 30 2012 17:49:23 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
      configuration: *{snipped}*
    runtime-cpudetect
      libavutil      51. 34.101 / 51. 34.101
      libavcodec     53. 60.100 / 53. 60.100
      libavformat    53. 31.100 / 53. 31.100
      libavdevice    53.  4.100 / 53.  4.100
      libavfilter     2. 60.100 /  2. 60.100
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0.  6.100 /  0.  6.100
      libpostproc    52.  0.100 / 52.  0.100
    [mpeg @ 0x10201ae00] max_analyze_duration 5000000 reached at 5000000
    Input #0, mpeg, from '/Volumes/Extra/test.mpg':
      Duration: 00:00:59.97, start: 0.192911, bitrate: 6513 kb/s
        Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
        Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 12000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Output #0, mpeg2video, to 'video.mxf':
      Metadata:
        encoder         : Lavf53.31.100
        Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 12000 kb/s, 25 fps, 90k tbn, 25 tbc
    Stream mapping:
      Stream #0:1 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame= 1500 fps=  0 q=-1.0 Lsize=   43949kB time=00:00:59.96 bitrate=6004.6kbits/s    
    video:43949kB audio:0kB global headers:0kB muxing overhead 0.000000%
    

    The video plays fine as the MXF, but there is no audio stream at all. Any help would be great.

  • how to convert and capture with ffmpeg

    16 février 2012, par Wai Yan

    I want to upload a video.Uploaded video will be capture two images at 10% and 50% time length. And if uploaded video is not flv, want to convert to flv. How to know uploaded video is flv or not flv. How to convert? Now I am using php and ffmpeg. Please someone answer me.I am beginner for php, ffmpeg and english language. I founded many questions in this website about ffmpeg.But I can't found need answer. If this question is duplicate question,forgive me.