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 > General > Audio encoding

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 15th August 2008, 18:23   #5761  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
@EPiPHONE
I tried your suggestion.. Actual VC-1 & MKV file got 61056 video frames but when demuxed with TSMuxer it contained 122108 video frames.

Can you guess why is that??

Regards,
Sehgal

Last edited by sehgal.v7; 15th August 2008 at 20:14.
sehgal.v7 is offline  
Old 15th August 2008, 19:02   #5762  |  Link
EPiPH0NE
b4k3d
 
Join Date: Sep 2007
Posts: 310
Quote:
Originally Posted by sehgal.v7 View Post
@EPiPHONE
I tried your suggestion.. Actual VC-1 & MKV file got 61056 video frames but when demuxed with TSMuxer it contained 122108 video frames.

Can you guess why is that??

Regards,
Shroff
I have no idea...I thought your final step was M2TS...if your looking to demux the MKV I would suggest MKVextractGUI. I don't trust tsMuxeR's demux features for MKV's.
EPiPH0NE is offline  
Old 15th August 2008, 20:14   #5763  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
@EPiPHONE
Sorry i think i used wrong Term. My final step is M2TS only. When i added MKV file into TSMuxer, it copied VC-1 stream into M2TS container but actually it doubled video frames and duration while file size remaining same. I didn't demuxed MKV file.
The thing is i took a backup of Blue Planet with Eac3to into MKV file, but i lost my original blu ray. Now i want to make another blu ray disk, that's why i wanted original VC-1 in M2TS container.

Hope i clarified this time. :-)
sehgal.v7 is offline  
Old 15th August 2008, 20:20   #5764  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by sehgal.v7 View Post
@EPiPHONE
Sorry i think i used wrong Term. My final step is M2TS only. When i added MKV file into TSMuxer, it copied VC-1 stream into M2TS container but actually it doubled video frames and duration while file size remaining same. I didn't demuxed MKV file.
The thing is i took a backup of Blue Planet with Eac3to into MKV file, but i lost my original blu ray. Now i want to make another blu ray disk, that's why i wanted original VC-1 in M2TS container.

Hope i clarified this time. :-)
I think this is the confirmation what i said:

http://forum.doom9.org/showthread.ph...58#post1170058

_ _ _ _
rica is offline  
Old 15th August 2008, 20:52   #5765  |  Link
EPiPH0NE
b4k3d
 
Join Date: Sep 2007
Posts: 310
Quote:
Originally Posted by sehgal.v7 View Post
@EPiPHONE
Sorry i think i used wrong Term. My final step is M2TS only. When i added MKV file into TSMuxer, it copied VC-1 stream into M2TS container but actually it doubled video frames and duration while file size remaining same. I didn't demuxed MKV file.
The thing is i took a backup of Blue Planet with Eac3to into MKV file, but i lost my original blu ray. Now i want to make another blu ray disk, that's why i wanted original VC-1 in M2TS container.

Hope i clarified this time. :-)

It looks like rica is on to something. I only use the MKV remux feature for remuxing my scene DTS/MKV's -> TS for proper playback on my NMT and I never have problems like you guys are having. I would try using MKVextractGUI to take out the VC-1+audio then put those raw streams into tsMuxeR and mux -> M2TS. Try that and see if it still gives wrong frame size. Other then that I'm stumped.
EPiPH0NE is offline  
Old 15th August 2008, 22:28   #5766  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
sehgal.v7,

If you are trying to remux the mkv-vc1s made by yourself ,with an any application which uses Haali multiplexer, into a ts or m2ts container via TSMuxer, i have just one word for saying: forget it.
Just demux to VC1 with TSMuxer or eac3to and remux back to m2ts or ts with TSMuxer.
(as i told on the link i gave before)

But if you are trying to make a TS/m2ts file from a premade mkv including a VC1 and created by Haali based application,
again you have no chance.
If you are lucky -if mkv has not been trimmed before- , the only chance is to re-encode it to h264 with MeGui or something else.

Last edited by rica; 15th August 2008 at 23:44.
rica is offline  
Old 16th August 2008, 02:53   #5767  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
@EPiPHONE
I took a backup of Blue Planet by Eac3to - eac3to 0000.m2ts 0000.mkv // now when i extract MKV with MKVextract.exe, it gives me an AVI file for video stream. It doesn't give raw VC-1 stream.

@Rica
I made MKV file with Eac3to// i think it uses Haali Multiplexer. :-( Means i have re-encode it// i put file in MKV container because it save around 13% space than M2TS container.
sehgal.v7 is offline  
Old 16th August 2008, 03:26   #5768  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
Did some homework.
Eac3to (with help of Haali Matroska Muxer) first put raw VC1 into AVI container then into MKV container. The "WVC1" fourcc is applied in AVI container. Players now uses MS VC-1 DMO decoder for decoding it. Now the main thing is extracting original raw VC1 from AVI without "WVC1" anywhere in it, so that we can use it in TSMuxer. I think Haali Matroska Muxer is using same pattern as VC12AVI does.

Last edited by sehgal.v7; 16th August 2008 at 03:28.
sehgal.v7 is offline  
Old 16th August 2008, 04:41   #5769  |  Link
Encoder888
Registered User
 
Encoder888's Avatar
 
Join Date: Aug 2007
Posts: 111
@madshi

I just encoded a TrueHD stream into FLAC and eac3to reported 16 bits, yet the file itself contains 24 bits, and I'm pretty sure that's what the original source has. Here's what I get:

Code:
eac3to v2.57
command line: D:\eac3to\eac3to.exe 00131.m2ts 2: Video.mkv 4: Audio.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 4 subtitle tracks, 1:38:55
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, French, 5.1 channels, 48khz
4: TrueHD/AC3, German, 5.1 channels, 48khz
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -29dB
6: Subtitle (PGS), English
7: Subtitle (PGS), English
8: Subtitle (PGS), French
9: Subtitle (PGS), Spanish
[v02] Extracting video track number 2...
[a04] Extracting audio track number 4...
[a04] Extracting TrueHD stream...
[a04] Decoding with libav/ffmpeg...
[a04] Encoding FLAC (with libFlac)...
[v02] Muxing video to Matroska...
[a04] Creating file "Audio.flac"...
[a04] This audio track has a constant bit depth of 16 bits.
Added fps value to MKV header.
Video track 2 contains 142296 frames.
eac3to processing took 34 minutes, 59 seconds.
Done.
Constant? I thought TrueHD was variable-based. The file I get has 24 bits variable... Could this be just an error in bitdepth analyzing in this new version ...?
Encoder888 is offline  
Old 16th August 2008, 04:51   #5770  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
Madshi would like to read hxxp://article.gmane.org/gmane.comp.multimedia.matroska.devel/3397/

@TO ALL MEMBERS
Backup all your HD movies with Eac3to to MKV container. Follow this routine for VC-1 files:-
1. eac3to 0000.m2ts 0000.mkv
2. Extract AVI file with MKVExtract (needs mkvtoolnix).
3. Then extract raw vc1 stream with Yamb (needs MP4Box).
4. Then raw VC1 with TSMuxer.

Thats all// verry happy to get back original streams.
sehgal.v7 is offline  
Old 16th August 2008, 05:31   #5771  |  Link
Encoder888
Registered User
 
Encoder888's Avatar
 
Join Date: Aug 2007
Posts: 111
@madshi

Okay, in addition to my previous post: I was wrong, the original audio does contain 16 bits (the movie is The Counterfeiters by the way) I tried it with a previous version of eac3to, and here's what I got:

Code:
eac3to v2.51
command line: D:\try\eac3to.exe 00131.m2ts 4: Another.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 1:38:55
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, French, 5.1 channels, 48khz
4: TrueHD/AC3, German, 5.1 channels, 48khz
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -29dB
Decoding with libav/ffmpeg...
[a04] Extracting audio track number 4...
[a04] Extracting TrueHD stream...
[a04] Encoding FLAC...
[a04] Creating file "Another.24bit.flac"...
[a04] This audio track contains only 16 bit of information.
[a04] The zero bytes were successfully removed.
Video track 2 contains 142296 frames.
eac3to processing took 32 minutes, 17 seconds.
Done.
So, this end file DOES have 16 bits of information, but the one I got from 2.57 has 24, even though the difference between the two is just 1MB, which means that it was just encoded wrong, right? Or is it because of those 0 bytes? Either way, this should be fixed, pls look into it.
Encoder888 is offline  
Old 16th August 2008, 06:19   #5772  |  Link
73ChargerFan
Registered User
 
73ChargerFan's Avatar
 
Join Date: Dec 2006
Posts: 523
Quote:
Originally Posted by sehgal.v7 View Post
Madshi would like to read hxxp://article.gmane.org/gmane.comp.multimedia.matroska.devel/3397/

@TO ALL MEMBERS
Backup all your HD movies with Eac3to to MKV container. Follow this routine for VC-1 files:-
1. eac3to 0000.m2ts 0000.mkv
2. Extract AVI file with MKVExtract (needs mkvtoolnix).
3. Then extract raw vc1 stream with Yamb (needs MP4Box).
4. Then raw VC1 with TSMuxer.

Thats all// verry happy to get back original streams.
Why not eac3to 0000.m2ts 0000.vc1 ?
73ChargerFan is offline  
Old 16th August 2008, 07:20   #5773  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
@73ChargerFan
I want a backup as well as i want them to play too :-) // in mkv container u can add flac audio (loseless codec). Means backup with no quality loss + whenever you want again burn your blu ray writer // your original stuff (choice of wanted audio tracks + subtitle tracks).

PS - Don't forget to backup Chapters file from original movie (if you want chapter support later).
sehgal.v7 is offline  
Old 16th August 2008, 09:33   #5774  |  Link
shambles
Registered User
 
Join Date: Nov 2007
Posts: 132
Quote:
Originally Posted by sehgal.v7 View Post
@EPiPHONE
I took a backup of Blue Planet by Eac3to - eac3to 0000.m2ts 0000.mkv // now when i extract MKV with MKVextract.exe, it gives me an AVI file for video stream. It doesn't give raw VC-1 stream.
use 'mkvextract tracks source.mkv --raw 1:dest.vc1'
shambles is offline  
Old 16th August 2008, 10:18   #5775  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
sehgal.v7,

Why not opening a seperate topic on mkv+vc1 and we can discuss there?

I think we have lots of words to speak.
rica is offline  
Old 16th August 2008, 11:58   #5776  |  Link
sehgal.v7
Registered User
 
Join Date: Jul 2008
Posts: 93
@Shambles
Thanks brother your advice is working.

I'll soon write a tutorial in a new thread.

Thanks all you guys for your kind info.

Sehgal.
sehgal.v7 is offline  
Old 16th August 2008, 13:00   #5777  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Thunderbolt8 View Post
I can confirm that subtitle problem for seamless branching, when I remux close encounters (CE), then the length of the whole movie is 2:14:17 with last spoken line at ~2:13:24. for the non hearing impaired english subs though this line is at 2:02:17, which is much too early, while the same line with hearing impaired english subs ist located at 2:06:21, which is different and still too early.
Thanks, I'll recheck that.

Quote:
Originally Posted by Snowknight26 View Post
When doing the Doomsday Blu-ray, I noticed that the playlist view showed DTS-HD (secondary) even though selecting that playlist shows it as being DTS Express.
It's one and the same thing. I'll replace the "DTS-HD (secondary)" label with "DTS Express" in the next build.

Quote:
Originally Posted by Jan Marijniszoon View Post
I think you're right. I did a test...it muxes the track, but the playback seems problematic. But if tsMuxer improves in the future, it might still be a handy option to have in your program, although it would be rarely used offcourse.
Just let me know when tsMuxeR supports proper TrueHD muxing, then I will look into adding support for creating/handling Blu-Ray style TrueHD+AC3 tracks. You should be aware, though, that the TrueHD and AC3 streams have to be muxed with slightly different parameters, so I'm not sure if tsMuxeR will actually accept a combined file. I rather guess it will expect two separate files. But it makes no sense to speculate about that right now.

Quote:
Originally Posted by LessThanJake View Post
I think q=0.5 as default is too big. The encoded files are even bigger than the source for some inputsstreams (at least for AC3-5.1)
I was even thinking about choosing a higher default than 0.5. But since 0.5 is the default of the command line encoder, I thought I'd leave it at that. I've no plans to lower the default right now. The default for AC3 encoding is 640kbps, btw.

Quote:
Originally Posted by tebasuna51 View Post
I don't know the exact final matrix used by madshi.
I'm using:
Lt' = FL + 0.707xFC + 0.707xLF - 0.866xSL - 0.5xSR
Rt' = FR + 0.707xFC + 0.707xLF + 0.5xSL + 0.866xSR

However, it's not *exactly* 0.707 and not exactly 0.866 because I'm using integer math. So the real factors are slightly higher. I might change that in a future version, but I need to implement full support for floating point samples through the whole audio chain first...

Quote:
Originally Posted by rack04 View Post
eac3to crashes with the following file.

ftp://mplayerhq.hu/MPlayer/samples/HDTV/Hellboy.ts
The crash is caused by the h264 track having no frame rate information in it. I'll fix that in the next build. Not sure yet how to properly handle such a file, though.

Quote:
Originally Posted by rica View Post
What kind of option should i put to command line to force eac3to use another encoder than the default?
There's only one supported encoder for every supported output format. You choose the encoder by defining the output file extension.

Quote:
Originally Posted by Encoder888 View Post
Okay, in addition to my previous post: I was wrong, the original audio does contain 16 bits (the movie is The Counterfeiters by the way) I tried it with a previous version of eac3to, and here's what I got:

[...]

So, this end file DOES have 16 bits of information, but the one I got from 2.57 has 24, even though the difference between the two is just 1MB, which means that it was just encoded wrong, right? Or is it because of those 0 bytes? Either way, this should be fixed, pls look into it.
Yes, there seems to be a bug. It's not really a big problem. The FLAC you got just be just fine. But I'll fix it nevertheless, of course.
madshi is offline  
Old 16th August 2008, 15:04   #5778  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,812
@Madshi
Could you replace '-' progress with plain %?
Atak_Snajpera is offline  
Old 16th August 2008, 15:16   #5779  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Atak_Snajpera View Post
Could you replace '-' progress with plain %?
Why? I like the progress bar...
madshi is offline  
Old 16th August 2008, 15:25   #5780  |  Link
rack04
Registered User
 
Join Date: Mar 2006
Posts: 1,538
Quote:
Originally Posted by madshi View Post
The crash is caused by the h264 track having no frame rate information in it. I'll fix that in the next build. Not sure yet how to properly handle such a file, though.
Thank you for investigating the problem and thanks again for the great program.
rack04 is offline  
Closed Thread

Tags
eac3to

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:01.


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