This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Input frame count with ffmeg ?
#1
hey there.

quick question:
loading some files in hybrid will fail because of a missing frame count (see image)
   
is there a way to make ffmpeg count the frames on input if that piece of info is missing?

(topaz video ai is ffmpeg based as well and it takes a while to load that same video file, but it does work)
Reply
#2
Hybrid automatically uses FrameCounter when reading raw MPEG-4 ASP/AVC, VC-1, MPEG-2 files.
It has no option to force some other method of trying to count the frames. (ffprobe nowadays has a '-count_frames' option, which might work,..)
Missing frame count on non-raw files usually indicates a broken source.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
for my particular case:
it was an .av1 encoded file (by hybrid, which didn't convert the audio file and therefor failed the final video+audio mux).
i took the encoded video temp file, created a file with mkvtoolnix and the final video players beautifully from start to end (and knows the final length).
Reply
#4
You could also have remuxed the file with ffmpeg or mkvmerge and then fed it to Hybrid. Smile
Maybe someone has some free time on their hands and writes a patch for FrameCounter to also support .av1 video. Smile
(I just tried: 'ffprobe.exe -count_frames g:\Output\test.av1' but that does not report a frame count)

Cu Selur

Ps.: 'ffmpeg -i raw.av1 -c copy -f null -' works,..
=> correction, no it does not, since the frame rate will be unknown.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Uploaded a new dev which will try ffmpeg to get the frame count and rate to calculate the length.
Frame rate will be assumed as 25 if not found.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#6
hmno, not happening yet


Attached Files Thumbnail(s)
   
Reply
#7
Strange that worked here.
Can you share a debug output?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#8
there you go


Attached Files
.zip   HybridDebugOutput.zip (Size: 9,91 KB / Downloads: 9)
Reply
#9
Uploaded a new dev, try that one.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#10
mhm i'm afraid i haven't got the unfinished .av1 anymore Sad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)