<p>I am cross posting from the Nvidia forums... I got no answer there :(</p>

<p>I am using the Nvidia cuda video encoder nvcuvenc, and until now I was not able to encode an H.264 video with an output frame size different from the input frame size.</p>

<p>My question: Did anyone use this encoder with an output frame size different from the input frame size successfully? </p>

<p>Thanks in advance for any help.</p>

<hr>

<p>More details:</p>

<p>The sample is the following <code>"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\cudaEncode"</code> , and the encoding works fine for the default config file "704x480-h264" with the plush video.
But the other config files (720x480-h264 for example) don't work and don't seem to be correct because the input size is different than the actual video in the sample!! (I tested with other videos as well... No luck.)</p>

<p>To be precise: Sometimes the encoder crashes with an access violation, sometimes it encodes but the result is messed up ... </p>

CC BY-SA 3.0
2012-04-08T23:40:43.370Z
Are you quite sure you didn't do anything else wrong? – I suppose this question is better suited for http://stackoverflow.com/questions/tagged/cuda, but you will have to provide a [short-selfcontained-compilable-example](http://sscce.org/).
leftaroundabout
CC BY-SA 3.0
2012-04-09T01:33:02.840Z
@leftaroundabout I tested many times before posting this (i am asking for feedback to know if it's supported in the first place). Not sure if i need a SSCCE because it's a sample of the SDK so everyone who installed the Nvidia SDK should have it. Should I cross post again on cuda or delete this question totally ? Thanks
code7amza
<video>
Nvidia Cuda video encoder - output frame size
code7amza
# Nvidia Cuda video encoder - output frame size

(Asked by: username_0 on 2012-04-08)

I am cross posting from the Nvidia forums... I got no answer there :(

I am using the Nvidia cuda video encoder nvcuvenc, and until now I was not able to encode an H.264 video with an output frame size different from the input frame size.

My question: Did anyone use this encoder with an output frame size different from the input frame size successfully?

Thanks in advance for any help.

---

More details:

The sample is the following `"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\cudaEncode"` , and the encoding works fine for the default config file "704x480-h264" with the plush video.
But the other config files (720x480-h264 for example) don't work and don't seem to be correct because the input size is different than the actual video in the sample!! (I tested with other videos as well... No luck.)

To be precise: Sometimes the encoder crashes with an access violation, sometimes it encodes but the result is messed up ...

**Tags:** video

> **Comments:**
> **username_1**: Are you quite sure you didn't do anything else wrong? – I suppose this question is better suited for http://stackoverflow.com/questions/tagged/cuda, but you will have to provide a [short-selfcontained-compilable-example](http://sscce.org/).  
> **username_0**: @username_1 I tested many times before posting this (i am asking for feedback to know if it's supported in the first place). Not sure if i need a SSCCE because it's a sample of the SDK so everyone who installed the Nvidia SDK should have it. Should I cross post again on cuda or delete this question totally ? Thanks  

---

## 0 answers

