Jump to content
Dataton Forum
MISTERK

Mpeg2 size issue ?

Recommended Posts

hi all

 

i made , using ffmpeg, mpeg2 files with no issue, playing very well.

size was 3584x1080px @50p 100mb/s.

on my next show clients gave me prores files 4096x656 @ 50p

i tried to convert it to mpeg2 as usual with ffmpeg and when

i put them in watchout (6.0.2 and 6.1) , in media window,  my mpeg2 files are seen with a different size and a strange thumbnail (a grey square with arrows)

watchout sees them in 1152x864 and once i throw it in the timeline , no video is displayed, black only.

 

so i played them like they were initially : in prores.

 

any idea ?

 

Share this post


Link to post
Share on other sites

If you can convert a small sample (use -t option in ffmpeg) of just a few seconds and upload somewhere we can have a look at it. 

Share this post


Link to post
Share on other sites

If you can convert a small sample (use -t option in ffmpeg) of just a few seconds and upload somewhere we can have a look at it. 

here is a link to a piece of mpeg2 (8s PS)

 

http://k.b.free.fr/testsize.rar

 

size is 4096x656 but viewed as 1920x1152 in watchout , and no video just black

i usually use this kind of mpegs in my show without any trouble although it's first time i get this size of file.

i can see it in vlc ( i know it's not a good idea as vlc plays almost everything)

 

Thanks

Share this post


Link to post
Share on other sites

The MPEG-2 codec doesn't allow dimensions to be multiples of 4096. FFmpeg throws the following warning while decoding your file:  "Invalid horizontal or vertical size value". If you try to encode you probably get this error: "Width or Height are not allowed to be multiples of 4096

add '-strict -1' if you want to use them anyway.".
 
However, VLC and FFmpeg/FFplay are using libAV for decoding and can play the file anyway (even with warnings). I will have a look if it's possible to force the mainconcept's decoder (the one used in WATCHOUT) to play files like this.
 
As a workaround you can pad your video to 4100x656 and it will play in WATCHOUT. Simply add -vf "pad=width=4100:height=656:x=2:y=0:color=black" to your FFmpeg command line and it will do the trick. If needed you can crop those extra pixels in WATCHOUT using a crop tween track.

Share this post


Link to post
Share on other sites

 

The MPEG-2 codec doesn't allow dimensions to be multiples of 4096. FFmpeg throws the following warning while decoding your file:  "Invalid horizontal or vertical size value". If you try to encode you probably get this error: "Width or Height are not allowed to be multiples of 4096

add '-strict -1' if you want to use them anyway.".
 
However, VLC and FFmpeg/FFplay are using libAV for decoding and can play the file anyway (even with warnings). I will have a look if it's possible to force the mainconcept's decoder (the one used in WATCHOUT) to play files like this.
 
As a workaround you can pad your video to 4100x656 and it will play in WATCHOUT. Simply add -vf "pad=width=4100:height=656:x=2:y=0:color=black" to your FFmpeg command line and it will do the trick. If needed you can crop those extra pixels in WATCHOUT using a crop tween track.

 

thanx i'll try that !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×