SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-03-2008, 11:07 AM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
Transcoding for a Zune (WMV)

I have been searching the forums for information concerning converting recordings to a Zune friendly format. I have found a few, but it's been a while since "Wade" and "Patilan" posted about transcoding for a Zune. Has anyone come up with a working solution that converts within SageMC 6.3?

What I'm really looking for is someone who has successfully modified sage.properties to add a "Zune" choice (that works) to the Video Convert options (Razr, iPod, etc.), and would be willing to share that modification.

I am trying to avoid the additional transcoding time of the Zune software from the iPod format to the Zune (WMV) format.

I am a novice user who just switched from 4 years of BTV. I don't do well with command line stuff or batch files. I have very little at-home-time to learn to use a new program to record for me while I'm out on the road overnight transporting your "Amazon.com and Ebay.com packages" to you in a timely manner! (Hence the 4 years of BTV... If it works, don't mess with it. It worked 'til the last upgrade. Now it won't even load, and their TS is MIA! Not even a reply!)

Any help would be most appreciated!
Reply With Quote
  #2  
Old 02-03-2008, 11:59 AM
gexi gexi is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 77
I'd like this capability as well. I couldn't resist the cheap price on Woot for one.
Reply With Quote
  #3  
Old 02-03-2008, 12:54 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I don't have a zune, so things can't be tested.. SageTV just uses ffmpeg for transcoding. The build in the latest RC has wmv support, so it should be easy to add a custom Zune profile. If you can point me to the Zune video specs, we can try to cobble one together.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #4  
Old 02-06-2008, 08:35 AM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
Zune Video Specs

Thanks B!

Quoted from "Wade":

Ideally, video would need to be converted to the following format. This is the only format that the Zune supports natively.

--------------------------------------------------------
Format: Windows Media Video (.wmv)
Video codec: Windows Media Video 9 (Simple, Main, and Advanced Profiles), Windows Media Video 9 Screen, Windows Media Video 9 Image Version 2, Windows Media Video 9 VCM.
Video resolution: up to 320x240 (QVGA) or 320x180 (16:9 QVGA)
Maximum video bit rate: 500 Kbps (recommended for the best balance of optimal battery life and video quality) up to 1.5 Mbps
Video peak bit rate: up to 1.5 Mbps
Complexity or profile: Main profile, VBR
Audio codec: Windows Media Audio (.wma)
Maximum audio bit rate: WMA Standard, CBR, 128 Kbps (recommended), up to 192 Kbps, Stereo, 44.1 kHz
Maximum total bit rate: 1.692 Mbps, 1.5 Mbps for peak video plus 192 Kbps for audio
--------------------------------------------------------

Captured from Zune.net FAQ's:

Format: Windows Media Video (.wmv), H.264, MPEG4 (part 2). Additionally, H.264 and MPEG4 part 2 files should be inside an m4v or mp4 container.
Video codec: WMV9 for Windows Media Video 9 (Simple and Main Profiles), AVC1 for H.264 (Baseline Profile), M4S2 for MPEG-4 (part 2, Simple Profile)
Video resolution: 320x240
Video peak bit rate: up to 1.5Mbps
Complexity or profile: Simple and Main profile for WMV9 (CBR and VBR), Baseline Profile for H.264, and Simple Profile for MPEG-4
Audio codec: Windows Media Audio (.wma) for Windows Media Video 9, AAC for H.264 and MPEG-4
Maximum audio bit rate: 128kbps
Maximum total bit rate: 1.692 Mbps
Reply With Quote
  #5  
Old 02-06-2008, 02:11 PM
maxpower's Avatar
maxpower maxpower is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 100
Quote:
Originally Posted by bcjenkins View Post
I don't have a zune, so things can't be tested.. SageTV just uses ffmpeg for transcoding. The build in the latest RC has wmv support, so it should be easy to add a custom Zune profile. If you can point me to the Zune video specs, we can try to cobble one together.

B
If you can put this together, you'd be the hero to all of us Zune users!
Reply With Quote
  #6  
Old 02-16-2008, 09:25 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I haven't tested yet, family watching TV.

Code:
transcoder/formats/Zune-Standard=f\=wmv;MCompressionDetails\=-deinterlace -pix_fmt yuv420p -g 15 -qmin 3 -maxrate 628000 -bufsize 628k -async 50;[bf\=vid;f\=wmv2;br\=500000;fps\=29.97;w\=320;h\=240;arn\=4;ard\=3;][bf\=aud;f\=wmav2;sr\=48000;ch\=2;br\=128000;]
transcoder/formats/Zune-Widescreen=f\=wmv;MCompressionDetails\=-deinterlace -pix_fmt yuv420p -g 15 -qmin 3 -maxrate 628000 -bufsize 628k -async 50;[bf\=vid;f\=wmv2;br\=500000;fps\=29.97;w\=320;h\=180;arn\=4;ard\=3;][bf\=aud;f\=wmav2;sr\=48000;ch\=2;br\=128000;]
Edit: SageTV added a workaround to the Zune limitation of the filename in 6.3.10. The above should work.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 02-29-2008 at 03:47 AM.
Reply With Quote
  #7  
Old 02-16-2008, 10:56 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
You posted while I was editing. See above.

If you want to run this from a command prompt you can run it against sagetranscoder.exe

Code:
sagetranscoder.exe -i tv.mpg -deinterlace -pix_fmt yuv420p -g 15 -qmin 3 -maxrate 628000 -bufsize 628k -async 50 -vcodec wmv2 -b 500000 -r 29.97 -s 320x240 -ar 4x3 -acodec wmav2 -ar 44100 -ac 2 -ab 128k tv.wmv
B

PS - I use the linux version, so check the spelling of the exe. Also, if you want to try a small sample throw in a -vframes 300 (about 10 secs.)
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #8  
Old 02-17-2008, 06:08 PM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
The spelling should be "sagetvtranscoder.exe" for use at a command prompt.

Just randomly recorded the last 10 minutes of a convenient show as a source file.

Did not work. Gave an "I/O Error" message. I have a screen cap of the command and response, if you need it. Let me know.
Attached Files
File Type: pdf Sage Transcoder Attempt 1.pdf (41.9 KB, 253 views)
Reply With Quote
  #9  
Old 02-20-2008, 05:28 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I updated the transcoder type from wmv to asf based on feedback from SageTV. The transcoding process no longer fails for me on standard or widescreen. Content converted was analog and HD digital with playback fine. Since I don't have a Zune I need someone to test.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #10  
Old 02-20-2008, 05:44 AM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
Same here. All is well with 6.3.9.164. But... ASF not WMV. Zune is anal-retentive in this respect. It won't even recognize ASF!

I replied back to George Oms @ Sage to update him. Let's see what happens.

At least the bug in the transcoder was fixed. I guess that's a positive step?!
__________________
Intel P4 2.26GHz | 2.0Gb | 1TB RAID | NVIDIA GeForce4 MX420 128Mb | Hauppauge PVR-250 | Hauppauge PVR-500 | Hauppauge PVR-USB2 | Hauppauge MediaMVP | XP Home SP3 | SageTV v6.5.9.204, w/ Client & PlaceShifter | Microsoft .NET Framework 3.5 SP1 | Java 1.6.0_14
Reply With Quote
  #11  
Old 02-20-2008, 06:01 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I think their software checks for valid container types and doesn't recognize wmv as a valid file. I don't know what component that logic lies in, but it needs to be updated to support the wmv container.

To be honest though this is like putting the cart before the horse. You should be able to run the command line I provided and generate a wmv file. You need to determine if the Zune even supports the ffmpeg output. It may not like WMV 8.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #12  
Old 02-23-2008, 01:21 PM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
Transcoding for Zune

Quote:
Originally Posted by bcjenkins View Post
Code:
sagetranscoder.exe -i tv.mpg -deinterlace -pix_fmt yuv420p -g 15 -qmin 3 -maxrate 628000 -bufsize 628k -async 50 -vcodec wmv2 -b 500000 -r 29.97 -s 320x240 -ar 4x3 -acodec wmav2 -ar 44100 -ac 2 -ab 128k tv.wmv
This worked PERFECTLY from the command prompt! The file literally flew from my PC to the Zune during Sync. But (don't you hate that there's alway a "but"?), how do I incorporate these settings into the SageTV interface?
__________________
Intel P4 2.26GHz | 2.0Gb | 1TB RAID | NVIDIA GeForce4 MX420 128Mb | Hauppauge PVR-250 | Hauppauge PVR-500 | Hauppauge PVR-USB2 | Hauppauge MediaMVP | XP Home SP3 | SageTV v6.5.9.204, w/ Client & PlaceShifter | Microsoft .NET Framework 3.5 SP1 | Java 1.6.0_14
Reply With Quote
  #13  
Old 02-23-2008, 01:25 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Copy that command line into the sage.properties file on the server. You can follow the example of the other, default command lines.

S
Reply With Quote
  #14  
Old 02-23-2008, 02:18 PM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
Quote:
Originally Posted by sleonard View Post
Copy that command line into the sage.properties file on the server. You can follow the example of the other, default command lines.

S
Fails immediately upon start. What next?
__________________
Intel P4 2.26GHz | 2.0Gb | 1TB RAID | NVIDIA GeForce4 MX420 128Mb | Hauppauge PVR-250 | Hauppauge PVR-500 | Hauppauge PVR-USB2 | Hauppauge MediaMVP | XP Home SP3 | SageTV v6.5.9.204, w/ Client & PlaceShifter | Microsoft .NET Framework 3.5 SP1 | Java 1.6.0_14
Reply With Quote
  #15  
Old 02-23-2008, 03:20 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
SageTV needs to add support for type wmv. The asf doen't cut it.

B

PS - The commands above are already in the right format. Except for the asf/wmv part
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 02-23-2008 at 03:22 PM.
Reply With Quote
  #16  
Old 02-27-2008, 03:46 AM
truckdriver's Avatar
truckdriver truckdriver is offline
Sage User
 
Join Date: Feb 2008
Location: Nashville
Posts: 17
Transcoding for Zune -FINALLY!!!

Alright all you Zune users, here's the short term fix! And it works! (12 for 12, just tonight alone!)

Download 6.3.9 and install.

Add the followiing transcode line to Sage.properties (courtesy of bcjenkins):

Code:
transcoder/formats/Zune-Standard=f\=asf;MCompressionDetails\=-deinterlace -pix_fmt yuv420p -g 15 -qmin 3 -maxrate 628000 -bufsize 628k -async 50;[bf\=vid;f\=wmv2;br\=500000;fps\=29.97;w\=320;h\=240;arn\=4;ard\=3;][bf\=aud;f\=wmav2;sr\=44100;ch\=2;br\=128000;]
Once conversion is complete, change the ASF extension to WMV by simply renaming the file! (Courtesy of SageTV Support Team)((You'll need to change Windows File Properties to be able to see the extension)

Sync to Zune to your heart's content!

I've been told that the next version will include this bug fix and take care of the WMV extension for us.

- Mike
__________________
Intel P4 2.26GHz | 2.0Gb | 1TB RAID | NVIDIA GeForce4 MX420 128Mb | Hauppauge PVR-250 | Hauppauge PVR-500 | Hauppauge PVR-USB2 | Hauppauge MediaMVP | XP Home SP3 | SageTV v6.5.9.204, w/ Client & PlaceShifter | Microsoft .NET Framework 3.5 SP1 | Java 1.6.0_14
Reply With Quote
  #17  
Old 02-27-2008, 04:57 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
If you want to automate this use dirmon. Watch your TV directory and when the asf file shows up (which I believe is not until it is finished) then rename it with the move command.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #18  
Old 02-27-2008, 06:46 PM
gblinckmann's Avatar
gblinckmann gblinckmann is offline
Sage Advanced User
 
Join Date: Oct 2004
Location: Albany, NY
Posts: 127
Quote:
Originally Posted by truckdriver View Post
I've been told that the next version will include this bug fix and take care of the WMV extension for us.
Yeah!!
__________________
SageTV v6.4.5 - Windows Vista Home Premium
HP m8200n, Athlon 64 X2 6000+, 3GB RAM, 3 500 GB SATA/300 7200 RPM HDD's
(2) PVR-150MCE's - (1) HVR-1800 HD ATSC/NTSC - (2) MediaMVP's - (2) STX-HD100's
Reply With Quote
  #19  
Old 02-28-2008, 12:45 PM
maxpower's Avatar
maxpower maxpower is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 100
Quote:
Originally Posted by truckdriver View Post
I've been told that the next version will include this bug fix and take care of the WMV extension for us.
I assume that "the next version" you are referencing is one that is not yet in beta? Any idea what version number this fix will be included in?
Reply With Quote
  #20  
Old 02-28-2008, 06:43 PM
maxpower's Avatar
maxpower maxpower is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 100
Quote:
Originally Posted by maxpower View Post
Any idea what version number this fix will be included in?
Just noticed in the 6.3.10 release candidate post this gem:

Quote:
4. Added support for setting the transcode file type target to be 'wmv' (this'll still create an 'ASF' file, but it'll use the .wmv file extension which is what the Zune wants)
Hooray!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transcoding avoidance ChePazzo SageTV Media Extender 1 02-02-2008 10:40 AM
V6.3.4 Auto Transcoding Issue edbmdave SageTV Customizations 15 12-12-2007 06:23 PM
problem transcoding one channel with 6.1.8 ldavis SageTV Software 1 04-10-2007 09:54 PM
Zune - transcoding video Wade SageTV Beta Test Software 10 03-05-2007 10:25 AM
Placeshifter Hardware transcoding pschweig SageTV Beta Test Software 6 03-14-2006 10:15 AM


All times are GMT -6. The time now is 03:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.