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 > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th September 2005, 04:23   #21  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Wow, you are one angry dude.

You don't have to use bleeding edge beta versions of software the day after they come out. Run thorough tests every upgrade and stick to a stable version for a few weeks if you can't handle betas. If you think recode is better, go ahead and use it, no one's going to stop you.

VFW has few supporters in the AVC world because it's easier to code for, and most standalones now and in the future will be play only raw mp4-ordered bitstreams. Of course, most will only play MP4 or MOV so that point is kind of moot if you use mkv.

Of course vfw would work, there's no timecodes to break.

If you have a constant framerate you can always generate a timecode file. All you need is to make a text file with:
Code:
# timecode format v1
Assume 29.970
Or whatever your framerate is. Add your video and the timecode into mkvmerge gui and poof, correct timecodes. You may not even need to do that if mmg recalculates timecodes anyway.

I've been blissfully ignorant of timecode problems because I mux my own in at the end, except for either megui or x264 deleting the first frame and throwing mine off if I don't compensate.
foxyshadis is offline   Reply With Quote
Old 13th September 2005, 07:37   #22  |  Link
Haali
Registered User
 
Join Date: Jul 2003
Posts: 282
Quote:
Originally Posted by Sirber
well, if you convert your RAW to MP4, it's ok, but I don't do coz merging MP4 into MKV has issues. Prevent the extraction later.
This is not true. mkvextract handles that.
Haali is offline   Reply With Quote
Old 13th September 2005, 10:02   #23  |  Link
vidhead
lost in dependency h3ll
 
vidhead's Avatar
 
Join Date: Oct 2004
Location: planet-X
Posts: 27
lite extract

Quote:
Originally Posted by Haali
This is not true. mkvextract handles that.
mkvextract GUI 1.5.5 produced Track1.mp4 (it asked for extension and i typed mp4) from an mkv - an mp4 video muxed with mp3 audio using mkvmerge gui 1.5.5 or 1.5.4 created with MeGUI.

however, the extracted "mp4" is "light". the original mp4 is 314,174 kb. track1.mp4 is 313,905 kb.

mpc /haali media splitter reports Invalid first byte EBML ID:
and fails, mv2player fails, zoom player fails, vlc fails to play Track1.mp4

only mplayer/gui plays, with this output:
ID_VIDEO_ID=0
FPS seems to be: 23.976000
ID_FILENAME=V:\source\Track1.mp4
ID_DEMUXER=h264es <--??
ID_VIDEO_FORMAT=0x10000005 <-??
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=0 <--?
ID_VIDEO_HEIGHT=0 <--?
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=0.00 <--?

original output:
ID_FILENAME=V:\source\241082.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=368
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=2571.24

and when you "jump" the timeslider the picture looks like "liquid" distortions - static and moving - for a few seconds (until a complete scene change?)

when track1.mp4 is dropped on mkmerge 1.5.6 gui it rejects it with: file identification failed...return code 2...error...has unknown type.
__________________
* blink :confused: *
vidhead is offline   Reply With Quote
Old 13th September 2005, 10:21   #24  |  Link
stephanV
gone
 
Join Date: Apr 2004
Posts: 1,706
mkvextract outputs raw h264, not wrapped in mp4 (mentioned in the documentation BTW)... the distortions when seeking are due to not seeking to keyframes.

Last edited by stephanV; 13th September 2005 at 10:50.
stephanV is offline   Reply With Quote
Old 13th September 2005, 12:10   #25  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Quote:
Originally Posted by Haali
This is not true. mkvextract handles that.
Merging MP4 into MKV, you don't have a "Default duration" for the video track, so you can't extract
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 12:17   #26  |  Link
Egh
Registered User
 
Join Date: Jun 2005
Posts: 630
Quote:
Originally Posted by foxyshadis
Wow, you are one angry dude.

You don't have to use bleeding edge beta versions of software the day after they come out. Run thorough tests every upgrade and stick to a stable version for a few weeks if you can't handle betas. If you think recode is better, go ahead and use it, no one's going to stop you.
In fact I was using Nero Recode for complicated sources, and that was good. Somehow I ask myself why I even came back to x264 now? The source was clean, so i thought that at least here it won't provide any complications... As if.... In fact the only problem of Nero is it's AVS support, or lack of thereof. Well, of course solution is encoding into lossless format and then feeding the avi into Nero. In fact l33t encoders do that, and I have too.

Quote:
Originally Posted by foxyshadis
If you have a constant framerate you can always generate a timecode file. All you need is to make a text file with:
Code:
# timecode format v1
Assume 29.970
Or whatever your framerate is. Add your video and the timecode into mkvmerge gui and poof, correct timecodes. You may not even need to do that if mmg recalculates timecodes anyway.
Don't you tell me that. Before telling me this, you should have looked at timecodes and generally blocks information in the encoded mkv file. Links on rapidshare hosted file were posted previously. I can get zillions of timecode files, the actual problem is that it need to replace those *inside* the mkv. And if you suggesting ripping the h264 stream out of that mkv... Do you really think i didn't try this?? Of course it rips, only ripped stream is garbage at the end...
Egh is offline   Reply With Quote
Old 13th September 2005, 12:23   #27  |  Link
Egh
Registered User
 
Join Date: Jun 2005
Posts: 630
Quote:
Originally Posted by Sirber
Merging MP4 into MKV, you don't have a "Default duration" for the video track, so you can't extract
Iirrc there's an option to set default duration for a track in mkvmerge.
Egh is offline   Reply With Quote
Old 13th September 2005, 12:25   #28  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Quote:
Originally Posted by Egh
Do you really think i didn't try this?? Of course it rips
Quote:
Originally Posted by rules
4) Be nice to each other and respect the moderator. Profanity and insults will not be tolerated. If you have a problem with another member turn to the respective moderator and if the moderator can't help you send a private message to Doom9.
You were warned enougn...
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 12:26   #29  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Quote:
Originally Posted by Egh
Iirrc there's an option to set default duration for a track in mkvmerge.
It's better to have it done automaticly than having to set some crazy nanoseconds manually
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 12:41   #30  |  Link
stephanV
gone
 
Join Date: Apr 2004
Posts: 1,706
You dont need default duration to extract to raw h264...
stephanV is offline   Reply With Quote
Old 13th September 2005, 12:48   #31  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
ok, here'e the full story:

Source: xvid and aac in MP4
1) Convert MP4 to MKV
2) Analyze MKV tracks
3) Extract tracks to .avi and .aac
--> fails

That's why RealAnime still doesn't have MP4 management.
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 13:07   #32  |  Link
stephanV
gone
 
Join Date: Apr 2004
Posts: 1,706
and xvid is related to h264 in what sense?
stephanV is offline   Reply With Quote
Old 13th September 2005, 13:51   #33  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
I never spoken of h264 for that case. MP4 merged in MKV can't be extracted in AVI after. That was my point.
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 16:00   #34  |  Link
movax
Member
 
Join Date: Nov 2004
Location: Michigan
Posts: 217
It seems like there's a lot unnecessary craziness happening. If I was encoding an ep using Nero Recode, I'd either feed it the AVS directly, or in a Huffy/Lagarith/etc/etc, and end up with a mp4 containing my h264 video. Then, drop this in MMG + Audio, Subs, Chapters, Timecodes (if necessary), and you're set.

Going back to your first post on this thread, you're wondering if there's anyway to repair your borked x264 you outputted directly to MKV. In the time you've spent yelling on the board, you could have reencoded in Recode, muxed that mp4, and been done with it.

And IIRC, x264 CLI doesn't only output to MKV, also raw and mp4 (I think). So use those if you're averse to Recode for some reason. (Later versions do not crash for me, and some reports of its bugginess are overrated, though it doesn't like complex AVS scripts as much.)

Last edited by movax; 13th September 2005 at 16:03.
movax is offline   Reply With Quote
Old 13th September 2005, 17:05   #35  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
x264 MKV b0rkiness is the same for MP4. So only raw is avalible if MKV b0rk.
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 18:14   #36  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally Posted by Sirber
....The only solution for your problem is:

1) Reencode and output to raw h264
2) use avc2avi or mp4box to merge in another container.
For those who may be interested..... I've recently been in contact with Alexander Noé regarding adding RAW H.264 stream support to AVI-Mux GUI, as his application already handles MPEG-4/AVC streams in .AVI and MKV.


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 13th September 2005, 18:24   #37  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
AVC in AVI is not optimal...
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th September 2005, 18:36   #38  |  Link
movax
Member
 
Join Date: Nov 2004
Location: Michigan
Posts: 217
Quote:
Originally Posted by SeeMoreDigital
For those who may be interested..... I've recently been in contact with Alexander Noé regarding adding RAW H.264 stream support to AVI-Mux GUI, as his application already handles MPEG-4/AVC streams in .AVI and MKV.


Cheers
Yes...AVC in AVI is indeed extremely suboptimal.
movax is offline   Reply With Quote
Old 13th September 2005, 19:29   #39  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Agreed..... AVC in AVI is not an optimum solution.... But AVI-mux GUI can generate MKV muxes too!

If it could accept RAW H.264 streams and save them to MKV, that's got to be useful


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 13th September 2005, 19:56   #40  |  Link
Isochroma
Registered User
 
Join Date: Mar 2005
Posts: 468
Stable/Unstable

How about dividing x264 into two downloads, one a Stable version and the other an Experimental?

The stable version would advance until someone finds a bug, then it would be decremented to the previous one. Thus, people who want to use x264 in a production environment would be able to make a choice which would nearly guarantee them good output, and those who wanted to experiment with bleeding-edge features would have the option to do so as well.

So, we'll go thru this thread and all others in the MPEG-4 AVC subforum, and search for every bug reported on x264. Then, we'll pick the last version that has no bugs reported and post it as Stable.

Last edited by Isochroma; 13th September 2005 at 20:05.
Isochroma is offline   Reply With Quote
Reply

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 02:45.


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