VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    [RESOLVED] 02/15/2009 SUN 22:14pm -- SEE POST BELOW THIS ONE

    Hi all

    Ok. I'm in a pickle. I've been at this for a while now (over an hour so far) trying to figure this problem out.

    I need to obtain the duration and/or total number of frames in an (raw) .264 I've encoded via x264 cli encoder. I tried to obtain it through mediainfo but that is no good in some of these "test" encodes I make. At best, it gives me resolution and aspect ration and filesize. No bitrate info or other common info one usually needs. But I think it used to give me bitrate info--I don't know what went wrong on that juncture. Anyway.

    1. -- I tried dgavcdec but that is no use, unless I let it play through the whole encode--not a good idea if your source is lengthy. Actually, after checking again, it doesn't seem give you a direct duration: 1:22:05 for instance. (but I really need the total frames) Since there seems to be no way of finding out duration or total frames in this tool (unless I missed something) I need another method. At least it got the resolution correct

    2. -- So, I tried ffmpeg -i testencode.264 but that just says, Duration: N/A, Bitrate: N/A

    3. -- I tried txMuxerR GUI, but that doesn't give any details, plus, I found out that it gives the wrong resolution spec: ie, my .264 video was 704x360, but it reported 704x364 instead. Don't know where the extra 4 pixels came from

    4. -- And, mp4box -info testencode.264 give nothing, other than track and video but no actual details.

    So I'm wondering, is there anything else I can try via command line tool: something that I can feed myself.

    Thanks you in advance,
    -vhelp 5036
    Quote Quote  
  2. if it's something you've encoded, just check the x264 logfile

    for other streams, you want a tool that scans thru frames, because tools like mediainfo just read the header info which isn't necessarily accurate and you can easily alter the header with a hex edit

    dgavcdec does give you the framecount (coded number), and is frame accurate

    you can use stream analyzing tools like elecard streameye, but it's not cli, nor is it free... but it is much more accurate and gives you a lot more information. Another option is h264visa (not cli, not free)

    if you put it into a container, you can open it up in something like avidemux or vdub, and read the framecount there. You could also use an .avs script to do this (even use avsp). Some input filters are frame accurate, some are not so the actual framecount might be different depending on which one you use.

    cheers
    Quote Quote  
  3. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    [RESOLVED] 02/15/2009 SUN 10:14pm

    SOLUTION: Well, actually, my last resort in obtaining a frame count: dgavcdec + avisynth + vdub, and I ended up going that route, unfortunately. I read through the file real quickly and got the frame count, plus duration/time code, manaully. Though I was hoping for something more accurate that I could just drag n drop into. But I got what I needed in the end.

    In the mean time, I'll keep my eyes open for something more simpler. Until then, consider this resolved if not partially.

    Thanks for assisting so quickly however,
    -vhelp 5037
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!