Audio stream deleted when transcoding .avi file
ffmpeg info on .avi file:
Input #0, avi, from '.\03.02.16_08.46.avi':
Duration: 00:02:05.04, start: 0.000000, bitrate: 29839 kb/s
Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, stereo, s16, 1024 kb/s
ffmpeg info on transcoded file:
Duration: 00:02:05.00, start: 1.440000, bitrate: 20400 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
The audio stream has been deleted by the transcoding process.
Please advice how to modify profiles.xml to get the audio included in the transcoded file.
The log file shows the following ffmpeg command line, and I suppose the -an option discards the audio stream:
2022-12-29T13:24:40,584 DEBUG [ProcessExecutor] Starting F:\Programme\Streaming\Serviio\bin\\..\lib\ffmpeg.exe -threads 0 -i T:\Video_T\Mini-DV-Kassetten\03\02\16\03.02.16_08.46.avi -y -threads 0 -c:v mpeg2video -pix_fmt yuv420p -qscale:v 1 -r 25 -g 15 -an -map 0:0 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-affe42765de853a253be3eddeb2b75da.stf
Other infos from log file:
2022-12-29T13:24:40,583 DEBUG [VideoDeliveryEngine] Delivering item '149758' for client 'Identifier=192.168.35.55, Profile=Samsung TV / player (C/D-series), Name=UE55D8000'
2022-12-29T13:24:40,583 DEBUG [AbstractAVTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.35.55, Profile=Samsung TV / player (C/D-series), Name=UE55D8000'
2022-12-29T13:24:40,584 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: T:\Video_T\Mini-DV-Kassetten\03\02\16\03.02.16_08.46.avi
2022-12-29T13:24:40,584 DEBUG [ProcessExecutor] Starting F:\Programme\Streaming\Serviio\bin\\..\lib\ffmpeg.exe -threads 0 -i T:\Video_T\Mini-DV-Kassetten\03\02\16\03.02.16_08.46.avi -y -threads 0 -c:v mpeg2video -pix_fmt yuv420p -qscale:v 1 -r 25 -g 15 -an -map 0:0 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-affe42765de853a253be3eddeb2b75da.stf
2022-12-29T13:24:41,585 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2022-12-29T13:24:41,585 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "03.02.16_08.46.avi": MPEG_TS_SD_EU_ISO
2022-12-29T13:24:41,585 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "03.02.16_08.46.avi": MPEG_TS_SD_NA_ISO
2022-12-29T13:24:41,585 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "03.02.16_08.46.avi": MPEG_TS_SD_KO_ISO
2022-12-29T13:24:41,586 DEBUG [VideoDeliveryEngine] Delivering file '03.02.16_08.46.avi' using transcoding (profile: 7 > quality: ORIGINAL > Transcoding > [MPEG2TS/MPEG2/LPCM] > matcher: 1)
2022-12-29T13:24:41,586 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2022-12-29T13:24:41,586 INFO [PlaybackEventsManager] Playback of media item 149758 (03.02.16_08.46 [03.02.16_08.46.avi]) has started at 0% on Identifier=192.168.35.55, Profile=Samsung TV / player (C/D-series), Name=UE55D8000
Relevant lines from profiles.xml:
<Transcoding>
<!-- HJT -->
<Video targetContainer="mpegts" targetACodec="lpcm" targetVCodec="mpeg2video" DAR="4:3" forceInheritance="true">
<Matches container="avi" vCodec="dvvideo" />
</Video>
<!-- transcode audio only for wmv with wmapro -->
<Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
<Matches container="asf" aCodec="wmapro" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="flac" />
<Matches container="wav" />
</Audio>
</Transcoding>
Please find complete log file and profiles.xml attached.