Hi, i have a little problem. I have a online tv show downloaded as flv, converted to mp4. Everything is fine, until 20:25 minutes are gone, audio start to be out ouf sync. The exact seconds where it goes out of sync is where one actor say: right , some squeak sound can be heard and last 5 minutes video is out of sync (audio plays sooner.) Its not caused by my converting, i just did remux to mp4. This bug is on source too, if you watch it on internet. If i change delay the first 20 minutes will be out of sync then, and just last 5 minutes will be ok. I was thinking about cutting the audio and delaying last minutes where it is out of sync, than merge the audio. But how to ? Audio is AAC, but i can conver it to any format if needed. //I looked in vlc, and that last minutes need about 500ms delay to be synced.
+ Reply to Thread
Results 1 to 30 of 32
-
Last edited by lololo2; 11th Oct 2012 at 04:47.
-
Convert it to WAV audio, open it in a WAV editor (the free Audacity can easily do the job), and at that 'squeak' place, either add silence (for a positive delay) or cut audio (for a negative delay) equal to the amount it's out of synch. Convert back to AAC and remux.
-
Ok, thanks, i tryed it and it works good, audio fit 100 % now. But i want to ask something. I use mp4box to convert the .264 raw stream + aac to .mp4, but created file has avc1 fourcc, can i change it to h264 ? how ?
Last edited by lololo2; 11th Oct 2012 at 08:45.
-
-brand ABCD[:v] : sets the major brand of a file. Brands are used to identify the most common usage of a file (MPEG-4 presentation, 3GP movie, etc…). If ‘v’ is set, also sets the version of the brand (default version is 0).
-> using '-brand h264' during muxing should change the fourcc to h264 -
i tryed, but when looking in media info, there is still avc1 on video codec...
heres the script i use
"C:\MP4Box.exe" -par 1=1:1 -brand h264 -add "C:\Downloads\video.264:name=Mafstory.S11E02.Milan ko.guvernerom.2012.IPTV.x264.SK-ANUiTY:lang=:fps=25.000" -add "C:\Downloads\audio.aac:name=SK" -itags tool="Yamb 2.1.0.0 [http://yamb.unite-video.com]" -new "C:\Downloads\video.mp4" -
yes, i tryed to put it everywhere
putting -brand change
General
Format : MPEG-4
Format profile : Base Media
to:
General
Format : h264
Codec ID : h264
but this stays same:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1 -
wouldnt be better to use mkv ? im really handy with mmg..but i rather have my rip more compatible..
-
try if it helps to change:
Code:-add "C:\Downloads\video.264:name=Mafstory.S11E02.Milan ko.guvernerom.2012.IPTV.x264.SK-ANUiTY:lang=:fps=25.000"
Code:-add "C:\Downloads\video.264:name=Mafstory.S11E02.Milan ko.guvernerom.2012.IPTV.x264.SK-ANUiTY:lang=:fps=25.000:hdlr=h264"
-
thanks, tryed, but no difference..this change nothing, everything stays same...
-
not, already tryed it before..but..im not 100 percent sure i use that commands right..could you please try to mux it ? i could upload the files to some fast hosting..
-
can't try here atm. only got my tablet here
will be back on a normal pc tomorrow,.. -
btw. normally mp4 files do not have a fourcc (that's an avi only thing), one way to change the value mediainfo displays would be to replace 'ftypavc1' with 'ftyph264' (66 74 79 70 61 76 63 31 -> 66 74 79 70 68 32 36 34) using a hex editor. I attached a small file where I did just that,..
Last edited by Selur; 14th Oct 2012 at 16:42.
-
For me it states:
Code:General Complete name : c:\Users\Selur\Desktop\test.mp4 Format : h264 Codec ID : h264 File size : 3.21 MiB Duration : 17s 183ms Overall bit rate mode : Variable Overall bit rate : 1 566 Kbps Encoded date : UTC 2012-10-14 20:56:15 Tagged date : UTC 2012-10-14 20:56:15 Writing application : Hybrid 2012.10.10.1 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L4.1 Format settings, CABAC : No Format settings, ReFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 17s 160ms Bit rate : 1 444 Kbps Maximum bit rate : 2 530 Kbps Width : 640 pixels Height : 352 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.256 Stream size : 2.95 MiB (92%) Title : 1 - Imported with GPAC 0.5.1-DEV-rev4 155 Writing library : x264 core 125 r2208 d9d2288 Encoding settings : cabac=0 / ref=1 / deblock=0:0:0 / ana lyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range= 16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr= 0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes= 0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=0 / intra_refresh=0 / rc_l ookahead=0 / rc=crf / mbtree=0 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qp step=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / ip _ratio=1.40 / aq=0 Encoded date : UTC 2012-10-14 20:56:15 Tagged date : UTC 2012-10-14 20:56:15 Matrix coefficients : BT.601 Audio ID : 2 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Mode : Joint stereo Mode extension : MS Stereo Codec ID : 6B Duration : 17s 183ms Bit rate mode : Variable Bit rate : 121 Kbps Maximum bit rate : 125 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Compression mode : Lossy Stream size : 253 KiB (8%) Title : 22_56_13_411_02.mp3#audio - Imported with GPAC 0.5.1-DEV-rev4155 Encoded date : UTC 2012-10-14 20:56:15 Tagged date : UTC 2012-10-14 20:56:15
Code:General Count : 279 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Count of audio streams : 1 Video_Format_List : AVC Video_Format_WithHint_List : AVC Codecs Video : AVC Audio_Format_List : MPEG Audio Audio_Format_WithHint_List : MPEG Audio Audio codecs : MPEG-1 Audio layer 3 Complete name : c:\Users\Selur\Desktop\test.mp4 Folder name : c:\Users\Selur\Desktop File name : test File extension : mp4 Format : h264 Format : h264 Commercial name : h264 Internet media type : video/mp4 Codec ID : h264 Codec : h264 Codec : h264 Codec/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g 2 k3g jpm jpx mqv ismv isma f4v File size : 3363345 File size : 3.21 MiB File size : 3 MiB File size : 3.2 MiB File size : 3.21 MiB File size : 3.208 MiB Duration : 17183 Duration : 17s 183ms Duration : 17s 183ms Duration : 17s 183ms Duration : 00:00:17.183 Overall bit rate mode : VBR Overall bit rate mode : Variable Overall bit rate : 1565894 Overall bit rate : 1 566 Kbps Stream size : 6680 Stream size : 6.52 KiB (0%) Stream size : 7 KiB Stream size : 6.5 KiB Stream size : 6.52 KiB Stream size : 6.523 KiB Stream size : 6.52 KiB (0%) Proportion of this stream : 0.00199 HeaderSize : 6229 DataSize : 3357057 FooterSize : 59 IsStreamable : Yes Encoded date : UTC 2012-10-14 20:56:15 Tagged date : UTC 2012-10-14 20:56:15 File creation date : UTC 2012-10-16 13:23:23.193 File creation date (local) : 2012-10-16 15:23:23.193 File last modification date : UTC 2012-10-16 13:23:26.670 File last modification date (local) : 2012-10-16 15:23:26.670 Writing application : Hybrid 2012.10.10.1 Video Count : 249 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.h tml Commercial name : AVC Format profile : Baseline@L4.1 Format settings : 1 Ref Frames Format settings, CABAC : No Format settings, CABAC : No Format settings, ReFrames : 1 Format settings, ReFrames : 1 frame Internet media type : video/H264 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Codec ID/Url : http://www.apple.com/quicktime/downlo ad/standalone.html Codec : AVC Codec : AVC Codec/Family : AVC Codec/Info : Advanced Video Codec Codec/Url : http://developers.videolan.org/x264.h tml Codec/CC : avc1 Codec profile : Baseline@L4.1 Codec settings : 1 Ref Frames Codec settings, CABAC : No Codec_Settings_RefFrames : 1 Duration : 17160 Duration : 17s 160ms Duration : 17s 160ms Duration : 17s 160ms Duration : 00:00:17.160 Bit rate : 1444040 Bit rate : 1 444 Kbps Maximum bit rate : 2529688 Maximum bit rate : 2 530 Kbps Width : 640 Width : 640 pixels Height : 352 Height : 352 pixels Pixel aspect ratio : 1.000 Display aspect ratio : 1.818 Display aspect ratio : 16:9 Rotation : 0.000 Frame rate mode : CFR Frame rate mode : Constant Frame rate : 25.000 Frame rate : 25.000 fps Frame count : 429 Resolution : 8 Resolution : 8 bits Colorimetry : 4:2:0 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Progressive Scan type : Progressive Interlacement : PPF Interlacement : Progressive Bits/(Pixel*Frame) : 0.256 Delay : 0 Delay : 00:00:00.000 Delay, origin : Container Delay, origin : Container Stream size : 3097465 Stream size : 2.95 MiB (92%) Stream size : 3 MiB Stream size : 3.0 MiB Stream size : 2.95 MiB Stream size : 2.954 MiB Stream size : 2.95 MiB (92%) Proportion of this stream : 0.92095 Title : 1 - Imported with GPAC 0.5.1-DEV-rev4 155 Writing library : x264 - core 125 r2208 d9d2288 Writing library : x264 core 125 r2208 d9d2288 Writing library/Name : x264 Writing library/Version : core 125 r2208 d9d2288 Encoding settings : cabac=0 / ref=1 / deblock=0:0:0 / ana lyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range= 16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr= 0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes= 0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=0 / intra_refresh=0 / rc_l ookahead=0 / rc=crf / mbtree=0 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qp step=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / ip _ratio=1.40 / aq=0 Encoded date : UTC 2012-10-14 20:56:15 Tagged date : UTC 2012-10-14 20:56:15 Matrix coefficients : BT.601 Audio Count : 217 Count of stream of this kind : 1 Kind of stream : Audio Kind of stream : Audio Stream identifier : 0 StreamOrder : 1 ID : 2 ID : 2 Format : MPEG Audio Commercial name : MPEG Audio Format version : Version 1 Format profile : Layer 3 Format settings : Joint stereo / MS Stereo Mode : Joint stereo Mode extension : MS Stereo Internet media type : audio/mpeg Codec ID : 6B Codec : MPA1L3 Codec : MPEG-1 Audio layer 3 Codec/Family : MPEG-A Codec/CC : 6B Codec profile : Joint stereo Duration : 17183 Duration : 17s 183ms Duration : 17s 183ms Duration : 17s 183ms Duration : 00:00:17.183 Bit rate mode : VBR Bit rate mode : Variable Bit rate : 120848 Bit rate : 121 Kbps Maximum bit rate : 125184 Maximum bit rate : 125 Kbps Channel(s) : 2 Channel(s) : 2 channels Sampling rate : 48000 Sampling rate : 48.0 KHz Samples count : 823680 Frame count : 715 Compression mode : Lossy Compression mode : Lossy Delay : 0 Delay : 00:00:00.000 Delay, origin : Container Delay, origin : Container Delay relative to video : 0 Video0 delay : 0 Stream size : 259200 Stream size : 253 KiB (8%) Stream size : 253 KiB Stream size : 253 KiB Stream size : 253 KiB Stream size : 253.1 KiB Stream size : 253 KiB (8%) Proportion of this stream : 0.07707 Title : 22_56_13_411_02.mp3#audio - Imported with GPAC 0.5.1-DEV-rev4155 Encoded date : UTC 2012-10-14 20:56:15 Tagged date : UTC 2012-10-14 20:56:15
Doh, I see I didn't looka t the Video Codec ID, just the Codec ID stated in the general section.
Cu Selur -
check my last post,... there I have h264 in both sections,...
G:\Hybrid>MediaInfo.exe c:\Users\Selur\Desktop\test.mp4
General
Complete name : c:\Users\Selur\Desktop\test.mp4
Format : h264
Codec ID : h264
File size : 3.21 MiB
Duration : 17s 183ms
Overall bit rate mode : Variable
Overall bit rate : 1 566 Kbps
Encoded date : UTC 2012-10-14 20:56:15
Tagged date : UTC 2012-10-14 20:56:15
Writing application : Hybrid 2012.10.10.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L4.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Codec ID : h264
Duration : 17s 160ms -
ok finally tryed to do it, but i cant find hex 9B 61 76 63 31 in the file..
-
you did search for the hex values?
Code:9B 61 76 63 31
Code:›avc1
-
finally found the value, but not 9B 61 76 63 31 , i found 61 76 63 31 //yes, the hex represents avc1
i have 2 of this values. When i change first, second stays same and mediainfo report codec id avc1..
when changing second, codec id is finally h264 ! but file is unplayable :/ Its not possible to change only second value, because when i try to do it only first one change. Any idea ?Last edited by lololo2; 17th Oct 2012 at 11:25.
-
Normally it should be possible to only change one of the values,..
ftypeavc1 should change the Codec ID in the General section.
Changing the Codec ID in the Video section is more tricky, since H.264 content can have different fourcc e.g. AVC1 DAVC H264 X264 VSSH AVC and using a fourcc is not standarized afaik, normally the info should be in the NALUs.
where AVC1 normally is a bitstream without a start code and H264 is a bitstream with a startcode, see: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757808%28v=vs.85%29.aspx
-> changing the stype should do the trick, but not all decoders feel responsible for all subtypes, afaik MPlayer should playback files with h264 as subtype most DirectShowDecoders probably won't -
I finally fixed all the problems, thanks for help, you can lock this theme now..bb
Similar Threads
-
audio sync problem, how to work out progressive audio sync delay
By jolt321 in forum Newbie / General discussionsReplies: 13Last Post: 10th Apr 2012, 21:09 -
An app to visually sync audio to video similar to Subtitle Edit visual sync
By cinesimon in forum AudioReplies: 3Last Post: 6th Sep 2011, 07:54 -
Videos in sync on pc, out of sync on DVD player
By DVantrease in forum Video ConversionReplies: 3Last Post: 2nd Sep 2009, 04:08 -
MPG with A/V sync to AVI with horrible A/V sync?
By RedPenguin in forum Video ConversionReplies: 92Last Post: 23rd Aug 2009, 16:17 -
Delaycut question about 6 chan ac3 out of sync when 2 chan is in sync
By B2K24 in forum AudioReplies: 3Last Post: 27th Apr 2009, 16:10