movie

Rescaling and slowing down a movie at the same time with ffmpeg

我与影子孤独终老i 提交于 2021-02-05 11:38:50
问题 I would like with ffmpeg to slow down a movie I am creating using the flag: -filter:v "setpts=2.0*PTS" However the height of my still images is not divisible by 2, so to avoid the error: height not divisible by 2 (1238x833) , I am using the flag: -vf scale="trunc(iw/2)*2:trunc(ih/2)*2" (I also tried -vf scale=1238:-2 ). When I do this the film is generated but it isn't slowed down, like if the -filter:v "setpts=2.0*PTS" wasn't there. Is there something particular to do in order to have both

Rescaling and slowing down a movie at the same time with ffmpeg

僤鯓⒐⒋嵵緔 提交于 2021-02-05 11:38:16
问题 I would like with ffmpeg to slow down a movie I am creating using the flag: -filter:v "setpts=2.0*PTS" However the height of my still images is not divisible by 2, so to avoid the error: height not divisible by 2 (1238x833) , I am using the flag: -vf scale="trunc(iw/2)*2:trunc(ih/2)*2" (I also tried -vf scale=1238:-2 ). When I do this the film is generated but it isn't slowed down, like if the -filter:v "setpts=2.0*PTS" wasn't there. Is there something particular to do in order to have both

Exporting movie from matlab

一个人想着一个人 提交于 2020-01-16 20:29:31
问题 I am trying to make a movie in matlab. for i=1:runs; for k=1:NO_TIMES B = 0; [conf dom_size] = conf_update_massmedia(time(k),conf); shortconf=conf(1:N); for j=1:N; sigma(j,1:N) = conf(1+(j-1)*N:j*N); end figure(1) imagesc(sigma); colorbar; set(gcf,'PaperPositionMode','auto'); F(k)=getframe(gcf); end end movie2avi(F,'B=0.avi','Compression','none') So my problem is that i only get a movie from the last run of the loop, i have tried to move the code for the figure around, but nothing seems to

Play movie from URL on Android

强颜欢笑 提交于 2020-01-16 04:33:16
问题 @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); VideoView videoView = (VideoView) findViewById(R.id.video_view); MediaController mediaController = new MediaController(this); mediaController.setAnchorView(videoView); Uri video = Uri.parse(link); videoView.setMediaController(mediaController); videoView.setVideoURI(video); videoView.requestFocus(); videoView.start(); } But not successful. It's giving an error: "Cannot play this video" 回答1: I

Failed to decode some animated GIF files using Movie on Android 2.3.x or lower

北战南征 提交于 2020-01-10 20:14:28
问题 I tried using the following snippet code to decode the animated gif file with the Movie class. URL url; InputStream is = null; BufferedInputStream bis = null; url = new URL("http://emos.plurk.com/aeddddbbf63e980128ab7b3c1fca2798_w48_h48.gif"); HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); is = httpURLConnection.getInputStream(); bis = new BufferedInputStream(is); byte[] array = streamToBytes(bis); mGifMovie = Movie.decodeByteArray(array, 0, array.length); and

Streaming MOVIE Python flask

我只是一个虾纸丫 提交于 2020-01-03 06:41:20
问题 I have a small project about streaming movie(720p). in Python Flask, Can anyone give me a example how to stream a video from a local disk in python flask. so its played on the homepage. What depedencies are avaible for this. Thank you 回答1: There is an excellent article on this subject, Video Streaming with Flask, written by Miguel Grinberg on his blog. As he says and explains it very well, streaming with Flask is as simple as that: app.py #!/usr/bin/env python from flask import Flask, render

Finding the average rating of each movies SQL

荒凉一梦 提交于 2020-01-03 06:40:12
问题 I'm currently taking the online standford class on databases, If you could help me solve this sql problem I would greatly appreciate it. Sorry I'm a complete noob. Table Movie: mID | title | year | director Table Rating rID | mID | stars | ratingDate Table Reviewer rID | name For all pairs of reviewers such that both reviewers gave a rating to the same movie, return the names of both reviewers. Eliminate duplicates, don't pair reviewers with themselves, and include each pair only once. For

Is it possible to resize an embedded .mov?

安稳与你 提交于 2020-01-01 17:03:37
问题 I embed .mov clips that sometimes are bigger than the place where I show it, so I want to resize the clip. Have tried with width and height but that only changes the area to display it; it does not resize the actual movie. Is it possible to resize the movie size? If yes, how? 回答1: Yes, you need the scale attribute: <embed src="sample.mov" width="200" height="240" scale="tofit"> There's a full reference for QuickTime video attributes here. 回答2: Sometimes the scale attribute doesn't work. It

Is it possible to resize an embedded .mov?

落花浮王杯 提交于 2020-01-01 17:02:12
问题 I embed .mov clips that sometimes are bigger than the place where I show it, so I want to resize the clip. Have tried with width and height but that only changes the area to display it; it does not resize the actual movie. Is it possible to resize the movie size? If yes, how? 回答1: Yes, you need the scale attribute: <embed src="sample.mov" width="200" height="240" scale="tofit"> There's a full reference for QuickTime video attributes here. 回答2: Sometimes the scale attribute doesn't work. It

MPMoviePlayerController alternatives on iPhone?

旧巷老猫 提交于 2019-12-31 10:36:19
问题 I am looking for alternatives to the MPMoviePlayerController on the iPhone. As a video player its functionality is very limited. According to the class reference there is no way to get the current play back time or set a new time, for example. It's just play and stop. Are there any middleware solutions out there for iPhone video playback that offer more functionality? CRI has something in development but it has not been released. I haven't been able to find anything else. Thanks. 回答1: Keep in