21:04:38 Debug] Channel ".troubleshooting" has no preferred audio language code
[21:04:38 Debug] Preferred audio language has multiple codes ["eng", "en"]
[21:04:38 Debug] Checking for JS Script at "/root/.local/share/ersatztv/scripts/audio-stream-selector/movie.js"
[21:04:38 Debug] Unable to locate movie audio stream selector script; falling back to built-in logic
[21:04:38 Debug] SelectAudioStream duration: 00:00:00.0002836
[21:04:38 Debug] Found 1 audio streams with preferred audio language code(s) ["eng", "en"]
[21:04:38 Debug] Found audio stream flagged as default
[21:04:38 Debug] Channel ".troubleshooting" has no preferred subtitle language code
[21:04:38 Debug] Selecting subtitle Subtitle { Id: 3022, SubtitleKind: Embedded, Title: null, StreamIndex: 2, Codec: "dvdsub", Default: True, Forced: False, SDH: False, Language: "eng", IsExtracted: False, Path: null, DateAdded: 10/21/2025 1:25:23 AM, DateUpdated: 10/21/2025 4:38:02 AM, IsImage: True }
[21:04:38 Debug] FFmpeg desired state "FrameState { Realtime = False, InfiniteLoop = False, VideoFormat = h264, VideoProfile = Some(high), VideoPreset = None, AllowBFrames = True, PixelFormat = Some(ErsatzTV.FFmpeg.Format.PixelFormatYuv420P), ScaledSize = FrameSize { Width = 1920, Height = 1040 }, PaddedSize = FrameSize { Width = 1920, Height = 1080 }, CroppedSize = None, IsAnamorphic = False, FrameRate = None, VideoBitrate = Some(10000), VideoBufferSize = Some(20000), VideoTrackTimeScale = Some(90000), Deinterlaced = False, FrameDataLocation = Unknown, FFmpegAspectRatio = 16/9, BitDepth = 8 }"
[21:04:39 Debug] Forcing 1 ffmpeg decoding thread when hardware acceleration is used
[21:04:39 Debug] FFmpeg pipeline ["ThreadCountOption", "NoStandardInputOption", "HideBannerOption", "NoStatsOption", "LoglevelErrorOption", "StandardFormatFlags", "NoDemuxDecodeDelayOutputOption", "FastStartOutputOption", "ClosedGopOutputOption", "NoSceneDetectOutputOption", "FFReportVariable", "TimeLimitOutputOption", "VaapiHardwareAccelerationOption", "LibvaDriverNameVariable", "NoAutoScaleOutputOption", "VideoTrackTimescaleOutputOption", "VideoBitrateOutputOption", "VideoBufferSizeOutputOption", "EncoderH264Vaapi", "EncoderAac", "AudioChannelsOutputOption", "AudioBitrateOutputOption", "AudioBufferSizeOutputOption", "AudioSampleRateOutputOption", "DoNotMapMetadataOutputOption", "MetadataServiceProviderOutputOption", "MetadataServiceNameOutputOption", "MetadataAudioLanguageOutputOption", "OutputFormatHls", "ComplexFilter"], ["AudioResampleFilter", "AudioPadFilter"], ["PadVaapiFilter", "EncoderH264Vaapi"]
[21:04:39 Debug] FFmpeg environment variables ["EnvironmentVariable { Key = FFREPORT, Value = file=/transcode/.troubleshooting/ffmpeg-%t-transcode.log:level=32 }", "EnvironmentVariable { Key = LIBVA_DRIVER_NAME, Value = iHD }"]
[21:04:46 Debug] ffmpeg troubleshooting arguments "-threads 1 -nostdin -hide_banner -nostats -loglevel error -fflags +genpts+discardcorrupt+igndts -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -ss 00:47:02 -hwaccel_output_format vaapi -readrate 1.0 -readrate_initial_burst 45 -i /movies/Ice.Age.Collection.1080p.BluRay.H264.AC3.DD5.1.Will1869[EtHD]/Ice.Age.3.Dawn.Of.The.Dinosaurs.2009.1080p.BluRay.H264.AC3.DD5.1.mp4 -ss 00:47:02 -readrate 1.0 -readrate_initial_burst 45 -i /movies/Ice.Age.Collection.1080p.BluRay.H264.AC3.DD5.1.Will1869[EtHD]/Ice.Age.3.Dawn.Of.The.Dinosaurs.2009.1080p.BluRay.H264.AC3.DD5.1.mp4 -filter_complex [1:1]aresample=async=1,apad[a];[0:0]pad_vaapi=w=1920:h=1080:x=-1:y=-1:color=black[v];[0:2]format=vaapi|yuva420p|yuva444p|yuva422p|rgba|abgr|bgra|gbrap|ya8,hwupload[st];[v][st]overlay_vaapi[vst];[vst]hwdownload,format=nv12,colorspace=ispace=bt709:itrc=bt709:iprimaries=bt709:all=bt709:format=yuv420p:range=tv,format=nv12|p010le|vaapi,hwupload[vpf] -map [vpf] -map [a] -muxdelay 0 -muxpreload 0 -movflags +faststart -flags cgop -sc_threshold 0 -t 00:00:30.0000000 -noautoscale -video_track_timescale 90000 -b:v 10000k -maxrate:v 10000k -bufsize:v 20000k -c:v h264_vaapi -sei -a53_cc -profile:v high -c:a aac -ac 2 -b:a 160k -maxrate:a 160k -bufsize:a 384k -ar 48k -map_metadata -1 -metadata \"service_provider=\"ErsatzTV\"\" -metadata \"service_name=\"ETV\"\" -metadata:s:a:0 language=eng -g 96 -keyint_min 96 -force_key_frames expr:gte(t,n_forced*4) -f hls -hls_time 4 -hls_list_size 0 -segment_list_flags +live -hls_segment_filename /transcode/.troubleshooting/live%06d.ts -hls_segment_type mpegts -hls_flags append_list+independent_segments /transcode/.troubleshooting/live.m3u8"