Hello anyone,
i´m doing a wrapper for ffmpeg actually...
It seems to work but as i dont have worked with ffmep in the past i dont have some good commandline examples to convert a video to flv for example. Or to reduce the quality (videosize)...
So my question. Can someone provide some example commandlines to
- Convert a videofile to a much smaller one with lesser quality to reduce internet traffic when on the field...
As for now i´m trying the command
and it results in this output so far
So. If anyone could provide other example commandlines then i will try to use these commands with my videos to see it the library is working
Comments are highly welcome
i´m doing a wrapper for ffmpeg actually...
It seems to work but as i dont have worked with ffmep in the past i dont have some good commandline examples to convert a video to flv for example. Or to reduce the quality (videosize)...
So my question. Can someone provide some example commandlines to
- Convert a videofile to a much smaller one with lesser quality to reduce internet traffic when on the field...
As for now i´m trying the command
B4X:
ffmpg.executecommand(Array As String("-i",File.Combine(extsdcard,"DCIM/Camera/"&flist.Get(0))))
and it results in this output so far
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
n2.4.2
DIRECTORY_ALARMS=Alarms
DIRECTORY_DCIM=DCIM
DIRECTORY_DOCUMENTS=Documents
DIRECTORY_DOWNLOADS=Download
DIRECTORY_MOVIES=Movies
DIRECTORY_MUSIC=Music
DIRECTORY_NOTIFICATIONS=Notifications
DIRECTORY_PICTURES=Pictures
DIRECTORY_PODCASTS=Podcasts
DIRECTORY_RINGTONES=Ringtones
DirRootExternal = /storage/emulated/0
extsdcard=/storage/emulated/0
lib:Raising.. ffmpeg_onstart()
** Activity (main) Resume **
** Service (overlay) Create **
** Service (overlay) Start **
FFMPEG_onStart
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
FFMPEG_onProgress(WARNING: linker: /data/data/b4a.example.ffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.)
FFMPEG_onProgress(ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers)
FFMPEG_onProgress( built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC))
FFMPEG_onProgress( configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=)
FFMPEG_onProgress( libavutil 54. 7.100 / 54. 7.100)
FFMPEG_onProgress( libavcodec 56. 1.100 / 56. 1.100)
FFMPEG_onProgress( libavformat 56. 4.101 / 56. 4.101)
FFMPEG_onProgress( libavdevice 56. 0.100 / 56. 0.100)
FFMPEG_onProgress( libavfilter 5. 1.100 / 5. 1.100)
FFMPEG_onProgress( libswscale 3. 0.100 / 3. 0.100)
FFMPEG_onProgress( libswresample 1. 1.100 / 1. 1.100)
FFMPEG_onProgress( libpostproc 53. 0.100 / 53. 0.100)
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onprogress()
lib:Raising.. ffmpeg_onfailure()
lib:Raising.. ffmpeg_onfinish()
FFMPEG_onProgress(Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/20151018_131935.mp4'
FFMPEG_onProgress( Metadata
FFMPEG_onProgress( major_brand : mp42)
FFMPEG_onProgress( minor_version : 0)
FFMPEG_onProgress( compatible_brands: isommp42)
FFMPEG_onProgress( creation_time : 2015-10-18 11:19:50)
FFMPEG_onProgress( Duration: 00:00:14.21, start: 0.000000, bitrate: 17230 kb/s)
FFMPEG_onProgress( Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17016 kb/s, 29.99 fps, 30 tbr, 90k tbn, 180k tbc (default))
FFMPEG_onProgress( Metadata
FFMPEG_onProgress( rotate : 90)
FFMPEG_onProgress( creation_time : 2015-10-18 11:19:50)
FFMPEG_onProgress( handler_name : VideoHandle)
FFMPEG_onProgress( Side data
FFMPEG_onProgress( displaymatrix: rotation of -90.00 degrees)
FFMPEG_onProgress( Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default))
FFMPEG_onProgress( Metadata
FFMPEG_onProgress( creation_time : 2015-10-18 11:19:50)
FFMPEG_onProgress( handler_name : SoundHandle)
FFMPEG_onProgress(At least one output file must be specified)
FFMPEG_onFailure(WARNING: linker: /data/data/b4a.example.ffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/20151018_131935.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2015-10-18 11:19:50
Duration: 00:00:14.21, start: 0.000000, bitrate: 17230 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17016 kb/s, 29.99 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 90
creation_time : 2015-10-18 11:19:50
handler_name : VideoHandle
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
creation_time : 2015-10-18 11:19:50
handler_name : SoundHandle
At least one output file must be specified
)
FFMPEG_onFinish
** Activity (main) Pause, UserClosed = false **
So. If anyone could provide other example commandlines then i will try to use these commands with my videos to see it the library is working
Comments are highly welcome