![]() |
|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#41
|
||||
|
||||
![]()
Warning: This STV may cause shows that are recorded to be deleted right away and NOT added to your Sage Recordings list. I noticed this over the last couple of days. Can't find a patten for it yet nor can I confirm it is something with the STV but It seems to be new behavior.
|
#42
|
|||
|
|||
Re: Warning!
Quote:
![]() <Delete_Source_On_Success> <Value>False</Value> <Enabled>True</Enabled> </Delete_Source_On_Success> Enabling the individual properties will allow you to override what's in the recording's xml file. MlbDude...do you have all your shows set to delete from source or just some? Maybe I coded a condition wrong....I'll check it out.
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70 250 GB 7200 RPM HD = $160 512 MB Kingston DDR 333 = $80 Hauppage 350 Bundle = $220 SageTv = PriceLess |
#43
|
||||
|
||||
mlbdude, you mentioned we need to configure the properties.xml file.
"<Pickup_Location>m:\compress_jobs</Pickup_Location>" -what exactly to we need to configure in this line...the drive letter or pickup_location (is this the root directory or something else) sorry this is a really bad question but I would love to try this new feature out. I'm not all too familiar with XML but I should be able to edit the file if I can find out what to change. Thanks for both your efforts, JUC
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv Client: MVP Extender running SageMC |
#44
|
||||
|
||||
Re: Re: Warning!
Quote:
|
#45
|
||||
|
||||
Quote:
One for Job dump location, the other for compressed target root. |
#46
|
||||
|
||||
Also, If someone can post an example of what their configured pickup location line to that would help me out alot. As mentioned previously I know very little about XML and don't know whether to include the <>'s and _'s (I'm thinking the _'s are for spaces).
-lets try an example. If my dump location is M:\Videos\SageCompress would I enter "<M:\Videos\SageCompress>m:\compress_jobs</M:\videos\sagecompress>" -Thanks, I don't expect a tutorial on XML but any help would be appreciated. This feature will finish out my needs and requests for Sage and I would LOVE to get it going. JUC
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv Client: MVP Extender running SageMC |
#47
|
|||
|
|||
Quote:
The correct way would be: "<Pickup_Location>m:\videos\sagecompress</Pickup_Location>" |
#48
|
||||
|
||||
Ah...wonderful. Thanks a bunch!!
JUC
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv Client: MVP Extender running SageMC |
#49
|
|||
|
|||
Findings so far
MlbDude: I have not seen any errant deletions you warned about. So far everything is working as I would expect.
I am a little disappointed with the compression ratio. (This perhaps is from my expectations based on DivX). I am seeing about a 50% reduction in size. Is there some way to better this? Will we be able to choose MP3 for the Audio? It would seem there would be some additional size savings there.. But all that aside all is working as I would expect it. I am going to configure a couple favorites to use the autocompression and deletion when done. Will report back on that. |
#50
|
||||
|
||||
Re: Findings so far
Quote:
There is a bug that won't let you change the audio bitrate but try setting the video bitrate lower. I am hoping the deletions are just a coincidence, but I wanted to warn you all just in case ![]() Last edited by mlbdude; 07-19-2004 at 06:50 AM. |
#51
|
|||
|
|||
Quote:
http://www.javaworld.com/javaworld/j...229-traps.html |
#52
|
|||
|
|||
Quote:
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70 250 GB 7200 RPM HD = $160 512 MB Kingston DDR 333 = $80 Hauppage 350 Bundle = $220 SageTv = PriceLess |
#53
|
||||
|
||||
Ok, I have the STV installed and I know its the correct one as it has the compression options I also have ffmpeg_convert in the sage tv folder. I went and changed the convert.properties file to point to java at 'C:\program files\java\j2re1.4.2_of\bin\java.exe' with everything else in it not touched. The Pickup location in properties.xml has been set to E:\
However im not seeing where you can set the location for where the STV will create the xml job or even the auto compress option. Also if I try to run ffmpeg_convert manually you see the program enter the taskbar for a second then it just exits. What exactly am I doing wrong? |
#54
|
|||
|
|||
I've added a new flag to the properties.xml along with a new var to the code:
//default value is the original program String starting_program = "ffmpeg_convert.exe"; Add to the properties.xml the following element above the </properties> tag for example: <Starting_Program> <Value>cmd.exe /c start /wait /low</Value> <Enabled>True</Enabled> </Starting_Program> </properties> If enabled is True, then the program will use whatever is in <Value> in place of "starting_program = "ffmpeg_convert.exe";". Otherwise, the program will default to what is currently being used.... ![]() The start command sets the priority better than my api attempt does in ffmpeg_pickup. You have to use "cmd.exe /c" to get to the command prompt from java and then you can use the "start /wait /low" command. It is VERY IMPORTANT that you use the /wait command as right now the program waits for the process to finish before going on to the next recording to compress. I'm attaching a new version of the ffmpegProcess.class as well as the source and a sample of my properties.xml. BTW: Here are the formats available for ffmpeg: Output audio/video file formats: mpeg vcd vob mpegts crc image imagepipe ac3 h263 m4v h264 mpeg1video mjpeg s16le s16be u16le u16be s8 u8 mulaw alaw rawvideo null mp2 rm asf asf_stream avi wav swf au gif mov 3gp mp4 mpjpeg singlejpeg dv flvyuv4mpegpipe nut Input audio/video file formats: mpeg mpegts image imagepipe ac3 h263 m4v h264 mpegvideo mjpeg s16le s16be u16le u16be s8 u8 mulaw alaw rawvideo mp3 rm asf avi wav swf au gif mov dv 4xm flv psxstr RoQ ipmovie wc3movie yuv4mpegpipe nut Output image formats: pbm pgm ppm pam pgmyuv yuv jpeg gif Input image formats: pnm pam pgmyuv yuv jpeg gif Codecs: Encoders: ac3 mp2 mpeg1video mpeg2video h263 h263p flv rv10 mpeg4 msmpeg4v1 msmpeg4v2 msmpeg4 wmv1 wmv2 mjpeg ljpeg huffyuv asv1 asv2 ffv1 rawvideo pcm_s16le pcm_s16be pcm_u16le pcm_u16be pcm_s8 pcm_u8 pcm_alaw pcm_mulaw adpcm_ima_qt adpcm_ima_wav adpcm_ima_dk3 adpcm_ima_dk4 adpcm_ms adpcm_4xm Decoders: rawvideo h263 mpeg4 msmpeg4v1 msmpeg4v2 msmpeg4 wmv1 wmv2 h263i flv rv10 svq1 svq3 wmav1 wmav2 indeo3 mpeg1video mpeg2video dvvideo dvaudio mjpeg mj pegb mp2 mp3 mace3 mace6 huffyuv ffv1 cyuv h264 vp3 asv1 asv2 vcr1 cljr 4xm mdec roqvideo interplayvideo xan_wc3 real_144 real_288 roq_dpcm interplay_dpcm xan_d pcm pcm_s16le pcm_s16be pcm_u16le pcm_u16be pcm_s8 pcm_u8 pcm_alaw pcm_mulaw adp cm_ima_qt adpcm_ima_wav adpcm_ima_dk3 adpcm_ima_dk4 adpcm_ms adpcm_4xm Supported file protocols: file: pipe: Frame size, frame rate abbreviations: ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif Motion estimation methods: zero(fastest) full(slowest) log phods epzs(default) x1 -------------------- Also thanks again to gbutters for the "cmd.exe" in java information... ![]() Edit Updated files 7/19/2004 10:55AM (-7 GMT)
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70 250 GB 7200 RPM HD = $160 512 MB Kingston DDR 333 = $80 Hauppage 350 Bundle = $220 SageTv = PriceLess Last edited by Alex0230; 07-19-2004 at 11:55 AM. |
#55
|
||||
|
||||
okay, I am having trouble getting the compression to start. Sage outputs a valid XML file for me to where I set the dump file c:\ . I edited the properties.xml file to note that c:\ is where it will pickup. Java is also directed into the right place. I edited sages properties and specified the root folder as well. I tell sage to compress, it outputs the xml file but then nothing happens. I am fairly certain it is not compressing in the background because I am getting no CPU usage either.
thanks JUC
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv Client: MVP Extender running SageMC |
#56
|
||||
|
||||
Quote:
|
#57
|
||||
|
||||
I think that's the problem. There is no log. I put the compressor in the sagetv folder. My Java path is set to c:\program files\java\j2rel.4.2_04\bin\java.exe
which should be correct. My compressor properties.xml file is copied below: Let me know if you need any more info. Thanks <?xml version="1.0" encoding="UTF-8" ?> - <properties> - <!-- Use . to specify the application path --> <Pickup_Location>c:\</Pickup_Location> <Pickup_File_Extension>.xml</Pickup_File_Extension> <Create_MY_File>True</Create_MY_File> <Activity_Log>.\activity_log.xml</Activity_Log> - <Exe_Command> - <!-- The @symbols are for dynamic settings --> - <!-- DO NOT CHANGE THE CASE OF THE SYMBOLS, ie @INPUT does not equals @input --> - <!-- Original Value <Value>ffmpeg -i @INPUT -deinterlace -y -f @OUTPUT_FORMAT -vcodec @VCODEC -b @VIDEO_RATE -g 300 -bf 2 -acodec @ACODEC -ab @AUDIO_RATE @OUTPUT_FORMAT</Value> /Original Value --> <Value>ffmpeg -i @INPUT -deinterlace -y -f @OUTPUT_FORMAT -vcodec @VCODEC -b @VIDEO_RATE -g 300 -bf 2 -acodec @ACODEC -ab @AUDIO_RATE @OUTPUT_FORMAT</Value> <Enabled>False</Enabled> </Exe_Command> - <Output_Format> <Value>avi</Value> <Enabled>False</Enabled> </Output_Format> - <VCodec> <Value>mpeg4</Value> <Enabled>False</Enabled> </VCodec> - <ACodec> <Value>mp2</Value> <Enabled>False</Enabled> </ACodec> - <Video_Rate> <Value>600</Value> <Enabled>False</Enabled> </Video_Rate> - <Audio_Rate> <Value>128</Value> <Enabled>False</Enabled> </Audio_Rate> - <Library_Path> <Value>.\Library</Value> <Enabled>False</Enabled> </Library_Path> - <Delete_Source_On_Success> <Value>False</Value> <Enabled>False</Enabled> </Delete_Source_On_Success> - <Starting_Program> <Value>cmd.exe /c start /wait /low</Value> <Enabled>True</Enabled> </Starting_Program> </properties>
__________________
Server: Athlon 2000XP; 1GB Kingston Ram; 250GB Seagate; 160GB Seagate; 160GB Western Digital; Lite-on DVD player; Hauppauge Rosyln; Hauppauge PVR-150; ATI AIW 7500; Actisys 200L; running stock v5 .stv Client: MVP Extender running SageMC |
#58
|
|||
|
|||
I made the fixes here:
http://forums.freytechnologies.com/f...0171#post50171 There were some unhandled exceptions causing the problem....the problem really was not designed to be run from "C:\" directly or any folder that may have conflicting xml files. I HIGHLY recommend creating a folder called "pickup" or something where you can dump the xml files too so that the program will be assured that only the proper xml files will be in that folder. This will avoid issue with a possible infinite cycle because the program rechecks for xml files that are still in the folder after each execution. Also, if you use the favorites compression option...additional folders are created for keep track of the favorites.... This may be confusing if you visit your C: drive and see all those folders and start deleting them.
__________________
ECS K7VTA3 + AthlonXP2400XP+ = $70 250 GB 7200 RPM HD = $160 512 MB Kingston DDR 333 = $80 Hauppage 350 Bundle = $220 SageTv = PriceLess |
#59
|
|||
|
|||
FFMPEG Quality
Should we open another thread for this?
I have now encoded/compressed 8 files. and seen some blockiness when there is fast action/transitions in serveral cartoons (South Park, Sealab 2021). Are there any FFMPEG experts that can help get the quality of the compressions working? Should cartoons, fastaction/sports/, and other categories have different profiles for compression to obtain good quality? |
#60
|
||||
|
||||
Any single pass MPEG4 encoding will have that. I think ffmpeg may support two pass encoding though which would help. It is just a matter of having enough bits to render the frame properly. I would not expect the quality to match the source.
Something else that will help is we will be adding output size to the configuration. If you output to something like 512x??? the bits will go farther. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|