Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3770 times and has 5 replies Next Thread
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Video format data

Following this , I wanted to test the addition of the Speed and Frame rate fields in the video panel.




I kept the original VideoFormat constructor by replacing the predefined frameRate.
new VideoFormat(VideoFormat.JPEG, new Dimension(Width, Height), Format.NOT_SPECIFIED, Format.byteArray, Format.NOT_SPECIFIED)


I modified the getVideoFormat method for which the videoFormat.getFrameRate() value is not taken into account because it is directly retrieved from the new Frame rate field.

When I play a video, the change in frame rate is perceptible but the value of the recorded data is set at 15 frames/sec.
video test_SH3D-6.0beta_320x240 pixels - 4-3 - 25 frames-seconde.mov
video test_SH3D-6.0beta_320x240 pixels - 4-3 - 50 frames-seconde.mov
----------------------------------------
EnkoNyito
[Oct 1, 2018, 5:20:13 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
svedel77
Member
Member's Avatar

+45 Denmark
Joined: May 10, 2018
Post Count: 49
Status: Offline
Reply to this Post  Reply with Quote 
Re: Video format data

If this is getting to work, I'll be so happy!
[Oct 1, 2018, 3:28:45 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Matthenry3
Newbie



Bangladesh
Joined: Oct 1, 2018
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Video format data

Looks good. Hope this will work perfectly.
[Oct 1, 2018, 4:18:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Re: Video format data

By creating a new instance,
videoFormat = new VideoFormat(VideoFormat.JPEG, new Dimension(videoFormat.getSize().width, videoFormat.getSize().height), Format.NOT_SPECIFIED, Format.byteArray, controllerFrameRate)
the frame rate is updated with each change and the correct value appears in the recorded video data.


userGuideExample_SH3D-6.0beta_speed 0.5x_frame rate 60_PVR-1.6betaTest

Regarding the Speed field, the value is expressed in factor as for most video players/editors. Normal speed (1.0x) is the default speed of SH3D.
Its value change is taken into account when the play/pause button is pressed.
----------------------------------------
EnkoNyito
[Oct 3, 2018, 10:20:41 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bdfd
Advanced Member
Member's Avatar

Western Europa
Joined: Mar 29, 2014
Post Count: 2614
Status: Offline
Reply to this Post  Reply with Quote 
confused Re: Video format data

Did you test this path in quality 3 or 4 ?

If yes, what was the calculation time ?
.
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
[Oct 4, 2018, 6:40:22 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pabloab
Newbie




Joined: Feb 22, 2023
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Video format data

I tweak the old .mov to be upscaled, slower, and in h264 .mp4, WhatsApp shareable.

#!/usr/bin/env bash
for file in *.mov; do
scale_factor="2"
slow_factor="4"
ffmpeg -y \
-i "${file}" \
-c copy \
-an \
-vf scale=iw*${scale_factor}:ih*${scale_factor} \
-filter:v "setpts=${slow_factor}*PTS" \
-c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p \
"${file%.*}_h264.mp4"
# -stream_loop 3 \
done

[Feb 23, 2023, 5:29:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved