Resizing video H264

Hello

I'm trying to get the camera API coded data and then write the data to a file. Video codec I use is H264. I want to change the width and height of the video using following code.

error=camera_set_video_property(mCameraHandle,
                CAMERA_IMGPROP_WIDTH, 540,
        CAMERA_IMGPROP_HEIGHT, 960,
            CAMERA_IMGPROP_VIDEOCODEC,CAMERA_VIDEOCODEC_H264
        );

But I get an error CAMERA_EINVAL. I also noticed that for the rear camera only 1920 * 1080 and the front camera 720 * 1280 resolutions work. All other resolutions give the same error.

I also tried to get the resolution taken in charge by using the following codeblock:

unsigned int supportedRes;camera_res_t resolutions[100];
camera_get_video_output_resolutions(mCameraHandle, 0, &supportedRes,resolutions);       fprintf(stderr, "Resolution error: %s\n",ErrorToString(error).toAscii().constData());
fprintf(stderr, "supported Resolutions %d\n", supportedRes);for(int i =0 ; i < supportedRes; i++){
    fprintf(stderr,"Resolution %d: width: %u height: %u\n", i, resolutions[i].width,resolutions[i].height);}

the result is:

13 resolutions supported
Resolution 0: width: height 0: 0
Resolution 1: width: height 6: 3
Resolution 2: width: height 0: 520215
Resolution 3: width: height 17:21
Resolution 4: width: height 0: 0
Resolution 5: width: 1 height: 0
Resolution 6: width: height 0: 1
Resolution 7: width: 1 height: 18
Resolution 8: width: height 0: 0
Resolution 9: width: 1 height: 0
Resolution 10: width: height 0: 1
Resolution 11: width: 1 height: 3
Resolution 12: width: height 0: 4294967295

and do not find the problem.

Any help will be much appreciated.

Your resolution table is not initialized. You asked only camera_get_video_output_resolutions() you say the number of resolutions, because your second parameter is 0. Read the documentation for the function under prior aboiut sizing "description."

Also, always check the return code of these functions and only continue if OK.

Tags: BlackBerry Developers

Similar Questions

  • CAN first 14 elements (or most recent) cultures, and resizing videos?

    I need a video editor. The price of the Premier Pro is excessive.

    I would like to know if Prime elements can crop video and video clips?

    I would like to know if, when you crop, you can resize the video cropped to its original resolution and the size of the screen. e.g. when cropping a photograph, the size of the file and the resolution is reduced.

    Miller MD

    First 11 to 14 has an effect of culture items under fx effect/Transform. Once applied to the mounting clip, it can be edited under apply effects/Applied effects Palette/panel expanded Crop. The screenshot is of elements 13/13.1 first, but characteristic of the culture is identical to that of 11 to 14.

    As described in the Adobe documents on effects reference

    Adobe Premiere Elements help. Effects reference

    Culture

    The effect of cropping deletes lines of pixels on the edges of an element and, if you select the Zoom option, automatically resizes the clip adorned with its original dimensions. Use the sliders to crop each edge of the element separately. You can crop in pixels or as a percentage of the clamp.

    RTA

  • How can you fix problem of resizing video after effects?

    I have difficulties to make a video. After effects crop / resize my video after.

    My composition has several layers of pre composed it is 720 x 480 frame rate 29.97 and proportions to square pixel pixel game.

    The main composition has the same settings. When I visited, I check the rendering parameters and I find the same rate and size. When I in the output module settings, my video output is set to RGB, depth with millions of colors and color to premultiplied. Now, given all these things, I don't understand how I can fix the cropping/resizing that happens when I give the clip. No performance or warning sign is displayed when I click on the record button. I just found my video resized after rendering. Here are the screenshots of my render settings and output module details. Can someone please help me and guide me how to solve this problem? Help would be very appreciated! Thank you!

    Screen Shot 2014-01-23 at 9.23.36 PM.png'

    Screen Shot 2014-01-23 at 9.23.50 PM.png

    Looking through the active camera in the window of your comp?

  • SNES resize video without affecting the pixels with the blur.

    Hi all

    First of all, I want to mention that I looked for an answer to my question on the forum but only found a thread of Rowby Goren of January 4, 2010, who asked a similar question to resize pixel still images in CS4. He said to use Photoshop for this kind of task. My question is in contrast to the manipulation of a video that can only be edited in first. I use CS6. My question is this:

    I work a lot with animation art pixel resolution 320 x 240. Usually I make a 320 x 240 background scene and characters and the end result should be a double size. Thus, each pixel is actually 2 times bigger. Like old games of adventure since old times, do not forget that most of us. It works fine with style games old motors creation however when I want to make a video with my first pixel art creation, I couldn't achieve a pixel doubling clean and exact when resizing the source of 200%. He always gets blurry. Anyone know if the first one has any blur switch off option for scalling?

    I created a picture that describes the problem. It's just a simple pixel art image I picked up on google search. I saved and transferred to PNG for the best quality, I just hope it won't get compressed after the download. Any help will be appreciated!

    Pixel Art Resize Issue.png

    Thank you

    GAL Shemesh

    Holy sh * t this is an old post unanswered, but appears way up there on the google search engine. I bet I wasn't the only one frustrated with this... SO HERE'S THE ANSWER:
    Right click on your image layer, quality< set="" to="" draft.="" done,="" your="" pixelart="" remains="" sharp="" as="" if="" you're="" using="" "nearest="" neighbor"="" in="" photoshop="" or="" "point"="" in="">

    I don't really know why it's so hidden... In any case, don't forget to draft quality so when finished. I hope this helps someone out there!

  • Resize videos

    Although I like the video pulls the Atrix, the problem even 10 seconds worth is you canoe MMS to anyone. Y at - it an application that allows you to shoot only for MMS? My last phone had an option to select for shooting for MMS. If there is one on the Atrix, I can't find it!

    What happens if you try to change the resolution? While camcorder mode Hit the

    menu button and play with the setting, see what works best. The problem is

    Video HD is great!

    Thank you

    J

    Sent from my Atrix 4 G.

  • Read the H264 video stream in applicaton of media

    Hello

    I'm using DataSource/SourceStream way, following the article 'How To - audio in support of the application of media'

    I can get only the video stream H264 remote server, without audio stream or rtsp Protocol or any information of container.

    Can I feed this video H264 stream directly to the player? If so, I don't know what type MIME to use the setContentType() function. Be it "video/H264" or other types MIME? I checked "http://www.rfc-editor.org/rfc/rfc3984.txt" and found "this type is only defined for transfer via RTP.

    Appreciate for your help!

    Finally, I got H264 video streams play fine.

    I got my BlackBerry9000 (OS5.0) yesterday and tested H264 video streams can be fed directly to the drive using InputStream. And Ms. type should be "video/mp4".

  • Why can't I click on video to move/resize more?

    I'm new to Pr and am currently testing it on the CS6 trial period.

    I already did a sequence where I loaded in 4 videos, then simply clicked on them in the workspace to move/resize in each corner of the screen. It's simple, like the moving/resizing of images in Word or PowerPoint.

    Now on my second sequence, I loaded again in 4 videos, but it would not react the same way when I clicked on the video in the workspace (white box with dots in the corners/edges with scope in the Center), so I can't move or resize.

    I tried with a video and still no response.

    WHY HAS IT STOPPED WORKING, I NEED ONLY THIS FEATURE RELATIVELY SIMPLE TO WORK?

    IS THERE ANOTHER WAY TO REPOSITION/RESIZE VIDEOS OUTSIDE THE USE OF THE METHOD OF MOUSE CLICK?

    Please help :'(

    When double only the top clip by clicking on the Monitro program is affected.

    If you want to resize a clip that is the subject of another clip on a lower rail you first click the element in the timeline

    go for the effect options, and then click the transform icon or the word Motion.

    Now you can resize this clip.

    See if this will help.

  • TP, video call Cube for the Cube

    Hello world

    I need some advice,

    I have two side;

    First; CCM 6.1.5 + CTMS (Cisco telepresence Multipoint Switch) + Telepresence Cisco 3845 (c3845-adventerprisek9_ivs - mz.124 - 22.YB8.bin) of 1000 +.

    Second; CTMS + TP + CCM 8.5 1000 + 3945 (3900-universalk9-mz. Spa.150 - 1.M4.bin).

    I tried video call on the cube for the cube. I did some configs but will try tomorrow J.

    I need some answers:

    • 3845 router has not mpov, mpov it mandatory for cube calls?
    • 3845 router is it need license for cube?

    Here's the configs;

    3945 router config-

    voice, send rtp-received

    !

    voip phone service

    allow sip to sip connections

    Fax protocol t38 ls-redundancy hs 0-redundancy help 0 no

    SIP

    binding control source-interface GigabitEthernet0/0.21

    bind media source-interface GigabitEthernet0/0.21

    offer-early forced

    !

    voice class codec 1

    Aacld of preference profile 1 Codec 1

    Profile of h264 codec video 2

    !

    !

    interface GigabitEthernet0/0.21

    encapsulation dot1Q 21

    address IP CUBE3945 I_WANIP

    !

    !

    IP forward-Protocol ND

    !

    IP http server

    no ip http secure server

    !

    !

    !

    !

    aacld profile 1 codec

    fmtp "fmtp:96 profile-level-id = 16; streamtype = 5; mode = AAChbr; config = B98C00; sizeLength = 13; indexLength = 3; indexDeltaLength = 3; constantDuration = 480.

    !

    !

    Codec h264 profile 2

    fmtp "fmtp:112 profile-level-id = 4 d 0028; apors-parametersets = R00AKAmWUgDwBDyA, SGE7jyA =; radio-mode = 1.

    !

    !

    Dial-peer voice 1 voip

    Description to_CCM85

    service logon

    RTP payload type cisco-codec-fax-ind 110

    RTP payload type cisco-codec-aacld 96

    RTP payload type cisco-codec-video-h264 112

    session protocol sipv2

    session target ipv4: CCM85_IP

    incoming called number 10...

    codec voice-class 1

    DTMF-relay rtp - nte

    !

    Dial-peer voice 2 voip

    Description to_CCM615

    service logon

    destination-model 7...

    RTP payload type cisco-codec-fax-ind 110

    RTP payload type cisco-codec-aacld 96

    RTP payload type cisco-codec-video-h264 112

    session protocol sipv2

    session target ipv4: 3845cube_wanIp

    codec voice-class 1

    DTMF-relay rtp - nte

    !

    3845 router config-

    voip phone service

    media stream-autour

    allow sip to sip connections

    SIP

    binding control source-interface GigabitEthernet0/1.21

    bind media source-interface GigabitEthernet0/1.21

    offer-early forced

    !

    !

    !

    voice class codec 1

    Aacld of preference profile 1 Codec 1

    Profile of h264 codec video 2

    !

    !

    !

    interface GigabitEthernet0/1.21

    encapsulation dot1Q 21

    address IP CM6_wanIp

    !

    aacld profile 1 codec

    fmtp "fmtp:96 profile-level-id = 16; streamtype = 5; mode = AAChbr; config = B98C00; sizeLength = 13; indexLength = 3; indexDeltaLength = 3; constantDuration = 480.

    !

    Codec h264 profile 2

    fmtp "fmtp:112 profile-level-id = 4 d 0028; apors-parametersets = R00AKAmWUgDwBDyA, SGE7jyA =; radio-mode = 1.

    !

    !

    !

    Dial-peer voice 1 voip

    Description to_CM8

    service logon

    destination-model 10...

    RTP payload type cisco-codec-fax-ind 110

    RTP payload type cisco-codec-aacld 96

    RTP payload type cisco-codec-video-h264 112

    codec voice-class 1

    session protocol sipv2

    session target ipv4:3945_wanIp

    DTMF-relay rtp - nte

    !

    Dial-peer voice 2 voip

    Description to_CM6

    service logon

    RTP payload type cisco-codec-fax-ind 110

    RTP payload type cisco-codec-aacld 96

    RTP payload type cisco-codec-video-h264 112

    codec voice-class 1

    session protocol sipv2

    session target ipv4:CM6_IP

    incoming called-number 7...

    DTMF-relay rtp - nte

    !

    Best, thank you...

    Barris salvation,

    Try adding the following configuration:

    voip phone service
    RTP ssrc multiplex
    address - hide
    allow sip to sip connections
    SIP
    midcall-signalling passthru
    tcp transport session
    passage of Header error-passthru
    amp content sdp
    rel1xx disable

    Thank you

    Paul

  • HDX 8000 on VCS not sending Video - H.264/H.323

    Hi guys,.

    I need a little help to make heads or tails of a few H.241/H.245 of e-mail that seems to show the VCS rejecting the video from the HDX 8000 registered as H.323. The other device in the call (opening) is a DX70. The HDX 8000 receives audio and video of the DX70, however the DX70 receives only audio. A capture of packets on the VCS shows no video of the HDX 8000, and media stats thus confirm the absence of video. I have the tool some diagnostic logs of the call which shows a rejection of OLC for H.264.

    Call flow is DX70-> CUCM-> SIP Trunk-> VCS-> HDX 8000

    I cut the video clips of sent TCS and OLC received underneath. I don't know what the problem is that my understanding of these protocols is quite limited, and I'm not sure what I can do on VCS or possibly CUCM to fix. The HDX 8000 has no support so I have more luck there.

    Apparently it worked for them before their call manager has been upgraded to 11 or so claimed. VCS is on 8.6

    Rejection of the OLC:

    Module = "Developer.IWF" level = 'ERROR' CodeLocation="ppcmains/oak/calls/iwf/IWFLCListMgr.cpp(315)" method = "IH245OLCRejResponseMsg::CauseCode IWFLCListMgr::updateInboundOLCListForOLC" = "0x7f749ed6f700" Thread: State = "IWFConnectedState" Global-CallId="2e9acc06-a188-4712-b9da-4698eca8d34f' Local-CallId="6d42819b-205d-454f-ae95-5a283199f74c' Sip-CallId ="[email protected]"/ * / ' Local-Tag = "f653265efcb77e05" Remote-Tag="2397002~70309dbf-e7dd-4b85-aad8-82d36153a410-45698833" H225-ip = "10.176.11.130" H225-port = "1720" H245-ip = "10.176.11.130" H245-port = '39551' last States = 'IWFAwaitingTCSState IWFAwaitingAckWithSdpAnswerState IWFAwaitingMSDCompleteState IWFSipConnectedConnectingH323State IWFConnectedState' received an OLC for cap: 0: [109] 90000 bitrate: 17920 hbits/s video H264 [tags = 2 profile_level_id = {profile_idc = 66 " [{, profile_iop = 0, level_idc = 13}, max_mbps = 23500, max_fs = 3840, max_br = 1500, packetization_mode = NAL] was in the CHT sent sideways H323, therefore not sending an OLC reject. The TCS has sent confined: Capset(2) contains 5 items for packaging: rfc3984nil

    Did a bit of translation for the params are collapsing, but I won't pretend that I really understand them.

    Video caps from TCS (VCS):

    videoCapability
    {
    genericVideoCapability:
    {
    standard capabilityIdentifier: {0 0 8 241 0 0 1},.
    maxBitRate 18560,
    collapse
    {

    {
    standard parameterIdentifier: 41, * profile: Basline profile
    parameterValue booleanArray: 64
    },

    {
    standard parameterIdentifier: 42, * level: 2.2
    parameterValue unsignedMin: 57
    },

    {
    standard parameterIdentifier: 3, * CustomMaxMBPS
    parameterValue unsignedMin: 534
    },

    {
    standard parameterIdentifier: 4, * CustomMaxFS
    parameterValue unsignedMin: 34
    },

    {
    standard parameterIdentifier: 8, * rcmd-nal-unit-maximum size
    parameterValue unsigned32Max: 256000
    },

    {
    standard parameterIdentifier: 13, * not sure, can't find documentation on this
    parameterValue unsignedMin: 6000
    }
    }
    }
    }

    Video clips OLC received (from HDX):

    videodata data type: genericVideoCapability:
    {
    standard capabilityIdentifier: {0 0 8 241 0 0 1},.
    maxBitRate 17920,
    collapse
    {

    {
    standard parameterIdentifier: 41, * profile: Basline profile
    parameterValue booleanArray: 64
    },

    {
    standard parameterIdentifier: 42, * level: 1.3
    parameterValue unsignedMin: 36
    },

    {
    standard parameterIdentifier: 3, * CustomMaxMBPS
    parameterValue unsignedMin: 216
    },

    {
    standard parameterIdentifier: 6, * CustomMaxBRandCPB
    parameterValue unsignedMin: 60
    },

    {
    standard parameterIdentifier: 4, * CustomMaxFS
    parameterValue unsignedMin: 15
    }
    }
    }

    What version of your Polycom software runs on?  We had a lot of problems with Polycom HDXs prior to version 3 of the software running.  It is highly recommended that you update the Polycom if it is on an older version, not only for reasons of compatibility, but also to address all security vulnerabilities in previous versions of the software (software, Shellshock, GHOST, etc.).

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

  • Video compressor for PRE13 options

    Good evening everyone,

    I'm looking in the methods of development for youtube videos that I write.

    They have +/-1 hour long, which brings me to the usual conflict of size VS quality.

    I am trying to create MP4 - video H264 1920x1080p, 25 fps, audio AAC 192 Kbps, give me a video of 1 GB per hour.

    I've heard of pro-solutions as a map of compressor of matrox for better quality and smaller file size, and I was just wondering if it would be compatible with PREL? (and if not, then what would be?).

    I am currently using PREL13 on windows 7 and an i7-2600.

    Thank you very much!

    Roman

    Everything you put in place, YouTube will re - encode - there is no reason to be concerned about quality vs size. It is not relevant.

    Just put a video optimized upward. A file optimized for YouTube will look as good as your original and still will be too large.

    To create a file optimized for version 13, go to publish & share/computer/AVCHD and select the preset for YouTube HD.

  • . MOV stops flashing between black and the video in first pro cc

    I have created a. MOV in Flash cc and after that I have to export, it works fine. But if I import it in first pro; about halfway through it starts glitching on years spend my video and a black background. No effects have been used. just resized video to fit the image. How can I fix it?

    Purple?

    No, I want to say is yellow, green or red?

    If its red or yellow he return green see if that improves things.

  • Video not true black cropped around

    Hi I export video H264 MP4 first... when I play in VLC or the file exported on youtube background is not "true black". When I play within the program or use WMP it'S true black. Check it out...

    What gives?

    found the problem: gamma

    VIDEO COPILOT | After effects, Plug-ins, tutorials and stock footage for Post Production professional

  • Several videos full screen

    I'm doing a page with 3 videos that all go down below the other, but I want each video full screen (100% width and height) and scale correctly in all browsers. When you scroll down or upwards, it takes you to an anchor with a smooth animation, resulting in a kind of vertical slideshow of the thing.

    So far, I'm using this code:

    < video width = "100%" height = "auto" autoplay loop >

    < src = "assets/roxie.mp4 source' type =" video/mp4">"

    < src = "assets/roxie.webm source' type =" video/webm">"

    Your browser does not support the video tag.

    < / video >

    It is very well with google chrome, yet when I open the site in Safari, the high bit of the page of the next video is considered because of differences in navigation bar (safari is smaller). Is there a way to make the correct resizing videos as do many full-screen widgets, so it looks the same in all browsers?

    Please provide the url of the page where the videos are included, it would probably be something specific safari menu bar/toolbar, if any shortcut or tabs are added, and then try to remove and then check.

    Thank you

    Sanjit

  • incorporation of video hosted in muse don't work on firefox

    I do a simple edge animation animate. A video and 2 buttons: 1 play/pause and mute switch 1. It's a resizable video and I import in Muse. She has perfectly run on Safari, Chrome and IE9, but I only have sound on Firefox.

    You can see my test; http://www.PACCOM.fr/KFH/index.html

    Hello

    URL seems to show the video on Chrome and Firefox.

    Please delete the browser cookies, then try checking the URl

    Concerning

    Vivek

  • Native integration WebRTC audio/video on all AIRLINES, including Adobe Media Server platforms

    Hey everybody,

    It is obvious that Adobe is very busy trying to deal to improve and fix audio and video bugs on all platforms. Fortunately, the month last Adobe finally made a video H264 with Nellymoser audio stream work on androids! That took some time to make this work. But even if it works, no AIR on androids can still transmit a H264 video. Also AIR on iOS cannot view the videos on-line, but rather the video must be wrapped inside an Apple HLS (HTTP Live Streaming) format that introduced way too much latency for live audio and video streaming. Also AIR cannot transmit Audio AAC and cancellation of echo with Nellymoser just doesn't cut.

    Everyone knows that Flash Player can only the video/audio stream smoothly for users 1 to 10. There is just too much for Adobe to do to get the video to work and work for everyone on all devices.

    So because WebRTC has much more development effort going in there, and because it is presented as a free source to try to make the world exclusive licenses to rethink H264 / AAC audio, Adobe should maybe just focus their efforts on the implementation of the WebRTC libraries existing and especially functional in Adobe AIR.

    Because these libraries are becoming so popular, Adobe may also integrate support for WebRTC the Adobe Media Server for recording, peer-to-peer negotiation and firewall perforation.

    See here my native integration feature request WebRTC video/audio on all platforms

    https://BugBase.Adobe.com/index.cfm?event=bug & ID = 3728399

    If you vote with me for WebRTC in Adobe AIR and Adobe Media Server?

    Adobe could essentially disapproves of many existing features requests and bug fixes related to video audio and solve many problems with WebRTC as:

    Implement the Opus Codec:

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3016518

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3331640

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3633142

    The problems of improved Microphone:

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3711062

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3521224

    Add support for AAC, HE - AAC v2 audio stream, allowing iOS to be an endpoint that can receive audio and video:

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3694393

    Add support for transmitting video H264 since an Android:

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3648262

    A decrease in video latency and performance on the Androids independently processors from Intel ARM 32-bit/64-bit

    https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3648268

    Improve the video quality and bandwidth:

    HEVC H265, VP9

    No there no updated day nor comment from Adobe regarding adding support for WebRTC. According to the roadmap for this year, they are reserved! It seems that we will not see WebRTC in the ActionScript platform this year unfortunately. In March, I made some predictions as to what might be considered a higher priority to Adobe to work on. It seems that this list is still being developed by the team of Adobe AIR/Flash. They have not yet finished iOS support 8, and they have several more months to get finished video hardware acceleration. VideoTexture is still in beta and will likely be in version beta version 19 very air I guess. Then AIR 64-bit runtime ends Q3 as well as improvements of HTML5 for the 4th quarter. It seems that Adobe is fully booked.

Maybe you are looking for