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 > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd January 2014, 15:12   #441  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by videofan3d View Post
I don't know details how x264 does work but neither myself nor other people here succeeded to use FRIMDecode as source for x264 - unfortunately.

avs2yuv probably translates AVS (i.e. AVI) to flat yuv, right?
This might be a key, because AVI container is "seekable"!
i.e. you can seek to the beginning.
I assume that x264 opens data-source, read some header or portion of data for preliminary analysis, then close it. and in the second round it re-open the source again and read it from beginning to the end.

But pipe is from its principle unidirectional channel, once it is closed, it is its end-of-life.
FRIMDecode uses pure pipe on its output, and there is no way to get a signal for re-opening the pipe.

Regarding stdout/stdin - I would be very careful when using it for binary data transfer.
Simple test:

char sss[] = "abcd\nefgh\n1234";
fwrite(sss, strlen (sss), 1, stdout);

will produce output (when redirected to file) with 16 bytes!
Each \n is converted to \r\n.
If you pass generic binary data via stdout (in Windows), you may get corrupted file! Maybe there is some switch in Windows to turn this translation off, but I'd prefer not to rely on this.

(Unlike in Unix, there is no new-line translation by definition)
It's up to you, and you know FRIMDecode a lot better than I do... but people use stdin/stdout with binary data all the time. I've encoded entire movies feeding video through stdout/stdin using X264. It can't be seeking backward, because that method wouldn't allow it. As another example, in BD-RB I use stdin/stdout pipes between LAME and AFTEN for MP3 to AC3 encoding. I do the same using WAVI and AFTEN for reencoding .WAV to AC3. This is all done in a Windows environment. A lot of the open source CLI packages allow for input from stdin and output to stdout (usually using "-" as the file indicator for the command line).
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 3rd January 2014 at 15:43.
jdobbs is offline   Reply With Quote
Old 3rd January 2014, 16:45   #442  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 552
Quote:
Originally Posted by videofan3d View Post
If you pass generic binary data via stdout (in Windows), you may get corrupted file! Maybe there is some switch in Windows to turn this translation off, but I'd prefer not to rely on this.

(Unlike in Unix, there is no new-line translation by definition)
There is simple way to make this standard streams binary in Windows:
Code:
#ifdef _WIN32
    _setmode( _fileno( stdin ),  _O_BINARY );
    _setmode( _fileno( stdout ), _O_BINARY );
    _setmode( _fileno( stderr ), _O_BINARY );
#endif
And that is pretty standard way so I don't see any problems with using it.

P.S. As for problem with x264 and named pipes. It was problem with double fopen/fclose because stat() function didn't worked with named pipes and so we couldn't find out if specified path is pipe or regular file (and default is regular file). This patch should fix it.
MasterNobody is offline   Reply With Quote
Old 3rd January 2014, 17:27   #443  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
@videofan3d

Including an option for using stdout would certainly make encoding of SBS and O/U versions of 3D encodes via X264 easier. Your choice, but I'd certainly appreciate it. Currently I'm relying on end users having a commercial package installed so DirectshowMVCSource() can be used.

Also I find FRIMDecode to be a lot more dependable for MVC decodes. In my experience it works perfectly.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 3rd January 2014 at 18:16.
jdobbs is offline   Reply With Quote
Old 3rd January 2014, 18:16   #444  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 321
Quote:
Originally Posted by MasterNobody View Post
There is simple way to make this standard streams binary in Windows:
Code:
#ifdef _WIN32
    _setmode( _fileno( stdin ),  _O_BINARY );
    _setmode( _fileno( stdout ), _O_BINARY );
    _setmode( _fileno( stderr ), _O_BINARY );
#endif
And that is pretty standard way so I don't see any problems with using it.
Good point - thanks
videofan3d is offline   Reply With Quote
Old 3rd January 2014, 18:19   #445  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 321
Quote:
Originally Posted by jdobbs View Post
@videofan3d

Including an option for using stdout would certainly make encoding of SBS and O/U versions of 3D encodes via X264 easier. Your choice, but I'd certainly appreciate it. Currently I'm relying on end users having a commercial package installed so DirectshowMVCSource() can be used.

Also I find FRIMDecode to be a lot more dependable for MVC decodes. In my experience it works perfectly.
I'll consider it (with input from MasterNobody) ...
videofan3d is offline   Reply With Quote
Old 3rd January 2014, 18:26   #446  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by videofan3d View Post
I'll consider it (with input from MasterNobody) ...
Cool.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 3rd January 2014, 19:36   #447  |  Link
Cedvano
Registered User
 
Join Date: Jul 2009
Posts: 244
How the wall option work ? Have you got an exemple ?
Cedvano is offline   Reply With Quote
Old 4th January 2014, 03:57   #448  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Confusing GUI business

Quote:
Originally Posted by Cedvano View Post
Hi guys,

Here the new release (with new name)

http://forum.doom9.org/showthread.php?t=169801
Quote:
Originally Posted by nunub View Post
The site has disappeared.
Quote:
Originally Posted by Cedvano View Post
I work on a complete software
Whoever's maintaining the VideoHelp.com page should edit the other section where it says you can download the GUI, as the link is non-existent.

http://www.videohelp.com/tools/FRIM
(scroll down for "other downloads" to get the GUI...

Quote:
More information and other downloads:
Download Transcoder GUI for FRIMTranscode and FRIMEncode here.
^leads to http://forum.doom9.org/showthread.php?t=169801 which doesn't exist.

Cedvano, you should update your previous posts for clarity. (whichever have a link to a non-existent thread/page)

Quote:
Originally Posted by Cedvano View Post
I have no idea if that's your latest release before your makeover of the software.
Should people download that or should everyone avoid downloading that and wait for the complete version?

That post should be edited for clarity, as well.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 4th January 2014, 11:10   #449  |  Link
Cedvano
Registered User
 
Join Date: Jul 2009
Posts: 244


Here the next release of FRIMTrancode GUI
I change the name by .::3D Encode::..

I make some changes and put the next FRIM 1.19

I don't forget but I have a [BEEP] work. ;-)

Thanks for your patience.

Edit: It's in French, but it's in English too.

Last edited by Cedvano; 4th January 2014 at 11:14.
Cedvano is offline   Reply With Quote
Old 4th January 2014, 12:17   #450  |  Link
colinhunt
Registered User
 
Join Date: Dec 2002
Posts: 1,022
Quote:
Originally Posted by Cedvano View Post
Here the next release of FRIMTrancode GUI
Looking forward to it.
colinhunt is offline   Reply With Quote
Old 4th January 2014, 12:56   #451  |  Link
nunub
Registered User
 
Join Date: Oct 2006
Posts: 44
Quote:
Originally Posted by Cedvano View Post


Here the next release of FRIMTrancode GUI
I change the name by .::3D Encode::..

I make some changes and put the next FRIM 1.19

I don't forget but I have a [BEEP] work. ;-)

Thanks for your patience.

Edit: It's in French, but it's in English too.
Its mouth watering.
nunub is offline   Reply With Quote
Old 13th January 2014, 20:05   #452  |  Link
HWK
Registered User
 
HWK's Avatar
 
Join Date: Feb 2009
Location: Toronto, Ontario, Canada
Posts: 1,059
@Videofan3d,

About few months back I requested a feature to add I frame on demand. Any update on it?

[Disclaimer, I requested this feature so Jdobbs can add chapter support for his program]
__________________
If you fail to plan; you plan to fail, would you not agree? Think about it.

Last edited by HWK; 13th January 2014 at 20:49.
HWK is offline   Reply With Quote
Old 13th January 2014, 20:06   #453  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 321
FRIM version 1.20

FRIM 1.20 is available:

FRIM Decoder 1.20
- output to standard output (stdout) added

FRIM Encoder 1.20
- input from standard input (stdin) added

See examples in documentation.
videofan3d is offline   Reply With Quote
Old 13th January 2014, 20:06   #454  |  Link
Cedvano
Registered User
 
Join Date: Jul 2009
Posts: 244
thanks Videofan3d
Cedvano is offline   Reply With Quote
Old 13th January 2014, 21:01   #455  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by videofan3d View Post
FRIM 1.20 is available:

FRIM Decoder 1.20
- output to standard output (stdout) added

FRIM Encoder 1.20
- input from standard input (stdin) added

See examples in documentation.
Cool, cool, cool.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 13th January 2014, 21:37   #456  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Thanks videofan3d. FrimDecode into x264 now up and running
Sharc is offline   Reply With Quote
Old 13th January 2014, 22:22   #457  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
So what does "FRIM" stand for in "FRIMEncode"? Sorry, but it's just something I can't help asking.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 13th January 2014, 22:34   #458  |  Link
omegaman7
Registered User
 
omegaman7's Avatar
 
Join Date: Jan 2010
Location: USA, Oregon
Posts: 791
Quote:
Originally Posted by jdobbs View Post
So what does "FRIM" stand for in "FRIMEncode"? Sorry, but it's just something I can't help asking.
Wondering the same thing myself lol
__________________
Only one rooster, need be in the hen house...
omegaman7 is offline   Reply With Quote
Old 13th January 2014, 22:46   #459  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 321
Quote:
Originally Posted by jdobbs View Post
So what does "FRIM" stand for in "FRIMEncode"? Sorry, but it's just something I can't help asking.
You can "decipher" it as "FRee Intel Media"
Or maybe a bit self-praise "FRank & Intel Media" (- my name is Frank!) ))))

But rather simply, I was looking for some single-syllabic name with IM in it (as Intel Media)
videofan3d is offline   Reply With Quote
Old 13th January 2014, 22:56   #460  |  Link
omegaman7
Registered User
 
omegaman7's Avatar
 
Join Date: Jan 2010
Location: USA, Oregon
Posts: 791
Ah, I wondered about "FRee". Thanks Frank
__________________
Only one rooster, need be in the hen house...
omegaman7 is offline   Reply With Quote
Reply

Tags
encoders, mvc

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 07:25.


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