jurnet
September 10, 2015, 10:02am
1
Hi , sorry for my bad english
I have a problem with mp4 url to play video in plex :
This is my code :
`url1 = ‘http://fs35.youwatch.org:8777/slvpz4afosoax3ptx3nift52u4sp73jynewnh2ouhnjwak3l6jagi72xse/video.mp4 ’
url2 = ‘http://techslides.com/demos/sample-videos/small.mp4 ’
title = “title”,
summary = “summary”,
include_container = True
url = url1
videoclip_obj = VideoClipObject(
key = Callback(CreateVideoClipObject, url=url, title=title, summary=summary, include_container=include_container),
rating_key = url,
title = title,
summary = summary,
items = [
MediaObject(
parts = [
PartObject(key=url)
],
container = Container.MP4,
video_codec = VideoCodec.H264,
video_resolution = '544',
audio_codec = AudioCodec.AAC,
audio_channels = 2,
optimized_for_streaming = False
)
]
)
if include_container:
return ObjectContainer(objects=[videoclip_obj])
else:
return videoclip_obj`
When you switch between url1 and url2 just url2 works.
But you can see url1 in VLC, or download it
What i’m missing ?
jurnet
September 11, 2015, 6:03am
2
I follow this discussion :
I can access to this video :
http://techslides.com/demos/sample-videos/small.mp4
And this video
http://fs23.exashare.com:8777/7wxkdvwnzym56odwtyi6jw7svh7fn3zabx2jlpxz7ujsr6qrnetrcf6ge7la/v.mp4
But i can’t access to this video :
http://fs35.youwatch.org:8777/slvpz4afosoax3ptx3nift52u4sp73jynewnh2ouhnjwak3l6jagi72xse/video.mp4
I think it’s a problem with chrome and firefox
because with safari, it works but didn’t play the video but you can forward the movie and see a picture
If I copy and paste the content page of plex in a html file : IT WORKS
this is the div i catch with developer tools :
<video id="html-video" class="html-video" autoplay="" src="http://fs49.youwatch.org:8777/alvpyvygosoax3ptx3nifdnru2vxu4co27tbljwurjykfzvakptkbnzdfi/video.mp4"></video>
Anyone have an answer ?
sander1
September 14, 2015, 2:08pm
3
Not directly an answer, but maybe:
Firewall issue for certain apps (since some of those links contain a non-standard port number)?
Corrupt video file; or video file not optimized for streaming?