[FFmpeg-user] -bsf hevc_metadata
Phoney at neo.rr.com
Phoney at neo.rr.com
Fri Sep 1 20:56:21 EEST 2023
Gyan,
Your good suggestion didn't work.
Was:
Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668),
yuv420p(tv, bt470bg), 720x576 [SAR 1:1 DAR 5:4], 3913 kb/s, 50 fps, 50
tbr, 90k tbn (default)
That's SAR=1, DAR=1.25.
Now:
Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668),
yuv420p(tv, bt470bg), 720x576 [SAR 64:45 DAR 16:9], 3913 kb/s, SAR 1:1
DAR 5:4, 50 fps, 50 tbr, 90k tbn (default)
I've never seen an ffprobe output like that! What is the video now?
"[SAR 64:45 DAR 16:9]"? Or "SAR 1:1 DAR 5:4"?
MPV plays it like it's SAR=1 DAR=1.25.
By the way, The command needed '-codec copy' so it is now this:
E:>ffmpeg -i "SOURCE.mp4" -bsf:v
hevc_metadata=sample_aspect_ratio=64/45 -codec copy "TARGET.mp4"
E:>ffprobe -i "TARGET.mp4"
ffprobe version 2023-08-10-git-d9d5695390-full_build-www.gyan.dev
Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq
--enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2
--enable-libaribb24 --enable-libaribcaption --enable-libdav1d
--enable-libdavs2 --enable-libuavs3d --enable-libzvbi
--enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom
--enable-libjxl --enable-libopenjpeg --enable-libvpx
--enable-mediafoundation --enable-libass --enable-frei0r
--enable-libfreetype --enable-libfribidi --enable-libharfbuzz
--enable-liblensfun --enable-libvidstab --enable-libvmaf
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va
--enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan
--enable-libplacebo --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-libcodec2
--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 58. 16.101 / 58. 16.101
libavcodec 60. 23.100 / 60. 23.100
libavformat 60. 10.100 / 60. 10.100
libavdevice 60. 2.101 / 60. 2.101
libavfilter 9. 10.100 / 9. 10.100
libswscale 7. 3.100 / 7. 3.100
libswresample 4. 11.100 / 4. 11.100
libpostproc 57. 2.100 / 57. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TARGET.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomdby1iso2mp41
encoder : Lavf60.10.100
Duration: 01:54:19.20, start: 0.000000, bitrate: 4370 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 182.520000
Metadata:
title : Chapter 1
Chapter #0:1: start 182.520000, end 830.960000
Metadata:
title : Chapter 2
Chapter #0:2: start 830.960000, end 1079.000000
Metadata:
title : Chapter 3
Chapter #0:3: start 1079.000000, end 1351.480000
Metadata:
title : Chapter 4
Chapter #0:4: start 1351.480000, end 1683.760000
Metadata:
title : Chapter 5
Chapter #0:5: start 1683.760000, end 2032.160000
Metadata:
title : Chapter 6
Chapter #0:6: start 2032.160000, end 2486.640000
Metadata:
title : Chapter 7
Chapter #0:7: start 2486.640000, end 2960.360000
Metadata:
title : Chapter 8
Chapter #0:8: start 2960.360000, end 3660.280000
Metadata:
title : Chapter 9
Chapter #0:9: start 3660.280000, end 4004.000000
Metadata:
title : Chapter 10
Chapter #0:10: start 4004.000000, end 4285.840000
Metadata:
title : Chapter 11
Chapter #0:11: start 4285.840000, end 4541.680000
Metadata:
title : Chapter 12
Chapter #0:12: start 4541.680000, end 4943.120000
Metadata:
title : Chapter 13
Chapter #0:13: start 4943.120000, end 5324.280000
Metadata:
title : Chapter 14
Chapter #0:14: start 5324.280000, end 5857.280000
Metadata:
title : Chapter 15
Chapter #0:15: start 5857.280000, end 6709.040000
Metadata:
title : Chapter 16
Chapter #0:16: start 6709.040000, end 6859.180000
Metadata:
title : Chapter 17
Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668),
yuv420p(tv, bt470bg), 720x576 [SAR 64:45 DAR 16:9], 3913 kb/s, SAR 1:1
DAR 5:4, 50 fps, 50 tbr, 90k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz,
stereo, fltp, 448 kb/s (default)
Metadata:
handler_name : Stereo
vendor_id : [0][0][0][0]
Side data:
audio service type: main
Stream #0:2[0x3](eng): Data: bin_data (text / 0x74786574)
Metadata:
handler_name : SubtitleHandler
Unsupported codec with id 98314 for input stream 2
More information about the ffmpeg-user
mailing list