yangyizhi 0 Posted August 14, 2023 Posted August 14, 2023 I want to play the stream through the emby api in html, but it does not work. Check the emby log as follows: Unable to find a suitable output format for '/volume3/downloads/incomplete/transcoding-temp/X3E03D4/X3E03D4'
pünktchen 1409 Posted August 14, 2023 Posted August 14, 2023 Are you missing the file extension in your api request?
yangyizhi 0 Posted August 14, 2023 Author Posted August 14, 2023 http://XXX:8096/emby/Videos/18560/stream?EnableAutoStreamCopy=true&Static=true&CopyTimestamps=true&api_key=XXX,I get resources through this api, and the browser opens a url for downloading files,some movie work normal,some is nnot
pünktchen 1409 Posted August 14, 2023 Posted August 14, 2023 You should not use EnableAutoStreamCopy=true and Static=true in the same request. Static=true means you are requesting the video file with its original video, audio and subtitle codecs in its original container (file extension). EnableAutoStreamCopy=true means that based on other parameters, Emby decides if the video has to be remuxed or transcoded. But with EnableAutoStreamCopy you also have to tell Emby what file extension, video and audio codecs your player supports, so that Emby can make a proper decision. 1
Luke 42077 Posted August 14, 2023 Posted August 14, 2023 Hi, have you taken a look at emby server api docs? https://github.com/MediaBrowser/Emby/wiki
yangyizhi 0 Posted August 15, 2023 Author Posted August 15, 2023 http://XXX/emby/Videos/21965/stream?Static=true&SubtitleStreamIndex=5&SubtitleMethod=encode&api_key=XXX thanks for you answer this url above can play the movie, then i want load subtitles when paly the video,the url above did not work,how to solve it?
pünktchen 1409 Posted August 15, 2023 Posted August 15, 2023 SubtitleMethod=encode means burn-in the subtitle into the video. That will not work with Static=true because for burn-in of subtitles the video has to be transcoded. There are some factors to consider because of subtiles: Internal or external subtitles? Subtitle format? Capabilities of the player in regards to subtitles and the original video container! All these influence the subtitle method and the stream container to choose.
yangyizhi 0 Posted August 17, 2023 Author Posted August 17, 2023 (edited) Quote {"Name":"亲爱的,不要跨过那条江","ServerId":"38f613e442d4453a9b2e342787408980","Id":"33162","Container":"mkv","MediaSources":[{"Protocol":"File","Id":"98fd4e8ba74eab65024bf01f026bb7ed","Path":"/volume3/downloads/complete/电影/My.Love.Don't.Cross.That.River.2014.1080p.WEB-DL.AAC2.0.x264-RSG.mkv","Type":"Default","Container":"mkv","Size":3817062480,"Name":"My.Love.Don't.Cross.That.River.2014.1080p.WEB-DL.AAC2.0.x264-RSG","IsRemote":false,"RunTimeTicks":51477730000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","Title":"My.Love.Don't.Cross.That.River.2014.1080p.WEB-DL.AAC2.0.x264-RSG","VideoRange":"SDR","DisplayTitle":"My.Love.Don't.Cross.That.River.2014.1080p.WEB-DL.AAC2.0.x264-RSG","NalLengthSize":"4","IsInterlaced":false,"BitRate":5931982,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976,"RealFrameRate":23.976,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false,"AttachmentSize":0},{"Codec":"aac","Language":"kor","TimeBase":"1/1000","Title":"My.Love.Don't.Cross.That.River.2014.1080p.WEB-DL.AAC2.0.x264-RSG","DisplayTitle":"Korean My.Love.Don't.Cross.That.River.2014.1080p.WEB-DL.AAC2.0.x264-RSG","DisplayLanguage":"Korean","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","AttachmentSize":0},{"Codec":"subrip","Language":"eng","TimeBase":"1/1000","Title":"English","DisplayTitle":"English English","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","AttachmentSize":0,"SubtitleLocationType":"InternalStream"}],"Formats":[],"Bitrate":5931982,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false,"DefaultAudioStreamIndex":1,"DefaultSubtitleStreamIndex":2}],"RunTimeTicks":51477730000,"Size":3817062480,"Bitrate":5931982,"IsFolder":false,"Type":"Movie","UserData":{"PlayedPercentage":58.34079022132484,"PlaybackPositionTicks":30032514470,"PlayCount":6,"IsFavorite":false,"LastPlayedDate":"2023-08-10T11:08:43.0000000Z","Played":true},"ImageTags":{"Primary":"ba72ea41c520aa3a915f9dd0703068ba"},"BackdropImageTags":["95c9af1d87b558c1590007fae2c3ef56"],"MediaType":"Video"} The mediasource is as above, when I use the following url (http://XXX:8096/emby/Videos/33162/stream.mkv?CopyTimestamps=true&SubtitleStreamIndex=2&SubtitleMethod=Embed&api_key=XXX) to play this movie, I can’t debug the subtitles all the time, the subtitles are so difficult, can you give me an example? How to successfully embed subtitleshe subtitles all the time, the subtitles are so difficult, can you give me an example? How to successfully embed subtitles Edited August 17, 2023 by Abobader Edit format
pünktchen 1409 Posted August 17, 2023 Posted August 17, 2023 The really important question is where do you want to play the stream?
yangyizhi 0 Posted August 18, 2023 Author Posted August 18, 2023 21 hours ago, pünktchen said: 真正重要的问题是你想在哪里播放流媒体? <video id="videoPlayer" controls> <source src="http://XXX:8096/emby/Videos/12940/c24f90fcf2e42fc7dd9e5eddd041a4ef/DeviceId=Dreambox&static=False&SegmentContainer=ts&api_key=XXX" type="video/mp4"> <!-- 如果浏览器不支持MP4格式,可以提供其他格式的视频源 --> <!-- <source src="video.webm" type="video/webm"> --> <!-- <source src="video.ogg" type="video/ogg"> --> 您的浏览器不支持HTML5视频播放。 </video>in html by this way to play
pünktchen 1409 Posted August 19, 2023 Posted August 19, 2023 If it's for browser playback, then you should just check what the Emby web app is requesting for your videos.
yangyizhi 0 Posted August 21, 2023 Author Posted August 21, 2023 Can you give me an example of the requested url for the movie resource above me? I really can’t figure it out, thank you!
Luke 42077 Posted August 28, 2023 Posted August 28, 2023 Have you tried comparing to the web app urls? Just play in Chrome and monitor with the network debugger.
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