NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 384 385 386 387 388 … 433 Next »
Divx/xvid/ etc Conversion

Divx/xvid/ etc Conversion
mark_lt
Offline

Member

Posts: 53
Threads: 10
Joined: Aug 2008
#11
2011-01-18, 07:29 AM
OTAjunkie Wrote:I need this feature as well, however my format of choice is "3GP" for my Samsung phone.

would it be possible to explain this to me in depth as I'm almost dim?

Thanks

This should probably go into a new thread, but I'm not an expert of FFMPEG either. The fact that I am using qscale to control quality converting to mp4 gives that away (trust meSmile). I would suggest downloading WinFF, which may have a pre-set which works for your phone. Once you get a conversion working there, then use the same command for NPVR.
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#12
2011-01-18, 09:31 PM
Hey Mark,

Sorry to be an idiot - want to make sure i'm doing this correctly. So I went in my NPVR folder and didn't see a scripts folder there. I searched for the folder on C and found one in C:\Users\Public\NPVR\Scripts

No postprocessing.bat in there so I created one in a txt file and saved it there (naming it .bat). Is this all I need to do or is there anything in npvr I need to set?

Thanks

Andy



mark_lt Wrote:Just use the postprocessing.bat in the scripts folder.

The text for mine (I convert to MP4 for the very same reason - train - London)

REM Encode to mp4 changing file extension
"C:\Documents and Settings\All Users\Application Data\NPVR\Scripts\ffmpeg.exe" -y -i %1 -f mp4 -vcodec mpeg4 -deinterlace -r 25 -aspect 16:9 -acodec aac -qscale 6 -ar 48000 -async 489000 -ac 2 "%~dpn1".mp4

REM Delete original TS
del %1


Previous versions of NPVR meant I had issues with the updating of recordings when the file extension had changed, although I think mine was an isolated problem. In 1.5.36 I have had no issues. (Thanks Sub).
mark_lt
Offline

Member

Posts: 53
Threads: 10
Joined: Aug 2008
#13
2011-01-19, 09:13 PM
Compared to me no one is an idiot Smile. Yes, stick it in the scripts and rename it as you have done. I think it is in the wiki somewhere, but there are a list of batch files that NPVR looks for, and runs if they exist.

The way I test it is by recording a very short programme. If you go into the video section and look for the file, you will see that soon after recording ends, a second file is created. Just remember, if you cancel a recording, it doesn't run this batch file (please someone correct me if this has changed).
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#14
2011-01-20, 12:34 AM
Thanks Mark - will give it a whirl Big Grin
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#15
2011-01-20, 02:57 AM (This post was last modified: 2011-01-20, 03:01 AM by FNM.)
Ok - I recorded ok but no conversion. I then tried to run the bat file and nout.. I opened up command prompt and navigated to the bat file and ran it that was getting a couple of error messages (hopefully just me doing something silly)

Any ideas? - I had to run this as admin to get it to 'work' not sure if it picked it up. This is the command prompt output:

Quote:C:\Users\Public\NPVR\Scripts>postprocessing.bat

C:\Users\Public\NPVR\Scripts>REM Encode to mp4 changing file extension

C:\Users\Public\NPVR\Scripts>"C:\Users\Public\NPVR\Scripts\ffmpeg.exe" -y -i -f
mp4 -vcodec mpeg4 -deinterlace -r 25 -aspect 16:9 -acodec aac -qscale 6 -ar 480
00 -async 489000 -ac 2 "".mp4
FFmpeg version SVN-r18639, Copyright © 2000-2009 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-postproc --enable-gpl --enable-
libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis
--enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --enable
-avisynth --enable-pthreads
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.27. 0 / 52.27. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 21 2009 13:44:38, gcc: 4.2.4 (TDM-1 for MinGW)
-f: no such file or directory

C:\Users\Public\NPVR\Scripts>REM Delete original TS

C:\Users\Public\NPVR\Scripts>del
The syntax of the command is incorrect.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#16
2011-01-20, 03:04 AM
FNM Wrote:Ok - I recorded ok but no conversion. I then tried to run the bat file and nout.. I opened up command prompt and navigated to the bat file and ran it that was getting a couple of error messages (hopefully just me doing something silly)

Any ideas? - I had to run this as admin to get it to 'work' not sure if it picked it up. This is the command prompt output:

When you run from the command line you need to include the file name you want to convert...i.e. C:\Users\Public\NPVR\Scripts>postprocessing.bat c:\where-ever-you-record-to\recording-to-convert.ts

When the batch file is run by NPVR it passes in the location of the file with the file to convert....that is what the %1 is in the script....the 1st parameter passed into the script. Hope this helps.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#17
2011-01-20, 03:49 AM
Thanks I need to have a mess with it tomorrow - it's at least finding the file now. Here's the latest but a question - to run this automatically all my recordings go to c:\temp - can I put that in there and have it peruse the dir?

Quote:C:\Users\Public\NPVR\Scripts>"C:\Users\Public\NPVR\Scripts\ffmpeg.exe" c:\temp\F
amilyGuy\FamilyGuy.ts -y -i -f mp4 -vcodec mpeg4 -deinterlace -r 25 -aspect 16:
9 -acodec aac -qscale 6 -ar 48000 -async 489000 -ac 2 "".mp4
FFmpeg version SVN-r18639, Copyright © 2000-2009 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-postproc --enable-gpl --enable-
libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis
--enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --enable
-avisynth --enable-pthreads
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.27. 0 / 52.27. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 21 2009 13:44:38, gcc: 4.2.4 (TDM-1 for MinGW)
File 'c:\temp\FamilyGuy\FamilyGuy.ts' already exists. Overwrite ? [y/N] n
Not overwriting - exiting

C:\Users\Public\NPVR\Scripts>REM Delete original TS

C:\Users\Public\NPVR\Scripts>del
The syntax of the command is incorrect.
C:\Users\Public\NPVR\Scripts>
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#18
2011-01-21, 01:56 AM (This post was last modified: 2011-01-21, 02:14 AM by FNM.)
I tried for over an hour (honest) - need some help.

postprocessing.bat is in C:\Users\Public\NPVR\Scripts along with ffmpg.exe
my recording test file (a .ts) is in c:\temp\itv and is called itv.ts

This is what i'm running in the command prompt (I REM'd the del as all it was doing was deleting)

Quote:C:\Users\Public\NPVR\Scripts>postprocessing.bat c:\temp\itv\itv.ts

This is the postprocessing.bat contents:
Quote:REM Encode to mp4 changing file extensio
"C:\Documents and Settings\All Users\Application Data\NPVR\Scripts\ffmpeg.exe" y -i %1 -f mp4 -vcodec mpeg4 -deinterlace -r 25 -aspect 16:9 -acodec aac -qscale 6 -ar 48000 -async 489000 -ac 2 "%~dpn1.mp4"

REM Delete original TS
REM del %1

..and this is what I get as a result in cmd prompt:

Quote:C:\Users\Public\NPVR\Scripts>"C:\Documents and Settings\All Users\Application Da
ta\NPVR\Scripts\ffmpeg.exe" y -i c:\temp\itv\itv.ts -f mp4 -vcodec mpeg4 -deinterlac
e -r 25 -aspect 16:9 -acodec aac -qscale 6 -ar 48000 -async 489000 -ac 2 "c:\Tem
p\itv\itv.mp4"
The system cannot find the path specified.

C:\Users\Public\NPVR\Scripts>REM Delete original TS

any ideas what i'm doing wrong? A quick record did nothing naturally and all I can do running it in the cmd prompt is a delete of the file (why I REM'd it). Helppppppp
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,624
Threads: 148
Joined: Mar 2006
#19
2011-01-21, 03:51 AM
Code:
C:\Users\Public\NPVR\Scripts>"C:\Documents and Settings\All Users\Application Da
ta\NPVR\Scripts\ffmpeg.exe" y -i c:\temp\itv\itv.ts -f mp4 -vcodec mpeg4 -deinterlac
e -r 25 -aspect 16:9 -acodec aac -qscale 6 -ar 48000 -async 489000 -ac 2 "c:\Tem
p\itv\itv.mp4"
The system cannot find the path specified.

C:\Users\Public\NPVR\Scripts>REM Delete original TS

It looks to me like you may have a path problem in your batch file as you are calling it from
Code:
"C:\Users\Public\NPVR\Scripts"
and yest you are saying ffmpeg.exe is in
Code:
"C:\Documents and Settings\All Users\Application Data\NPVR\Scripts\ffmpeg.exe"
do you have a "C:\Documents and Settings\All Users\Application Data\NPVR\Scripts\ directory?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,794
Threads: 954
Joined: May 2006
#20
2011-01-21, 05:04 AM
I think it should be "C:\Program Files\NPVR\Other\ffmpeg.exe" or "C:\Program Files (x86)\NPVR\Other\ffmpeg.exe"

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  File Conversion MP4/MKV like to MPG via ffmpeg - need HELP puck64 12 4,189 2017-08-01, 06:21 AM
Last Post: p37307
  Media Center file conversion to Next PVR format peckiro 8 3,614 2016-07-23, 06:08 AM
Last Post: EdBrady
  Scheduling File Conversion taz 7 2,530 2011-12-19, 07:09 AM
Last Post: Reddwarf
  Divx/XVid playback stuttering BlAdEs 18 6,347 2011-12-15, 03:08 PM
Last Post: gEd

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

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

Linear Mode
Threaded Mode