wickedlemon 6 Posted October 9, 2020 Posted October 9, 2020 Playing music files if transcoding is required I'm getting the following error: [flac @ 0x7f19d0] Invalid audio stream. Exactly one FLAC audio stream is required. Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Here's an example ffmpeg command: /bin/ffmpeg -y -f ogg -i "/data/PI/Music/The Aquabats!/The Aquabats! 2011 Hi-Five Soup!/01 The Shark Fighter!.opus" -map 0:0 -vn -sn -c:a:0 copy -ar:a:0 48000 -ac:a:0 2 "/config/transcoding-temp/X86029F.flac" I just end up with a zero size file in the transcoding temp directory. If I remove flac as a direct stream codec from the profile to force transcoding it will transcode flac to flac with no problems and it creates a temp file ok. It just won't convert to a different codec. FLAC -> MP3 and OPUS - >MP3 also gave a similar error. I've tried running the ffmpeg command on my PC directly and get the same error. If I remove"-c:a:0 copy" from the string transcoding works ok. I'm not an expert with Ffmpeg, so does anyone know how I can fix this error in Emby? ffmpeg-transcode-9194e8e0-c1dd-48b4-9d6b-1c5cf970173f_1.txt
wickedlemon 6 Posted October 23, 2020 Author Posted October 23, 2020 2 hours ago, Luke said: HI, how did you setup the dlna profile? Custom Profiles + and then the settings based on other similar devices. Yamaha.xml
Luke 40114 Posted October 23, 2020 Posted October 23, 2020 Can you provide a log example for converting to mp3? thanks.
wickedlemon 6 Posted November 7, 2020 Author Posted November 7, 2020 On 23/10/2020 at 20:21, Luke said: Can you provide a log example for converting to mp3? thanks. Sorry for the delay. Attached is an server log and a corresponding ffmpeg log. embyserver (1).txt ffmpeg-transcode-785cf50d-46b6-454c-90da-3bdb8664223d_1.txt
Luke 40114 Posted January 6, 2021 Posted January 6, 2021 @wickedlemon it's trying to convert to flac because that's what you put in your transcodingprofiles. try replacing it with this: <TranscodingProfile container="mp3" type="Audio" audioCodec="mp3" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" copyTimestamps="false" context="Streaming" minSegments="0" segmentLength="0" breakOnNonKeyFrames="false" /> That will set it back to the default of mp3 and then it should work.
Luke 40114 Posted March 7, 2021 Posted March 7, 2021 @wickedlemon with Emby Server 4.6 I would suggest removing your custom profile and letting the server detect the supported formats of the device. It should just work now. Thanks.
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