VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. I've been trying to merge avi. and srt. files into one to play on my PS3 for ages and recently downloaded ffmpegX and the first three times it worked great.
    But now after I've done all of this:
    "Try using ffmpegX. In order to to add the subtitles you must re-encode the avi video. So, drag and drop or open the avi file with ffmpegX. Click the arrow in the area where it says "To" and select the format you want it to be encoded to. I usually choose xvid or divx. Then go to the "Filters" tab and click "Load subs" and select the subtitle file you wish to use. You can also change the subtitle font size, text style, and position (I like to keep the font size and text style default and change the position to Pos 90 to keep the subtitles a little more closer to the bottom). Before you encode the video, you can preview how the subtitles will appear by clicking "Preview." Another thing I like to do before I encode the video, is go to "Options" and check "Two-pass encoding" (this will make the output file quality a little bit better by analyzing the video and creating a log file). Once you have everything set to your preference, just click "Encode" at the bottom right corner to start the encoding process. Once its done, you should have a file, avi in this case, that will have the subtitles encoded into the video. There is no way to remove the subtitles after this process, so make sure that you don't overwrite your original avi file."
    ... the file appears as an mpg.avi file on my desktop but it won't run on VLC, Quicktime or my PS3!!!
    Could you please help?! I obviously have NO idea what I'm doing and how to get it to "work" again.
    Thanks!!!
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Please don't cross post. I removed your other thread.

    How big is the file?
    Quote Quote  
  3. Sorry! I'm a newbie and didn't know where to post, won't happen again!
    The original file, prior to the "encoding" is 1.03 GB... the file that shows up on my Desktop after I embed the subtitles is only 78KB.

    Thanks for answering!
    Quote Quote  
  4. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Please note that burning subtitles into the video with ffmpegX requires a mencoder preset, i.e. settings that utilize the mencoder engine.
    E.g. try the "XviD mencoder" preset, not the "XviD ffmpeg" preset.

    If it fails again, then please provide the Process Information log for examination. You may access this log by clicking the blue "i" in the ffmpegX Progress window. That should tell us more about what exactly happened.
    Quote Quote  
  5. I did try with both XviD and DivX mencoder. This is the log:


    Encoding started on Fri Sep 6 13:55:40 CEST 2013
    FIXME:Hardenabling SSE and SSE2 without detection
    MEncoder dev-CVS-060307-04:23-4.0.1 (C) 2000-2006 MPlayer Team
    Mac OSX static build for ffmpegX
    CPU: Intel (Family: 6, Stepping: 11)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    success: format: 0 data: 0x0 - 0x75e5de0e
    Quicktime/MOV file format detected.
    VIDEO: [avc1] 1920x800 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:7 fourcc:0x31637661 size:1920x800 fps:23.98 ftime:=0.0417
    ================================================== ========================
    Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
    AUDIO: 48000 Hz, 2 ch, s16le, 93.7 kbit/6.10% (ratio: 11715->192000)
    Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
    ================================================== ========================
    SUB: Detected subtitle file format: subviewer
    SUB: Read 1201 subtitles.
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [scale w=1920 h=1088]
    ================================================== ========================
    MP3 audio selected
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ================================================== ========================
    Forcing output fourcc to 58564944 [DIVX]
    VDec: vo config request - 1920 x 800 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is undefined - no prescaling applied.
    SwScaler: FAST_BILINEAR scaler, from Planar YV12 to Planar YV12 using MMX2
    videocodec: libavcodec (1920x1088 fourcc=58564944 [DIVX])
    High quality encoding selected (non real time)!
    Writing header...
    ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
    Writing header...
    ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
    1 duplicate frame(s)!
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    Skipping frame!
    Error while decoding frame!
    Error while decoding frame!
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    1 duplicate frame(s)!
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    h264.c:4128: failed assertion `h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count'
    I noticed that the first 3 times I did it and worked, all three files were .avi prior to adding the subs and encoding. The files I am trying to work on now, are all MP4. Could this have something to do with my problem?

    I am sorry if my doubts are too "stupid" I am new to this and really have no idea what I'm doing!

    Thanks so much for answering!
    Quote Quote  
  6. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by nolarice00 View Post
    [h264 @ 0x878f8c]abs_diff_pic_num overflow
    [h264 @ 0x878f8c]decode_slice_header error
    [h264 @ 0x878f8c]concealing 6000 DC, 6000 AC, 6000 MV errors
    These lines look to me as indication that the decoder (reading the source file) finds video characteristics that it doesn't know how to handle. I believe this can happen because the binaries (mplayer, mencoder) are so old (2006) that they do not yet cover these (advanced) parameters. For these kind of files, mencoder presets can not be used. Unfortunately, you'll only know after trying.

    Originally Posted by nolarice00
    I noticed that the first 3 times I did it and worked, all three files were .avi prior to adding the subs and encoding. The files I am trying to work on now, are all MP4. Could this have something to do with my problem?
    Yes, the issue here is with some (not all) usage of the H.264 video codec.

    If you don't mind encoding twice, you could still make the wanted conversion with subs using ffmpegX. More about that if you're interested.
    If you resent encoding twice, then you'll have to look for other more modern tools to make the conversion.
    Quote Quote  
  7. I am interested! So, I can still do it if I encode twice? I tried encoding the MP4 into an AVI first and then added subs to that AVI but didn't work either.
    Thank you so much Case for your patience and time!
    Quote Quote  
  8. Well, I downloaded a new torrent which is originally an .avi file. I encoded it and it worked! I guess it's a problem with .MP4 files? Anyway, it seems to work fine, so thank you very much for your help!
    Quote Quote  
  9. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by nolarice00 View Post
    I tried encoding the MP4 into an AVI first and then added subs to that AVI but didn't work either.
    Hmm, I was suggesting something like that. I wonder why that didn't work, but it seems you solved it in a different way.

    Originally Posted by nolarice00 View Post
    Well, I downloaded a new torrent which is originally an .avi file. I encoded it and it worked!
    If that is an option, then that may be the faster route anyway.

    Originally Posted by nolarice00
    I guess it's a problem with .MP4 files?
    It is an issue with some .mp4 (and .mkv) files. The video in MP4 files can choose from a wide variety of complexity settings. It is really up to the person that makes the MP4 file.
    Quote Quote  
  10. Yeah, I solved it that way! Thanks so much Case!!!
    Quote Quote  



Similar Threads