Hey,
I need to edit the properties of an x265 MP4 file.
Built-in explorer does not show the advanced tags, I just see them using MediaInfo (installed by K-Lite)
So is there any free tool to edit those extra tags embedded into the MP4 video?
**Note: abcAvi does not work for x265 MP4/M4V
** MetadataTouch also does not open the ones I need.
** To be clear, I used HandBrake to encode a video and "Encoding settings:" fields has a huge list of switches, I need to remove that large field!
Thanks.
+ Reply to Thread
Results 1 to 15 of 15
-
Last edited by omidsolo; 28th Oct 2020 at 12:02.
-
To be clear, I used HandBrake to encode a video and "Encoding settings:" fields has a huge list of switches, I need to remove that large field!
ffmpegs bitstream filters allow to remove the SEI info from H.264 and H.265 streams. Details about it can be found through the forum search or google.users currently on my ignore list: deadrats, Stears555, marcorocchini -
For H.264:
Code:"path to ffmpeg" -i "path to input" -c copy -bsf:v 'filter_units=remove_types=6' "path to stripped output"
Note that the x264 authors want those information to be in the streams that are created with their encoder.
For H.265:
x265 authors allow to disable the creation of this information using '--no-info'
using
Code:"path to ffmpeg" -i "path to input" -c copy -bsf:v 'filter_units=remove_types=39-40' "path to stripped output"
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Hey
Thanks for your kind help, since it's x265 I used:
ffmpeg.exe -i "D:\bin\source.mp4" -c copy -bsf:v 'filter_units=remove_types=39-40' "D:\bin\target.mp4"
But I get:
Error parsing bitstream filter sequence ''filter_units=remove_types=39-40'': Bitstream filter not found
Full Error:
ffmpeg version 2020-10-28-git-e5be4c5a88-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 60.100 / 56. 60.100
libavcodec 58.112.100 / 58.112.100
libavformat 58. 63.100 / 58. 63.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 88.100 / 7. 88.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\bin\Documentary.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2020-10-28T12:27:35.000000Z
Duration: 01:47:09.59, start: 0.000000, bitrate: 500 kb/s
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, smpte170m/bt470bg/bt470bg), 720x576 [SAR 16:15 DAR 4:3], 336 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc (default)
Metadata:
creation_time : 2020-10-28T12:27:35.000000Z
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 158 kb/s (default)
Metadata:
creation_time : 2020-10-28T12:27:35.000000Z
handler_name : Stereo
Error parsing bitstream filter sequence ''filter_units=remove_types=39-40'': Bitstream filter not foundLast edited by omidsolo; 28th Oct 2020 at 15:29.
-
since it's x265 I used
since you are on windows using quotes:
Code:-bsf:v "filter_units=remove_types=39-40"
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
Hey thx indeed, and sorry if I'm noob at this
It worked, but the new file still have the huge "Encoding settings" following by tons of switches/parameters!
Any advise please? -
That is strange since it does work fine here.
before:
Code:mediainfo.exe "f:\TestClips&Co\files\5000frames.mp4" General Complete name : f:\TestClips&Co\files\5000frames.mp4 Format : hvc1 Codec ID : hvc1 (iso4/hvc1) File size : 820 KiB Duration : 3 min 20 s Overall bit rate : 33.6 kb/s Encoded date : UTC 2018-01-27 15:58:44 Tagged date : UTC 2018-01-27 15:58:44 Writing application : Hybrid 2018.01.26.1 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L4.1@Main Codec ID : hvc1 Codec ID/Info : High Efficiency Video Coding Duration : 3 min 20 s Bit rate : 31.3 kb/s Maximum bit rate : 52.7 kb/s Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Bits/(Pixel*Frame) : 0.004 Stream size : 764 KiB (93%) Title : 265#video:fps=25@GPAC0.7.2-DEV-rev357-g7115eeb89-ab-suite Writing library : x265 2.6+22-ff02513b92c0:[Windows][GCC 7.2.0][64 bit] 10bit Encoding settings : cpuid=1173503 / frame-threads=4 / numa-pools=16 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=640x480 / interlace=0 / total-frames=0 / level-idc=41 / high-tier=0 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=0 / scenecut=40 / radl=0 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=-1:-1 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.50 / psy-rdoq=10.00 / no-rd-refine / no-lossless / cbqpoffs=-2 / crqpoffs=-2 / rc=crf / crf=18.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=20000 / vbv-bufsize=20000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=0.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=8 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=5 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / analysis-save=(null) / analysis-load=(null) / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / limit-sao / ctu-info=0 / no-lowpass-dct / refine-mv-type=0 / copy-pic=1 Encoded date : UTC 2018-01-27 15:58:44 Tagged date : UTC 2018-01-27 15:58:44 Color range : Limited Matrix coefficients : BT.470 System B/G Codec configuration box : hvcC
Code:ffmpeg -y -i "f:\TestClips&Co\files\5000frames.mp4" -bsf:v "filter_units=remove_types=39-40" -c copy e:\stripped.mp4 ffmpeg version N-99560-g25e5fc91d1-g6bdfea8d4b+3 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev3, Built by MSYS2 project) configuration: --cc='ccache gcc' --cxx='ccache g++' --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libaom --enable-libopenmpt --enable-version3 --enable-libsvthevc --enable-libsvtav1 --enable-libkvazaar --enable-libzmq --enable-libvmaf --enable-vapoursynth --disable-libdavs2 --enable-librav1e --enable-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DZMQ_STATIC --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-cflags=-DKVZ_STATIC_LIB libavutil 56. 60.100 / 56. 60.100 libavcodec 58.111.100 / 58.111.100 libavformat 58. 62.100 / 58. 62.100 libavdevice 58. 11.102 / 58. 11.102 libavfilter 7. 87.100 / 7. 87.100 libswscale 5. 8.100 / 5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc 55. 8.100 / 55. 8.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'f:\TestClips&Co\files\5000frames.mp4': Metadata: major_brand : hvc1 minor_version : 0 compatible_brands: iso4hvc1 creation_time : 2018-01-27T15:58:44.000000Z encoder : Hybrid 2018.01.26.1 Duration: 00:03:20.00, start: 0.000000, bitrate: 33 kb/s Stream #0:0(und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt470bg/unknown/unknown), 640x480 [SAR 1:1 DAR 4:3], 31 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc (default) Metadata: creation_time : 2018-01-27T15:58:44.000000Z handler_name : 265#video:fps=25@GPAC0.7.2-DEV-rev357-g7115eeb89-ab-suite Output #0, mp4, to 'e:\stripped.mp4': Metadata: major_brand : hvc1 minor_version : 0 compatible_brands: iso4hvc1 encoder : Lavf58.62.100 Stream #0:0(und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt470bg/unknown/unknown), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 31 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc (default) Metadata: creation_time : 2018-01-27T15:58:44.000000Z handler_name : 265#video:fps=25@GPAC0.7.2-DEV-rev357-g7115eeb89-ab-suite Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 5000 fps=0.0 q=-1.0 Lsize= 816kB time=00:03:19.88 bitrate= 33.4kbits/s speed=1.17e+04x video:762kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.025929%
Code:I:\Hybrid\64bit>mediainfo.exe e:\stripped.mp4 General Complete name : e:\stripped.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/mp41) File size : 816 KiB Duration : 3 min 20 s Overall bit rate : 33.4 kb/s Writing application : Lavf58.62.100 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L4.1@Main Codec ID : hvc1 Codec ID/Info : High Efficiency Video Coding Duration : 3 min 20 s Bit rate : 31.3 kb/s Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Bits/(Pixel*Frame) : 0.004 Stream size : 762 KiB (93%) Title : 265#video:fps=25@GPAC0.7.2-DEV-rev357-g7115eeb89-ab-suite Color range : Limited Matrix coefficients : BT.470 System B/G Codec configuration box : hvcC
(these 'Encoding settings' are SEI messages so the ffmpeg filter call should work without a problem)
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
Hey, thanks so much for the tip, unfortunately yeah I'm sure and both input/output still have that:
https://forum.videohelp.com/attachment.php?attachmentid=55664&stc=1&d=1603973088 -
Really strange,..
to make sure, that MediaInfo Tool you use doesn't cache the results by name, also try if the same happens if you use:
Code:ffmpeg.exe -i "D:\bin\source.mp4" -c copy -bsf:v "filter_units=remove_types=39-40" "D:\bin\stripped.mp4"
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Hey again. thx for the tip, seems not caching issue, also that happened with the new command, I'm uploading the video, and really thank you for the help, it's pretty important for me
-
you can attach a small sample here,...
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Got your file, but got no clue why ffmpeg isn't working.
What does work is remuxing the whole thing with Hybrid.- Start Hybrid
- open file
- set "Base->Processing->Video" to "passthrough"
- set "Base->Processing->Audio" to "passthrough all"
- set Output
- Create job
- Start job
- to extract the audio
Code:ffmpeg -y -threads 8 -i "C:\Users\Selur\Desktop\Documentary.mp4" -map 0:1 -vn -sn -acodec copy -map_metadata -1 -metadata encoding_tool="Hybrid 2020.10.29.1" "E:\Temp\iId_1_aid_0_2020-10-29@21_21_35_4010_01.aac"
- to extract the video
Code:MP4Box -raw 1 "C:\Users\Selur\Desktop\DOCUME~1.MP4" -out "E:\Temp\Documentary_2020-10-29@21_21_35_4010_02.265"
- to multiplex the raw streams
Code:MP4Box -add "E:\Temp\Documentary_2020-10-29@21_21_35_4010_02.265"#video:fps=25:name="UTC 2020-10-28 12:27:35":lang="" -brand hvc1 -add "E:\Temp\iId_1_aid_0_2020-10-29@21_21_35_4010_01.aac"#audio:name="Stereo":lang= -mpeg4 -itags tool="Hybrid 2020.10.29.1" -tmp "E:\Temp" -new "E:\Output\2020-10-29@21_21_35_4010__03.mp4"
- and the it also creates 3 additional sub-jobs to delete the temp files and rename the output
Code:mediainfo.exe e:\Output\Documentary.mp4 General Complete name : e:\Output\Documentary.mp4 Format : hvc1 Codec ID : hvc1 (isom/iso6/hvc1) File size : 382 MiB Duration : 1 h 47 min Overall bit rate mode : Variable Overall bit rate : 499 kb/s Encoded date : UTC 2020-10-29 20:21:46 Tagged date : UTC 2020-10-29 20:21:46 Writing application : Hybrid 2020.10.29.1 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main@L3@Main Codec ID : hvc1 Codec ID/Info : High Efficiency Video Coding Duration : 1 h 47 min Bit rate : 336 kb/s Maximum bit rate : 2 543 kb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Bits/(Pixel*Frame) : 0.032 Stream size : 258 MiB (67%) Title : UTC 2020-10-28 12 Encoded date : UTC 2020-10-29 20:21:46 Tagged date : UTC 2020-10-29 20:21:51 Color range : Limited Color primaries : BT.601 PAL Transfer characteristics : BT.470 System B/G Matrix coefficients : BT.601 Codec configuration box : hvcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 1 h 47 min Bit rate mode : Variable Bit rate : 158 kb/s Maximum bit rate : 202 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 121 MiB (32%) Title : Stereo Encoded date : UTC 2020-10-29 20:21:49 Tagged date : UTC 2020-10-29 20:21:51
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
My guess is that it's a bug.
users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
MKV Tag Editor
By gonwk in forum Newbie / General discussionsReplies: 32Last Post: 24th Jan 2021, 09:39 -
MP4 & MKV bulk tag removal
By jooj in forum Blu-ray RippingReplies: 0Last Post: 22nd Jan 2020, 12:03 -
How to tag/metatag MP4, AVI, MOV, WMA ?
By pacman10 in forum Newbie / General discussionsReplies: 16Last Post: 11th Dec 2018, 01:28 -
MKV Tag Editor commands
By ClearBlueSky85 in forum Newbie / General discussionsReplies: 10Last Post: 11th Mar 2017, 13:02 -
MP4 Video and Audio Tag Editor [for PC]
By duesouth in forum AudioReplies: 0Last Post: 19th Oct 2016, 09:18