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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th September 2019, 06:21   #921  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,932
Sorry false alarm . I can't reproduce the issue now. Maybe some windows weirdness (I rebooted somewhere in between) or something I mixed up
poisondeathray is offline   Reply With Quote
Old 12th September 2019, 14:59   #922  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,079
Another possible bug. L-SMASH does not return some frames.


Again FFVideoSource works fine.



Code:
LoadPlugin("LSMASHSource.dll")
LWLibavVideoSource("TEST.mkv")
Trim(1,-1)
Sample -> https://www.mediafire.com/file/4f7on.../TEST.mkv/file

Last edited by Atak_Snajpera; 12th September 2019 at 15:19.
Atak_Snajpera is offline   Reply With Quote
Old 12th September 2019, 17:24   #923  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,079
L-Smash does not fallback to software decoders automatically like written in documentation.

Quote:
+ prefer_hw (default : 0)
Whether to prefer hardware accelerated decoder to software decoder.
Have no effect if 'decoder' is specified.
- 0 : Use default software decoder.
- 1 : Use NVIDIA CUVID acceleration for supported codec, otherwise use default software decoder.
- 2 : Use Intel Quick Sync Video acceleration for supported codec, otherwise use default software decoder.
For example I have NVIDIA card and it works fine with prefer_hw=1 but my CPU does not support Intel Quick Sync Video so with prefer_hw=2 i get this


I would also suggest value -1 as AUTO
Quote:
+ prefer_hw (default : 0)
Whether to prefer hardware accelerated decoder to software decoder.
Have no effect if 'decoder' is specified.
-1 : Use first available hardware decoder,otherwise use default software decoder.
0 : Use default software decoder.
1 : Use NVIDIA CUVID acceleration for supported codec, otherwise use default software decoder.
2 : Use Intel Quick Sync Video acceleration for supported codec, otherwise use default software decoder.

Last edited by Atak_Snajpera; 12th September 2019 at 19:58.
Atak_Snajpera is offline   Reply With Quote
Old 12th September 2019, 19:40   #924  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,079
L-Smash detects this mpeg-2 as 59.94 fps instead of 23.976.

Sample -> https://www.mediafire.com/file/jp0a2...ngfps.mkv/file

Code:
LoadPlugin("LSMASHSource.dll")
LWLibavVideoSource("Mpeg2-wrongfps.mkv")
info
Trim(0,-1)
And yes again FFVideoSource correctly returns 23.976.
Atak_Snajpera is offline   Reply With Quote
Old 13th September 2019, 11:37   #925  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,614
Quote:
Originally Posted by Atak_Snajpera View Post
L-Smash detects this mpeg-2 as 59.94 fps instead of 23.976.
Like must be.

Quote:
eac3to v3.34
command line: "C:\Portable\eac3to\eac3to.exe" "C:\tmp\Mpeg2-wrongfps.mkv"
------------------------------------------------------------------------------
MKV, 1 video track, 0:01:00, 60p /1.001
1: MPEG2, 480p24 /1.001 (16:9) with pulldown flags
[v01] The video bitstream framerate field doesn't match the container framerate. <WARNING>
Also DGSource output fps 59.94 because is the fps forced by the container (mkv header show this fps).
Many times we force the fps to be other than video stream to sync with audio.

If the true fps is 23.976 the mkv must be remuxed with that fps.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 13th September 2019, 11:43   #926  |  Link
fg118942
Registered User
 
Join Date: Aug 2018
Posts: 6
HolyWu ver. 20190910.1
Cannot be read if non-ASCII characters are included in the path of a specific file.

For example, this file.
http://www.minori.ph/download/files/wind_demo.mpg

Quote:
avs file
A = LWLibavAudioSource("C:\テスト\wind_demo.mpg")
V = LWLibavVideoSource("C:\テスト\wind_demo.mpg")
AudioDub(V, A)
fg118942 is offline   Reply With Quote
Old 13th September 2019, 12:08   #927  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,079
Quote:
Originally Posted by tebasuna51 View Post
Like must be.



Also DGSource output fps 59.94 because is the fps forced by the container (mkv header show this fps).
Many times we force the fps to be other than video stream to sync with audio.

If the true fps is 23.976 the mkv must be remuxed with that fps.
It should prioritize stream fps like ffms2. All duplicated frames should be automatically discarded.



Quote:
eac3to v3.34
command line: "C:\Portable\eac3to\eac3to.exe" "C:\tmp\Mpeg2-wrongfps.mkv"
------------------------------------------------------------------------------
MKV, 1 video track, 0:01:00, 60p /1.001
1: MPEG2, 480p24 /1.001 (16:9) with pulldown flags
[v01] The video bitstream framerate field doesn't match the container framerate. <WARNING>

Last edited by Atak_Snajpera; 13th September 2019 at 12:16.
Atak_Snajpera is offline   Reply With Quote
Old 13th September 2019, 12:17   #928  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,614
Quote:
Originally Posted by Atak_Snajpera View Post
It should prioritize stream fps like ffms2.
It is your opinion, not mine.
The mkv is wrong muxed, point.

I extract the .m2v from the container with

eac3to Mpeg2-wrongfps.mkv Mpeg2-wrongfps.m2v -stripPulldown

And now LWLibavVideoSource("Mpeg2-wrongfps.m2v") work fine.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.

Last edited by tebasuna51; 13th September 2019 at 12:28. Reason: Add info
tebasuna51 is offline   Reply With Quote
Old 13th September 2019, 12:21   #929  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,079
Quote:
Originally Posted by tebasuna51 View Post
It is your opinion, not mine.
The mkv is wrong muxed, point.
MkvToolnix does that if you import vob files.
Atak_Snajpera is offline   Reply With Quote
Old 13th September 2019, 12:24   #930  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 639
Quote:
Originally Posted by tebasuna51 View Post
Like must be.

Also DGSource output fps 59.94 because is the fps forced by the container (mkv header show this fps).
It's also the case for FFmpeg CLI.
Code:
ffmpeg -hide_banner -i Mpeg2-wrongfps.mkv
[mpeg2video @ 000001d82c58df40] ignoring pic cod ext after 0
Input #0, matroska,webm, from 'Mpeg2-wrongfps.mkv':
  Metadata:
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2019-09-12T18:36:26.000000Z
  Duration: 00:00:59.98, start: 0.000000, bitrate: 2320 kb/s
    Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, smpte170m, progressive), 720x480 [SAR 32:27 DAR 16:9], Closed Captions, SAR 186:157 DAR 279:157, 59.94 fps, 59.94 tbr, 1k tbn, 59.94 tbc (default)
    Metadata:
      BPS-eng         : 2314656
      DURATION-eng    : 00:00:59.977000000
      NUMBER_OF_FRAMES-eng: 1438
      NUMBER_OF_BYTES-eng: 17353272
      _STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-09-12 18:36:26
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Quote:
Originally Posted by fg118942 View Post
HolyWu ver. 20190910.1
Cannot be read if non-ASCII characters are included in the path of a specific file.

For example, this file.
http://www.minori.ph/download/files/wind_demo.mpg
I tried AVSMeter and VirtualDub2 and both program render the avs without any problem. However AvsPmod failed. Hence it's the program's issue.
HolyWu is offline   Reply With Quote
Old 13th September 2019, 12:43   #931  |  Link
fg118942
Registered User
 
Join Date: Aug 2018
Posts: 6
Quote:
I tried AVSMeter and VirtualDub2 and both program render the avs without any problem. However AvsPmod failed. Hence it's the program's issue.
It seems that it cannot be read when the character encoding of the avs file is Shift JIS.
In the case of UTF-8, it was able to read.

Is it possible to modify it to work correctly even if the character encoding is Shift JIS?
Otherwise, the AviUtl plug-in will have problems.
fg118942 is offline   Reply With Quote
Old 13th September 2019, 12:54   #932  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,398
Quote:
Originally Posted by fg118942 View Post
It seems that it cannot be read when the character encoding of the avs file is Shift JIS.
In the case of UTF-8, it was able to read.

Is it possible to modify it to work correctly even if the character encoding is Shift JIS?
Otherwise, the AviUtl plug-in will have problems.
It should work if you change your system locale to Japanese.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 13th September 2019, 12:58   #933  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,079
Seeking directly in VOB is broken as well. (That's why I remux to mkv with MKVToolnix)


Sample -> https://www.mediafire.com/file/ofuic...5_1_0.VOB/file
Atak_Snajpera is offline   Reply With Quote
Old 13th September 2019, 13:27   #934  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,614
Quote:
Originally Posted by Atak_Snajpera View Post
MkvToolnix does that if you import vob files.
Seems than MkvToolnix read the

1: MPEG2, 480p24 /1.001 (16:9) with pulldown flags

like 30/1.001 interlaced then put 60p /1.001 like fields per second.

Maybe we need a feature/option request for MkvToolnix to ignore pulldown flags (like eac3to -stripPulldown) to obtain a mkv progressive at 24 /1.001

But for me it is not a problem of L-SMASH.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 13th September 2019, 14:10   #935  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Germany
Posts: 5,776
@HolyWu

There is an access violation happening with foreign ANSII characters like .

https://en.wikipedia.org/wiki/Windows-1252

https://mega.nz/#F!bkkByaIa!6I5p9jkfXCT-oMQljTF9Rw
stax76 is offline   Reply With Quote
Old 13th September 2019, 15:07   #936  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 991
Quote:
Originally Posted by stax76 View Post
@HolyWu

There is an access violation happening with foreign ANSII characters like .

https://en.wikipedia.org/wiki/Windows-1252

https://mega.nz/#F!bkkByaIa!6I5p9jkfXCT-oMQljTF9Rw
Tested on german win10
UTF8 -> ok
Ansi -> access violation

But even the Windows Editor saves in UTF8 now...
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 13th September 2019, 15:10   #937  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Germany
Posts: 5,776
Try with cachefile parameter, that's what is likely causing it because old builds without cachefile parameter are fine.

edit:

There is clearly an issue with this file but it's arbitrary, sometimes it loads, sometimes the staxrip preview shows access violation and other times StaxRip and VirtualDub2 silently terminate.

Last edited by stax76; 13th September 2019 at 18:58.
stax76 is offline   Reply With Quote
Old 14th September 2019, 13:29   #938  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 639
https://github.com/HolyWu/L-SMASH-Wo...ks_20190914.7z
  • VideoSource: Fix fallback to software decoder in prefer_hw.
  • LWLibav: Fix access violation in file name manipulation.


Quote:
Originally Posted by Atak_Snajpera View Post
Another possible bug. L-SMASH does not return some frames.

Sample -> https://www.mediafire.com/file/4f7on.../TEST.mkv/file
I'm not able to fix it. Need investigation by the origianl developer. A workaround is to extract the video track as .m2v file and it will work fine. Or alternatively use MPEG2Source which should be reliable for MPEG2 streams.


Quote:
Originally Posted by fg118942 View Post
It seems that it cannot be read when the character encoding of the avs file is Shift JIS.
In the case of UTF-8, it was able to read.

Is it possible to modify it to work correctly even if the character encoding is Shift JIS?
Otherwise, the AviUtl plug-in will have problems.
Please try and see whether the latest build fix your issue.
HolyWu is offline   Reply With Quote
Old 14th September 2019, 13:48   #939  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Germany
Posts: 5,776
Thanks for the fix and the new build.
stax76 is offline   Reply With Quote
Old 14th September 2019, 14:08   #940  |  Link
fg118942
Registered User
 
Join Date: Aug 2018
Posts: 6
The issue seems to be solved.
Thank you so much.
fg118942 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 06:24.


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