Re: [FFmpeg-user] Scale down if resolution is greater than given?

2015-07-29 Thread vedran
sorry not that one, this one ffmpeg -i video.mov -filter_complex scale=iw*min(1\,min(640/iw\,360/ih)):-1 -vb 600k -ac 2 -ab 96k -ar 44100 -f mp4 out.mp4 On Wed, Jul 29, 2015 at 5:33 PM, Moritz Barsnick barsn...@gmx.net wrote: On Wed, Jul 29, 2015 at 17:27:47 +0200, vedran wrote: Anyway,

Re: [FFmpeg-user] Scale down if resolution is greater than given?

2015-07-29 Thread vedran
Anyway, thank you all guys. I did it like this, although i don't understand well what this does ffmpeg -i myvideo001.3gp -vf scale=1024:-1 -vb 600k -ac 2 -ab 96k -ar 44100 -f mp4 myvideo001out.mp4 On Wed, Jul 29, 2015 at 3:46 PM, Moritz Barsnick barsn...@gmx.net wrote: Hi Mahesh, On Wed, Jul

Re: [FFmpeg-user] Scale down if resolution is greater than given?

2015-07-29 Thread Moritz Barsnick
On Wed, Jul 29, 2015 at 17:27:47 +0200, vedran wrote: Anyway, thank you all guys. I did it like this, although i don't understand well what this does ffmpeg -i myvideo001.3gp -vf scale=1024:-1 -vb 600k -ac 2 -ab 96k -ar 44100 -f mp4 myvideo001out.mp4 Oh my, what's there not to understand?

Re: [FFmpeg-user] Convert .256 to avi with audio

2015-07-29 Thread Steve Boyer
On Wed, Jul 29, 2015 at 3:09 PM, André Luís Duarte andrelduarte-at-yahoo.com...@ffmpeg.org wrote: Hi guys. Need to do a skill in a video that was recorded in a security camera and the video file has the extension .264. The video file can be viewed in the program provided by company

Re: [FFmpeg-user] Convert .256 to avi with audio

2015-07-29 Thread Moritz Barsnick
(André, your subject is wrong. ;-)) On Wed, Jul 29, 2015 at 15:33:31 -0500, Steve Boyer wrote: On Wed, Jul 29, 2015 at 3:09 PM, André Luís Duarte andrelduarte-at-yahoo.com...@ffmpeg.org wrote: Probably shouldn't run ffmpeg as root, as your resulting video will be owned by root and can easily

[FFmpeg-user] Convert .256 to avi with audio

2015-07-29 Thread André Luís Duarte
Hi guys. Need to do a skill in a video that was recorded in a security camera and the video file has the extension .264. The video file can be viewed in the program provided by company (H264Player). The video is displayed with sound normally for this player. I need to check the sound level

Re: [FFmpeg-user] Scale down if resolution is greater than given?

2015-07-29 Thread Mahesh Patade
Hey, Check this. I have written this logic in my script. streams_stream_0_width= ; streams_stream_0_height= eval $(ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=height,width ${FILENAME})

Re: [FFmpeg-user] Scale down if resolution is greater than given?

2015-07-29 Thread Moritz Barsnick
Hi Vedran, On Wed, Jul 29, 2015 at 03:42:05 +0200, vedran wrote: I'm looking for simple bash script which scales down video only if it has greater resolution than given. You won't need a bash script necessarily. ffmpeg can handle expressions. The problem is also with vertical videos. So i

Re: [FFmpeg-user] Compile ffmpeg w libvpx libvorbis on Ubuntu 14.04.02 x64

2015-07-29 Thread Moritz Barsnick
On Tue, Jul 28, 2015 at 20:09:31 +0300, arcas...@gmail.com wrote: 4) after checking the output folder ~/android-ndk-r10e/sources/ffmpeg/android/arm/ realized that in the lib folder I couldn't find any so files, not to mention any libvpx or libvorbis related artefacts. Did you expect libvpx

Re: [FFmpeg-user] ffmpeg streaming on ARM

2015-07-29 Thread Mithun
Hi All, I’ve compiled ffmpeg for ARM platform(Cortex A9 dual core 800Mhz) and able to stream H.264 video at 5fps. Did any one tested PAL or higher resolution @25fps on ARM platform? I would like to know the any optimization is available for H264 encoding for ARM platform? With

[FFmpeg-user] Real-time streaming of rawdata images to Android with FFMPEG

2015-07-29 Thread Philipp Thies
*Hello :)* *CONDITIONS* I have an C++ server (Linux) and want to transmit rawdata images (RGB, 32bit) to an Android device in real-time. The server generates the rawdata images (with or without bitmap header) continuously every x miliseconds. Now, I want to put the rawdata images into a stream

Re: [FFmpeg-user] Scale down if resolution is greater than given?

2015-07-29 Thread Moritz Barsnick
Hi Mahesh, On Wed, Jul 29, 2015 at 18:08:56 +0530, Mahesh Patade wrote: Check this. I have written this logic in my script. Wow. If you're going to use scripting, why not use it to make life (and readability) easier instead of harder. For instance, just for my(!) readability, I would change