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 … 243 244 245 246 247 … 433 Next »
Transcode url / ffmpeg

Transcode url / ffmpeg
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2013-10-03, 10:03 PM (This post was last modified: 2013-10-04, 06:34 PM by bgowland.)
sub - I know you don't recommend using the /transcode url but can you explain some logic of how the ffmpeg command line args are formatted in config.xml (and how they're processed)?

This is from a web.log posted by xsirxx in this post...

http://forums.nextpvr.com/showthread.php...post464240

Code:
2013-10-03 00:10:01.818    [DEBUG][4]    Got Web Request (192.168.0.13): /transcode    channel=10&client=4c075158-b5e2-4313-8332-d3d4949094d7&resolution=768x432&bitrate=1600k
2013-10-03 00:10:02.005    [DEBUG][4]    Running: C:\Program Files (x86)\NPVR\other\ffmpeg.exe -y -v 0 -i http://127.0.0.1:8866/live?channel=10 -f mpegts -acodec libfaac -ar 48000 -ac 2 -ab 64k -s 1280x720 -vcodec libx264 -b 1600k -flags +loop -cmp +chroma -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 96k -bufsize 96k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 768:432 -g 30 -async 2  C:\Temp\live-tWTTE-DT-2736-1.ts

The config.xml <TranscodeArgs> has "-s [RESOLUTION] " which is logged here as 1280x768 so suggests you've pre-processed the stream (to find the input resolution) or simply have this as a default when running ffmpeg.

EDIT: OK, ignore the above as it appears he had edited the TranscodeArgs to replace [RESOLUTION] with fixed values.

Also as you can see from the url it's requesting "&resolution=768x432" but you're passing this to ffmpeg as the "-aspect" parameter. Admittedly those figures boil down to a 16:9 aspect ratio but I would have thought the "&resolution" request should be used for the WxH of the transcoded file.

Also is there a particular reason to use libx264 for -vcodec and libfaac for -acodec and enforce a .ts file extension for the output file?

Cheers,
Brian
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#2
2013-10-03, 10:21 PM
bgowland Wrote:Also is there a particular reason to use libx264 for -vcodec and libfaac for -acodec and enforce a .ts file extension for the output file?

That's easy (although libfaac hasn't been supported by ffmpeg for years) mpeg4 is the most common web standard and .ts is the only format NextPVR reads natively

Martin
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#3
2013-10-04, 12:38 AM
mvallevand Wrote:That's easy (although libfaac hasn't been supported by ffmpeg for years) mpeg4 is the most common web standard and .ts is the only format NextPVR reads natively

Martin
Isn't MPEG4 Divx/XviD? It is different than libx264 as far as I understand...

"I'd rather have a bottle in front of me than a frontal lobotomy"
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#4
2013-10-04, 12:46 AM
Reddwarf Wrote:Isn't MPEG4 Divx/XviD?

Kind of, but modern mp4 streaming is h264 or 3gp previously

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Live Stream Transcode hdpvr-doug8796 13 4,543 2019-10-18, 05:53 PM
Last Post: hdpvr-doug8796
  ffmpeg maxing out CPU three7s 14 3,716 2019-10-16, 05:38 PM
Last Post: markn62
  ffmpeg causing the cpu to run near 100% Brucek2839 2 1,213 2019-05-24, 01:18 AM
Last Post: mvallevand
  Transcode Ignores Config.xml Setting jeneral 5 2,141 2018-05-28, 06:10 PM
Last Post: sub
  FFMPEG - 2015 Version? BrianGGG 2 1,253 2018-02-10, 05:14 PM
Last Post: sub
  File Conversion MP4/MKV like to MPG via ffmpeg - need HELP puck64 12 4,178 2017-08-01, 06:21 AM
Last Post: p37307
  ffmpeg temp files not being deleted uspino 2 2,190 2016-05-12, 07:25 AM
Last Post: uspino
  transcode? wannabepvr 1 1,161 2014-09-08, 02:12 PM
Last Post: Lao Pan
  live tv transcode broken? ScaryBox 23 7,585 2013-03-12, 12:46 AM
Last Post: Reddwarf
  Remote Transcode Reddwarf 10 3,850 2012-09-18, 08:24 PM
Last Post: Reddwarf

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

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

Linear Mode
Threaded Mode