[Solved]ffmpeg64.exe has a return code of 1!

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
satvcd
Posts: 3
Joined: Sun Apr 26, 2015 8:28 pm

[Solved]ffmpeg64.exe has a return code of 1!

Post by satvcd »

Hi, on win8/64b i get error 'ffmpeg64.exe has a return code of 1!' when i play mp4 file on device.
I tested parameters of ffmpeg and i found that this error causes parametr -filter_complex. With this parametr command line returns 'Error configuring filters.'

Can you help me resolve this. thx.

Sat.
Last edited by satvcd on Sun Apr 26, 2015 9:49 pm, edited 1 time in total.
satvcd
Posts: 3
Joined: Sun Apr 26, 2015 8:28 pm

[Solved] Re: ffmpeg64.exe has a return code of 1!

Post by satvcd »

Hi, i found solution.

Problem is not in parametr -filter_complex, but in subtitle file. I must save it in UTF8 format.

Sat
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: [Solved]ffmpeg64.exe has a return code of 1!

Post by ExSport »

Please post an example of not working command line when subs are not UTF8.
This should be fixed in UMS directly if non-UTF files can lead to not working file.
Thx
satvcd
Posts: 3
Joined: Sun Apr 26, 2015 8:28 pm

Re: [Solved]ffmpeg64.exe has a return code of 1!

Post by satvcd »

Hi, I tested with this command line:

"c:\Program Files (x86)\Universal Media Server\win32\ffmpeg64.exe" -i D:\Films\film.avi -filter_complex subtitles=D\\:/Films/film.srt:624x352 -bufsize 10000000 -maxrate 9000000 -crf 19 -ab 448k -c:v libx264 -preset superfast -level 31 -pix_fmt yuv420p -async 1 -fflags +genpts -c:a libmp3lame -ac 2 -b:v 35000k -bufsize 35000k d:\films\film_out.avi

Original command line:
Starting C:\Program Files (x86)\Universal Media Server\win32\ffmpeg64.exe -y -loglevel fatal -i D:\Films\film.avi -filter_complex subtitles=D\\:/Films/film.srt:624x352 -bufsize 10000000 -maxrate 9000000 -crf 19 -ab 448k -c:v libx264 -preset superfast -level 31 -pix_fmt yuv420p -async 1 -fflags +genpts -c:a libmp3lame -ac 2 -b:v 35000k -bufsize 35000k -f matroska \\.\pipe\ffmpegvideo_6284_1430040252644

film.srt was in Win1250 code page.
User avatar
valib
Developer
Posts: 699
Joined: Fri Feb 08, 2013 3:11 am

Re: [Solved]ffmpeg64.exe has a return code of 1!

Post by valib »

Your testing command line for subs in Win1250 code page should be:

"c:\Program Files (x86)\Universal Media Server\win32\ffmpeg64.exe" -i D:\Films\film.avi -filter_complex subtitles=D\\:/Films/film.srt:624x352:WINDOWS-1250 -bufsize 10000000 -maxrate 9000000 -crf 19 -ab 448k -c:v libx264 -preset superfast -level 31 -pix_fmt yuv420p -async 1 -fflags +genpts -c:a libmp3lame -ac 2 -b:v 35000k -bufsize 35000k d:\films\film_out.avi

Please check the UMS log how your subs code page are recognized. Unfortunately the automatic recognition is not 100% guaranteed. If you have all your subs in the code page WINDOWS-1250 you can set that in the GUI at the subtitles setting page.
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: [Solved]ffmpeg64.exe has a return code of 1!

Post by ExSport »

Yeah, maybe default settings introduces this problem. By default the non-Unicode settings is empty so maybe setting it to CP1250 should fix it?
I must test it on my side as I always set this settings to CP1250 after UMS reinstall 8-)
Post Reply