MP4 / Changing aspect Ratio using Batch changes Audio/ Videosize

Shackles

New member
If i load up 15 bought Mp4 Musicvideos having wrong Aspect Ratio
and i switch those to 16:9 in the Settings.

After having batch saved those "lossless" without reencoding flags setup anywhere

-Audio is different size
-Video has different size

compared to before.

If i use Yamb and MANUALLY change aspect single by Single Video
nothing has changed the original Source Video & Audio.

What do i do wrong here?


I do understand that you perhaps use another Muxer/ Multiplexer then Yamb and the Container Filsize may change here.
The Batch Steps are really quick done so i see no real Encoding by VideoReDo here at all.
There aint any Encoding Info anywhere while the batch starts.

I simply want to switch Aspect Ratio from non ( 4:3 here then ) to 16:9
without any reencoding simply Muxing which VideoReDo obviously seems to anyways reencode in the background.

This also happens if i single re-save them.

I really like to have a MP4 Batch Solution because its a pain to weekly re-edit 30 Videos
single way in Yamb only because of the Imcompetence of that UK VJ Service adding entirely wrong or non at all Aspect Flags to their Videos.
 
Last edited:

Dan203

Senior Developer
Staff member
If it was recoding it would take a long time, so that's probably not it.

When you say it has a different size do you mean the actual length of the video is different? Or the byte size of the actual file is different?

Dan
 

Dan203

Senior Developer
Staff member
Are you using the trial version? Because in the trial version output is time limited unless you request a trial key. If you request a trial key then you'll have full access to the program for 15 days.

Dan
 

Shackles

New member
No, i am using my registered copy :)
The Video is sure complete after changing Aspect from 4:3 to 16:9 but if i unpack the Mp4 container again Video and Audio have different size and so they were re-encoded by VideoReDo.
Whatelse should increase the Filesize of each file otherwise?

- I just load up an MP4 Musicvideo ( CBR H264 ) containing H264 and AAC
- I mark it entire
- Save as > Mp4 H264 > Options > Change Aspect to 16:9
leaving all setting as they are untouched no encoding

Result is another Mp4 in 16:9 with different Video size and Audio size.
The Audio / Video shouldnt be for sure not being reencoded if i choose to not reencode anything but it does.
I dont know if your software needs to reencode the Video changing Aspect Ratio or increases its size adding a 16:9 Flag
 
Last edited:

Dan203

Senior Developer
Staff member
When you output the file from VideoReDo do you see any errors in the complete dialog about audio or video frames being removed?

Dan
 

Shackles

New member
No , no errors at all :)

I will upload you a passworded sample Video to your FTP. I guess its better.
I then send the unrar password including topic info then to your support.
 

Shackles

New member
Ok, but since its no public distributable Content i would need to password it.

I noticed once i saved them as 16:9 in VideoReDo that the output Info changed

Original:


Writing application : Promo Only
BPM : 127
Copyright : Island
Comment : Promo Only - www.promoonly.com - Distribution of this file is strictly prohibited.
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3mn 26s
Bit rate : 3 000 Kbps
Maximum bit rate : 7 770 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate mode : Constant
Frame rate : 24.975 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.290
Stream size : 73.8 MiB (91%)
Writing library : x264 core 110 r1804 e89c4cf
Encoding settings : cabac=0 / ref=2 / deblock=1:0:0 / analyse=0x1:0x131 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=3000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.41 / aq=1:1.00

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 3mn 26s
Bit rate mode : Variable
Bit rate : 312 Kbps
Maximum bit rate : 442 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 7.66 MiB (9%)



After saving in Vredo as 16:9

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3mn 26s
Bit rate : 3 002 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 5:4
Frame rate mode : Variable
Frame rate : 24.975 fps
Minimum frame rate : 24.950 fps
Maximum frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.290
Stream size : 73.8 MiB (90%)

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 3mn 26s
Duration_LastFrame : -21ms
Bit rate mode : Variable
Bit rate : 312 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 7.66 MiB (9%)


Can it be that its not at all a constant Rate Video having that strange not correct "25 Frames" /Second ?
Because if you compare the Mediainfo Logs the output afterwards shows as Variable Video which would be a reason perhaps it changes size?
Also the Copyright Info is stripped from the original File after saving in Vredo.
I guess this is too much work now since its not a real 25 Frames Video and the Infos are stripped i would need to keep the file untouched way for copyright reasons.

I think ill skip on this Vredo behaves now . I dont think the Change of Video/ Audio is your Softwares fault and although this "sample" Video didnt bring me any errors some of them did indeed show a strip of Video / Audio headers now after saving.
 
Last edited:

Dan203

Senior Developer
Staff member
Ok, but since its no public distributable Content i would need to password it.
Please just put the file on the FTP unprotected, we will delete it as soon as we download it for testing.

I noticed once i saved them as 16:9 in VideoReDo that the output Info changed
Nothing important changed here. The video is identical except for the aspect. The "variable frame rate" that MediaInfo is showing is a lie. It's basically caused by a slight discrepancy between the container frame rate, which we set to 25fps, and the actual time stamps which are using the original odd frame rate. It's just a miscalculation and does not indicate anything has actually changed in the file.

So what exactly is the issue here? When you play the files do they look bad? Or are you just concerned because the file size changes?

Dan
 

Shackles

New member
Can i send you a dropbox Link instead to the Support?
It wont be encrypted simple DDL.

:)

They do not look bad at all after changing Aspect Ratio.
The Filesizes changed in Audio Video, also the Copyright Meta Infos are stripped and i want to use an untouched copy. Especially i wonder about that the Audio size changed.
I play those in the Clubs and i dunno if something here changed it from quality.
 
Last edited:

Shackles

New member
i did sent you a dropbox link but your Support replied that the support wants FTP Uploads.
I replied back to forward it to you so hopefully it will reach you then :)

Thx for taking care whenever you have time to have a look at it.
 

Dan203

Senior Developer
Staff member
OK I'm downloading the file now, but just so you know there is no way to change the aspect using VideoReDo while leaving the file "untouched". Everything that goes through VideoReDo is remuxed, and as you discovered the metadata in the MP4 file will be lost. If that's not acceptable then you need to look for another solution. There may be tools out there that can modify the source MP4 file without remuxing, but I don't know of any myself.

Dan
 

Dan203

Senior Developer
Staff member
OK I ran your file through VideoReDo and both streams are exactly the same size as the source file. The only thing that is missing is the metadata which, as I mentioned above, is a known issue because we do not currently handle MP4 metadata.

When you're saving the file are you changing any of the settings besides the aspect? You need to make sure you leave the audio as "Automatic" to retain the original stream. If you change it to AAC then it will force an audio recode and that could explain the reason for the change you're seeing.

Dan
 

Shackles

New member
Thx Dan for your time in testing the Video.

I am surprised you have no Audio / Video changes.
Ill delete my Version and delete all registry Infos and then re-install it to see if its
still changing. If its not at yours i see no reason it should be a Issue.
The Metadata wouldnt be that huge thing. Most important is that the Data inside the Container stays as it is.

Audio was on "Automatic" and its alltime like 10kb or so difference in the Audio File afterwards, same with the Video.

Ill reply again soon once i have new results :)
 

Dan203

Senior Developer
Staff member
10kb is not a significant change and can be explained by differences at the container level. If the audio or video were being recoded the size difference would be significant. As would the time required to output the file.

If you want to compare actual stream sizes from VRD and another program then you need to use both to demux to raw streams with no container. In VRD you have to set an option to make that happen. Hold Shift and click Tools->Options, this will bring up a hidden list of options. Set #71, "Output AAC ES as M4A" to false and then hit OK. Now save the file as H.264 Elementary Streams. This will produce a raw .h264 and raw .aac file. Now demux the same file using your favorite MP4 demuxer and you should see that the stream sizes are identical. (+/- a few bytes and VRD will sometimes throw out a few audio frames at the start or end of a file to maintain sync)

Dan
 
Top Bottom