NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT v
« Previous 1 … 63 64 65 66 67 115 Next »
Maintaining aspect ratio with ffmpeg transcoding

 
  • 0 Vote(s) - 0 Average
Maintaining aspect ratio with ffmpeg transcoding
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#41
2006-06-08, 12:07 PM
Gotta couple of questions...

If I end up creating an mpeg that's 720x480 then the MVP should play it without aspect ratio adjustment?

I thought I read somewhere that you could throw other 4x3 ratio files at the media mvp, without too much trouble... so 360x240 should work...

But when I choose ffmpeg to use 360x240 it auto adjusts it to 368x240

I don't understand...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#42
2006-06-08, 03:33 PM
So close I can almost smell it.

OK The tip on requiring more processor was a good one. I played with bitrates and realized that 1000 looked pretty good and was much faster than 4000.

And then, I was able to start an AVI. It started the Trans2MVP.bat and then there was a half a screen of video. Then I stopped it. Magically there was the same filename, but with an MPG extension (that's in my batch file). The batch file was still in the middle of the transcode, but I could click on the mpg in progress and WOW, I had the video playing, centered, wide screen and smooth.

I was able to do it over and over again. I would start the avi, it would be squished, stopped it, and then started the MPG in progress. Worked perfectly.

Then something weird happened. Now I select the avi, it crashes the MVP server app, the mvp resets... Meanwhile, the Trans2MVP is running merrily away.

When the MVP finally locks in, I can start the MPG and it's perfect again.

My question is, what happened. I would be happy to start, stop and start the MPG. it would be a fine, quick and dirty workaround. But now there's a couple of minute downtime as the mvp locks in again.

Is there something in the logs?

[ATTACHMENT NOT FOUND]
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#43
2006-06-08, 05:42 PM
From the logs.
Quote:08/06/2006 9:24:28 AM.093 ERROR [10] Media stream thread caught exception: Could not find file 'C:\TV\Recorded\MVP000DFE08D22E.mpg'.
08/06/2006 9:24:28 AM.343 ERROR [10] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at GBPVR.xbb1566157f5f8b1f.xf9d81bb81f7c2ff0()
drain
Offline

Member

Posts: 91
Threads: 12
Joined: Jun 2005
#44
2006-06-08, 08:45 PM
zehd Wrote:I was really thinking that a 2.0ghz machine should be ok..
My Celeron 2.66 transcodes to 720x576 with CPU to spare.

zehd Wrote:PS. I'm thinking of a way to kill the previous MPG file. My idea to kill the previously created MPG files is: In the Trans2MVP, store the output filename to an external text file...
I've lost track of where things are up to, but have you tried running ffmpeg directly instead of using the "start" command? I seem to recall when I tried it this way gbpvr was able to kill the task when I pressed stop on the remote. Perhaps there is another way to set the task priority without creating a new process (as I think "start" does).
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#45
2006-06-09, 06:04 AM
sub Wrote:Media stream thread caught exception: Could not find file 'C:\TV\Recorded\MVP000DFE08D22E.mpg'.

I noticed this file being created when GB-PVR calls ffmpeg directly.

Am I correct that if I use Trans2MVP.bat, then I must also set the Output file path to be based on the MVPs Mac address and located in the recording directory?

I originally thought that GB-PVR will use whatever output file that is created from Trans2MVP.bat

That would certainly be easy - for one MVP Mac address. Hard code the mac into the batch file.

But what if a person has two... If GBPVR would send a parameter to the Trans2MVP that would say which Mac is calling the batch...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#46
2006-06-09, 06:23 AM
drain Wrote:My Celeron 2.66 transcodes to 720x576 with CPU to spare.


I've lost track of where things are up to, but have you tried running ffmpeg directly instead of using the "start" command? I seem to recall when I tried it this way gbpvr was able to kill the task when I pressed stop on the remote. Perhaps there is another way to set the task priority without creating a new process (as I think "start" does).


No kidding, lost track... Big Grin

Anyway, seems a few of us have been bastardizing your batch file.... I'm just finalizing something that is starting to work great...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#47
2006-06-09, 07:00 AM
I noticed sub saying he's going on holiday. (well deserved) and we should fend for ourselves...

I I got to thinking that maybe already passes two veriables to Trans2MVP.bat.

%1 a file to be transcoded
%2 the filespec for the output file, it is expecting to actually display.

Can anyone confirm this?

Can someone add an: echo %2 in Trans2MVP.bat and tell me what it says...?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#48
2006-06-09, 03:24 PM
zehd Wrote:%1 a file to be transcoded
%2 the filespec for the output file, it is expecting to actually display.
Can someone add an: echo %2 in Trans2MVP.bat and tell me what it says...?
correct, these are just the parameters that GBPVR uses to call trans2mvp.bat. In the logfile I added to my trans2mvp.bat, I get this from echo %2:
"J:\TV\REC\MVP000DFE0072EC.mpg"
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#49
2006-06-09, 03:31 PM
actually, the most basic trans2mvp.bat you could make is just 1 line:
Code:
C:\Progra~1\devnz\gbpvr\Thirdp~1\FFmpeg\ffmpeg.exe -y -i %1 -b 2400 -ac 2 -ab 224 -s 352x288 -f svcd  %2
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#50
2006-06-09, 05:51 PM
cakes Wrote:correct, these are just the parameters that GBPVR uses to call trans2mvp.bat. In the logfile I added to my trans2mvp.bat, I get this from echo %2:
"J:\TV\REC\MVP000DFE0072EC.mpg"

Thanks Cakes...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 3 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  MVP transcoding? dinki 12 9,308 2014-02-03, 09:35 PM
Last Post: mvallevand
  Change FFMPEG commandline Astraeus 5 3,493 2012-01-22, 06:49 PM
Last Post: mvallevand
  LiveTV & ffmpeg MVP playback stops pvruser 4 3,297 2009-02-27, 10:44 PM
Last Post: Bobins
  MVP Transcoding drbenjamin 1 1,721 2008-12-01, 06:07 AM
Last Post: mvallevand
  MVP transcoding with TS Mux daneo 0 1,461 2008-11-09, 09:20 AM
Last Post: daneo
  Transcoding files times out before they begin Zato 3 2,191 2008-10-13, 04:01 AM
Last Post: Zato
  Any way to automatically save MPG output file when transcoding jonrigg68 2 2,139 2008-06-27, 04:14 PM
Last Post: HtV
  MVP TS transcoding config.xml bug. BerkA 1 1,997 2008-06-07, 11:47 AM
Last Post: sub
  Transcoding causes pc to shut down jonrigg68 5 2,530 2008-06-07, 11:04 AM
Last Post: psycik
  MVP problems (Live TV/transcoding) natty 5 2,653 2008-04-11, 06:57 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode