soniCron 5 Posted February 28, 2017 Share Posted February 28, 2017 Was on 3.1.5 until the other day. Upgraded to 3.2.4, then 3.2.5. Both cases transcoding some HEVC appears to have broken: [hevc @ 0x3df0d60] Marker bit missing at 36642208 of 275082040 before time_increment_resolution [hevc @ 0x3df0d60] Marker bit missing at 36642258 of 275082040 after height [hevc @ 0x3df0d60] Static Sprites not supported [hevc @ 0x3df0d60] Marker bit missing at 36642276 of 275082040 after sprite_width [hevc @ 0x3df0d60] Marker bit missing at 36642290 of 275082040 after sprite_height [hevc @ 0x3df0d60] Marker bit missing at 36642304 of 275082040 after sprite_left [hevc @ 0x3df0d60] Marker bit missing at 36642318 of 275082040 after sprite_top [hevc @ 0x3df0d60] 26 sprite_warping_points [hevc @ 0x3df0d60] Invalid NAL unit 55, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. Last message repeated 5 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 31, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 43, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 5 times [hevc @ 0x3df0d60] Invalid NAL unit 41, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 12 times [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 1, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 16, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Invalid NAL unit 48, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 11, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 2, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 7 times [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 32, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 16, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 4, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 16, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 44, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 5 times [hevc @ 0x3df0d60] Invalid NAL unit 5, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Invalid NAL unit 5, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 48, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 14, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 40, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 44, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 24, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 5 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 18, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 6, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 11, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 18, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 50, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 1, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Invalid NAL unit 63, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 6 times [hevc @ 0x3df0d60] Invalid NAL unit 1, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Invalid NAL unit 25, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 9, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 44, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 46, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 16, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 18, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 62, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 3, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 61, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 62, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 18, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 33, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 32, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 33, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 48, skipping. Last message repeated 5 times [hevc @ 0x3df0d60] Invalid NAL unit 45, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 5 times [hevc @ 0x3df0d60] Invalid NAL unit 62, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 40, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 7 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 19, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 54, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 50, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 58, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 24, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 0, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 6, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 33, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 11, skipping. Last message repeated 7 times [hevc @ 0x3df0d60] Invalid NAL unit 28, skipping. Last message repeated 8 times [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 6 times [hevc @ 0x3df0d60] Invalid NAL unit 30, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 32, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 19, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 2 times [hevc @ 0x3df0d60] Invalid NAL unit 22, skipping. Last message repeated 3 times [hevc @ 0x3df0d60] Invalid NAL unit 50, skipping. Last message repeated 1 times [hevc @ 0x3df0d60] Invalid NAL unit 8, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 33, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 31, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 10, skipping. [hevc @ 0x3df0d60] Invalid NAL unit 12, skipping. Last message repeated 4 times [hevc @ 0x3df0d60] Skipping NAL unit 12 [hevc @ 0x3df0d60] PPS id out of range: 1 [hevc @ 0x3df0d60] Error parsing NAL unit #1. [m4v @ 0x3de7680] Stream #0: not enough frames to estimate rate; consider increasing probesize [m4v @ 0x3de7680] decoding for stream 0 failed [m4v @ 0x3de7680] Could not find codec parameters for stream 0 (Video: hevc, none, 5544x5835): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, m4v, from 'file:[redacted].m4v': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: hevc, none, 5544x5835, 1200k tbr, 1200k tbn Stream map '0:1' matches no streams. Working around it, I created a script that strips out the "-f m4v -codec:0 hevc -codec:1 aac" flags upon transcode which identified and resolved the issue. The streams are correct, both in order and format, so it's not mixing them up. Perhaps the container is an incorrect one, I dunno. I didn't dig in enough to identify if it's the plurality of those flags that break it or just one or two of them, but eliminating them all results in working transcodes. Not sure why those flags were added, as I'm not aware of ffmpeg having a problem identifying the input codecs on its own. (Not to mention that an ffprobe does exactly the same thing as ffmpeg to identify the content, so "caching" it seems unnecessary.) If these flags are not strictly necessary to fix some bug or "feature", I recommend removing them and let ffmpeg figure out the content container and codecs at runtime. (I should add that adding "-analyzeduration 2147483647 -probesize 2147483647" (their maximum allowable values) resulted in a longer search for the HEVC stream, but was still unsuccessful.) Link to comment Share on other sites More sharing options...
Luke 37096 Posted February 28, 2017 Share Posted February 28, 2017 Thanks. Those are fine without hevc so I guess we'll not use them in that situation. Thanks. Link to comment Share on other sites More sharing options...
gstuartj 39 Posted March 2, 2017 Share Posted March 2, 2017 Was just about to post this issue. Mind sharing your script @@soniCron? Link to comment Share on other sites More sharing options...
Azor 14 Posted January 1, 2020 Share Posted January 1, 2020 Reviving a really old thread, but I'm having the exact same issue with the latest testing on Linux. Getting a log like this when trying to transcode a H265 file with this command : LD_LIBRARY_PATH=/opt/emby-server/lib:/opt/emby-server/lib/samba /opt/emby-server/bin/ffmpeg -loglevel +timing -y -copyts -start_at_zero -f m4v -c:v:0 hevc -i "/data/tvshow/How I Met Your Mother/Season 3/How I Met Your Mother - S03E17 - The Goat.m4v" -map 0:0 -map 0:1 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 1371998 -bufsize:v:0 2743996 -sc_threshold:v:0 0 -keyint_min:v:0 72 -pix_fmt:v:0 yuv420p -profile:v:0 high -level:v:0 4.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none" -crf:v:0 23 -c:a:0 aac -ab:a:0 128002 -ac:a:0 2 -metadata:s:a:0 language=eng -filter:a:0 volume=2 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list /var/lib/emby/transcoding-temp/1f3ea3c943bd3ad811a73247b47e408d.m3u8 -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/1f3ea3c943bd3ad811a73247b47e408d%d.ts" [...] 22:19:19.726 [hevc @ 0x1c3af00] PPS id out of range: 0 22:19:19.726 [hevc @ 0x1c3af00] Error parsing NAL unit #0. 22:19:19.726 [m4v @ 0x1c31540] Stream #0: not enough frames to estimate rate; consider increasing probesize 22:19:19.726 [m4v @ 0x1c31540] decoding for stream 0 failed 22:19:19.726 [m4v @ 0x1c31540] Could not find codec parameters for stream 0 (Video: hevc, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options However, it works when stripping the problematic flags : LD_LIBRARY_PATH=/opt/emby-server/lib:/opt/emby-server/lib/samba /opt/emby-server/bin/ffmpeg -loglevel +timing -y -copyts -start_at_zero -i "/data/tvshow/How I Met Your Mother/Season 3/How I Met Your Mother - S03E17 - The Goat.m4v" -map 0:0 -map 0:1 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 1371998 -bufsize:v:0 2743996 -sc_threshold:v:0 0 -keyint_min:v:0 72 -pix_fmt:v:0 yuv420p -profile:v:0 high -level:v:0 4.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none" -crf:v:0 23 -c:a:0 aac -ab:a:0 128002 -ac:a:0 2 -metadata:s:a:0 language=eng -filter:a:0 volume=2 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list /var/lib/emby/transcoding-temp/1f3ea3c943bd3ad811a73247b47e408d.m3u8 -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/1f3ea3c943bd3ad811a73247b47e408d%d.ts" Link to comment Share on other sites More sharing options...
Luke 37096 Posted January 1, 2020 Share Posted January 1, 2020 @@Azor please attach a complete ffmpeg log example. thanks ! Link to comment Share on other sites More sharing options...
Azor 14 Posted January 1, 2020 Share Posted January 1, 2020 (edited) I've uploaded the full log of ffmpeg here : https://pastebin.com/g4Sz7G3K I can provide the specific file for testing if needed. Edited January 1, 2020 by Azor Link to comment Share on other sites More sharing options...
Luke 37096 Posted January 2, 2020 Share Posted January 2, 2020 @@Azor, this is still only a snippet. There is information at the top of the log file that is missing. Link to comment Share on other sites More sharing options...
Azor 14 Posted January 2, 2020 Share Posted January 2, 2020 This was the prompt from running the command manually, here's Emby's generated log for ffmpeg: https://pastebin.com/aiXH07qB Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now