Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Rotated video with ffmpeg doesn't play in flowplayer in IE9

    17 octobre 2013, par yoshi

    I have a script that rotates videos 90 degrees and then the videos are displayed on a web page using flowplayer (HTML5 version, not Flash). After the video is rotated once it does not play in IE9 but plays without any other problems in Chrome and Firefox. The error message is: Video file not found.

    I've looked in IE9's developer tools console, in the network tab and the browser streams the whole video.

    The following is the ffmpeg command I use to rotate and convert the video:

    ffmpeg -i input.mov -y -r 30 -b 4M -vf 'transpose=1,scale=800:trunc(ow/a/2)*2' -ar 48000 -vcodec libx264 -profile baseline -preset slow -level 2.2 output.mp4

    This is the input file which I used: https://dl.dropboxusercontent.com/u/37994/local%20capture.mov

    This is the output video: https://dl.dropboxusercontent.com/u/37994/local%20capture%20rotated.mp4

    The input video from above is a screen capture made using QuickTime on Mac OS.

    This also happened for this video: http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov And also this one: https://dl.dropboxusercontent.com/u/37994/clipcanvas_14348_offline.mp4

    This didn't happen for the sample .mov from here: http://support.apple.com/kb/ht1425

    If I run the command twice, meaning I rotate the video 90 degrees and then I rotate the output using the same command once more, the problem disappears, but I need to be able to rotate only 90 degrees.

    This problem doesn't happen if I put IE9 in IE7 or IE8 compatibility mode.

    I was thinking that maybe the problem was how the server serves the video but there's no problem with other videos.

    I looked at the metadata with ffmpeg but didn't see anything significant.

    I already have AddType video/mp4 .mp4 in .htaccess.

    I can't seem to pin down what's causing this problem.

    Edit:

    Request in IE9 IE9 request

    Response in IE9 IE9 response

  • Using FFMPEG to losslessly convert YUV to another format for editing in Adobe Premier

    17 octobre 2013, par Wolfman's Brother

    I have a raw YUV video file that I want to do some basic editing to in Adobe CS6 Premiere, but it won't recognize the file. I thought to use ffmpeg to convert it to something Premiere would take in, but I want this to be lossless because afterwards I will need it in YUV format again. I thought of avi, mov, and prores but I can't seem to figure out the proper command line to ffmpeg and how to ensure it is lossless.

    Thanks for your help.

  • How many "Ruby on Rails" sites can be hosted using sub url in apache configuration file on apache4 with passenger4 on Ubuntu server ?

    17 octobre 2013, par user1731249

    Server's Hardware config: Ubuntu server 12.04, CPU: dual code (64-bit), RAM: 8GB, Disk: 200GB.

    Server's Software config: Apache2, Passenger4, Rails4, ruby2, MySQL.

    I'm developing a Ruby on Rails website which performs following tasks.

    1. Upload a series of images as zip.
    2. Extract zip images to temp directory.
    3. Convert series of images to video using FFMPEG.
    4. updating video info in MySQL db
    5. Viewing the video in HTML5 video tag.

    Maximum length of single video being 1min and on an average there may be 50 videos to be converted per day. I created three copies (Don't ask me why!) of same website and hosting three sites as sub-URLs like "example.com" being the domain and example.com/site1, example.com/site2, example.com/site3. Below is the Apache configuration: RailsAutoDetect off ServerName 127.0.0.1

        DocumentRoot /home/ubuntuuser/work/public
        ErrorDocument 404 /404.html
    
    RailsBaseURI /site1
    
        home/ubuntuuser/work/site1/advisor/public>
                Allow from all
        Options -MultiViews
                RailsEnv production
        
    
    RailsBaseURI /site2
    
    home/ubuntuuser/work/site2/advisor/public>
                Allow from all
        Options -MultiViews
                RailsEnv production
        
    
        RailsBaseURI /site3
    
    home/ubuntuuser/work/site3/advisor/public>
                Allow from all
        Options -MultiViews
                RailsEnv production
        
    

    How many such sites can I host with sub-URLs without big performance drag? Also please help to do a performance test for all the sub-URLs.

  • How to get rotation attribute in metadata using FFMPEG [on hold]

    17 octobre 2013, par user2882101

    I am trying to figure out rotation attribute in metadata using FFMPEG.I use the following command FFMPEG -i D:\maxpayne3.mp4

    ffmpeg version N-57217-ga7e3006 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 22:04:43 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 37.100 / 55. 37.100 libavformat 55. 19.102 / 55. 19.102 libavdevice 55. 4.100 / 55. 4.100 libavfilter 3. 88.101 / 3. 88.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\maxpayne3.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.3.100 Duration: 00:01:42.42, start: 0.000000, bitrate: 2361 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2289 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default ) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 66 kb/s (default) Metadata: handler_name : SoundHandler

    I have not seen rotation attribute in metadata ,can anyone pl help me....

  • Is there any way to compress a video in Android native app ?

    17 octobre 2013, par Sudharsan Linkan Tsr

    I am working on an Android native application with video recording. Everything works like a charm but video uploading is very slow.

    I'm using ffmpeg for Pause/Record. I tried reference of Video compression API but I couldn't find anything.

    Is there any way, I can implement the video compression. Your earliest response would be appreciated.

    Thank you all!!!!