Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th December 2010, 01:34   #121  |  Link
Limobar
aka Rabomil
 
Join Date: Sep 2005
Posts: 82
@rica

What does your out.avs look like? Is has to look like the following, but with the correct number of frames for your situation.

Code:
LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",136392)
Limobar is offline   Reply With Quote
Old 14th December 2010, 02:04   #122  |  Link
BigPines
Registered User
 
Join Date: Dec 2010
Posts: 123
Quote:
Originally Posted by rica View Post
Check out who gave the response
Hehehehe That is funny.

Check your actual output file rica. It is 24 fps. It always says 25/1 even when encoding at 23.976. Trust me.

Are you SURE you have the right number of frames in your .avs file as Limobar says?

Mike
BigPines is offline   Reply With Quote
Old 14th December 2010, 02:13   #123  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by BigPines View Post
Hehehehe That is funny.

Check your actual output file rica. It is 24 fps. It always says 25/1 even when encoding at 23.976. Trust me.

Are you SURE you have the right number of frames in your .avs file as Limobar says?

Mike
Yes, i got the info from the left file over eac3to since i cut it.

My actual output file?

WinDVD says it is 25p: check one of my previous posts: (the result of my previous code without --fps 23.976)

http://forum.doom9.org/showpost.php?...5&postcount=95

Last edited by rica; 14th December 2010 at 02:52.
rica is offline   Reply With Quote
Old 14th December 2010, 02:35   #124  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
OK, the latest code gave 23.976 with --fps 23.976 switch, (even it says it is 25/1)
thanks:



EDIT: But Vegas didn't like that and it doesn't want to open it.

_ _ _ _

Last edited by rica; 14th December 2010 at 02:53.
rica is offline   Reply With Quote
Old 14th December 2010, 06:54   #125  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by Limobar View Post
...
The techniques we use (side-by-side (1 file, 3840x1080) ...
[/B]
Greetings Limobar.

I'm using two Panasonic HS700 camcorders to record independent left/right 1920x1080/60p h264 mts streams and would like to encode them into single 3840x1080/60p side-by-side video.

Appreciate if you could provide any guidance.

Many thanks and best regards.

Last edited by mariner; 14th December 2010 at 08:09.
mariner is offline   Reply With Quote
Old 14th December 2010, 08:28   #126  |  Link
Limobar
aka Rabomil
 
Join Date: Sep 2005
Posts: 82
@mariner

You could use an Avisynth script like this:

Code:
VideoLeft = directshowsource("C:\x264\left.mkv", audio=false)
VideoRight = directshowsource("C:\x264\right.mkv", audio=false)
VideoStacked = StackHorizontal(VideoRight,VideoLeft)
ConvertToYV12(VideoStacked)
Be aware that all your equipment (Video Card and television) must be HDMI 1.4a compliant, otherwise it probably won't accept 3840x1080. The use of nVidia Vision Video Player is recommended. Other players, like MPC-HC will only show half the resolution.
Limobar is offline   Reply With Quote
Old 14th December 2010, 11:41   #127  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by Limobar View Post
@mariner

You could use an Avisynth script like this:

Code:
VideoLeft = directshowsource("C:\x264\left.mkv", audio=false)
VideoRight = directshowsource("C:\x264\right.mkv", audio=false)
VideoStacked = StackHorizontal(VideoRight,VideoLeft)
ConvertToYV12(VideoStacked)
Be aware that all your equipment (Video Card and television) must be HDMI 1.4a compliant, otherwise it probably won't accept 3840x1080. The use of nVidia Vision Video Player is recommended. Other players, like MPC-HC will only show half the resolution.
Thanks for the kind reply, Limobar.

1. Does this work on .mts streams directly? This is way over my head, so would appreciate if you could provide full script.

2. How to select the audio track used?

3. The 3840x1080 video is to be spanned over two projectors, so hdmi 1.4a is not required. Do you know any video card that will decode this is DXVA?

Many thanks.

Last edited by mariner; 14th December 2010 at 11:46.
mariner is offline   Reply With Quote
Old 14th December 2010, 12:28   #128  |  Link
crl2007
Registered User
 
Join Date: Nov 2007
Posts: 650
1. No, it has to be re-encoded, so you have to use mkv. That is the full script for full SBS. It works on m2ts streams if you have 2 m2ts streams, but you have to re-encode the right eye, so mkv is the only way. You can use SSIFsucka or multiAVCHD, it would be much easier for you if you don't know to handle avs scripts.

2. You merge them in with mkvmerge after you demux them from your blu-ray disc.

3. Any video card that is DXVA capable. As far as I know, the only cards capable of HDMI 1.4a are from nVidia's 4xx series and above and ATI's 5xxx series and above.

Full script for half SBS:

Code:
lv = DirectShowSource("left.mkv")
rv = DirectShowSource("right.mkv")
stacked = StackHorizontal(HorizontalReduceBy2(lv), HorizontalReduceBy2(rv))
ConvertToYV12(stacked)
If you have a video that requires crop, then the script becomes:

Code:
lv = DirectShowSource("left.mkv").crop(crop values)
rv = DirectShowSource("right.mkv").crop(crop values)
stacked = StackHorizontal(HorizontalReduceBy2(lv), HorizontalReduceBy2(rv))
ConvertToYV12(stacked)

Last edited by crl2007; 14th December 2010 at 12:32.
crl2007 is offline   Reply With Quote
Old 15th December 2010, 03:26   #129  |  Link
BigPines
Registered User
 
Join Date: Dec 2010
Posts: 123
Like rica, my right eye video is too short so it is completely useless. It is approximately 30 seconds too short for a 2 hour and 41 min film (I'm sure you can guess which film I am working with). So I am bummed. It seems there is something wrong with the 3D decoder or the x264 encoder. I'm starting to think I am going to have to look for another solution.

UPDATE: eac3to calculated the original length of the video to be 232607 frames. However, once the right eye is encoded, it is only 231893. This is 714 frames short. I am trying to figure out if this could have anything to do with the message from x264 indicating it sees the video as 25 fps even though I forced it to encode at 23.976.

I changed my right.avs file to the following:

LoadPlugin("H264StereoSource.dll")
H264StereoSource("decoder.cfg",232607)
AssumeFPS(23.976)

Let's hope that does the trick. It seems to be working so far. I guess I'll know for sure in approximately 14 hours. :|

Mike

Last edited by BigPines; 15th December 2010 at 08:05.
BigPines is offline   Reply With Quote
Old 15th December 2010, 12:02   #130  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Mike, this code gave me 23,976 but 60 frames are missing again:
Code:
C:\H264StereoSource_a2>x264 --fps 23.976 --level 4.1 --sar 1:1 --aud -o right_new.264 out.avs
rica is offline   Reply With Quote
Old 15th December 2010, 12:20   #131  |  Link
crl2007
Registered User
 
Join Date: Nov 2007
Posts: 650
A few frames are bound to be missing. About 2 seconds of film is acceptable to be missing.
crl2007 is offline   Reply With Quote
Old 15th December 2010, 12:21   #132  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by crl2007 View Post
1. No, it has to be re-encoded, so you have to use mkv. That is the full script for full SBS. It works on m2ts streams if you have 2 m2ts streams, but you have to re-encode the right eye, so mkv is the only way. You can use SSIFsucka or multiAVCHD, it would be much easier for you if you don't know to handle avs scripts.

2. You merge them in with mkvmerge after you demux them from your blu-ray disc.

3. Any video card that is DXVA capable. As far as I know, the only cards capable of HDMI 1.4a are from nVidia's 4xx series and above and ATI's 5xxx series and above.

Full script for half SBS:

Code:
lv = DirectShowSource("left.mkv")
rv = DirectShowSource("right.mkv")
stacked = StackHorizontal(HorizontalReduceBy2(lv), HorizontalReduceBy2(rv))
ConvertToYV12(stacked)
If you have a video that requires crop, then the script becomes:

Code:
lv = DirectShowSource("left.mkv").crop(crop values)
rv = DirectShowSource("right.mkv").crop(crop values)
stacked = StackHorizontal(HorizontalReduceBy2(lv), HorizontalReduceBy2(rv))
ConvertToYV12(stacked)
Thanks for the reply, crl2007.

1.The source is two complete 1920x1080/60p 28mbps h264 mts streams captures by two Panasonic hs700 camcorder, not 3DBD. A step by step guide to combine these two into a single 3840x1080/60p video would be most appreciated.

3. ATI's UVD2 found in 5 series card cannot cope with these 28mbps 60p streams in DXVA, yielding only 50fps.

While Nvidia's PV4 can deal with it, it remains unclear if it will cope with 3840x1080/60p streams. Feedback will be appreciated.

Many thanks and best regards.
mariner is offline   Reply With Quote
Old 15th December 2010, 12:54   #133  |  Link
crl2007
Registered User
 
Join Date: Nov 2007
Posts: 650
For 3840x1080 you must use Limobar's avs script. Just that instead of mkv you use m2ts. Directshowsource is capable of opening m2ts streams. Only that you will have a mkv file as a final result.

I have an nvidia 4xx series, but I never tested with 3840x1080/60p over hdmi 1.4a. I don't have a 3dtv.
crl2007 is offline   Reply With Quote
Old 15th December 2010, 13:22   #134  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by crl2007 View Post
A few frames are bound to be missing. About 2 seconds of film is acceptable to be missing.
In my case "yes" (the film is just 45 minutes.)
rica is offline   Reply With Quote
Old 15th December 2010, 16:10   #135  |  Link
invincible
Registered User
 
Join Date: Oct 2009
Posts: 16
Quote:
Originally Posted by crl2007 View Post
A few frames are bound to be missing. About 2 seconds of film is acceptable to be missing.
You mean we alway miss some frames at the end? Can you tell me why? h264stereosource error or source error?
invincible is offline   Reply With Quote
Old 15th December 2010, 16:21   #136  |  Link
BigPines
Registered User
 
Join Date: Dec 2010
Posts: 123
Quote:
Originally Posted by crl2007 View Post
A few frames are bound to be missing. About 2 seconds of film is acceptable to be missing.
Not sure about that. If it is only 2 seconds cut off the end, I agree but that is not what I am experiencing. If you have 2 seconds of video lag with your audio then that is a different story - not to mention the headaches you will get trying to watch this in 3D. I believe my video speed was increased somehow and I think it is related to the default 25 fps of the detected source.

I know the error at the end is expected but do we know what causes it? Maybe if we understood that, we would understand that it is not normal. *shrug*

Please enlighten me.

Mike
BigPines is offline   Reply With Quote
Old 15th December 2010, 16:32   #137  |  Link
invincible
Registered User
 
Join Date: Oct 2009
Posts: 16
I think there're something wrong in cfg file and that's why it miss some frames:

Code:
DisplayDecParams      = 1                # 1: Display parameters; 
ConcealMode           = 0                # Err Concealment(0:Off,1:Frame Copy,2:Motion Copy)
RefPOCGap             = 2                # Reference POC gap (2: IPP (Default), 4: IbP / IpP)
POCGap                = 2                # POC gap (2: IPP /IbP/IpP (Default), 4: IPP with frame skip = 1 etc.)
IntraProfileDeblocking = 1               # Enable Deblocking filter in intra only profiles (0=disable, 1=filter according to SPS parameters)
DecFrmNum             = 0                # Number of frames to be decoded (-n)
invincible is offline   Reply With Quote
Old 15th December 2010, 16:46   #138  |  Link
BigPines
Registered User
 
Join Date: Dec 2010
Posts: 123
Yeah, I looked at that too. I noticed the DecFrmNum setting and wondered if that had anything to do with it. Not sure though because I don't really understand how it all works yet.

Mike
BigPines is offline   Reply With Quote
Old 15th December 2010, 17:17   #139  |  Link
mariner
Registered User
 
Join Date: Nov 2005
Posts: 583
Quote:
Originally Posted by crl2007 View Post
For 3840x1080 you must use Limobar's avs script. Just that instead of mkv you use m2ts. Directshowsource is capable of opening m2ts streams. Only that you will have a mkv file as a final result.

I have an nvidia 4xx series, but I never tested with 3840x1080/60p over hdmi 1.4a. I don't have a 3dtv.
Not working. The output was about 100KB. This is what I did:

1. Created a 3D700.avs file with following:

Code:
VideoLeft = directshowsource("D:\3D\left.mts", audio=false)
VideoRight = directshowsource("D:\3D\right.mts", audio=false)
VideoStacked = StackHorizontal(VideoRight,VideoLeft)
ConvertToYV12(VideoStacked)
2. Ran batch file

Code:
D:\3D>x264 -o 700.mkv 3d700.avs

avs [info]: 3840x1080p 0:0 @ 10000000/166833 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cach
e64
x264 [info]: profile High, level 5.1
x264 [info]: frame I:4     Avg QP:28.00  size:   799
x264 [info]: frame P:211   Avg QP:31.00  size:   131
x264 [info]: frame B:622   Avg QP:31.00  size:   125
x264 [info]: consecutive B-frames:  0.4%  0.2%  0.0% 99.4%
x264 [info]: mb I  I16..4: 100.0%  0.0%  0.0%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0
.0%    skip:100.0%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct:
 0.0%  skip:100.0%  L0:-1.$% L1:-1.$% BI:-1.$%
x264 [info]: 8x8 transform intra:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 99%  0%  1%  0%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:62.07

encoded 837 frames, 34.24 fps, 62.46 kb/s

D:\3D>pause
Press any key to continue . . .

This is input file properties:

Code:
General
ID                               : 1 (0x1)
Complete name                    : D:\3D\left.mts
Format                           : BDAV
Format/Info                      : Advanced Video Codec
File size                        : 41.6 MiB
Duration                         : 13s 938ms
Overall bit rate                 : 25.0 Mbps
Maximum Overall bit rate         : 28.0 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.2
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Format settings, GOP             : M=3, N=30
Codec ID                         : 27
Duration                         : 13s 963ms
Bit rate mode                    : Variable
Bit rate                         : 23.6 Mbps
Maximum bit rate                 : 26.0 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 59.940 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.190
Stream size                      : 39.3 MiB (95%)

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : 129
Duration                         : 14s 16ms
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Compression mode                 : Lossy
Video delay                      : -34ms
Stream size                      : 657 KiB (2%)

Text
ID                               : 4608 (0x1200)
Menu ID                          : 1 (0x1)
Format                           : PGS
Codec ID                         : 144
Duration                         : 13s 449ms
Video delay                      : -34ms

Last edited by mariner; 15th December 2010 at 17:31.
mariner is offline   Reply With Quote
Old 15th December 2010, 18:53   #140  |  Link
crl2007
Registered User
 
Join Date: Nov 2007
Posts: 650
If you have a nvidia graphic card, please try to run your mts streams through DG Tools. But if you don't have a secondary right eye stream, the stereoscopy is useless, because you will see 2D. The right eye is slightly shifted or lowered for stereoscopy to take place.


Those frames are missed because of the decoder. The guy that made the decoder said that this is normal. We have to deal with it until something better and faster will surface. And free, of course, because with about 5000$ you can have a professional encoder/decoder. I only had 2 seconds missing from an entire movie, never had such problems as to miss more than 2 seconds from the right stream.
crl2007 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.