Update: As requested, I'm including the output of the metadata writing step for MP4 files: $ ffmpeg -i test.mp4 -metadata 'arbitrary=string' -codec copy test-new-metadata.mp4įfmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developersĬonfiguration: -prefix=/usr -disable-debug -disable-static -disable-stripping -enable-avresample -enable-fontconfig -enable-gmp -enable-gnutls -enable-gpl -enable-ladspa -enable-libaom -enable-libass -enable-libbluray -enable-libdrm -enable-libfreetype -enable-libfribidi -enable-libgsm -enable-libiec61883 -enable-libmodplug -enable-libmp3lame -enable-libopencore_amrnb -enable-libopencore_amrwb -enable-libopenjpeg -enable-libopus -enable-libpulse -enable-libsoxr -enable-libspeex -enable-libssh -enable-libtheora -enable-libv4l2 -enable-libvidstab -enable-libvorbis -enable-libvpx -enable-libwebp -enable-libx264 -enable-libx265 -enable-libxcb -enable-libxml2 -enable-libxvid -enable-nvenc -enable-omx -enable-shared -enable-version3 The use of md5sum here is just to test if the output is identical. Note that I'm not interested in using ffmpeg's own hashing functions as I want to run the raw data through an external process. So I'm left wondering if my understanding of how to capture the raw video is misinformed, or if MP4 is "special" in some way. and now webm, just to see if I'm losing my mind: Webm ffmpeg -i test.webm -loglevel error -metadata 'arbitrary=string' -codec copy test-new-metadata.webmįfmpeg -i test.webm -loglevel error -map 0:v:0 -c copy -f data -map 0:a:0 -c copy -f data - | md5sumįfmpeg -i test-new-metadata.webm -loglevel error -map 0:v:0 -c copy -f data -map 0:a:0 -c copy -f data - | md5sum MP4 ffmpeg -i test.mp4 -loglevel error -metadata 'arbitrary=string' -codec copy test-new-metadata.mp4įfmpeg -i test.mp4 -loglevel error -map 0:v:0 -c copy -f data -map 0:a:0 -c copy -f data - | md5sumįfmpeg -i test-new-metadata.mp4 -loglevel error -map 0:v:0 -c copy -f data -map 0:a:0 -c copy -f data - | md5sum Here's an example with two files: test.mkv and test.mp4: MKV ffmpeg -i test.mkv -loglevel error -metadata 'arbitrary=string' -codec copy test-new-metadata.mkvįfmpeg -i test.mkv -loglevel error -map 0:v:0 -c copy -f data -map 0:a:0 -c copy -f data - | md5sumįfmpeg -i test-new-metadata.mkv -loglevel error -map 0:v:0 -c copy -f data -map 0:a:0 -c copy -f data - | md5sum The trouble is, with MP4 files, adding metadata to the file appears to alter the raw video data as well, while MKV files act as expected. I'm trying to write metadata to a video file in one step, and capture the "raw data" (no metadata) portion of a video file in another step.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |