Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
5th February 2019, 23:34 | #61 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Quote:
1 pixel with 2K nits doesn't really mean much, does it? |
|
6th February 2019, 02:02 | #62 | Link | |
Registered User
Join Date: Oct 2007
Posts: 385
|
Quote:
hevc_mp4toannexb - does it need to be mp4 or can be mkv too? |
|
6th February 2019, 13:13 | #63 | Link | |
Registered User
Join Date: Jun 2010
Posts: 19
|
Quote:
Thank You! Last edited by halls; 6th February 2019 at 13:18. |
|
7th February 2019, 11:17 | #65 | Link | |
Registered User
Join Date: Oct 2007
Posts: 385
|
Quote:
Code:
ffmpeg -i "hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mkvtoannexb -f rawvideo - | hdr10plus_parser.exe - --verify and Code:
ffmpeg -i "hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | hdr10plus_parser.exe - --verify Error writing trailer of pipe:: Invalid argument frame= 1 fps=0.0 q=-1.0 Lsize= 587kB time=00:00:00.00 bitrate=N/A speed=N/A video:587kB audio:0kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.000000% Conversion failed! works fine with: Code:
hdr10plus_parser.exe hdr10plus.sample_track1_[und].hevc |
|
7th February 2019, 13:52 | #67 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Quote:
fmpeg -i "input.mkv" -c:v copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_parser.exe - from parser website as an example. Source container should not matter. You use -vbsf hevc_mp4toannexb always and then -f hevc, not rawvideo. This command just extracts h265 elementary stream from container and passes to parser (without actually creating file). It's just shorter version of 2 stage process where you first create elementary h265 file from your source and then put it through parser. update: I just read it properly and rawvideo or hevc does the same in this case. Last edited by kolak; 7th February 2019 at 20:00. |
|
7th February 2019, 16:23 | #69 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
When I call:
Code:
ffmpeg -i "e:\Output\with HDR-10+.mp4" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | hdr10plus_parser.exe - --verify Code:
Parsing HEVC file for dynamic metadata... ffmpeg version N-93064-ged20fbcd48 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (Rev1, Built by MSYS2 project) 20181214 configuration: --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --disable-debug --enable-ffnvcodec --enable-nvdec --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --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-libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libaom --enable-version3 --enable-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 46.100 / 58. 46.100 libavformat 58. 26.100 / 58. 26.100 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001cae4f52980] st: 0 edit list: 2 Missing key frame while searching for timestamp: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001cae4f52980] st: 0 edit list 2 Cannot find an index entry before timestamp: 0. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'e:\Output\with HDR-10+.mp4': Metadata: major_brand : hev1 minor_version : 0 compatible_brands: iso4hev1 creation_time : 2019-02-03T13:36:13.000000Z encoder : Hybrid 2019.02.02.1 Duration: 00:00:47.81, start: 0.000000, bitrate: 10657 kb/s Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt709/unknown/unknown), 3840x2160 [SAR 1:1 DAR 16:9], 10410 kb/s, 24 fps, 24 tbr, 24k tbn, 24 tbc (default) Metadata: creation_time : 2019-02-03T13:36:13.000000Z handler_name : 265#video:fps=24:delay=18@GPAC0.7.2-DEV-rev992-g4d4da2b20-ab-suite Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 255 kb/s (default) Metadata: creation_time : 2019-02-03T13:29:57.000000Z Output #0, rawvideo, to 'pipe:': Metadata: major_brand : hev1 minor_version : 0 compatible_brands: iso4hev1 encoder : Lavf58.26.100 Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt709/unknown/unknown), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 10410 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc (default) Metadata: creation_time : 2019-02-03T13:36:13.000000Z handler_name : 265#video:fps=24:delay=18@GPAC0.7.2-DEV-rev992-g4d4da2b20-ab-suite Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help Dynamic HDR10+ metadata detected. av_interleaved_write_frame(): Broken pipe Error writing trailer of pipe:: Broken pipe frame= 1 fps=0.0 q=-1.0 Lsize= 32kB time=-00:00:00.04 bitrate=N/A speed=N/A video:98kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Conversion failed! Quote:
Code:
ffmpeg -i "e:\Output\with HDR-10+.mp4" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | hdr10plus_parser.exe - Code:
Parsing HEVC file for dynamic metadata... ffmpeg version N-93064-ged20fbcd48 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (Rev1, Built by MSYS2 project) 20181214 configuration: --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --disable-debug --enable-ffnvcodec --enable-nvdec --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --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-libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libaom --enable-version3 --enable-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 46.100 / 58. 46.100 libavformat 58. 26.100 / 58. 26.100 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001029e292980] st: 0 edit list: 2 Missing key frame while searching for timestamp: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001029e292980] st: 0 edit list 2 Cannot find an index entry before timestamp: 0. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'e:\Output\with HDR-10+.mp4': Metadata: major_brand : hev1 minor_version : 0 compatible_brands: iso4hev1 creation_time : 2019-02-03T13:36:13.000000Z encoder : Hybrid 2019.02.02.1 Duration: 00:00:47.81, start: 0.000000, bitrate: 10657 kb/s Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt709/unknown/unknown), 3840x2160 [SAR 1:1 DAR 16:9], 10410 kb/s, 24 fps, 24 tbr, 24k tbn, 24 tbc (default) Metadata: creation_time : 2019-02-03T13:36:13.000000Z handler_name : 265#video:fps=24:delay=18@GPAC0.7.2-DEV-rev992-g4d4da2b20-ab-suite Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 255 kb/s (default) Metadata: creation_time : 2019-02-03T13:29:57.000000Z Output #0, rawvideo, to 'pipe:': Metadata: major_brand : hev1 minor_version : 0 compatible_brands: iso4hev1 encoder : Lavf58.26.100 Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt709/unknown/unknown), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 10410 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc (default) Metadata: creation_time : 2019-02-03T13:36:13.000000Z handler_name : 265#video:fps=24:delay=18@GPAC0.7.2-DEV-rev992-g4d4da2b20-ab-suite Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 1146 fps=127 q=-1.0 Lsize= 60682kB time=00:00:47.66 bitrate=10428.8kbits/s speed= 5.3x video:60682kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% Done. Generating HDR10+ metadata JSON file... Done. Code:
ffmpeg -loglevel quiet -i "e:\Output\with HDR-10+.mp4" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | hdr10plus_parser.exe - --verify Code:
Parsing HEVC file for dynamic metadata... Dynamic HDR10+ metadata detected. |
|
7th February 2019, 19:49 | #70 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
|
Quote:
The spec for static metadata (MaxFALL and MaxCLL) requires that the calculations be done in RGB, even though HDR content is always delivered in 4:2:0. It could be argued that metadata should be done based on the highest bitrate for the highest resolution encode, since that's the largest actual values you'd get, and more conservative values will allow more aggressive use of a panel's actual abilities. However, tone mappers could theoretically use knowledge of the intended values to try to reconstruct those values in tone mapping. I don't know if any do it. This stuff gets quickly complicated, which is why all good HDR tone mappers required the efforts of many PhDs. Clear specs on what the data is supposed to represent are so essential, and often much less obvious that it seems at first glance. |
|
10th February 2019, 11:12 | #72 | Link | |
Registered User
Join Date: Oct 2007
Posts: 385
|
Quote:
Code:
"D:\hdr10plus_parser\ffmpeg.exe" -i "D:\hdr10plus_parser\hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | "D:\hdr10plus_parser\hdr10plus_parser.exe" - Code:
Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help av_interleaved_write_frame(): Invalid argument Error writing trailer of pipe:: Invalid argument frame= 1 fps=0.0 q=-1.0 Lsize= 587kB time=00:00:00.00 bitrate=N/A speed=N/A video:587kB audio:0kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.000000% Conversion failed! Code:
"D:\hdr10plus_parser\ffmpeg.exe" -loglevel quiet -i "D:\hdr10plus_parser\hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | "D:\hdr10plus_parser\hdr10plus_parser.exe" - Last edited by mini-moose; 10th February 2019 at 11:16. |
|
10th February 2019, 11:28 | #73 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,843
|
Errors says: "Invalid file path.", so looks like parser not getting data.
Does this work: "D:\hdr10plus_parser\ffmpeg.exe" -i "D:\hdr10plus_parser\hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f null - |
10th February 2019, 12:47 | #74 | Link | |
Registered User
Join Date: Oct 2007
Posts: 385
|
Quote:
Code:
Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 3583 fps=0.0 q=-1.0 Lsize=N/A time=00:02:29.35 bitrate=N/A speed= 170x video:821419kB audio:0kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: unknown |
|
10th February 2019, 21:15 | #76 | Link | |
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 570
|
Quote:
Can you try updating to the latest release, 0.2.3 please? I've changed the whole input argument handling so maybe the errors get fixed. Also which version of ffmpeg are you using? I've been testing using the Zeranoe FFmpeg builds. This is what I tested with just now: Code:
"ffmpeg.exe" -i ".\input.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | ".\hdr10plus_parser.exe" - -o ".\test.json" |
|
11th February 2019, 10:34 | #77 | Link | |
Registered User
Join Date: Oct 2007
Posts: 385
|
Quote:
Now updated to the new hdr10plus_parser version and things are looking much better! Code:
"D:\hdr10plus_parser\ffmpeg.exe" -i "D:\hdr10plus_parser\hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | "D:\hdr10plus_parser\hdr10plus_parser.exe" - -o "D:\hdr10plus_parser\test.json" Code:
Reading parsed dynamic metadata... Done. Writing metadata to JSON file... Done. Code:
"D:\hdr10plus_parser\ffmpeg.exe" -loglevel quiet -i "D:\hdr10plus_parser\hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | "D:\hdr10plus_parser\hdr10plus_parser.exe" - pause Code:
Parsing HEVC file for dynamic metadata... Dynamic HDR10+ metadata detected. Code:
"D:\hdr10plus_parser\ffmpeg.exe" -i "D:\hdr10plus_parser\hdr10plus.sample.mkv" -vcodec copy -an -sn -vbsf hevc_mp4toannexb -f rawvideo - | "D:\hdr10plus_parser\hdr10plus_parser.exe" - Code:
Dynamic HDR10+ metadata detected. av_interleaved_write_frame(): Broken pipe Error writing trailer of pipe:: Broken pipe frame= 1 fps=0.0 q=-1.0 Lsize= 32kB time=00:00:00.00 bitrate=N/A speed=N/A video:587kB audio:0kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: unknown Conversion failed! |
|
6th September 2019, 15:26 | #78 | Link |
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
Hi,
I'm trying to extract metadata with ffmpeg input, it seems to work but it's very slow, it is faster to extract HEVC stream then extract metadata from it but it writes a huge file. Is it normal ffmpeg method is slower than extract then parse ? Thank you. |
7th September 2019, 04:08 | #79 | Link | |
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 570
|
Quote:
I can get 450 MB/s (1000 fps) parsing an MKV file with ffmpeg on an SSD. Last edited by quietvoid; 7th September 2019 at 04:17. |
|
7th September 2019, 08:41 | #80 | Link | |
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
Quote:
Could you give me the ffmpeg version you use and the command line ? Thank you. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|