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 28th May 2014, 14:46   #201  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by zero9999 View Post
does LWLibavVideoSource export useful global variables like FFMS2 (SAR, matrix, tv/pc range, cfr & vfr time) ?
I strongly support the addition of global variables. In my case specifically, a variable to identify the current source file at runtime. It would enable logging scene changes when concatenating source files, needed to work around memory usage issues when using L-SMASH Source.

Thanks,
Francois
fvisagie is offline   Reply With Quote
Old 7th June 2014, 14:31   #202  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
r726 ;
https://drive.google.com/folderview?...UU&usp=sharing

Extract of changelog ;
Code:
r726: git-7a8d8a7  [2014-05-22]  lwmuxer: Stop using deprecated movie parameters.
r725: git-92d69d8  [2014-05-14]  Bump copyright years to 2014.
r724: git-7c1dddb  [2014-05-13]  lwlibav_audio: Fix memory leak of audio frame list.
r723: git-e4ca061  [2014-05-12]  lwindex: Fix handling of file path.
r722: git-5d5add8  [2014-05-12]  libavsmash: Fix compilation error on debug build.
r721: git-c9c67e6  [2014-05-08]  lwindex: Override stream with AV_DISPOSITION_ATTACHED_PIC
r720: git-3548f58  [2014-05-03]  lwmuxer: Use new I/O APIs.
r719: git-8e176da  [2014-05-03]  lwdumper: Use new I/O APIs.
r718: git-d0e0961  [2014-05-02]  libavsmash: Use new I/O APIs.
r717: git-0c4d9df  [2014-04-11]  lwindex: Don't treat as field coded picture if picture seems corrupted.
r716: git-2242b10  [2014-04-08]  libavsmash: More QuickTime Audio support.
r715: git-4ada105  [2014-04-05]  lsmashsource: Fix stack mode when AVX2 instructions are available.
r714: git-f8890ff  [2014-02-17]  utils: Limit framerate numerator strictly up to INT32_MAX.
r713: git-dd17b77  [2014-02-14]  video: Fix 10L introduced in 2aa7ba260d .
r712: git-1612126  [2014-02-14]  video: Improve average framerate calculation more.
Music Fan is offline   Reply With Quote
Old 13th June 2014, 23:29   #203  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
I recently added LSMASHSource to the wiki (with VFR maniac's consent) and I would like to add additional information since the included readme seems a little vague (at least to me).
I searched this thread for useful information and so far I have this:

Quote:
Originally Posted by VFR maniac View Post
L-SMASH Works depends on liblsmash, libavutil, libavcodec, libavformat, libswscale and libavresample.
Quote:
Originally Posted by VFR maniac View Post
I added supporting of a hack of high bit-depth input between rev594 and rev603.
For interleaved format (at default), only little endianness output is supported currently i.e. LSB comes at the first byte and MSB comes at the second.
Stacked format is also available but direct rendering is always not available if used.
Quote:
Originally Posted by VFR maniac View Post
LSMASH*Source() is for MOV, ISO Base Media and its derived file formats.
LSMASH*Source() uses libavformat only for the first decoder initialization, and demuxes streams by using L-SMASH demuxer API.
Quote:
Originally Posted by VFR maniac View Post
Apple ProRes?
Haha, I guess the strange output from LWLibavVideoSource is high bit-depth interleaved format.
You may feel FFMS2 outputs correctly but, the fact, the output loses accuracy around 2-bit for each Y'CbCr component.
Try format="YUV422P8" or stacked=true.

Edit and Note: currently libavcodec ProRes decoder supports only Y'CbCr 4:2:2 10-bit and 4:4:4 10-bit format with or without alpha channel.
Therefore, LWLibavVideoSource(source="ProRes") always output in interleaved format unless user specifies output format.
And even if ProRes4444 (12-bit) is input, the default output format will be Y'CbCr 4:4:4 10-bit with alpha.
Quote:
Originally Posted by VFR maniac View Post
Libavcodec decoders output by such format; [LSB 8 | zero 6 | MSB 2] for 10-bit Y'CbCr.
As the default, the postprocessor after decoding works as just copying data delivered from decoder into the AviSynth video buffer.
Basically I believe that data shall not be modified unless user, decoder or demuxer specifies.
10->16 change may add something of dither instead of simple bit-shifting.

Use format="YUV4**P16" if you need the format [LSB 8 | MSB 8].
Quote:
Originally Posted by HolyWu View Post
Besides, LSMASH*Source has the advantage over LWLibav*Source that it doesn't need to create index file for supported formats.
Anyone know of any other advantages/disadvantages and or any other limitations of LSMASHSource?

----

One more thing, the readme list all supported video formats but for 12 and 14-bit formats it says 'ffmpeg only', what does that really mean?

Example:
Quote:
"YUV422P10"
"YUV444P10"
"YUV420P12" (ffmpeg only)
"YUV422P12" (ffmpeg only)
"YUV420P14" (ffmpeg only)
"YUV422P14" (ffmpeg only)
"YUV420P16"
"YUV422P16"
Any insight will be appreciated.
Reel.Deel is offline   Reply With Quote
Old 14th June 2014, 00:05   #204  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Quote:
Originally Posted by Reel.Deel View Post
One more thing, the readme list all supported video formats but for 12 and 14-bit formats it says 'ffmpeg only', what does that really mean?
Libav's libavutil and libswscale have no support of 12 and 14-bit formats.
These formats may or may not be supported by libav in the future.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 14th June 2014 at 00:07.
VFR maniac is offline   Reply With Quote
Old 14th June 2014, 00:07   #205  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
Edit: already answered.


Quote:
Originally Posted by Reel.Deel View Post
One more thing, the readme list all supported video formats but for 12 and 14-bit formats it says 'ffmpeg only', what does that really mean?

Example:
Quote:
"YUV422P10"
"YUV444P10"
"YUV420P12" (ffmpeg only)
"YUV422P12" (ffmpeg only)
"YUV420P14" (ffmpeg only)
"YUV422P14" (ffmpeg only)
"YUV420P16"
"YUV422P16"
Any insight will be appreciated.
It means that if you want support for 12-bit and 14-bit pixel formats, you need to build against FFmpeg.

http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavutil/pixfmt.h

http://git.libav.org/?p=libav.git;a=blob;f=libavutil/pixfmt.h

Compare: only FFmpeg contains those pixel format markers. Libav doesn't.
qyot27 is offline   Reply With Quote
Old 14th June 2014, 00:20   #206  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Thanks for the quick response VFR maniac and qyot27.

So if you load any 12/14-bit source will it be truncated to 10-bits?

@VFR maniac

One more thing:
Quote:
Originally Posted by VFR maniac View Post
10->16 change may add something of dither instead of simple bit-shifting.
Does that mean if you have a 10-bit source and force it to stack16 (stacked=true, format="YUVXXXP16") it will be dithered to 16-bits rather than just shifting the bits? You said may add dither so I'm not sure.

Last edited by Reel.Deel; 14th June 2014 at 00:47.
Reel.Deel is offline   Reply With Quote
Old 14th June 2014, 00:54   #207  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
I don't know so deep about the internal behaviour of libswscale, but at least ffmpeg's libswscale has options about dither and set to auto by default.
http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libswscale/options.c

Libav's libswscale has no options about dither.
https://git.libav.org/?p=libav.git;a=blob;f=libswscale/options.c
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 14th June 2014, 01:27   #208  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
ok, thanks for the answer VFR maniac.

If anyone knows a bit more on this matter please share.
Reel.Deel is offline   Reply With Quote
Old 14th June 2014, 10:37   #209  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Thanks for this initiative, Reel.Deel
fvisagie is offline   Reply With Quote
Old 14th June 2014, 17:43   #210  |  Link
Daemon404
Registered User
 
Join Date: Mar 2005
Posts: 128
Quote:
Originally Posted by Reel.Deel View Post
So if you load any 12/14-bit source will it be truncated to 10-bits?
Only if built with FFmpeg.

Quote:
Originally Posted by Reel.Deel View Post
Does that mean if you have a 10-bit source and force it to stack16 (stacked=true, format="YUVXXXP16") it will be dithered to 16-bits rather than just shifting the bits? You said may add dither so I'm not sure.
It will be bitshifted, unless there is no direct path between formats, then all bets are off. yuvXXXp10 -> yuvXXXp16 should just be a bitshift in swscale.
Daemon404 is offline   Reply With Quote
Old 17th June 2014, 04:25   #211  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
@Daemon404

Thanks for the info.

---------

@everyone

r728 is available - Support for RGB32 and Y8 in Avisynth.
Reel.Deel is offline   Reply With Quote
Old 6th July 2014, 11:12   #212  |  Link
qupfer
Registered User
 
Join Date: Sep 2009
Posts: 18
Quote:
Originally Posted by Reel.Deel View Post
@everyone

r728 is available - Support for RGB32 and Y8 in Avisynth.
Thanks,

but google says, I need permission, so I cliked on Request access (two times ). Will this be enough or I have to do additional things?

Last edited by qupfer; 6th July 2014 at 11:25.
qupfer is offline   Reply With Quote
Old 6th July 2014, 12:30   #213  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Quote:
Originally Posted by Reel.Deel View Post
@everyone

r728 is available - Support for RGB32 and Y8 in Avisynth.
This link don't work anymore, is there another server for r728 ?
Music Fan is offline   Reply With Quote
Old 6th July 2014, 13:12   #214  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Geez, this is the error message G00gle Drive gave me:

Quote:
You need permission

Want in? Ask the owner for access, or switch to an account with permission. Learn more

You are signed in as ***.***@gmail.com.
Seriously, I think open-source doesn't go well with unreasonable access restrictions.

Last edited by filler56789; 6th July 2014 at 13:41. Reason: clarity
filler56789 is offline   Reply With Quote
Old 6th July 2014, 13:59   #215  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
For the time being, r728 is available at:

http://www.mediafire.com/download/m8...28-g34b1526.7z
filler56789 is offline   Reply With Quote
Old 6th July 2014, 14:12   #216  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Here's a direct download for r728: [Dropbox]

FWIW here's the build script for L-SMASH Works.
Reel.Deel is offline   Reply With Quote
Old 6th July 2014, 14:18   #217  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Thanks.
Music Fan is offline   Reply With Quote
Old 8th July 2014, 13:42   #218  |  Link
qupfer
Registered User
 
Join Date: Sep 2009
Posts: 18
Hi Guys,

I have a MeGui-Generated avs-File for the audio-stream of a tv-recording.
LWLibavAudioSource("Path\to\Movie.ts", stream_index=1)

With with tool(s) can I play/decode it? (except MeGui)
ffmpeg doesn't do it. (and its compiled with --enable-avisynth)
qupfer is offline   Reply With Quote
Old 8th July 2014, 13:44   #219  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by qupfer View Post
Hi Guys,

I have a MeGui-Generated avs-File for the audio-stream of a tv-recording.
LWLibavAudioSource("Path\to\Movie.ts", stream_index=1)

With with tool(s) can I play/decode it? (except MeGui)
ffmpeg doesn't do it. (and its compiled with --enable-avisynth)
Post the complete script. You should be able to open/run the script in MPC or VirtualDub.

Quote:
Originally Posted by qupfer View Post
ffmpeg doesn't do it.
Somehow I doubt that this is the error message you get from ffmpeg.

Last edited by Groucho2004; 8th July 2014 at 13:47.
Groucho2004 is offline   Reply With Quote
Old 8th July 2014, 13:56   #220  |  Link
qupfer
Registered User
 
Join Date: Sep 2009
Posts: 18
Thanks,
okay the complete script

Code:
LoadPlugin("D:\Users\Henning\Dropbox\MeGUI\tools\lsmash\LSMASHSource.dll")
LWLibavAudioSource("E:\convert\temp\test.ts", stream_index=1)
# detected channels: 2 channels
# detected channel positions: 2/0/0

ffplay output:

Code:
ffplay version N-64495-g154954c Copyright (c) 2003-2014 the FFmpeg developers
  built on Jul  8 2014 00:30:36 with gcc 4.8.2 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/username/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth [...]
  libavutil      52. 91.100 / 52. 91.100
  libavcodec     55. 68.101 / 55. 68.101
  libavformat    55. 45.100 / 55. 45.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4. 10.100 /  4. 10.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
E:\convert\temp\test.avs: Unknown error occurred

Last edited by qupfer; 8th July 2014 at 14:04.
qupfer 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 12:43.


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