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
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#21
2011-01-21, 04:55 PM
It was me being stupid, I butchered it so much and re-copied it.. anyway long story was that I didn't have the dir. So now it's doing stuff but saying it can't find an AAC encoder. I'm guessing i'm missing that - is there a pack I should install?

output from cmd prompt:

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

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 C:\
Temp\ITV\ITV.ts -f mp4 -vcodec mpeg4 -deinterlace -r 25 -aspect 16:9 -acodec aac
-qscale 6 -ar 48000 -async 489000 -ac 2 "C:\Temp\ITV\ITV".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)

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 25.00 (25/1)
Input #0, mpegts, from 'C:\Temp\ITV\ITV.ts':
Duration: 00:32:51.79, start: 14351.318556, bitrate: 2971 kb/s
Program 8258
Stream #0.0[0x208]: Video: mpeg2video, yuv420p, 704x576 [PAR 16:11 DAR 16:9]
, 15000 kb/s, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x209](eng): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.2[0x20a](eng): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
Stream #0.3[0x20b](eng): Subtitle: dvbsub
Unknown encoder 'aac'
mark_lt
Offline

Member

Posts: 53
Threads: 10
Joined: Aug 2008
#22
2011-01-21, 06:24 PM
Different versions of ffmpeg use different terms for the codecs. I haven't managed to figure out if it is related to the version of ffmpeg or the codecs you have installed with it. Instead of aac, try libfaac. I have seen mention that aac was striped from some builds of ffmpeg but I haven't noticed it.
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#23
2011-01-21, 06:34 PM
Nice one Mark! It worked. Big Grin

So testing it via cmd prompt - it's whirring away. Is the next step to make a small recording and test the auto functionality? It should do it without running anything?
mark_lt
Offline

Member

Posts: 53
Threads: 10
Joined: Aug 2008
#24
2011-01-21, 07:17 PM
It should. Worth saying a bit about some of the settings I use. The -async 489000 bit I put in there as some of my DVB signals aren't great, which means that when you transcode the audio and video go out of sync. What the async does is makes everyone talk like chipmunks for a few seconds and brings it back into sync. If you don't have that issue, you can delete it, as it should speed up the transcode.

It is also worth fiddling around with the qscale. A higher number means a smaller file size (normally) but lower quality. I find anything below 10 is really poor, and normally between 5 and 7 works for me, personal preference really. And finally, if you have dual processor add the command -threads 2 which should speed up transcoding, but apparently at the cost of quality slightly, although I have never noticed a difference.

Endless tweaks but I am getting ahead of myself, let us know if it works, which it should. And also apologies for the issue with where FFmpeg was located earlier. I have committed a sin by sticking it in the scripts folder! Proper file management is something I never been very good at.
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#25
2011-01-21, 10:22 PM
Thanks much! Will mess around - might even write the wiki for this if I get time!
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#26
2011-01-24, 04:01 AM
me again!

The script is working fine in cmd prompt but no automation. Do I need to set npvr / task mgr to look for a default dir or something?

Thx!
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#27
2011-01-24, 06:06 AM (This post was last modified: 2011-01-24, 06:14 AM by johnsonx42.)
it can be a bit of a mystery what directory you'll be in when NPVR launches a batch file. your best bet is to start any batch with a "cd" command so you know where you're starting from. since it looks like you were testing from the scripts directory and it worked there, then "cd \users\public\npvr\scripts" should suffice.

if that doesn't do it, then are you sure you have your script in the right place? the nrecord.log shows where it's looking for the scripts, and whether it found yours; look for a message about postprocessing.bat when a recording ends.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mark_lt
Offline

Member

Posts: 53
Threads: 10
Joined: Aug 2008
#28
2011-01-24, 06:50 AM
As per Johnsonx42, and remember to change the input file name in the script back to %1. Let us know how you get on.
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#29
2011-01-24, 02:00 PM
johnsonx42 Wrote:nrecord.log shows where it's looking for the scripts, and whether it found yours; look for a message about postprocessing.bat when a recording ends.

I have a feeling that'll let me know! Thanks again guys, will set some more recordings going and report back. Cool
FNM
Offline

Member

Posts: 53
Threads: 6
Joined: Nov 2008
#30
2011-01-25, 02:33 AM
Had a look tonight and the nrecord is pointing to the correct dir which holds ffmpeg and postprocessing.bat

Oddly enough though there's a 'NO' in front of the script line - would that do it?

Also Mark - I dl'd one of the mp4's tonight and the voice sync was off by a second or so (original perfect). Should I mess with the async number or the qscale?

0.217 [DEBUG][7] DigitalRecorderDVBT::Tune@1
2011-01-23 21:00:00.217 [DEBUG][7] DigitalRecorderDVBT::Tune@2
2011-01-23 21:00:00.217 [DEBUG][7] DigitalRecorderDVBT::Tune@3
2011-01-23 21:00:00.430 [DEBUG][7] DigitalRecorderDVBT::Tune@4
2011-01-23 21:00:00.600 [DEBUG][7] DigitalRecorderDVBT::Tune@5
2011-01-23 21:00:00.600 [DEBUG][7] DigitalRecorderDVBT::Tune@6
2011-01-23 21:00:02.449 [DEBUG][7] DigitalRecorderDVBT::Tune@7
2011-01-23 21:00:02.449 [DEBUG][7] Calling LockChannel()
2011-01-23 21:00:02.623 [DEBUG][7] locked=1, present=1, strength=-8000, quality=80 (took 172ms to check)
2011-01-23 21:00:02.623 [DEBUG][7] DigitalRecorderDVBT::Tune@8
2011-01-23 21:00:02.755 [INFO][7] DigitalRecorder.StartStream() allocated handle: 0x8
2011-01-23 21:00:03.223 [DEBUG][7] Temp at 23/01/2011 21:00:13
2011-01-23 21:00:03.223 [DEBUG][7] Started recording (938:C:\Temp\Justice - Fairness and the Big Society Debate\Justice - Fairness and the Big Society Debate_20110123_21002200.ts)
2011-01-23 21:00:03.330 [DEBUG][7] No C:\Users\Public\NPVR\Scripts\ParallelProcessing.bat
2011-01-23 21:03:00.220 [DEBUG][7] Stopping recording (970). Past end time of recording.
2011-01-23 21:03:00.220 [INFO][7] DigitalRecorder.StopStream() handle: 7
2011-01-23 21:03:00.865 [DEBUG][7] No C:\Users\Public\NPVR\Scripts\PostProcessing.bat
« 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,426 2017-08-01, 06:21 AM
Last Post: p37307
  Media Center file conversion to Next PVR format peckiro 8 3,722 2016-07-23, 06:08 AM
Last Post: EdBrady
  Scheduling File Conversion taz 7 2,654 2011-12-19, 07:09 AM
Last Post: Reddwarf
  Divx/XVid playback stuttering BlAdEs 18 6,563 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