Bug #3261
video hashing error
Status: | New | Start date: | 04/15/2014 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | harlo | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Component: |
Description
video hashing no longer completing because of IOException
the source video itself (/storage/emulated/0/DCIM/Camera/VID_20140415_122737.mp4) does exist, though.
E/**************** InformaCam: FFMPEG ********(16723): java.io.IOException: Error running exec(). Command: [/data/data/org.witness.informacam.app/app_bin/ffmpeg, -i, /storage/emulated/0/DCIM/Camera/VID_20140415_122737.mp4, -vcodec, copy, -an, -f, md5, -] Working Directory: null Environment: [ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, EMULATED_STORAGE_TARGET=/storage/emulated, ANDROID_BOOTLOGO=1, LD_LIBRARY_PATH=/vendor/lib:/system/lib, EXTERNAL_STORAGE=/storage/emulated/legacy, ANDROID_SOCKET_zygote=11, ANDROID_DATA=/data, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar, ANDROID_PROPERTY_WORKSPACE=9,0, ANDROID_STORAGE=/storage]
W/System.err(16723): java.io.IOException: Error running exec(). Command: [/data/data/org.witness.informacam.app/app_bin/ffmpeg, -i, /storage/emulated/0/DCIM/Camera/VID_20140415_122737.mp4, -vcodec, copy, -an, -f, md5, -] Working Directory: null Environment: [ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, EMULATED_STORAGE_TARGET=/storage/emulated, ANDROID_BOOTLOGO=1, LD_LIBRARY_PATH=/vendor/lib:/system/lib, EXTERNAL_STORAGE=/storage/emulated/legacy, ANDROID_SOCKET_zygote=11, ANDROID_DATA=/data, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar, ANDROID_PROPERTY_WORKSPACE=9,0, ANDROID_STORAGE=/storage]
W/System.err(16723): at java.lang.ProcessManager.exec(ProcessManager.java:211)
W/System.err(16723): at java.lang.ProcessBuilder.start(ProcessBuilder.java:195)
W/System.err(16723): at org.witness.informacam.informa.embed.VideoConstructor.execProcess(VideoConstructor.java:223)
W/System.err(16723): at org.witness.informacam.informa.embed.VideoConstructor.hashVideo(VideoConstructor.java:180)
W/System.err(16723): at org.witness.informacam.models.media.IVideo.analyze(IVideo.java:45)
W/System.err(16723): at org.witness.informacam.intake.EntryJob.onStart(EntryJob.java:107)
W/System.err(16723): at org.witness.informacam.utils.BackgroundProcessor.run(BackgroundProcessor.java:38)
W/System.err(16723): at java.lang.Thread.run(Thread.java:841)
W/System.err(16723): Caused by: java.io.IOException: No such file or directory
W/System.err(16723): at java.lang.ProcessManager.exec(Native Method)
W/System.err(16723): at java.lang.ProcessManager.exec(ProcessManager.java:209)
W/System.err(16723): ... 7 more
History
#1 Updated by harlo almost 4 years ago
might there be any reasons why ffmpeg doesn't work all of a sudden now?
#2 Updated by n8fr8 almost 4 years ago
Not sure why this would happen now but trying changing the video path file.getCanonicalPath() instead of getAbsolutePath(), when you setup the commands for the ffmpeg shell.
I am not having the same problem on my Nexus 4.
#3 Updated by harlo almost 4 years ago
I also tested with just "ffmpeg -version" (the android way, of course) and am still getting the same java.io error. why is this borked now?
#4 Updated by harlo almost 4 years ago
i tested: file.getAbsolutePath and file.getCannonicalPath are equivalent (at least in this case, same string)