Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFmpeg - Convert MP4 to Webm

    25 avril 2017, par Luzwitz

    I need convert MP4 to webm with ffmpeg. So, i use :

    ffmpeg -i input.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output.webm
    

    But it's very long.

    Is there faster ?

  • Error when connecting mobotix cameras through FFmpeg

    25 avril 2017, par nikit biraj

    I am trying to connect M25 Mobotix cameras through FFmpeg. In this process I get one camera connection successful while the other gives error of AVERROR_INVALIDDATA( -1094995529) For cross verification I checked configuration of cameras and they are almost same. No major difference. What might be the reason when one camera is connecting and other not connecting.

  • Concert MP4 Version - FFmpeg

    25 avril 2017, par Luzwitz

    I have two mp4 File :

    1. out.mp4: ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]
    2. video/rio2016/finale/brasse/200.mp4: ISO Media, MP4 v2 [ISO 14496-14]

    How can I convert 1 to 2 (mp41 to mp42) ?

    Thanks !

  • Video Failed to transcode with FFmpeg with Rails app in my localhost

    25 avril 2017, par Takor

    I ve tried to upload videos using Carrierwave-video & FFmpeg. I've installed FFmpeg and there is no problem with installation. I have made configurations from ' http://blog.41studio.com/upload-videos-using-carrierwave-ffmpeg/ ' .But when I tried to upload video (.mov file), I have an error.

    Error

     Video Failed to transcode with FFmpeg. Check ffmpeg install and verify video is not corrupt or cut short. Original error: Failed encoding.Errors: encoded file is invalid. Full output: ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfaac --enable-nonfree --enable-vda libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/tanerkoroglu/Desktop/Wishpere2/public/uploads/tmp/1449435556-7186-2107/IMG_1756.MOV': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2015-10-17 12:19:27 Duration: 00:01:04.24, start: 0.000000, bitrate: 17176 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 17082 kb/s, 29.98 fps, 29.97 tbr, 600 tbn, 1200 tbc (default) Metadata: creation_time : 2015-10-17 12:19:27 handler_name : Core Media Data Handler encoder : H.264 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 85 kb/s (default) Metadata: creation_time : 2015-10-17 12:19:27 handler_name : Core Media Data Handler Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default) Metadata: creation_time : 2015-10-17 12:19:27 handler_name : Core Media Data Handler Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default) Metadata: creation_time : 2015-10-17 12:19:27 handler_name : Core Media Data Handler Please use -q:a or -q:v, -qscale is ambiguous [Parsed_movie_0 @ 0x7feb6bf00100] Failed to avformat_open_input '/Users/tanerkoroglu/Desktop/Wishpere2/app/assets/images/logo.png' [AVFilterGraph @ 0x7feb6bc09240] Error initializing filter 'movie' with args '/Users/tanerkoroglu/Desktop/Wishpere2/app/assets/images/logo.png' Error opening filters! 
    

    video_uploader.rb

    class VideoUploader < CarrierWave::Uploader::Base  
        include CarrierWave::Video
        process :encode
         def encode
           encode_video(:mp4, watermark: {path: File.join(Rails.root, "app/assets/images/logo.png")})
         end
    
       version :mp4 do
         def full_filename(for_file)
            super.chomp(File.extname(super)) + '.mp4'
         end
       end
     end 
    

    Gemfile

     gem 'carrierwave',             '0.10.0'
     gem 'carrierwave-video' 
     gem 'streamio-ffmpeg'
    
  • nodejs - get frame from rtmp stream

    25 avril 2017, par Alex

    I have video server where I can stream with my web-camera, and server generates RTMP stream. My node application should consume this stream and return image (current frame) through the HTTP API (GET /frame, for example).

    So, main problem here is how to get frame from RTMP stream in node. I cant find any suitable package in NPM that can works with RTMP streams. Solution like "exec('ffmpeg ')" is not very good, because it slow and hacky.