Page 1 of 1

Add option to pass parameters to ffmpeg

PostPosted: Mon Aug 18, 2014 9:32 am
by viperidae
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

Re: Add option to pass parameters to ffmpeg

PostPosted: Tue Aug 19, 2014 6:07 pm
by zip
-f mjpeg tells ffmpeg to output in mjpeg - which will not be supported by any device, most likely.

Re: Add option to pass parameters to ffmpeg

PostPosted: Tue Aug 19, 2014 8:47 pm
by jhb50
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.

Re: Add option to pass parameters to ffmpeg

PostPosted: Thu Mar 12, 2015 1:04 am
by viperidae
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.

Re: Add option to pass parameters to ffmpeg

PostPosted: Thu Mar 12, 2015 9:56 pm
by zip
I didn't realise -f can be used for input. But apparently it ca

Serviio only uses the output -f parameter.