Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
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 user1731249Server'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.
- Upload a series of images as zip.
- Extract zip images to temp directory.
- Convert series of images to video using FFMPEG.
- updating video info in MySQL db
- 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 user2882101I 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 TsrI 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!!!!
-
Quality issue with ffmpeg stream
17 octobre 2013, par GregoryI'm trying to save a YouTube's RSTP stream.
First of all, I get JSON info about the stream I want to catch. For example, http://gdata.youtube.com/feeds/api/videos/gSTegCPviDQ?alt=json&v=2&prettyprint=true&format=1
Second, I use ffmpeg to save stream to file:
ffmpeg -i rtsp://r4---sn-5hn7su7z.c.youtube.com/CiILENy73wIaGQk0iO8jgN4kgRMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp -an -vcodec copy -s 480x360 -y /software/tmp/tmp.avi
Everything works fine but the quality of video is extremely bad.
Q: How can I download the stream in a better quality?
JSON says that there is a yt$format variable which defines the quality of stream. Unfortunately, stream links looks same (as you can see in JSON response I mentioned above).
Thanks in advance!
-
How to create an H264 video for specific Libav decoding
16 octobre 2013, par James491I'm creating a program that decodes and displays videos using Libav. I have complete control over the videos the program uses because I make them beforehand. I am able to seek and decode the videos as needed but only after adjusting to a few quirks of x264 encoded videos. For instance, I have to add 8-10 extra frames at the end of my videos to be able to decode and seek to the original last frame. Is it possible to further customize the encoding of an H264 video using ffmpeg or another application, or perhaps some parameters I can initialize in AVFormatContext or AVCodecContext, in order to solve something like decoding the last frames? Also, are there any specifics I can add to the video file or implement in decoding to decrease seek time, since all seek commands and positions are predetermined? My current seeking function is just composed of an avformat_seek_file(...) followed by avcodec_flush_buffers(...). I am already seeking to key frames. I am willing to read and learn if all you have is a recommended page or article to investigate.