be.tarsos.dsp.io.PipeDecoder.class Maven / Gradle / Ivy
???? 3? ? ?
? ? ? ? ? ? ?
? ? ?
M ? ? ? ? ? ? ? ? ?
?
? ? ? ?
? ? ? ?
? ?
? ? ? ?
? ? ?
? ?
? ?
?
? ? ? ? ? ? ?
? ? ?
?
? B@
?
? ? ? ? ? ? ?
? ? ?
6 ?
6 ? ? ? ?
?
? ? ?
? ? ? ?
M
M
M
L
L
R
U
U
Z
Y
Y
_
_ ?? !"
?#$
h%
j&
j'
m
Y(
j)*+
r,
r-
./
.0
12
134
56
5789
}:
|;
|< ?=
>?
|@
AB
? C DE FG
FH
?I
?JK
LMNOP
LQ
?RS ErrorStreamStringGlobber InnerClasses ErrorStreamGobbler LOG Ljava/util/logging/Logger; pipeEnvironment Ljava/lang/String; pipeArgument pipeCommand
pipeBuffer I printErrorstream Z decoderBinaryAbsolutePath ()V Code
StackMapTableP ? isAvailable (Ljava/lang/String;)Z ? L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V getDecodedStream ,(Ljava/lang/String;IDD)Ljava/io/InputStream;
TU getDuration (Ljava/lang/String;)D printBinaryInfo8B getTargetAudioFormat *(I)Lbe/tarsos/dsp/io/TarsosDSPAudioFormat; isAndroid ()ZO
access$100 ()Ljava/util/logging/Logger; ? ? ? ? ? ? ? ? os.nameVWX indowsYZ cmd.exe ? ? /C ? ? java/io/File /bin/bash ?[\ ? -c /system/bin/sh ?Coud not find a command line environment (cmd.exe or /bin/bash)]^[ java/lang/Error bDecoding via a pipe will not work: Coud not find a command line environment (cmd.exe or /bin/bash) PATH_X ~ -ss %input_seeking% %number_of_seconds% -i "%resource%" -vn -ar %sample_rate% -ac %channels% -sample_fmt s16 -f s16le pipe:1 ffmpeg ? ? java/lang/StringBuilder found ffmpeg on the path (`a ,). Will use ffmpeg for decoding media files.bcd[ ? ? avconv found avconv on your path( ,). Will use avconv for decoding media files. ? ? java.io.tmpdir ?efgh ?ic ? ? tCould not find an ffmpeg binary for your Android system. Did you forget calling: 'new AndroidFFMPEGLocator(this);' ? NTried to unpack a statically compiled ffmpeg binary for your architecture to: +Dit not find ffmpeg or avconv on your path( )), will try to download it automatically.j[ #be/tarsos/dsp/util/FFMPEGDownloaderkc BCould not download an ffmpeg binary automatically for your system. false RDecoding via a pipe will not work: Could not find an ffmpeg binary for your system`lmno -versionpq java/lang/Exception %input_seeking%rstu %number_of_seconds% -t
%resource%
%sample_rate%rv
%channels% 1 java/lang/ProcessBuilder java/lang/String ?w $Starting piped decoding process for with command: xy be/tarsos/dsp/io/PipeDecoder$1Tz{ ?| /be/tarsos/dsp/io/PipeDecoder$ErrorStreamGobbler}{ ?~x ? java/lang/Thread be/tarsos/dsp/io/PipeDecoder$2 ?
Decoding Pipe ?? java/io/IOException 2IO exception while decoding audio via sub process.?c? ? ffmpeg -i "%resource%" Starting duration command for ?[ be/tarsos/dsp/io/PipeDecoder$3 5be/tarsos/dsp/io/PipeDecoder$ErrorStreamStringGlobber ?? be/tarsos/dsp/io/PipeDecoder$4? ??c 2.*\s.*Duration:\s+(\d\d):(\d\d):(\d\d)\.(\d\d), .* java/util/regex/Pattern?????? ??v?r??? .?r??? java/io/BufferedReader java/io/InputStreamReader ?? ???c????[? ??? java/lang/InterruptedException %be/tarsos/dsp/io/TarsosDSPAudioFormat?????????? ?? android.app.Activity??? Running on Android! java/lang/ClassNotFoundException be/tarsos/dsp/io/PipeDecoder?c?? java/lang/Object java/lang/Process java/io/InputStream java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String; indexOf (Ljava/lang/String;)I (Ljava/lang/String;)V exists java/util/logging/Logger severe getenv append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; info '(Ljava/lang/String;Ljava/lang/String;)V length ()J
canExecute getAbsolutePath warning ffmpegBinary (C)Ljava/lang/StringBuilder; java/lang/Runtime
getRuntime ()Ljava/lang/Runtime; exec '(Ljava/lang/String;)Ljava/lang/Process; valueOf (D)Ljava/lang/String; replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; (I)Ljava/lang/String; ([Ljava/lang/String;)V start ()Ljava/lang/Process; getInputStream ()Ljava/io/InputStream; J(Lbe/tarsos/dsp/io/PipeDecoder;Ljava/io/InputStream;ILjava/lang/Process;)V getErrorStream p(Lbe/tarsos/dsp/io/PipeDecoder;Ljava/io/InputStream;Ljava/util/logging/Logger;Lbe/tarsos/dsp/io/PipeDecoder$1;)V 4(Lbe/tarsos/dsp/io/PipeDecoder;Ljava/lang/Process;)V )(Ljava/lang/Runnable;Ljava/lang/String;)V
getMessage printStackTrace fine V(Lbe/tarsos/dsp/io/PipeDecoder;Ljava/io/InputStream;Lbe/tarsos/dsp/io/PipeDecoder$1;)V run getErrorStreamAsString compile .(Ljava/lang/String;I)Ljava/util/regex/Pattern; matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; java/util/regex/Matcher find group java/lang/Integer '(Ljava/lang/String;)Ljava/lang/Integer; intValue ()I java/lang/Double &(Ljava/lang/String;)Ljava/lang/Double; doubleValue ()D (Ljava/io/InputStream;)V (Ljava/io/Reader;)V readLine out Ljava/io/PrintStream; java/io/PrintStream println close waitFor .be/tarsos/dsp/io/TarsosDSPAudioFormat$Encoding Encoding
PCM_SIGNED 0Lbe/tarsos/dsp/io/TarsosDSPAudioFormat$Encoding; java/nio/ByteOrder
BIG_ENDIAN Ljava/nio/ByteOrder; nativeOrder ()Ljava/nio/ByteOrder; equals (Ljava/lang/Object;)Z 9(Lbe/tarsos/dsp/io/TarsosDSPAudioFormat$Encoding;FIIIFZ)V java/lang/Class forName %(Ljava/lang/String;)Ljava/lang/Class; getName getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ( ?*? *? *'? ? ? ? * ?
*? ? Q?
Y? ? ? *?
*? ? 3?
Y? ? ? *?
*? ? ? ? ? Y? ?? LM*? ? ;? ? Y? ? +? !? ? "? #*? Y? ? ,? ? "? $?)*%? ? ;? ? Y? &? +? '? ? "? #*? Y? %? ,? ? "? $? ?*? (? j)? N*? ?
Y-? *:? ? #? + ,?? ? .? *? /? 0? (? 1? ? ? Y? 2? ? /? ? "? ? @? ? Y? 3? +? 4? ? "? 5? 6Y? 7N*-? 8? 0*? 0? ? 9? *? 0? *:? $? Y;? ?*? Y? "? <*? 0? "? <,? ? "? $? ? + ? , ? ? I ? ?? @? E ? ?? $<" ? ? ? ? ? =? Y? +? >? ? "? ?W?M? @ ? \ ? ? ? ? + *? *? *+?
*,? *-? $*? ? ? ? ? u 3*? $:A)? B? C:?? &D? Y? E? ? B? ? "? C:? DF? C:G+? C:H? I? C:JK? C:? LY? MY*?
SY*? SYS? N:? ? Y? O? +? ? "? #? ? Y? P? ? ? "? #? Q: ? RY* ? S*? ? T:
*? ? ? UY* ? V? ? W? X? YY? ZY* ? [\? ]? ^
?:? ? Y? `? ? a? ? "? 5? b?
_ ? ( ? = ?
? ? ? ? ?? ? ? ? ? ? ? k F cIe:G+? C:? LY? MY*?
SY*? SYS? N:? ? Y? f? +? ? "? #? ? Y? P? ? ? "? g? Q:? hY*? S*? ? i:? jY*? V? k:? l? YY? mY*? n\? ]? o? p: q(? s:
? t:? u? S? v? w? xh? v? w? x