Hi all
I am trying to create a DVD using DVDAuthor and without any DVDAuthor GUIs because I am automating the DVD production process without GUI intervention. Everything seems to be going well apart from the resolution of the DVD when its played on a DVD player. The sides and top are cutoff from the DVD image.
If anyone can help it would be appreciated, we’re trying to distribute thousands of free educational dvds to kids in poor countries. Heres the full story....
I have two files which are in MP4 (640x360 in 16:9 and 1280x720) format which I first convert to MPEG using ffmpeg.
Code:ffmpeg -i video1. mp4 -target pal-dvd -ar 48000 -y video1.mpeg Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:33:56 Duration: 00:17:38.64, start: 0.000000, bitrate: 125 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 58 kb/s, 14.99 fps, 14.99 tbr, 59956 tbn, 29.98 tbc Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 64 kb/s Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) [buffer @ 0x2216740] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x2217920] w:640 h:360 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4 Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' Output #0, dvd, to 'video1.mpeg': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:33:56 encoder : Lavf53.24.2 Stream #0:0(und): Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (aac -> ac3)
and the second video (1280x720 in 16:9 ) video2.mp41280 h:720
So both files are converted to DVD PAL format of 720x576 in DAR 16:9.Code:ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers built on Jan 14 2012 14:48:02 with gcc 4.6.1 configuration: libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 4 / 53. 42. 4 libavformat 53. 24. 2 / 53. 24. 2 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:32:46 Duration: 00:01:03.81, start: 0.000000, bitrate: 403 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 335 kb/s, 15.15 fps, 15.15 tbr, 7576 tbn, 30.30 tbc Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 65 kb/s Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) [buffer @ 0x262eb40] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x2624860] w:1280 h:720 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4 Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' Output #0, dvd, to'video2.mpeg’: Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:32:46 encoder : Lavf53.24.2 Stream #0:0(und): Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (aac -> ac3)
Now I have a main menu (mainmenu.mpeg) and title menu (background.mpeg) with 20x576 in DAR 16:9. using ffprobe
I put all this together using DVDAuthorCode:Input #0, mpeg, from 'background.mpeg': Duration: 00:02:17.76, start: 0.120000, bitrate: 132 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 7500 kb/s, 1 tbr, 90k tbn, 50 tbc Stream #0:1[0x20]: Subtitle: dvd_subtitle Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Input #0, mpeg, from 'mainmenu.mpeg': Duration: 00:04:22.60, start: 0.120000, bitrate: 130 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 7500 kb/s, 1 tbr, 90k tbn, 50 tbc Stream #0:1[0x20]: Subtitle: dvd_subtitle Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
main menuCode:<dvdauthor> <vmgm> <fpc>jump menu 1; </fpc> <menus> <video format="PAL" aspect="4:3" resolution="720x576"/> <pgc entry="title"> <vob file="mainmenu.mpeg" pause="inf" /> <button>jump titleset 1 menu;</button> </pgc> </menus> </vmgm> <titleset> <menus> <pgc> <vob file="background.mpeg" pause="inf" /> <button>jump title 1 chapter 1;</button><button>jump title 1 chapter 2;</button><button>jump vmgm menu entry title; </button> </pgc> </menus> <titles> <pgc > <vob file="video1.mpeg" pause="3" /> <vob file="video2.mpeg" pause="3" /> <post> call menu; </post> </pgc> </titles> </titleset> </dvdauthor>
All the navigation and menus work fine BUT in a (non PC/laptop) DVD player, the image looks slightly stretched and the edges and the top image overhangs the screen by quite a bit. In other words the image does not fit the screen and the edges and the top are cut off.Code:INFO: Generating VMGM with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 4:3 INFO: Resolution: 720x576 INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps video 2 INFO: Video pts = 0.540 .. 64.340 INFO: Audio[0] pts = 0.540 .. 64.380 STAT: VOBU 1871 at 212MB, 1 PGCs CHAPTERS: VTS[1/1] 0.000 CHAPTERS: VTS[1/2] 0.000 INFO: Generating VTS with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 16:9 INFO: Resolution: 720x576 INFO: Audio ch 0 format: ac3/2ch, 48khz drc background STAT: VOBU 1 at 2MB, 1 PGCs CHAPTERS: VTS[1/1] 0.000 INFO: Generating VTSM with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 4:3 INFO: Resolution: 720x576 INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
OK so I know that I am going from 16:9 in video1 and video2 to 4:3 and that video1 and video2 originally had different aspect ratios. However all final output files are 720x576 and 4:3.
Is this just overburn or a problem with DVD author or ffmpeg?
Is there a more appropriate scaling (filter) I should use for ffmpeg instead of -target pal-dvd? (Can anyone give me an example)
Should everything be 16:9? (not ideal as most of our users don;t have widescreen)
How can I mix 16:9 with 4:3 videos in this way? some post suggest each class in its different title-sets which they already are?
Is there something amiss with the DVDAuthorl?
Anyone please help? We’re so close, this is the final issue to resolve.![]()
+ Reply to Thread
Results 1 to 18 of 18
-
-
I don't use DVDAuthor without a GUI, so I can't help with everything.
How about when played on a computer? Is everything there, or are parts still cut off? If everything shows, it's just the overscan of the TV, or the standalone DVD player doing some cropping, or both.
OK so I know that I am going from 16:9 in video1 and video2 to 4:3 and that video1 and video2 originally had different aspect ratios. However all final output files are 720x576 and 4:3.
Should everything be 16:9? (not ideal as most of our users don;t have widescreen)
Now I have a main menu (mainmenu.mpeg) and title menu (background.mpeg) with 20x576 in DAR 16:9. -
Thanks for the reply.
How about when played on a computer? Is everything there, or are parts still cut off? If everything shows, it's just the overscan of the TV, or the standalone DVD player doing some cropping, or both.
Why make a 4:3 menu in the first place, when the video content is 16:9? And I didn't understand "I know that I am going from 16:9 in video1 and video2 to 4:3'
Ideally the menu should be in a different titleset if you insist on having a 4:3 menu with 16:9 content.
http://dvdauthor.sourceforge.net/doc/r1741.html
The code just below shows them encoded as 4:3. My suggestion is to make everything for 16:9.
Thanks for the suggestions, any other comments are helpful. -
-
Then it's caused by the TV's overscan and/or the DVD player cropping the video. The only way around that is to add black bars around the sides when encoding for DVD (at the expense of resolution). Or, failing that, make sure there's nothing of importance at the sides of the menus. I don't guess you can go back and recreate the video content.
I don't specify 4:3 but when I run ffmpeg -target dvd-pal and then do ffprobe on the output mpeg it shows it as 4:3. With this preset 'pal-dvd' it seems to change it to 4:3 . Perhaps I should be forcing it to 16:9 with a DAR filter!? -
Hi
OK so every video is now 16:9 including the menus. Still the same problem. On a DVD player the image is about 20% lost from all edges. I even tried removing video2 from the titleset so that there is only one item in the titleset.
Thing is when I use the dvd player zoom function to 1/2 it displays everything correctly however I can't rely on this as not all DVD players have this option.
I can't add black bars to the video files but can to the menu. Will this help? where do they go top/bottom or left/right and how large should they be? What effect does this have?
thanks again
Dave -
Your xml file should look something like this:
Code:<dvdauthor> <vmgm> <menus> <video aspect="16:9" widescreen="noletterbox" /> <subpicture> <stream id="0" mode="widescreen" /> <stream id="1" mode="panscan" /> </subpicture> <pgc> <vob file="menu.mpg" /> <button>jump titleset 1 menu;</button> <button>jump titleset 2 menu;</button> </pgc> </menus> </vmgm> <titleset> <menus> <pgc entry="root"> <pre> jump title 1 chapter 1; </pre> </pgc> </menus> <titles> <video aspect="16:9" /> <pgc> <vob file="video169.mpg" /> <post>call vmgm menu 1;</post> </pgc> </titles> </titleset> <titleset> <menus> <pgc entry="root"> <pre> jump title 1 chapter 1; </pre> </pgc> </menus> <titles> <video aspect="4:3" /> <pgc> <vob file="video43.mpg" /> <post>call vmgm menu 1;</post> </pgc> </titles> </titleset> </dvdauthor>
Last edited by ejolson; 8th Feb 2012 at 17:16.
-
20% is a lot. Generally one doesn't lose more than about 10% to the overscan. Can you try playing it on a different player, like over at a friend's house, to see if more of the picture is visible? And you're sure the player and TV are set up correctly? If using the player's half-zoom fixes it, you're sure the TV isn't set up to zoom in the first place?
Just to confirm, everything plays in the correct aspect ratio, right? Circles are round? People look normal? It's just that you're losing picture around the sides? And when played on a computer everything shows as it should?
I don't know how you encoded that video, like using what encoder and how you got it into that encoder. Ordinarily, if using an AviSynth script, you'd add the black bars and then do a resize, something like:
AddBorders(20,16,-20,-16)
LanczosResize(720,576)
That says to add 20 columns of pixels to both sides and 16 rows of pixels above and below before resizing back to PAL's 720x576. But if the video is interlaced it has to be done in an interlace-aware manner (bob, addborders, resize, reinterlace). -
Last edited by ejolson; 9th Feb 2012 at 12:01.
-
davelakers,
I haven't read this entire thread, but look over the first post in this thread, and see if that resembles your issue:
https://forum.videohelp.com/threads/319852-Multiple-subpic-aspects-on-still-menus
If it is, you just need to resize the overlays, like I am now doing in DVDAuthorGUI, when dealing with 16:9 menus. Let me know if you need more information (I'll have to dig through my sourcecode)
-
Hi Everyone
Thanks so much for your replies and suggestions, it helped me find a partial solution in the end.
1 ) It turns out the magic -target pal-dvd option on FFMPEG was converting everything into 4:3. So as a temporary fix I made sure -setdar=16:9 was set to begin with. I also dug out the ffmpeg source and used all options in the target -pal-dvd apart from forcing the video to 4:3. I also ensure the aspect ratio is the same as the original with a scaling filter.
2) It turns out it was overscanning that was causing the problem. What I do now is add an arbitrary padding of 80 on the left and right and 40 top and bottom. It's not ideal but at least it displays/fits on screen. Later I will need to do some more clever resizing and padding to maintain the aspect ratio of the original video before it is converted to mpeg.
Thanks again for all these replies, I'll post a blog or code when I get the final bit working.
Cheers
Dave -
20% is a lot. Generally one doesn't lose more than about 10% to the overscan. Can you try playing it on a different player, like over at a friend's house, to see if more of the picture is visible? And you're sure the player and TV are set up correctly? If using the player's half-zoom fixes it, you're sure the TV isn't set up to zoom in the first place?
Just to confirm, everything plays in the correct aspect ratio, right? Circles are round? People look normal? It's just that you're losing picture around the sides? And when played on a computer everything shows as it should?
I don't know how you encoded that video, like using what encoder and how you got it into that encoder. Ordinarily, if using an AviSynth script, you'd add the black bars and then do a resize, something like:
AddBorders(20,16,-20,-16)
LanczosResize(720,576)
That says to add 20 columns of pixels to both sides and 16 rows of pixels above and below before resizing back to PAL's 720x576. But if the video is interlaced it has to be done in an interlace-aware manner (bob, addborders, resize, reinterlace). -
-
The ordering of options is important on the ffmpeg command line. Set -target pad-dvd and then set -aspect 16:9 as indicated in my post above.
https://forum.videohelp.com/threads/343405-DVDAuthor-incorrect-ratio-after-conversion?p...=1#post2140033
-
Thanks again for the comments, all aspect ratios and padding are now fine and dandy. Then next issue is different and has to do with automatic timeout on my DVD player:
I have the basic XML
Code:<dvdauthor> <vmgm> <fpc>jump vmgm menu 1; </fpc> <menus> <video format="PAL"/> # aspect details omitted for now <pgc entry="title" pause ="inf"> # either "inf" is set here <vob file="mainmenu.mpeg" pause="inf" /> # or here <button>jump titleset 1 menu;</button> <post>jump titleset 1 menu;</post> # I've even tried omitting this line </pgc> </menus> </vmgm> <titleset> <menus> <pgc entry="root"> <vob file="background.mpeg" /> <button>jump title 1 chapter 1;</button> </pgc> </menus> <titles> <pgc> <vob file="video1.mpeg" /> <post> call menu; </post> </pgc> </titles> </titleset> </titleset> </dvdauthor>
I know that the DVD player has a menu timeout feature and has something to do with SPRM 9, the question is how do I get the DVD player to wait for user selection and not timeout? I add pause="inf" at the PGC OR at the VOB level as the comments show above. Still the pauses are ignored and the first menu button is automatically selected each time.
I've even tried pause="0" and in the <post>jump cell 1;</post> however the first menu button is automatically pressed in both cases. Can you guys spot anything obvious in the XML or is this a dvdauthor or DVD player issue?
I just want the menu(s) to wait for user input and then loop the mainmenu.mpeg or background.mpeg videos when they reached their end (until a user presses a button).
Any ideas please?Last edited by davelakers; 11th Feb 2012 at 19:14. Reason: code tag
-
I would eliminate the <fpc> because the default jumps to the first menu and may have other initialization. Remove all pause="inf" statements and the <post> section in the main menu. Remove the extra </titleset> at the end of the file. The xml file should now look like what follows:
Code:<dvdauthor> <vmgm> <menus> <video format="pal" /> <pgc entry="title"> <vob file="mainmenu.mpeg" /> <button>jump titleset 1 menu;</button> </pgc> </menus> </vmgm> <titleset> <menus> <pgc entry="root"> <vob file="background.mpeg" /> <button>jump title 1 chapter 1;</button> </pgc> </menus> <titles> <pgc> <vob file="video1.mpeg" /> <post>call menu;</post> </pgc> </titles> </titleset> </dvdauthor>
Last edited by ejolson; 11th Feb 2012 at 22:02.
-
Hi ejolson,
Thanks for the tip, fortunately the second titleset was a typo in the post..I gave it a shot and same thing. I'm hoping that its just a quirk of this DVD player although am open to any more ideas?
p.s. using version 0.7.0 built from git.
CheersLast edited by davelakers; 12th Feb 2012 at 09:34.
-
To rule out the possibility of a regression in the dvdauthor code, I would try an older version such as 0.6.18 and check if the problem persists. The obvious workaround is to multiplex about 3 minutes of silent audio with each menu track. Assuming the audio track is encoded at a bitrate of 96kbps this will waste about 2MB per menu.
Similar Threads
-
MP4 Aspect Ratio Incorrect
By skywalka in forum Video ConversionReplies: 3Last Post: 3rd Apr 2012, 06:43 -
Encoded in Handbrake Aspect Ratio Incorrect in Roku
By douga in forum Video ConversionReplies: 7Last Post: 1st Jul 2011, 07:41 -
Converting for play in XBox 360 results in incorrect aspect ratio
By Mule52 in forum Video ConversionReplies: 5Last Post: 11th Apr 2011, 20:12 -
mp4 incorrect aspect ratio?
By iThinkYouBrokeIt in forum Newbie / General discussionsReplies: 4Last Post: 16th May 2008, 05:34 -
Can't enable CLEV-2 with PowerDVD 7 ultra/aspect ratio incorrect
By timbop37 in forum Software PlayingReplies: 0Last Post: 15th Jan 2008, 04:56