Jump to content

Unable to transcode - Debian 7 - ffmpeg issue


andstein85

Recommended Posts

andstein85

I'm running Debian 7.1(more specifically openmediavault 2.2.2 (Stone burner)) and have installed emby-server via command line using the instructions here:

https://software.opensuse.org/download.html?project=home%3Aemby&package=emby-server

echo 'deb http://download.opensuse.org/repositories/home:/emby/Debian_7.0/ /' >> /etc/apt/sources.list.d/emby-server.list 
apt-get update
apt-get install emby-server

Backstory: Decided to replace the OMV emby plugin with the regular debian version of emby server because I was having the same issues I'm having now, plus I wanted to have more control over where things were getting installed, and the omv plugin didn't really offer anything more than the regular version except for being able to start and stop it from the omv gui which doesn't really matter to me.

 

Anyway, got everything configured and working at home(all of my clients in network direct stream) but then noticed I was not able to stream anything outside of my network. I also tested with an old firestick(which requires everything to be transcoded) inside my networkwhich yielded the same results: video playback error

 

So basically any time the server tries to transcode, the stream craps out and gives an error. Further investigation of the logs suggests ffmpeg is the culprit and searching around the internet vaguely suggested debian 7 and ffmpeg were some versions behind which can issues transcoding issues? Its my understanding ffmpeg gets installed as a dependency of the emby-server installation. However, the installation instructions do not make any mention of ffmpeg needing to be updated from via an external repo or compiled from source, so what gives?

 

here's various transcoding logs showing the issues with "unrecognized options":

http://<hostname scrubbed>:8096/emby/videos/a970ab2fafd1edbc6b6ad27ceeee4072/stream.mkv?DeviceId=ae595d4b-0134-54ca-3588-430629327608&MediaSourceId=a970ab2fafd1edbc6b6ad27ceeee4072&VideoCodec=h264&AudioCodec=ac3&AudioStreamIndex=1&VideoBitrate=3552000&AudioBitrate=448000&StartTimeTicks=237170000&Level=41&Profile=high&PlaySessionId=07eb163910f04918a3f57a4504e2445b&api_key=603d162ba17b459a83f5ca580090fb03&CopyTimestamps=true&ForceLiveStream=false&SubtitleMethod=Encode

{"Protocol":"File","Id":"a970ab2fafd1edbc6b6ad27ceeee4072","Path":"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/3 Days to Kill (2014).mkv","Type":"Default","Container":"mkv","Name":"1080P/H264/AC3","RunTimeTicks":70213060000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":12719878,"BitDepth":8,"RefFrames":2,"IsDefault":true,"IsForced":false,"Height":808,"Width":1920,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"2.40:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"ac3","Language":"eng","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":512000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":12719878,"RequiredHttpHeaders":{}}

/usr/bin/ffprobe -ss 00:00:23.717 -fflags +genpts -noaccurate_seek -i file:"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/3 Days to Kill (2014).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -copyts -avoid_negative_ts disabled -start_at_zero -pix_fmt yuv420p -preset superfast -crf 23 -b:v 3552000 -maxrate 3552000 -bufsize 7104000 -vsync vfr -profile:v high -level 41 -map_metadata -1 -threads 0 -codec:a:0 ac3 -ab 448000 -af "aresample=async=1" -y "/media/94779450-f449-47af-b637-a147493dfd17/emby/transcoding-temp/03aff999ac29957d23faed5e749e2d04.mkv"


avprobe version 0.8.17-6:0.8.17-2, Copyright (c) 2007-2014 the Libav developers
  built on Mar  2 2016 22:53:14 with gcc 4.7.2
Unrecognized option 'ss'
http://<hostname scrubbed>:8096/emby/videos/8e44c68544c29de442a5c6c4eab6a08c/stream.mkv?DeviceId=e53f098617c89afe4530ce836fe8f17929155158&MediaSourceId=8e44c68544c29de442a5c6c4eab6a08c&VideoCodec=h264&AudioCodec=mp3&AudioStreamIndex=1&VideoBitrate=4680000&AudioBitrate=320000&MaxAudioChannels=6&Level=41&Profile=high&PlaySessionId=82d82e1572164845a144d70d1cbf9a19&api_key=e6e1ab7405074763a2a03db2441e5984&CopyTimestamps=true&ForceLiveStream=false

{"Protocol":"File","Id":"8e44c68544c29de442a5c6c4eab6a08c","Path":"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/Star Wars, Episode VII - The Force Awakens (2015).mkv","Type":"Default","Container":"mkv","Name":"1080P/H264/DTS-HD MA","RunTimeTicks":82866950000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","Language":"eng","IsInterlaced":false,"BitRate":36592525,"BitDepth":8,"RefFrames":4,"IsDefault":false,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"dca","Language":"eng","IsInterlaced":false,"ChannelLayout":"7.1","BitDepth":24,"Channels":8,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"DTS-HD MA","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"dca","Language":"eng","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":1536000,"BitDepth":24,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Profile":"DTS","Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":36592525,"RequiredHttpHeaders":{}}

/usr/bin/ffprobe -fflags +genpts -noaccurate_seek -i file:"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/Star Wars, Episode VII - The Force Awakens (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -copyts -avoid_negative_ts disabled -start_at_zero -pix_fmt yuv420p -preset superfast -crf 23 -b:v 4680000 -maxrate 4680000 -bufsize 9360000 -vsync vfr -profile:v high -level 41 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1,volume=2" -y "/var/lib/emby-server/transcoding-temp/df12a4e12c5cd86ac53a89e15fb61107.mkv"


avprobe version 0.8.17-6:0.8.17-2, Copyright (c) 2007-2014 the Libav developers
  built on Mar  2 2016 22:53:14 with gcc 4.7.2
Unrecognized option 'noaccurate_seek'
http://<hostname scrubbed>:8096/emby/videos/5ec7f8e7872b2fadaff5820f272b5df3/stream.webm?DeviceId=5185cf98f6b39af0bcb64e911ea45a0df744c7cb&MediaSourceId=5ec7f8e7872b2fadaff5820f272b5df3&VideoCodec=vpx&AudioCodec=vorbis&AudioStreamIndex=1&VideoBitrate=4680000&AudioBitrate=320000&MaxAudioChannels=6&PlaySessionId=49aaa7cf36ce43e7847a6506ca51d04f&api_key=8d14eaaaa8544b6185c668bb8be12635&CopyTimestamps=false&ForceLiveStream=false&EnableAutoStreamCopy=false

{"Protocol":"File","Id":"5ec7f8e7872b2fadaff5820f272b5df3","Path":"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/Hunger Games Mockingjay Part 2 (2015).mkv","Type":"Default","Container":"mkv","Name":"1080P/H264/AC3","RunTimeTicks":82172500000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","Language":"eng","IsInterlaced":false,"BitRate":21579037,"BitDepth":8,"RefFrames":4,"IsDefault":false,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"ac3","Language":"eng","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":21579037,"RequiredHttpHeaders":{}}

/usr/bin/ffprobe -fflags +genpts -i file:"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/Hunger Games Mockingjay Part 2 (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libvpx -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -speed 16 -quality good -profile:v 0 -slices 8 -crf 10 -qmin 0 -qmax 50 -maxrate:v 4680000 -bufsize:v (4680000*2) -b:v 4680000 -vsync vfr -map_metadata -1 -threads 3 -codec:a:0 libvorbis -ac 6 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/a6a88f3a1bf56fc78c6c658f8e885037.webm"


avprobe version 0.8.17-6:0.8.17-2, Copyright (c) 2007-2014 the Libav developers
  built on Mar  2 2016 22:53:14 with gcc 4.7.2
Unrecognized option 'i'
Failed to set value 'file:/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/Hunger Games Mockingjay Part 2 (2015).mkv' for option 'i'

and an excerpt from the server log correlating to the last transcoding log above:

2016-04-20 08:33:09.6351 Info HttpServer: HTTP GET http://<hostname scrubbed>:8096/emby/videos/5ec7f8e7872b2fadaff5820f272b5df3/stream.webm?DeviceId=5185cf98f6b39af0bcb64e911ea45a0df744c7cb&MediaSourceId=5ec7f8e7872b2fadaff5820f272b5df3&VideoCodec=vpx&AudioCodec=vorbis&AudioStreamIndex=1&VideoBitrate=4680000&AudioBitrate=320000&MaxAudioChannels=6&PlaySessionId=49aaa7cf36ce43e7847a6506ca51d04f&CopyTimestamps=false&ForceLiveStream=false&EnableAutoStreamCopy=false. UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
2016-04-20 08:33:09.6420 Info App: /usr/bin/ffprobe -fflags +genpts -i file:"/media/793eedda-745f-4569-a82a-0bfa6dc2d1d2/greyhole_lz/Media/Movies/Hunger Games Mockingjay Part 2 (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libvpx -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -speed 16 -quality good -profile:v 0 -slices 8 -crf 10 -qmin 0 -qmax 50 -maxrate:v 4680000 -bufsize:v (4680000*2) -b:v 4680000 -vsync vfr -map_metadata -1 -threads 3 -codec:a:0 libvorbis -ac 6 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/a6a88f3a1bf56fc78c6c658f8e885037.webm"
2016-04-20 08:33:09.7964 Info App: FFMpeg exited with code 1

Thanks for all y'alls hard work on this project!
 

Edited by andstein85
Link to comment
Share on other sites

andstein85

For now, I've re-enabled emby server on my windows 10 workstation and updated the media paths to reference my new nas. This is really disappointing though because my NAS server is entirely too powerful(even though it was built using spare parts I had lying around) to ONLY be used a NAS server.

 

:( :( :( :( :( :( :(

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...