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 > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th December 2024, 18:44   #21  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,599
ffmpeg seems ok too and doesn't crash

Code:
ffmpeg -i "test_zero_frames.avs" -c:v rawvideo -an -f null NUL
Code:
 [out#0/null @ 0000004d0260cbc0] Output file is empty, nothing was encoded(check-ss / -t / -frames parameters if used)
frame=    0 fps=0.0 q=0.0 Lsize=N/A time=N/A bitrate=N/A speed=N/A
Passing zero length video and audio (no -an) is ok too

Last edited by poisondeathray; 13th December 2024 at 18:47.
poisondeathray is offline   Reply With Quote
Old 13th December 2024, 22:54   #22  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,067
I don't know if it's just about looking? If so, that's what I do.

Split_View_Offset
__________________
Live and let live
gispos is offline   Reply With Quote
Old 15th December 2024, 12:01   #23  |  Link
buddha9
Registered User
 
buddha9's Avatar
 
Join Date: Nov 2023
Posts: 18
Quote:
Originally Posted by gispos View Post
I don't know if it's just about looking? If so, that's what I do.

Split_View_Offset
Inmpressive!
Thanks so much gispos!
Can you give me this script please?
__________________
AviSynth+ 3.7.3

Last edited by buddha9; 15th December 2024 at 12:07.
buddha9 is offline   Reply With Quote
Old 15th December 2024, 16:28   #24  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,067
Quote:
Originally Posted by buddha9 View Post
Inmpressive!
Thanks so much gispos!
Can you give me this script please?
This is not a script, it works in AvsPmod with SplitView and Video > Tools > 'Locate frame'.
A group must be set for the current tab and the tab to the right of it. Then start SplitView in the left script and start Video > Tools > 'Locate frame'. The non selected script is frozen with 'Freeze frame'.

To find the offset automatically with 'Locate frame', the wonderful 'LocateFrames' function from Doom9 member StainlessS is needed.
https://www.mediafire.com/folder/hb2...7z6/StainlessS or http://www.sendspace.com/folder/2mwrco and you can also read Help > 'Locate frame readme'

However, you have to limit the search radius with start and stop, otherwise the search will take too long. So manually scroll in the right script to close to the same position as the left script and then click on 'Start'.
The threshold may need to be set high (50) if the two videos are visually very different.
__________________
Live and let live
gispos is offline   Reply With Quote
Old 15th December 2024, 19:26   #25  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,152
Quote:
Originally Posted by poisondeathray View Post
ffmpeg seems ok too and doesn't crash
Not any longer, but it used to. I remember the conversation StainlessS pointed at very well: Link
It was April 2nd 2023 and during the night someone started uploading several images via Aspera as they were recording a sailing competition in New Zealand and they also shot some pictures. Those got downloaded automatically, then they were indexed, converted with all the various adjustments, a mute audio track was inserted and they were eventually supposed to be re-encoded to XDCAM-50 (i.e MPEG-2 50 Mbit/s + PCM 24bit 48000Hz audio muxed in mxf) and checked in into Interplay automatically. Unfortunately, with images being "a picture" they resulted in one single frame called frame 0, so a BlankClip(length=0) was added to create the mute audio track but that turned out to be a very bad choice 'cause what FFMpeg did was reading the script and it just kept going... and going... and going... and going... forever. Quickly enough all the nodes in the farm ended up being saturated and overwhelmed and the whole thing crashed. Restarting didn't help as it started processing the next batch of images until it crashed again. I even saw one server with Windows Server 2019 Standard x64 and 128 GB of RAM reaching 1 TB of paging file before giving up and crashing.

The short term solution was forcing BlankClip() to use a length that started from at least 1, but it took me a bit to figure out the issue, change the code and re-compile.
BlankClip was using the $i_src_vid_frames variable and sure enough I added

Code:
If $i_src_vid_frames = 0 Then $i_src_vid_frames = 1
and it started working again.
Anyway, I'm glad to see that it has been fixed in FFMpeg as well now.

Last edited by FranceBB; 15th December 2024 at 19:30.
FranceBB 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 17:01.


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