FAQ  •  Register  •  Login

Add option to pass parameters to ffmpeg

<<

viperidae

Serviio newbie

Posts: 2

Joined: Mon Aug 18, 2014 9:26 am

Post Mon Aug 18, 2014 9:32 am

Add option to pass parameters to ffmpeg

I have an IP camera that streams out mjpeg video.

Works fine if I pass it to VLC

FFMpeg however, doesn't detect the content type and tries to decode it as an MP3 stream and fails.
Passing the parameter "-f mjpeg" fixes the problem.

My problem is now - how do I tell Serviio to use this format in an Online Source RSS file or URL?

It appears the only possible parameters Serviio can pass is the input file, output file, -user-agent, -rtsp_transport and -analyzeduration
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 19, 2014 6:07 pm

Re: Add option to pass parameters to ffmpeg

-f mjpeg tells ffmpeg to output in mjpeg - which will not be supported by any device, most likely.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Aug 19, 2014 8:47 pm

Re: Add option to pass parameters to ffmpeg

My problem is now - how do I tell Serviio to use this format in an Online Source RSS file or URL?

You tell it in the profile for your playback device.
You have not posted what container your mjpeg video stream is in but the provided serviio profile transcodes mjpeg in avi and mp4 containers to mpeg2video for some devices. You may need to add it to the profile for your playback device.
<<

viperidae

Serviio newbie

Posts: 2

Joined: Mon Aug 18, 2014 9:26 am

Post Thu Mar 12, 2015 1:04 am

Re: Add option to pass parameters to ffmpeg

This has nothing to do with output format. I fail to see how the playback device configuration has anything to do with the video input stream that ffmpeg reads in.

The -f option also specifies the input format, not just the output format.

It's an MJPEG video stream from an IP camera. ffmpeg fails to auto-detect the format. -f gives it a hint.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 12, 2015 9:56 pm

Re: Add option to pass parameters to ffmpeg

I didn't realise -f can be used for input. But apparently it ca

Serviio only uses the output -f parameter.

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 22 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.