Hello,
I wish to remove the "original display aspect ratio" metadata from a web-dl MP4 file.
General
Complete name : 1.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 1.61 GiB
Duration : 44 min 45 s
Overall bit rate : 5 140 kb/s
Writing application : Lavf56.15.102
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 44 min 45 s
Bit rate : 5 000 kb/s
Width : 1 920 pixels
Height : 1 072 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.097
Stream size : 1.56 GiB (97%)
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Duration : 44 min 45 s
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 41.0 MiB (2%)
Default : Yes
Alternate group : 1I tried the following commands,Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.15.102
Duration: 00:44:45.12, start: 0.000000, bitrate: 5139 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1072 [SAR 134:135 DAR 16:9], 5000 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Code:ffmpeg -i input.mp4 -map_metadata -1 -c copy output.mp4Code:ffmpeg -i input.mp4 -metadata:s:v:0 original_display_aspect_ratio=0 -c copy output.mp4Code:ffmpeg -i input.mp4 -metadata:s:v:0 original_display_aspect_ratio="" -c copy output.mp4but none of them worked.Code:ffmpeg -i input.mp4 -bsf:v "filter_units=remove_types=6" -c copy output.mp4
I don't think ffmpeg bitstrem filters supports original display aspect ratio, so
"h264_metadata=original_display_aspect_ratio" doesn't work either.
Is it possible to remove the "original display aspect ratio" entry? If so, could anyone please advise me on how to achieve it?
Thank you.![]()
+ Reply to Thread
Results 1 to 3 of 3
-
Last edited by aveceux; 26th Feb 2019 at 02:11.
-
Try:
Code:ffmpeg -i "input.mp4" -map 0 -c copy -bsf:v "h264_metadata=sample_aspect_ratio=1" -aspect 1920:1072 "output.mp4"
Last edited by sneaker; 26th Feb 2019 at 04:50.
-
Thank you very much for your help, sneaker. Your code worked like a charm!
I've tried the aspect command before, but this only kept my player (MPC) from changing its height and width while playing this particular video. The original dar remained intact. Setting the sar to 1 did the job perfectly.
Thanks again!Last edited by aveceux; 26th Feb 2019 at 10:02.
Similar Threads
-
How to remove Subtitles from an MP4 file?
By qxszjj in forum Newbie / General discussionsReplies: 10Last Post: 8th Jul 2017, 10:01 -
Remove / Clear metadata from MP4's stored in one location
By NickSpender in forum Newbie / General discussionsReplies: 1Last Post: 17th May 2017, 08:35 -
Panasonic AVCHD MTS to MP4, with file Create/Modified Date + Metadata
By stevebor1 in forum Video ConversionReplies: 1Last Post: 17th Aug 2015, 03:12 -
how can one single H264 MP4 file not be supported?
By njitgrad in forum Video ConversionReplies: 25Last Post: 9th Apr 2015, 09:06 -
How to remove subtitles from MP4 file?
By Caspoor in forum SubtitleReplies: 11Last Post: 15th Sep 2014, 12:51