|
I found a patched version of ffmpeg.exe that will get me by for now.
http://forum.doom9.org/showthread.php?t=152419
Roozhou patched a version of ffmpeg so that it will demux the video stream, modify some of the video stream attributes, then repack it without actually re-encoding the video. It modified one of my files in less than a second, so I'm pretty sure it didn't re-encode the whole thing and loose any clarity, and when it was done, the file worked everywhere that I want it to.
It's still an extra step that I wish I didn't have to do, but it finally lets me put out a video in exactly the format that I want, and not be forced into 4:3 or 16:9 aspect ratio.
I never could find any real documentation on the profile.ini settings, so it's still possible that there's a way to tell PD to put out a file with square pixels regardless of resolution.
|
|
More info that I've found.
It appears that PAR can be set in both the mp4 container, and in the actual video stream itself. Setting the PAR in the container alone doesn't seem to the correct solution as many viewers are even more confused if the container doesn't match the video stream.
Since modifying PAR in SPS may change stream length, it is not possible to apply in-place but a full remux is required.
That means that a post process change of the aspect ratio is possible, but could be time consuming. It would be better if I can figure out how to get PowerDirector to do it right in the first place, but I've been unable to figure that out yet.
There is actually allot of discussion on the forum about Pixel Aspect Ratio, but I've found no discussion about setting or changing it pre-production.
|
|
I guess I'm not totally finished with this topic. The videos I produce work in many places, but not all, and I believe that's because PowerDirector is tagging the videos with the wrong aspect ratio. Even though the video is 1920 x 960 which would be an aspect ratio of 2:1 (with square pixels), it is being tagged as a 16:9 video with rectangular pixels.
The original videos produced by Ricoh Theta show the following attributes
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x960 [SAR 1:1 DAR 2:1], 12037 kb/s, 14.98 fps, 14.98 tbr, 14985 tbn,29.97 tbc (default)
but the videos produced by PowerDirector show the following attributes
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x960 [SAR 8:9 DAR 16:9], 15612 kb/s, 14.98 fps, 14.99 tbr, 30k tbn, 29.97 tbc (default)
SAR stands for "Simple Aspect Ratio" otherwise known as PAR or "Pixel Aspect Ratio"
DAR stands for "Display Aspect Ratio"
I need to figure out how to make PowerDirector output a video stream with a SAR of 1:1. Or I need to figure out how to change SAR and DAR in the produced video without re-encoding the whole video.
I don't see anything obvious in the profile, but I also don't understand all of the fields and their potential values.
|
|
Look through my thread about spherical video editing - 360 video
|
|
I just found "Kolor Eyes" from google. It's a 360 video viewer that seems to work pretty good. The only problem for me is that you can't "fly" around the video using the keyboard. You can turn left, right, up, down, back, front with arrow keys, but no smooth panning.
I also found that I have to leave the video in 19:6 aspect ratio or it puts a big black bar as part of the sphere. there's probably some metadata being set that I can't see.
Anyway, i seem to be able to edit spherical videos to my heart's content now and it upload to youtube just fine, and I can view it locally (so I can show videos without internet access).
|
|
Quote:
How did you change the ratio of each clip? Did you use the H/V scale keyframes or did you do it a different way?
I right click on a video clip in the timeline. "Set Clip Attributes" - "The aspect ratio of the video is 16:9"
Once I do that, the video fills the entire 16:9 preview window, then it gets scalled back down during production. Or as we've already said, let it be a 16:9 video.
The only thing I'm still trying to figure out is how to play the video using the Ricoh Theta player, then I can watch the videos offline. I haven't found a 360 video player other than the Ricoh Theta viewer.
|
|
I only included the raw video for curious individuals, I have no need to modify it in any way. It does play ok in Videolan (vlc).
I think I figured out how to do what I need to do. Here's a quick video I made to test it. https://youtu.be/k8VNsUwjq14
- Create a new mp4 publish profile from 1920 x 1080. Then edit profile.ini to change it to 1920 x 960 and frame rate to 15
- Restart powerdirector and add my video clips.
- Add my video clips to the timeline, then change the attributes of each video clip to 16:9 aspect ratio
- Add titles, transitions, etc.
- Publish the video using my modified profile
- Use the youtube metadata app to add metadata to the new video
- Upload the video to youtube.
I might not have needed to put the video into 1920 x 960 format because youtube doesn't actually seem to require it. My big issue was black bars top and bottom. So setting the clip attributes to 16:9 is the real magic to uploading the videos to youtube without black dots (bars) top and bottom.
|
|
Here's a more interesting clip. This is a clip of riding on Iron Mountain Road near Mt Rushmore. These bridges are called the "Pig Tails" and they are as fun to ride as you'd think they are.
BTW, I am using powerdirector 13 ultimate on Windows 10 64bit.
|
|
For those that are interested, here's the raw footage straight off of the Ricoh Theta camera, before it was post processed by the Ricoh application. It only takes a minute or two to turn a 3 minute raw video into the 2:1 aspect ratio video.
|
|
Here is a sample video of what I'm working with
For grins, here's a video I took a few months ago and posted to youtube.
https://www.youtube.com/watch?v=_n_ZdFopnmU
If the video looks like a stretched out panorama, then your viewer doesn't support youtobe 360. Try an iphone or android with the latest youtube app, or the latest version of Chrome. Youtube only introduced 360 support in April of 2015, so not all viewers support it yet.
|
|
I have a Ricoh Theta camera that produces 360 videos (full spherical videos). You can post them straight to youtube and they are recognized and processed as a 360 video so during playback you can pan around through the video and look all around.
The mp4 files are 1920 x 960 resolution which is 2:1 aspect ratio. They have 15 fps.
I've used ffmpeg to slice, dice, and paste the videos into some nice videos, but I woudl like to add titles and transitions.
I've tried some very simple experiments by adding a clip and just trying to publish it. But no matter what I do, it always comes out with black bars top and bottom which squashes the video a bit. It's not that noticable but it's still annoying.
Summary - I want to import 2:1 aspect ratio video and output 2:1 aspect ratio video.
WHAT I'VE TRIED
Project is set to 16:9
I created a custom mp4 publishing profile, then edited profile.ini to change the resolution to 1920 x 960. It had black bars top and bottom.
I changed the aspect ratio of the video clip to 16 x 9, then produced with my custom profile. Still black bars
I added a mask to the video clip (might not have done it right), Still black bars
|