How to keep ascpect ratio 16:9

Here you can submit bugreports
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

How to keep ascpect ratio 16:9

Post by vijm1972 »

Dear Steipal,

We are trying to transcode .mkv source files to .wmv taget, if we use Windows Media encoder files processed successful, but if we use Custom FFmpeg encoder it's fails to transcode, showing "Invalid file! Could not process."
I am using below ffmpeg command.
-vcodec wmv8 -qscale 4 -s 352x288 -r 25 -aspect 16:9 -acodec wma2 -ab 96k -ac 2 -ar 44000 -async 1 -vsync 1 -scodec copy

Please let us know if I am missing anything. Or let me know how can I keep aspect ratio 16:9 in Windows Media encoder?

Thanks
Vijay
admin
Site Admin
Posts: 1658
Joined: Sat Feb 08, 2014 10:39 pm

Re: How to keep ascpect ratio 16:9

Post by admin »

Hi Vijay and thank you for using FFAStrans :-)

Are you using the "A/V Decoder" and in that case, have you also added the "ChannelMapper"-filter?

-steipal
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: How to keep ascpect ratio 16:9

Post by vijm1972 »

Yes I am using both "A/V Decoder" and "ChannelMapper"-filter, still I am getting that error. My source files are 720x576 16:9 and want to transcode them to 352x288 16:9 but after conversion I am getting 1.22 aspect ratio in Windows Media encoder. This is correct aspect ratio for 352x288 resolution but I wanted to keep the aspect ratio as source. Please advice.
admin
Site Admin
Posts: 1658
Joined: Sat Feb 08, 2014 10:39 pm

Re: How to keep ascpect ratio 16:9

Post by admin »

Can you please set "A/V Decoder" to "Full decoding"?

-steipal
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: How to keep ascpect ratio 16:9

Post by vijm1972 »

Ok will try and let you know.
steipal

Re: How to keep ascpect ratio 16:9

Post by steipal »

I've found the bug: Your ffmpeg-parameters are not valid. There is no such thing as "wmv8" or "wma2" encoders. The correct should command line should be:

-vcodec wmv2 -qscale 4 -s 352x288 -r 25 -aspect 16:9 -acodec wmav2 -ab 96k -ac 2 -ar 44000 -async 1 -vsync 1 -scodec copy

Please consult the latest version of ffmpeg on correct usage. http://www.ffmpeg.org/documentation.html

-steipal
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: How to keep ascpect ratio 16:9

Post by vijm1972 »

Thanks Steipal.... it's worked.

I also wanted to move source files to job completed folder once the trascode is finish, is it possible?
I have found Backup Original option but backup folder path is default and disabled, can we enable it manually to change the location?

Please advice.
admin
Site Admin
Posts: 1658
Joined: Sat Feb 08, 2014 10:39 pm

Re: How to keep ascpect ratio 16:9

Post by admin »

Glad it worked :-)

You can move originals by combining several options:

1. Unselect the "Set as global across workflows"-option under main "Configuration"
2. Select "Backup original" and "Delete original" under the "Maintainance"-tab in the workflow configuration.
3. Unselect "Use default" in the same "Maintainance"-tab.

Now you can set destination folder for the originals to be moved.

-steipal
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: How to keep ascpect ratio 16:9

Post by vijm1972 »

Steipal I am not able to move the source files to require path it's still moving to work folder path and it's creating sub-folder under the specified path (.backup_20150427-154715-884-8F7D5FE5)

I also wanted to rename the file as per below.
My source file name is "Test Sample.mkv" and wanted to rename it as "Test Sample_27_04_2015_HH_MM_SS.wmv". I want to add time stamp from the source file properties Modified date and time option.
admin
Site Admin
Posts: 1658
Joined: Sat Feb 08, 2014 10:39 pm

Re: How to keep ascpect ratio 16:9

Post by admin »

I'm very sorry but I have seem to misinterpret my own software :oops: :? :x

My method does not work. It will create the ".backup...." folder when the "Backup original" is checked. That was a good thing at a time but now that you can create your own unique folders based on time variables you really don't need that hard coded functionality. I will remove it in the next release so that the ".backup" folder cannot be created.

BUT, you won't be able to manipulate the file that is moved. At least not yet you want. That's not a bug, rather a lack of feature. However, now that the issue has come to my attention it makes sense to be able to perform a name change on the moved file. So I will look at this in a future release.

-steipal
Post Reply