![]() ![]() Can anyone give me a hint what I can do?įfmpeg log: $ffmpeg -i video.mov -vcodec h264 -acodec aac video.mp4įfmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developersīuilt with Apple clang version 12.0.0 (clang-1200.0.32.29)Ĭonfiguration: -prefix=/usr/local/Cellar/ffmpeg/4.4_2 -enable-shared -enable-pthreads -enable-version3 -cc=clang -host-cflags= -host-ldflags= -enable-ffplay -enable-gnutls -enable-gpl -enable-libaom -enable-libbluray -enable-libdav1d -enable-libmp3lame -enable-libopus -enable-librav1e -enable-librubberband -enable-libsnappy -enable-libsrt -enable-libtesseract -enable-libtheora -enable-libvidstab -enable-libvorbis -enable-libvpx -enable-libwebp -enable-libx264 -enable-libx265 -enable-libxml2 -enable-libxvid -enable-lzma -enable-libfontconfig -enable-libfreetype -enable-frei0r -enable-libass -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopenjpeg -enable-libspeex -enable-libsoxr -enable-libzmq -enable-libzimg -disable-libjack -disable-indev=jack -enable-avresample -enable-videotoolbox This is a workaround, but it does not scale and I like to automate this process via ffmpeg. Val contentType = (TikaInputStream.get(byteArray), metadata)īTW: If I use a video editing program (DaVinci Resolve in my case) I can load the video, adjust settings and explicitly set the codec to mp4, export the video and then the resulting file works and Apache Tika extract the desired content-type. ![]() Scala code to retrieve the content type from the file: // byteArray: Array But my backend, which receives the video, uses a library called Apache Tika to extract the content type and the result here is: video/quicktime. If I use a tool like exiftool to show the metadata the output for content-type is video/mp4 all seems to be correct. I convert this to mp4 using ffmpeg:įfmpeg -i video.mov -vcodec h264 -acodec aac video.mp4 I start with a video file recored with an iPhone. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |