Jump to content

Transcoding causing playback failure from .strm files


Recommended Posts

Posted (edited)

I've come across an issue with some media that can't be played from strm files when needing to be transcoded.  I get the same result if using hardware or software transcoding.   Playback seems to work if I disable transcoding entirely for the user. 

I created a wrapper to get the output from emby's ffprobe command (example here is scanning the file after I downloaded it to disk): 

/opt/emby-server/bin/emby-ffprobe -v error -show_format -show_streams -i c027nd7al05ihu5asuowhppm3mht86gik998atk.mkv 
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1920
height=1080
coded_width=1920
coded_height=1080
closed_captions=0
film_grain=0
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=progressive
refs=1
is_avc=true
nal_length_size=4
id=0x1
r_frame_rate=24000/1001
avg_frame_rate=8308250/346523
time_base=1/16000
start_pts=0
start_time=0.000000
duration_ts=22177472
duration=1386.092000
bit_rate=5590002
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=33233
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=62
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=und
TAG:handler_name=VideoHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=6
channel_layout=5.1
bits_per_sample=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=66534912
duration=1386.144000
bit_rate=192007
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=64978
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=2
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=SoundHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[FORMAT]
filename=c027nd7al05ihu5asuowhppm3mht86gik998atk.mkv
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=1386.144000
size=1002913384
bit_rate=5788220
probe_score=100
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:encoder=Lavf58.76.100
[/FORMAT]


I was able to run a similar transcode command via CLI to reproduce the error

/opt/emby-server/bin/emby-ffmpeg -loglevel +timing -y -copyts -start_at_zero -f matroska,webm -c:v:0 h264 -noautorotate -i https://tvnow.best/api/stream/username/3943958/tvshow/tt0472954/17/3 -map 0:0 -map 0:1 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 5847964 -bufsize:v:0 11695928 -sc_threshold:v:0 0 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 192000 -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 null -

I re-ran it without the "-f matroska,webm" option it seems to read the file without issue. 

Changing the command to use "-f mov" to match the format_name above which doesn't throw the error. 

Can anyone confirm if this is a bug? Is there any way I can work around this temporarily?  

ffmpeg-transcode-8167b18c-3f73-42c0-b883-451849a23ee8_1.txt

Edited by bruor
Posted (edited)

I manually added the downloaded file to my library to see how Emby handles it and it seems to work fine, but the command it used to transcode uses "-f mp4" 

This seems to be limited to media from .strm files perhaps. 

image.png.ac72c7b0d02740cf955271a849094b0c.png

Edited by bruor
Posted

From the ffprobe data:

format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV

 

Posted (edited)

Sorry, I don't understand what that is answering? 

My question around that is:

If ffprobe is seeing the format, why is emby using an incompatible ffmpeg command to try to transcode it when reading it from a URL in a strm file?  

Edited by bruor
Posted

So it’s an mkv url inside the file?

Posted (edited)

Yes

When .strm is the source, the transcode command uses the wrong -f option and transcode fails.

Download the .strm target mkv file to disk, play that file through emby, transcode uses the correct -f option. 

Edited by bruor
Posted

 What are the contents of the strm ?

Posted

The .strm has a one line link to the provider's API which redirects to the content on their CDN. (Which is an MKV) 

 

Posted

So it sounds like it has an mkv file extension but it’s not actually mkv?

Posted

I didn't understand the context of your previous response initially.  I suppose you could be correct in that assessment, I'm not exactly sure how/why that matters though.  I'm not familiar with the intricacies of video formats.

 

I'll try to summarize again, the discrepancy I'm seeing is related to how emby acts when transcoding from URL vs file on disk. 

When emby reads the file .mkv from disk it detects format and transcodes without errer (even if the extension may be incorrect).  It uses a "-f mp4" for this file, which appears to match the ffprobe output. 

When emby reads it from the URL it appears to use the wrong source format in the transcode command and fails with an error.  It uses "-f matroska,webm" which does not match the ffprobe output.

 

Posted

Without being able to personally test the url, I would guess that the server hosting the mkv is sending back an incorrect Content-Type header and ffprobe is reporting this as the format.

Either that or ffprobe is incorporating the file extension from the url as part of the format that it is reporting.

Posted

Ok, I ran a test from URL and from disk on the same file.  No difference in probe output. 

URL:

ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 10.3.0 (crosstool-NG 1.25.0)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:23:06.14, start: 0.000000, bitrate: 5788 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5590 kb/s, Level 40, 23.98 fps, 23.98 tbr, 16k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1920
height=1080
coded_width=1920
coded_height=1080
closed_captions=0
film_grain=0
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=progressive
refs=1
is_avc=true
nal_length_size=4
id=0x1
r_frame_rate=24000/1001
avg_frame_rate=8308250/346523
time_base=1/16000
start_pts=0
start_time=0.000000
duration_ts=22177472
duration=1386.092000
bit_rate=5590002
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=33233
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=62
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=und
TAG:handler_name=VideoHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=6
channel_layout=5.1
bits_per_sample=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=66534912
duration=1386.144000
bit_rate=192007
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=64978
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=2
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=SoundHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[FORMAT]
filename=https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=1386.144000
size=1002913384
bit_rate=5788220
probe_score=100
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:encoder=Lavf58.76.100
[/FORMAT]


File:

ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 10.3.0 (crosstool-NG 1.25.0)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/data/ApolloSTRM/TV/It's Always Sunny in Philadelphia (2005) [imdbid=tt0472954]/It's Always Sunny in Philadelphia (2005) S17 E01.mkv':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:23:06.14, start: 0.000000, bitrate: 5788 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5590 kb/s, Level 40, 23.98 fps, 23.98 tbr, 16k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1920
height=1080
coded_width=1920
coded_height=1080
closed_captions=0
film_grain=0
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=progressive
refs=1
is_avc=true
nal_length_size=4
id=0x1
r_frame_rate=24000/1001
avg_frame_rate=8308250/346523
time_base=1/16000
start_pts=0
start_time=0.000000
duration_ts=22177472
duration=1386.092000
bit_rate=5590002
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=33233
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=62
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=und
TAG:handler_name=VideoHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=6
channel_layout=5.1
bits_per_sample=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=66534912
duration=1386.144000
bit_rate=192007
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=64978
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=2
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=SoundHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[FORMAT]
filename=/mnt/data/ApolloSTRM/TV/It's Always Sunny in Philadelphia (2005) [imdbid=tt0472954]/It's Always Sunny in Philadelphia (2005) S17 E01.mkv
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=1386.144000
size=1002913384
bit_rate=5788220
probe_score=100
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:encoder=Lavf58.76.100
[/FORMAT]


I then attempted to play both in Emby with a forced transcode after adding them to the library. 

URL Log (there are 3 basically identical logs in a row, it must have retried and failed after 3 attempts):

2025-08-06 20:32:27.452
Operating System: Linux version 6.8.0-71-generic (buildd@lcy02-amd64-053) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubunt
OS/Process: x64/x64
Emby Server version: 4.8.11.0
Operating system: Unix 6.8.0.71
Command Line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb

App: Emby Web 4.8.11.0
Chrome Windows
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

http://emby.domain.com:8096/emby/videos/27102773/main.m3u8?DeviceId=37291732-3b9d-410f-b26f-84ee12b02830&MediaSourceId=87e9b48756bdec6a969d708af0def460&PlaySessionId=a2b456d80bb248519ddfd6b094cd1686&api_key=‌3d48129e6b5f492cb84dad12a3f64013‌&VideoCodec=h264,hevc,av1&AudioCodec=mp3,aac&VideoBitrate=744001&AudioBitrate=256000&MaxWidth=1280&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&SubtitleStreamIndexes=2&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=62&hevc-codectag=hvc1,hev1,hevc,hdmv&TranscodeReasons=ContainerBitrateExceedsLimit,DirectPlayError&allowVideoStreamCopy=false&allowAudioStreamCopy=false

http://emby.domain.com:8096/emby/videos/27102773/hls1/main/0.ts?PlaySessionId=a2b456d80bb248519ddfd6b094cd1686

{"Protocol":"Http","Id":"87e9b48756bdec6a969d708af0def460","Path":"https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1","Type":"Default","Container":"mkv","Size":1013265103,"Name":"It's Always Sunny in Philadelphia (2005) S17 E01","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":13861440000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","ColorTransfer":"bt709","ColorPrimaries":"bt709","ColorSpace":"bt709","TimeBase":"1/1000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":5847964,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"eac3","Language":"eng","TimeBase":"1/1000","DisplayTitle":"English EAC3 5.1 (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":256000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"subrip","Language":"eng","TimeBase":"1/1000","Title":"English [SDH]","DisplayTitle":"English (SUBRIP)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0,"SubtitleLocationType":"InternalStream"}],"Formats":[],"Bitrate":5847964,"RequiredHttpHeaders":{},"AddApiKeyToDirectStreamUrl":false,"ReadAtNativeFramerate":false,"ItemId":"27102773"}

>>>>>>  User policy for user
        Enable Playback Remuxing: True
        Enable Video Playback Transcoding: True
        Enable Audio Playback Transcoding: True
        Global Remote Bitrate Limit: 32,000,000 bps

>>>>>>  Hardware Decoders for h264
        [ ] VAAPI CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        [X] QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)

>>>>>>  Hardware Encoders for h264
        [ ] VAAPI CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        [X] QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)

>>>>>>  Selected Codecs
Decoder QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        Adapter #0: 'CoffeeLake-H GT2 UHD Graphics 630' Id:16027 (Driver: , Vendor: 32902, SDK Version: 1.35)
        Max Bitrate: 781 Mbit/s - Frame Sizes: 16x16...16384x16384 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), Extended Profile (Level 6.2), High Profile (Level 6.2), Constrained Baseline Profile (Level 6.2), Progressive High Profile (Level 6.2), Constrained High Profile (Level 6.2)

Encoder QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        Adapter #0: 'CoffeeLake-H GT2 UHD Graphics 630' Id:16027 (Driver: , Vendor: 32902, SDK Version: 1.35)
        Max Bitrate: 234 Mbit/s - Frame Sizes: 32x32...4096x4096 - Width Alignment: 16 - Height Alignment: 16
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Baseline Profile (Level 5.2), Main Profile (Level 5.2), High Profile (Level 5.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'
Info    Check successful - selecting 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'
Info    Check successful - selecting 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        QuickSync CoffeeLake-H GT2 UHD Graphi... >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Same adapter (/dev/dri/renderD128), same hardware co... 
        Scaling                                  >> True       True                                                                
        VideoOutput                              >> True       True        Hardware encoder                                        
        QuickSync CoffeeLake-H GT2 UHD Graphi... >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264_QSV             >> QSV          qsv          nv12           1920x1080 >> vpp_qsv
        vpp_qsv              >> QSV          qsv          nv12             640x360 >> 

/opt/emby-server/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/var/lib/emby/logs/ffmpeg-transcode-b2fe827e-b373-4314-a898-053b04c7fda1_1graph.txt" -copyts -start_at_zero -init_hw_device "qsv=dev1:hw_any,child_device=/dev/dri/renderD128" -filter_hw_device dev1 -f matroska,webm -c:v:0 h264_qsv -threads:v:0 1 -hwaccel:v:0 qsv -hwaccel_output_format:v:0 qsv -noautorotate -i "https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1" -filter_complex "[0:0]vpp_qsv@f1=width=640:height=360[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 744001 -g:v:0 72 -maxrate:v:0 744001 -bufsize:v:0 1488002 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -profile:v:0 high -aud:v:0 1 -c:a:0 libmp3lame -ab:a:0 192000 -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/573C54/573C54.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/573C54/573C54_%d.ts" -map 0:2 -map 0:0 -an -c:v:0 copy -c:s:0 webvtt -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -segment_format webvtt -segment_list "/var/lib/emby/transcoding-temp/573C54/573C54_s2.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -break_non_keyframes 1 -individual_header_trailer 1 -write_header_trailer 0 -write_empty_segments 1 -segment_write_temp 1 -min_frame_time 00:00:00.000 "/var/lib/emby/transcoding-temp/573C54/573C54_s2_%d.vtt"

20:32:27.458 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
20:32:27.458   built with gcc 10.3.0 (crosstool-NG 1.25.0)
20:32:27.459 Execution Date: 2025-08-06 20:32:27
20:32:28.682 [matroska,webm @ 0x1d8ec880] 0x00 at pos 0 (0x0) invalid as first byte of an EBML number
20:32:28.682 [matroska,webm @ 0x1d8ec880] EBML header parsing failed
20:32:28.682 https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1: Invalid data found when processing input
20:32:28.682 EXIT

======= ExtraData
H4sIAAAAAAA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rockcOg5CjdgtdRq7Gds13zeo0iUt8iCT9VgbqzkjuFk2hH4lGzm8jmh84nQ9AatHrjOwh4NRv+8MCx8dGsJbxyINNS9KewxHOvLUHfacWGsBOv1a24Vdj5B89rdy3NOd0IjQoSRl5V3jSt5ntEG4Rv7mD2OVsDwiV/YfRp0eSkiaZFQ1YX1mXtxRZAy2vfUl/cT9j98tW9U/1i6fyGIlxHdpl25m/+AdcwEV86sbJ7ELWRkUA63TX2nO7bJtztc12YILnCs2bmnhGR+ezu3MtVSisatcsN/T6F/YxX+Y1owm9rFSXeZoW4vq4v+qSn3my/xwc5FPwpf15leXycyWlVKVqcft92j13lfHVL/Ut7j6m+kLaPlYfkx/E1hX6nP41cBBk+Kb91VvgOq3ot23edBTSW19nCy3du+c4sv2NM1voZ4lfKOUmIEJljGxuggNx+Ner6NWbBADK7YzHttg1wANhmhkWyDg/1d7RdorIAAA
---

>>>>>>  Selected Codecs
Decoder Automatic software decoder


Encoder x264
        Max Bitrate: 781 Mbit/s
        Color Formats: YUV420P, YUVJ420P, YUV422P, YUVJ422P, YUV444P, YUVJ444P, NV12, NV16, NV21, YUV420P10, YUV422P10, YUV444P10, NV20, GRAY8, GRAY10 - Bit Depths: 8, 10, 12, 14
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)

Info    Previous transcoding attempt failed. Falling back to software transcoding.

>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: False, HWA-Mode: Advanced
Info    Checking: 'x264'
Info    Check successful - selecting 'x264'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: False, HWA-Mode: Advanced
Info    Checking: 'Automatic software decoder'
Info    Check successful - selecting 'Automatic software decoder'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        Automatic software decoder               >> False      False       Software Codec                                          
        VideoInput                               >> False      False       Not a hardware decoder                                  
        Scaling                                  >> False      False                                                               
        VideoOutput                              >> False      False       Not a hardware encoder                                  
        x264                                     >> False      False       Software Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> -            yuv420p      yuv420p        1920x1080 >> scale
        scale                >> -            yuv420p      yuv420p          640x360 >> 


/opt/emby-server/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/var/lib/emby/logs/ffmpeg-transcode-b2fe827e-b373-4314-a898-053b04c7fda1_1graph.txt" -copyts -start_at_zero -f matroska,webm -c:v:0 h264 -noautorotate -i "https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1" -filter_complex "[0:0]scale@f1=width=640:height=360[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 744001 -bufsize:v:0 1488002 -sc_threshold:v:0 0 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 192000 -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/573C54/573C54.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/573C54/573C54_%d.ts" -map 0:2 -map 0:0 -an -c:v:0 copy -c:s:0 webvtt -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -segment_format webvtt -segment_list "/var/lib/emby/transcoding-temp/573C54/573C54_s2.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -break_non_keyframes 1 -individual_header_trailer 1 -write_header_trailer 0 -write_empty_segments 1 -segment_write_temp 1 -min_frame_time 00:00:00.000 "/var/lib/emby/transcoding-temp/573C54/573C54_s2_%d.vtt"


20:32:28.720 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
20:32:28.720   built with gcc 10.3.0 (crosstool-NG 1.25.0)
20:32:28.720 Execution Date: 2025-08-06 20:32:28
20:32:29.939 [matroska,webm @ 0x278b6c80] 0x00 at pos 0 (0x0) invalid as first byte of an EBML number
20:32:29.939 [matroska,webm @ 0x278b6c80] EBML header parsing failed
20:32:29.939 https://tvnow.best/api/stream/username/password/tvshow/tt0472954/17/1: Invalid data found when processing input
20:32:29.939 EXIT

======= ExtraData
H4sIAAAAAAAAA91Za2/buBL9K4GAC+wCjvWw/BIQoKnTboPbRxCnux+6gUBJlEWEEgWRcuxd5L/fISXZejl20i22uP1ShxwO53HmkBz9rS1YHKMk0Jy/tfeECpzxxs9v1W81ipHIM/wZxVhzNO4jirVBNXq3TeXo7yTArFwy0L6kgrBEqSx+/o5ojgu9pZpHEogIRNXMUmQkWcHoxDa0p8FOKMJkFYmO1GgCUvdPT4PSyGvwQwtNkLtO0lzckKTYasGSBPsCB0uWZz5WYoZjKLkAbzTHAC33oOY3yjxET7B627FFZDmum5zCuHBXGUoj7oZEhaq5Ql+jTKfE03HsbXXKVlwPwzjFq3ORoYT7LMDnnhXimTWFH6Pp6NwemfY5ms1n58Z45Bm2Pw0DZLqm2mUoNqJugM/SreBH7eQCZcJFwv0LZ+yAtAyNimgRgysc55s+SMRIZIw/oMEj9uIONKplz8FCJVNtVWWmymXGBPMZ7W4aCZF29mquObrjCRkPO7FpequCBHMYxVWUZAZ7ohRZE7u/bqolxyPEL3OxE3dCRDkeaJ9wQNB/iazmQt9pFYhAFUQKiS5EleLCNaWw8E8qW8DOfqngQ+GQklDjeyffbQSGRAZqrnT1M0twe2qZe6Ixu2CUZXeyDkLpoeaJqTGvxm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ZziFdhQbzqUCwBxXfFmX6TqhcDcucBxqo+nowW4WPw3jEf57JBmVz0pO9YcWCGgwLodpj7JomWS5LGnAtRc0ehbAeWSNQlyRN0II6BkF9wBYHaXlS/t/dLHjAj84lWVicVqGa+DLZ3T2h4x2rgBBqro6FGvS6PhLlozErgJXgHq17B9t/sUEI48qp7Sz3RWKkjWhGKUujEWKEACdeTPzbaoH8GpIjuYfaLydCsK43BXqezYNUuitejoVbreDurrQX4LTRduR8a9ajgcuNJDJWwOdoyqVSflMs0wx916gzfdNkRcNLuXrLdnGcn3W01OWsbSnkTDQRbjC8OJsZvJt/CF7WS+Sxl7QBLTF6bhpFBFRBl9kUgqrfcusy4orFGJ2le2uVYdjVOrCZtN1tcDm9q2YTQA5uUhl1TfljTtGVxaG0q574oIwh4xGjxPFQ94KxvGMUmO2NllgeqlbU+s6WQ2HtvTRirJxg3jbtqrZ64K6qEeuXkEmXE6oijuVoq6c58Czk5Gj78u93TjdVMwt9qc5Hfj1Uj7IVKh5d3oQt6/6nRVfdxoir/5U1szmgPorT+1ujxQXsq4AnqXDss7lczB7i7wkvPP/U8wLI/Wf+14f8TeWogfcry73PrJT3gPGP7BBf5yoYDDogF37JPL6beC9srXXQqKVRBcsXVLD0/4LnTqTaJWSiRxVQj6I238H946fpqrhOFYz1F1WaNtK6qHyquY+sROwuHDRT5hX3aYv5omuSWZUtHU/e5zsepPqG2qX+qzXf2N9w2svFdfut+E5oX6Vn0xsQ2n+CB9MZoY9Tvc/rM5WKl0tr5illP7V5n87Pz0P8i+jKeGHwAA
---


File:
 

2025-08-06 20:32:40.651
Operating System: Linux version 6.8.0-71-generic (buildd@lcy02-amd64-053) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubunt
OS/Process: x64/x64
Emby Server version: 4.8.11.0
Operating system: Unix 6.8.0.71
Command Line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb

App: Emby Web 4.8.11.0
Chrome Windows
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

http://emby.domain.com:8096/emby/videos/27492953/main.m3u8?DeviceId=37291732-3b9d-410f-b26f-84ee12b02830&MediaSourceId=76fc233ceaeb15b58131b61e20335541&PlaySessionId=2c8ef30317bf4c0189ba33f260422aa1&api_key=‌3d48129e6b5f492cb84dad12a3f64013‌&VideoCodec=h264,hevc,av1&AudioCodec=mp3,aac&VideoBitrate=807994&AudioBitrate=192007&MaxWidth=1280&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&SubtitleStreamIndexes=-1&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=62&hevc-codectag=hvc1,hev1,hevc,hdmv&TranscodeReasons=ContainerBitrateExceedsLimit

http://emby.domain.com:8096/emby/videos/27492953/hls1/main/0.ts?PlaySessionId=2c8ef30317bf4c0189ba33f260422aa1

{"Protocol":"File","Id":"76fc233ceaeb15b58131b61e20335541","Path":"/mnt/data/ApolloSTRM/TV/It's Always Sunny in Philadelphia (2005) [imdbid=tt0472954]/It's Always Sunny in Philadelphia (2005) S17 E01.mkv","Type":"Default","Container":"mp4","Size":1002913384,"Name":"It's Always Sunny in Philadelphia (2005) S17 E01","IsRemote":false,"HasMixedProtocols":false,"RunTimeTicks":13861440000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","ColorTransfer":"bt709","ColorPrimaries":"bt709","ColorSpace":"bt709","TimeBase":"1/16000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":5590002,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976042,"RealFrameRate":23.976025,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","DisplayTitle":"English AAC 5.1 (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":192007,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0}],"Formats":[],"Bitrate":5788220,"RequiredHttpHeaders":{},"AddApiKeyToDirectStreamUrl":false,"ReadAtNativeFramerate":false,"ItemId":"27492953"}

>>>>>>  User policy for user
        Enable Playback Remuxing: True
        Enable Video Playback Transcoding: True
        Enable Audio Playback Transcoding: True
        Global Remote Bitrate Limit: 32,000,000 bps

>>>>>>  Hardware Decoders for h264
        [ ] VAAPI CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        [X] QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)

>>>>>>  Hardware Encoders for h264
        [ ] VAAPI CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        [X] QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)

>>>>>>  Selected Codecs
Decoder QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        Adapter #0: 'CoffeeLake-H GT2 UHD Graphics 630' Id:16027 (Driver: , Vendor: 32902, SDK Version: 1.35)
        Max Bitrate: 781 Mbit/s - Frame Sizes: 16x16...16384x16384 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), Extended Profile (Level 6.2), High Profile (Level 6.2), Constrained Baseline Profile (Level 6.2), Progressive High Profile (Level 6.2), Constrained High Profile (Level 6.2)

Encoder QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)
        Adapter #0: 'CoffeeLake-H GT2 UHD Graphics 630' Id:16027 (Driver: , Vendor: 32902, SDK Version: 1.35)
        Max Bitrate: 234 Mbit/s - Frame Sizes: 32x32...4096x4096 - Width Alignment: 16 - Height Alignment: 16
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Baseline Profile (Level 5.2), Main Profile (Level 5.2), High Profile (Level 5.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'
Info    Check successful - selecting 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Advanced
Info    Checking: 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'
Info    Check successful - selecting 'QuickSync CoffeeLake-H GT2 UHD Graphics 630 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        QuickSync CoffeeLake-H GT2 UHD Graphi... >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Same adapter (/dev/dri/renderD128), same hardware co... 
        Scaling                                  >> True       True                                                                
        VideoOutput                              >> True       True        Hardware encoder                                        
        QuickSync CoffeeLake-H GT2 UHD Graphi... >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264_QSV             >> QSV          qsv          nv12           1920x1080 >> vpp_qsv
        vpp_qsv              >> QSV          qsv          nv12             640x360 >> 

/opt/emby-server/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/var/lib/emby/logs/ffmpeg-transcode-d0e7c846-c0e0-4e47-ab56-d935e02d1620_1graph.txt" -copyts -start_at_zero -init_hw_device "qsv=dev1:hw_any,child_device=/dev/dri/renderD128" -filter_hw_device dev1 -f mp4 -c:v:0 h264_qsv -threads:v:0 1 -hwaccel:v:0 qsv -hwaccel_output_format:v:0 qsv -noautorotate -i "/mnt/data/ApolloSTRM/TV/It's Always Sunny in Philadelphia (2005) [imdbid=tt0472954]/It's Always Sunny in Philadelphia (2005) S17 E01.mkv" -filter_complex "[0:0]vpp_qsv@f1=width=640:height=360[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 807994 -g:v:0 72 -maxrate:v:0 807994 -bufsize:v:0 1615988 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -profile:v:0 high -aud:v:0 1 -c:a:0 copy -metadata:s:a:0 language=eng -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/4815AC/4815AC.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/4815AC/4815AC_%d.ts"

20:32:40.656 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
20:32:40.656   built with gcc 10.3.0 (crosstool-NG 1.25.0)
20:32:40.656 Execution Date: 2025-08-06 20:32:40
20:32:40.677 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/data/ApolloSTRM/TV/It's Always Sunny in Philadelphia (2005) [imdbid=tt0472954]/It's Always Sunny in Philadelphia (2005) S17 E01.mkv':
20:32:40.677   Metadata:
20:32:40.677     major_brand     : isom
20:32:40.677     minor_version   : 512
20:32:40.677     compatible_brands: isomiso2avc1mp41
20:32:40.677     encoder         : Lavf58.76.100
20:32:40.677   Duration: 00:23:06.14, start: 0.000000, bitrate: 5788 kb/s
20:32:40.677   Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5590 kb/s, Level 40, 23.98 fps, 23.98 tbr, 16k tbn (default)
20:32:40.677     Metadata:
20:32:40.677       handler_name    : VideoHandler
20:32:40.677       vendor_id       : [0][0][0][0]
20:32:40.677   Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 192 kb/s (default)
20:32:40.677     Metadata:
20:32:40.677       handler_name    : SoundHandler
20:32:40.677       vendor_id       : [0][0][0][0]
20:32:40.677 Stream mapping:
20:32:40.677   Stream #0:0 (h264_qsv) -> vpp_qsv:default
20:32:40.677   vpp_qsv:default -> Stream #0:0 (h264_qsv)
20:32:40.677   Stream #0:1 -> #0:1 (copy)
20:32:40.677 Press [q] to stop, [?] for help
20:32:40.699 Output #0, segment, to '/var/lib/emby/transcoding-temp/4815AC/4815AC_%d.ts':
20:32:40.699   Metadata:
20:32:40.699     encoder         : Lavf59.27.100
20:32:40.699   Stream #0:0: Video: h264, qsv(progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 807 kb/s, 23.98 fps, 90k tbn
20:32:40.699     Metadata:
20:32:40.699       encoder         : Lavc59.37.100 h264_qsv
20:32:40.699     Side data:
20:32:40.699       cpb: bitrate max/min/avg: 807994/0/807994 buffer size: 1615988 vbv_delay: N/A
20:32:40.699   Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 192 kb/s (default)
20:32:40.699 elapsed=00:00:00.00 frame=    1 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A throttle=off speed=   0x    
20:32:40.836 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:40.837 SegmentComplete=video:0 Index=0 Start=0.000000 End=3.003000 Duration=3.003000 offset_pts=0 start_pts=0 Frames=72 filename=4815AC_0.ts
20:32:40.837 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_1.ts.tmp' for writing
20:32:40.960 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:40.961 SegmentComplete=video:0 Index=1 Start=3.003000 End=6.006000 Duration=3.003000 offset_pts=0 start_pts=3003000 Frames=72 filename=4815AC_1.ts
20:32:40.961 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_2.ts.tmp' for writing
20:32:41.089 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.089 SegmentComplete=video:0 Index=2 Start=6.006000 End=9.009000 Duration=3.003000 offset_pts=0 start_pts=6006000 Frames=72 filename=4815AC_2.ts
20:32:41.089 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_3.ts.tmp' for writing
20:32:41.188 elapsed=00:00:00.51 frame=  278 fps=0.0 q=13.0 size=N/A time=00:00:11.58 bitrate=N/A throttle=off speed=22.7x    
20:32:41.221 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.222 SegmentComplete=video:0 Index=3 Start=9.009000 End=12.012000 Duration=3.003000 offset_pts=0 start_pts=9009000 Frames=72 filename=4815AC_3.ts
20:32:41.222 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_4.ts.tmp' for writing
20:32:41.352 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.352 SegmentComplete=video:0 Index=4 Start=12.012000 End=15.015000 Duration=3.003000 offset_pts=0 start_pts=12012000 Frames=72 filename=4815AC_4.ts
20:32:41.352 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_5.ts.tmp' for writing
20:32:41.482 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.482 SegmentComplete=video:0 Index=5 Start=15.015000 End=18.018000 Duration=3.003000 offset_pts=0 start_pts=15015000 Frames=72 filename=4815AC_5.ts
20:32:41.483 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_6.ts.tmp' for writing
20:32:41.602 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.602 SegmentComplete=video:0 Index=6 Start=18.018000 End=21.021000 Duration=3.003000 offset_pts=0 start_pts=18018000 Frames=72 filename=4815AC_6.ts
20:32:41.602 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_7.ts.tmp' for writing
20:32:41.689 elapsed=00:00:01.01 frame=  566 fps=559 q=20.0 size=N/A time=00:00:23.59 bitrate=N/A throttle=off speed=23.3x    
20:32:41.721 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.721 SegmentComplete=video:0 Index=7 Start=21.021000 End=24.024000 Duration=3.003000 offset_pts=0 start_pts=21021000 Frames=72 filename=4815AC_7.ts
20:32:41.721 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_8.ts.tmp' for writing
20:32:41.846 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.846 SegmentComplete=video:0 Index=8 Start=24.024000 End=27.027000 Duration=3.003000 offset_pts=0 start_pts=24024000 Frames=72 filename=4815AC_8.ts
20:32:41.846 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_9.ts.tmp' for writing
20:32:41.968 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:41.968 SegmentComplete=video:0 Index=9 Start=27.027000 End=30.030000 Duration=3.003000 offset_pts=0 start_pts=27027000 Frames=72 filename=4815AC_9.ts
20:32:41.968 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_10.ts.tmp' for writing
20:32:42.091 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.092 SegmentComplete=video:0 Index=10 Start=30.030000 End=33.033000 Duration=3.003000 offset_pts=0 start_pts=30030000 Frames=72 filename=4815AC_10.ts
20:32:42.092 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_11.ts.tmp' for writing
20:32:42.192 elapsed=00:00:01.51 frame=  859 fps=567 q=24.0 size=N/A time=00:00:35.81 bitrate=N/A throttle=off speed=23.6x    
20:32:42.216 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.216 SegmentComplete=video:0 Index=11 Start=33.033000 End=36.036000 Duration=3.003000 offset_pts=0 start_pts=33033000 Frames=72 filename=4815AC_11.ts
20:32:42.217 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_12.ts.tmp' for writing
20:32:42.331 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.332 SegmentComplete=video:0 Index=12 Start=36.036000 End=39.039000 Duration=3.003000 offset_pts=0 start_pts=36036000 Frames=72 filename=4815AC_12.ts
20:32:42.332 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_13.ts.tmp' for writing
20:32:42.450 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.451 SegmentComplete=video:0 Index=13 Start=39.039000 End=42.042000 Duration=3.003000 offset_pts=0 start_pts=39039000 Frames=72 filename=4815AC_13.ts
20:32:42.451 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_14.ts.tmp' for writing
20:32:42.565 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.566 SegmentComplete=video:0 Index=14 Start=42.042000 End=45.045000 Duration=3.003000 offset_pts=0 start_pts=42042000 Frames=72 filename=4815AC_14.ts
20:32:42.566 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_15.ts.tmp' for writing
20:32:42.678 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.679 SegmentComplete=video:0 Index=15 Start=45.045000 End=48.048000 Duration=3.003000 offset_pts=0 start_pts=45045000 Frames=72 filename=4815AC_15.ts
20:32:42.679 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_16.ts.tmp' for writing
20:32:42.693 elapsed=00:00:02.01 frame= 1168 fps=579 q=22.0 size=N/A time=00:00:48.70 bitrate=N/A throttle=off speed=24.2x    
20:32:42.795 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.795 SegmentComplete=video:0 Index=16 Start=48.048000 End=51.051000 Duration=3.003000 offset_pts=0 start_pts=48048000 Frames=72 filename=4815AC_16.ts
20:32:42.795 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_17.ts.tmp' for writing
20:32:42.908 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:42.909 SegmentComplete=video:0 Index=17 Start=51.051000 End=54.054000 Duration=3.003000 offset_pts=0 start_pts=51051000 Frames=72 filename=4815AC_17.ts
20:32:42.909 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_18.ts.tmp' for writing
20:32:43.024 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.025 SegmentComplete=video:0 Index=18 Start=54.054000 End=57.057000 Duration=3.003000 offset_pts=0 start_pts=54054000 Frames=72 filename=4815AC_18.ts
20:32:43.025 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_19.ts.tmp' for writing
20:32:43.142 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.142 SegmentComplete=video:0 Index=19 Start=57.057000 End=60.060000 Duration=3.003000 offset_pts=0 start_pts=57057000 Frames=72 filename=4815AC_19.ts
20:32:43.142 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_20.ts.tmp' for writing
20:32:43.193 elapsed=00:00:02.51 frame= 1480 fps=588 q=29.0 size=N/A time=00:01:01.71 bitrate=N/A throttle=off speed=24.5x    
20:32:43.256 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.257 SegmentComplete=video:0 Index=20 Start=60.060000 End=63.063000 Duration=3.003000 offset_pts=0 start_pts=60060000 Frames=72 filename=4815AC_20.ts
20:32:43.257 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_21.ts.tmp' for writing
20:32:43.370 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.370 SegmentComplete=video:0 Index=21 Start=63.063000 End=66.066000 Duration=3.003000 offset_pts=0 start_pts=63063000 Frames=72 filename=4815AC_21.ts
20:32:43.370 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_22.ts.tmp' for writing
20:32:43.482 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.482 SegmentComplete=video:0 Index=22 Start=66.066000 End=69.069000 Duration=3.003000 offset_pts=0 start_pts=66066000 Frames=72 filename=4815AC_22.ts
20:32:43.482 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_23.ts.tmp' for writing
20:32:43.599 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.599 SegmentComplete=video:0 Index=23 Start=69.069000 End=72.072000 Duration=3.003000 offset_pts=0 start_pts=69069000 Frames=72 filename=4815AC_23.ts
20:32:43.599 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_24.ts.tmp' for writing
20:32:43.694 elapsed=00:00:03.01 frame= 1796 fps=595 q=25.0 size=N/A time=00:01:14.90 bitrate=N/A throttle=off speed=24.8x    
20:32:43.713 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.713 SegmentComplete=video:0 Index=24 Start=72.072000 End=75.075000 Duration=3.003000 offset_pts=0 start_pts=72072000 Frames=72 filename=4815AC_24.ts
20:32:43.713 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_25.ts.tmp' for writing
20:32:43.835 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.835 SegmentComplete=video:0 Index=25 Start=75.075000 End=78.078000 Duration=3.003000 offset_pts=0 start_pts=75075000 Frames=72 filename=4815AC_25.ts
20:32:43.835 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_26.ts.tmp' for writing
20:32:43.955 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:43.955 SegmentComplete=video:0 Index=26 Start=78.078000 End=81.081000 Duration=3.003000 offset_pts=0 start_pts=78078000 Frames=72 filename=4815AC_26.ts
20:32:43.955 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_27.ts.tmp' for writing
20:32:44.075 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.075 SegmentComplete=video:0 Index=27 Start=81.081000 End=84.084000 Duration=3.003000 offset_pts=0 start_pts=81081000 Frames=72 filename=4815AC_27.ts
20:32:44.075 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_28.ts.tmp' for writing
20:32:44.192 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.192 SegmentComplete=video:0 Index=28 Start=84.084000 End=87.087000 Duration=3.003000 offset_pts=0 start_pts=84084000 Frames=72 filename=4815AC_28.ts
20:32:44.192 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_29.ts.tmp' for writing
20:32:44.195 elapsed=00:00:03.51 frame= 2098 fps=596 q=23.0 size=N/A time=00:01:27.48 bitrate=N/A throttle=off speed=24.9x    
20:32:44.314 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.314 SegmentComplete=video:0 Index=29 Start=87.087000 End=90.090000 Duration=3.003000 offset_pts=0 start_pts=87087000 Frames=72 filename=4815AC_29.ts
20:32:44.314 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_30.ts.tmp' for writing
20:32:44.444 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.445 SegmentComplete=video:0 Index=30 Start=90.090000 End=93.093000 Duration=3.003000 offset_pts=0 start_pts=90090000 Frames=72 filename=4815AC_30.ts
20:32:44.445 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_31.ts.tmp' for writing
20:32:44.578 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.578 SegmentComplete=video:0 Index=31 Start=93.093000 End=96.096000 Duration=3.003000 offset_pts=0 start_pts=93093000 Frames=72 filename=4815AC_31.ts
20:32:44.578 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_32.ts.tmp' for writing
20:32:44.696 elapsed=00:00:04.01 frame= 2379 fps=592 q=24.0 size=N/A time=00:01:39.20 bitrate=N/A throttle=off speed=24.7x    
20:32:44.705 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.705 SegmentComplete=video:0 Index=32 Start=96.096000 End=99.099000 Duration=3.003000 offset_pts=0 start_pts=96096000 Frames=72 filename=4815AC_32.ts
20:32:44.705 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_33.ts.tmp' for writing
20:32:44.822 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.822 SegmentComplete=video:0 Index=33 Start=99.099000 End=102.102000 Duration=3.003000 offset_pts=0 start_pts=99099000 Frames=72 filename=4815AC_33.ts
20:32:44.822 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_34.ts.tmp' for writing
20:32:44.938 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:44.938 SegmentComplete=video:0 Index=34 Start=102.102000 End=105.105000 Duration=3.003000 offset_pts=0 start_pts=102102000 Frames=72 filename=4815AC_34.ts
20:32:44.938 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_35.ts.tmp' for writing
20:32:45.058 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.058 SegmentComplete=video:0 Index=35 Start=105.105000 End=108.108000 Duration=3.003000 offset_pts=0 start_pts=105105000 Frames=72 filename=4815AC_35.ts
20:32:45.058 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_36.ts.tmp' for writing
20:32:45.180 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.180 SegmentComplete=video:0 Index=36 Start=108.108000 End=111.111000 Duration=3.003000 offset_pts=0 start_pts=108108000 Frames=72 filename=4815AC_36.ts
20:32:45.180 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_37.ts.tmp' for writing
20:32:45.198 elapsed=00:00:04.52 frame= 2681 fps=593 q=27.0 size=N/A time=00:01:51.80 bitrate=N/A throttle=off speed=24.7x    
20:32:45.306 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.306 SegmentComplete=video:0 Index=37 Start=111.111000 End=114.114000 Duration=3.003000 offset_pts=0 start_pts=111111000 Frames=72 filename=4815AC_37.ts
20:32:45.306 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_38.ts.tmp' for writing
20:32:45.417 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.417 SegmentComplete=video:0 Index=38 Start=114.114000 End=117.117000 Duration=3.003000 offset_pts=0 start_pts=114114000 Frames=72 filename=4815AC_38.ts
20:32:45.417 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_39.ts.tmp' for writing
20:32:45.534 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.535 SegmentComplete=video:0 Index=39 Start=117.117000 End=120.120000 Duration=3.003000 offset_pts=0 start_pts=117117000 Frames=72 filename=4815AC_39.ts
20:32:45.535 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_40.ts.tmp' for writing
20:32:45.650 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.651 SegmentComplete=video:0 Index=40 Start=120.120000 End=123.123000 Duration=3.003000 offset_pts=0 start_pts=120120000 Frames=72 filename=4815AC_40.ts
20:32:45.651 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_41.ts.tmp' for writing
20:32:45.698 elapsed=00:00:05.02 frame= 2991 fps=596 q=24.0 size=N/A time=00:02:04.73 bitrate=N/A throttle=off speed=24.8x    
20:32:45.767 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.767 SegmentComplete=video:0 Index=41 Start=123.123000 End=126.126000 Duration=3.003000 offset_pts=0 start_pts=123123000 Frames=72 filename=4815AC_41.ts
20:32:45.767 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_42.ts.tmp' for writing
20:32:45.889 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:45.889 SegmentComplete=video:0 Index=42 Start=126.126000 End=129.129000 Duration=3.003000 offset_pts=0 start_pts=126126000 Frames=72 filename=4815AC_42.ts
20:32:45.889 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_43.ts.tmp' for writing
20:32:46.006 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:46.006 SegmentComplete=video:0 Index=43 Start=129.129000 End=132.132000 Duration=3.003000 offset_pts=0 start_pts=129129000 Frames=72 filename=4815AC_43.ts
20:32:46.006 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_44.ts.tmp' for writing
20:32:46.120 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:46.121 SegmentComplete=video:0 Index=44 Start=132.132000 End=135.135000 Duration=3.003000 offset_pts=0 start_pts=132132000 Frames=72 filename=4815AC_44.ts
20:32:46.121 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_45.ts.tmp' for writing
20:32:46.199 elapsed=00:00:05.52 frame= 3296 fps=597 q=25.0 size=N/A time=00:02:17.45 bitrate=N/A throttle=off speed=24.9x    
20:32:46.237 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:46.238 SegmentComplete=video:0 Index=45 Start=135.135000 End=138.138000 Duration=3.003000 offset_pts=0 start_pts=135135000 Frames=72 filename=4815AC_45.ts
20:32:46.238 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_46.ts.tmp' for writing
20:32:46.351 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
20:32:46.352 SegmentComplete=video:0 Index=46 Start=138.138000 End=141.141000 Duration=3.003000 offset_pts=0 start_pts=138138000 Frames=72 filename=4815AC_46.ts
20:32:46.352 [segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC_47.ts.tmp' for writing
20:32:46.422 

[q] command received. Exiting.

[segment @ 0x2a65f2c0] Opening '/var/lib/emby/transcoding-temp/4815AC/4815AC.m3u8.tmp' for writing
SegmentComplete=video:0 Index=47 Start=141.141000 End=143.351544 Duration=2.210544 offset_pts=0 start_pts=141141000 Frames=53 filename=4815AC_47.ts
elapsed=00:00:05.75 frame= 3437 fps=597 q=26.0 Lsize=N/A time=00:02:23.31 bitrate=N/A throttle=off speed=24.9x    
video:14210kB audio:3367kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
EXIT

======= ExtraData
H4sIAAAAAAAAA+1ZbW/jNhL+K4KAQ1vAsUlZkl+AAOdNdpvgkt00Tvc+LAKDliibF71Vopy4xf73G5KSTVly7GzSFrjbD0Hs4XA4nHnmjf7DPEuiiMS+Of7D/MBCTrO89vFL9VlSKeFFRj+SiJpjc5Wms9/yldmp6HfrVNA/M58m5aaO+SnlLImlUPXxMwkLqiSXgh6Zz5fAKlemPGPxAqiujcyvnQ3TkrLFkje4+i5w3X/92inVvISbmAEGvss4LfgNi9VRZ0kcU49Tf5oUmUclGxojyefTJ3OMQMo9iPk5TOYkPELrdUMXnhVUVzkFOp8tMpIu81nAQtrY0VuRrBeyeY9G83UvTBZ5LwiilC5OeEbi3Et8euIjOvCGtnviIYpObGoPTsjccU/8Ud+hyPKxa6EZlqd0+RPXFfCSdM3zg3rmnGR8Rvjsd5olB7lZzPhs+Tjz6Yp5zSsBIk5hCY+BhcTrjrdkoV8yn/bgf8/PWC+jYPXsHFtDXXQgXfiMcCHYlG6S3lX+OKdR8dQG0ChZdaLU7kQ26fQXKfxZneg/VgOwlYDnwCohJg+t8FIhLEt44iVh8/jS4/Wz6nsOnngEDoOGleDOykhAoSSqrCTQ1GKlpeXa++O42nbYNvmk4Bv2cUDCnHbMa+oz8i8m8ouSd1xG4EtQ3G8iF9cywiPxPBq2IbCFbZYUHEw/C5IsIs08srOJwF3ASYQ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XL+NeesVbmvCssLtmLEWVWJoP0uLC5bzJFtL+13CiA/n4S5CLrYdpyMpcA7q4r5lu45jYwsNR6iPXVEwS35L8LtDy63x2yPLcXF/4DgYQT7S+PvA7wwwwjV+B/fhEGc4slzLxgON31b6NOTb2O4ja4TtwQg7Gr8j5DtweF1/ZzAC7pFrIatvDeH+/wULwv4k4SYAAA==
---



 

Posted

I wonder what the Content-Type header being sent back is.

  • 2 weeks later...
Posted

Was the Content-Type header helpful in narrowing down why this happens? 

Posted
4 hours ago, bruor said:

Was the Content-Type header helpful in narrowing down why this happens? 

I don't know at this point what the issue is. If you get me a url that i can test personally, then i can look at it. Thanks.

  • 3 weeks later...
Posted

Should I try to reproduce this on the latest beta first? 

I don't have an issue purchasing an IPTV subscription for you to debug the issue, but how much time would you need it to be active for in able to give this a proper look? 

Posted
Quote

Should I try to reproduce this on the latest beta first? 

It could not hurt. I do that first and then go from there.

Posted

The servers I use run Linux (ubuntu LTS), I decided to test this on my desktop PC which runs windows, both are running emby 4.8.11.0

Windows is able to detect/probe the content without issue.

windows.txt linux.txt

Posted

I just tested this using the docker container and it doesn't seem to have this issue.   

Happy2Play
Posted

At the same time even though they appear to be playing the same url they are playing different files per system as one is a mkv and the other is a mp4.  And one has subtitle and the other does not.

Windows

Spoiler

{"Protocol":"Http","Id":"82ec4a8c4f9b81578c19a5650ee43a45","Path":"https://starlite.best/api/stream/username/password/tvshow/tt31038430/1/7","Type":"Default","Container":"mp4","Size":1825265940,"Name":"The Hunting Wives (2025) S01 E07","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":28799610000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","TimeBase":"1/16000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":4872228,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976027,"RealFrameRate":23.976025,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","DisplayTitle":"English AAC 5.1 (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":192002,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0}],"Formats":[],"Bitrate":5070251,"RequiredHttpHeaders":{},"AddApiKeyToDirectStreamUrl":false,"ReadAtNativeFramerate":false,"ItemId":"12"}

Linux

Spoiler

{"Protocol":"Http","Id":"32a264e9485908fb2d748470f9811b00","Path":"https://starlite.best/api/stream/username/password/tvshow/tt31038430/1/7","Type":"Default","Container":"mkv","Size":1985179118,"Name":"The Hunting Wives (2025) S01 E07","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":28799610000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":5514461,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"eac3","Language":"eng","TimeBase":"1/1000","DisplayTitle":"English EAC3 5.1 (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"subrip","Language":"eng","TimeBase":"1/1000","DisplayTitle":"English (SUBRIP)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0,"SubtitleLocationType":"InternalStream"},{"Codec":"subrip","Language":"eng","TimeBase":"1/1000","Title":"SDH","DisplayTitle":"English (SDH SUBRIP)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"IsHearingImpaired":true,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0,"SubtitleLocationType":"InternalStream"}],"Formats":[],"Bitrate":5514461,"RequiredHttpHeaders":{},"AddApiKeyToDirectStreamUrl":false,"ReadAtNativeFramerate":false,"ItemId":"10639873"}

But devs will have to comment further as the Linux system appears to just exit but suggests bad header info in MKV to me.

14:35:01.559 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
14:35:01.559   built with gcc 10.3.0 (crosstool-NG 1.25.0)
14:35:01.559 Execution Date: 2025-09-14 14:35:01
14:35:02.208 [matroska,webm @ 0x3db52fc0] 0x00 at pos 0 (0x0) invalid as first byte of an EBML number
14:35:02.208 [matroska,webm @ 0x3db52fc0] EBML header parsing failed
14:35:02.208 https://starlite.best/api/stream/username/password/tvshow/tt31038430/1/7: Invalid data found when processing input
14:35:02.208 EXIT

 

Posted

I can assure you that the media isn't different, the linux instances I'm running seem to think it's mkv even though it's actually an mp4, but this only happens if the file is read from  a .strm file URL.  If I download these files and index them locally it detects them as the MP4 and remux/transcode will not fail. You can see the distinction in the logs if you look at the ffmpeg command it composes to try to process the URL.  It fails because ffmpeg is being told that the source is mkv when it isn't.  But it looks like this could be environmental since the windows release and the docker images both don't exhibit this issue. 

Happy2Play
Posted

Well something does not add up then as I can't see how they are the same files with different containers, file size, bitrates, audio tracks and subtitles.

"mp4","Size":1825265940,"Name":"The Hunting Wives (2025) S01 E07

{
    "Protocol": "Http",
    "Id": "82ec4a8c4f9b81578c19a5650ee43a45",
    "Path": "https://starlite.best/api/stream/username/password/tvshow/tt31038430/1/7",
    "Type": "Default",
    "Container": "mp4",
    "Size": 1825265940,
    "Name": "The Hunting Wives (2025) S01 E07",
    "IsRemote": true,
    "HasMixedProtocols": false,
    "RunTimeTicks": 28799610000,
    "SupportsTranscoding": true,
    "SupportsDirectStream": true,
    "SupportsDirectPlay": true,
    "IsInfiniteStream": false,
    "RequiresOpening": false,
    "RequiresClosing": false,
    "RequiresLooping": false,
    "SupportsProbing": false,
    "MediaStreams": [{
            "Codec": "h264",
            "CodecTag": "avc1",
            "Language": "und",
            "TimeBase": "1/16000",
            "VideoRange": "SDR",
            "DisplayTitle": "1080p H264",
            "NalLengthSize": "4",
            "IsInterlaced": false,
            "BitRate": 4872228,
            "BitDepth": 8,
            "RefFrames": 1,
            "IsDefault": true,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Height": 1080,
            "Width": 1920,
            "AverageFrameRate": 23.976027,
            "RealFrameRate": 23.976025,
            "Profile": "Main",
            "Type": "Video",
            "AspectRatio": "16:9",
            "Index": 0,
            "IsExternal": false,
            "IsTextSubtitleStream": false,
            "SupportsExternalStream": false,
            "Protocol": "File",
            "PixelFormat": "yuv420p",
            "Level": 40,
            "IsAnamorphic": false,
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0
        }, {
            "Codec": "aac",
            "CodecTag": "mp4a",
            "Language": "eng",
            "TimeBase": "1/48000",
            "DisplayTitle": "English AAC 5.1 (Default)",
            "DisplayLanguage": "English",
            "IsInterlaced": false,
            "ChannelLayout": "5.1",
            "BitRate": 192002,
            "Channels": 6,
            "SampleRate": 48000,
            "IsDefault": true,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Profile": "LC",
            "Type": "Audio",
            "Index": 1,
            "IsExternal": false,
            "IsTextSubtitleStream": false,
            "SupportsExternalStream": false,
            "Protocol": "File",
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0
        }
    ],
    "Formats": [],
    "Bitrate": 5070251,
    "RequiredHttpHeaders": {},
    "AddApiKeyToDirectStreamUrl": false,
    "ReadAtNativeFramerate": false,
    "ItemId": "12"

"mkv","Size":1985179118,"Name":"The Hunting Wives (2025) S01 E07"

{
    "Protocol": "Http",
    "Id": "32a264e9485908fb2d748470f9811b00",
    "Path": "https://starlite.best/api/stream/username/password/tvshow/tt31038430/1/7",
    "Type": "Default",
    "Container": "mkv",
    "Size": 1985179118,
    "Name": "The Hunting Wives (2025) S01 E07",
    "IsRemote": true,
    "HasMixedProtocols": false,
    "RunTimeTicks": 28799610000,
    "SupportsTranscoding": true,
    "SupportsDirectStream": true,
    "SupportsDirectPlay": true,
    "IsInfiniteStream": false,
    "RequiresOpening": false,
    "RequiresClosing": false,
    "RequiresLooping": false,
    "SupportsProbing": false,
    "MediaStreams": [{
            "Codec": "h264",
            "TimeBase": "1/1000",
            "VideoRange": "SDR",
            "DisplayTitle": "1080p H264",
            "NalLengthSize": "4",
            "IsInterlaced": false,
            "BitRate": 5514461,
            "BitDepth": 8,
            "RefFrames": 1,
            "IsDefault": true,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Height": 1080,
            "Width": 1920,
            "AverageFrameRate": 23.976025,
            "RealFrameRate": 23.976025,
            "Profile": "Main",
            "Type": "Video",
            "AspectRatio": "16:9",
            "Index": 0,
            "IsExternal": false,
            "IsTextSubtitleStream": false,
            "SupportsExternalStream": false,
            "Protocol": "File",
            "PixelFormat": "yuv420p",
            "Level": 40,
            "IsAnamorphic": false,
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0
        }, {
            "Codec": "eac3",
            "Language": "eng",
            "TimeBase": "1/1000",
            "DisplayTitle": "English EAC3 5.1 (Default)",
            "DisplayLanguage": "English",
            "IsInterlaced": false,
            "ChannelLayout": "5.1",
            "BitRate": 640000,
            "Channels": 6,
            "SampleRate": 48000,
            "IsDefault": true,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Type": "Audio",
            "Index": 1,
            "IsExternal": false,
            "IsTextSubtitleStream": false,
            "SupportsExternalStream": false,
            "Protocol": "File",
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0
        }, {
            "Codec": "subrip",
            "Language": "eng",
            "TimeBase": "1/1000",
            "DisplayTitle": "English (SUBRIP)",
            "DisplayLanguage": "English",
            "IsInterlaced": false,
            "IsDefault": false,
            "IsForced": false,
            "IsHearingImpaired": false,
            "Type": "Subtitle",
            "Index": 2,
            "IsExternal": false,
            "IsTextSubtitleStream": true,
            "SupportsExternalStream": true,
            "Protocol": "File",
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0,
            "SubtitleLocationType": "InternalStream"
        }, {
            "Codec": "subrip",
            "Language": "eng",
            "TimeBase": "1/1000",
            "Title": "SDH",
            "DisplayTitle": "English (SDH SUBRIP)",
            "DisplayLanguage": "English",
            "IsInterlaced": false,
            "IsDefault": false,
            "IsForced": false,
            "IsHearingImpaired": true,
            "Type": "Subtitle",
            "Index": 3,
            "IsExternal": false,
            "IsTextSubtitleStream": true,
            "SupportsExternalStream": true,
            "Protocol": "File",
            "ExtendedVideoType": "None",
            "ExtendedVideoSubType": "None",
            "ExtendedVideoSubTypeDescription": "None",
            "AttachmentSize": 0,
            "SubtitleLocationType": "InternalStream"
        }
    ],
    "Formats": [],
    "Bitrate": 5514461,
    "RequiredHttpHeaders": {},
    "AddApiKeyToDirectStreamUrl": false,
    "ReadAtNativeFramerate": false,
    "ItemId": "10639873"
}

 

  • Thanks 1
Posted

That's a good catch,  looks like this is a symptom of the provider.   I just tried to reproduce this again and everything seems fine with the bare linux install, so their API must be returning different content for ffprobe vs ffmpeg for this to be an issue.  I assume it's probably load balancing requests against 2 different content libraries.  This may also explain why pausing for an extended period of time results in playback terminating.  Looks like I might need to develop my own caching mechanism for Emby to request this media from so that ffprobe and ffmpeg are guaranteed to get the same result. 

It would be awesome if Emby would start to download .strm media to a local cache and call ffprobe and ffmpeg against that cache.  Even more amazing if there was an option to store the cached download in the media library folder beside the .strm file for a configurable amount of time, or until a disk space threshold is met to keep the cache from growing too large. 
 

  • Agree 1
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...