NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 41 42 43 44 45 … 159 Next »
Usable DivX Settings for ATSC HDTV ffmpeg

 
  • 0 Vote(s) - 0 Average
Usable DivX Settings for ATSC HDTV ffmpeg
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#1
2010-01-26, 07:07 PM
I changed some settings in the config.xml file for divx conversion that looks reasonable but still about half the size of a ts file.

Code:
<Conversion name="DivX" cmd="-y -i {SOURCE_FILE} -f avi -ab 224k -ac 2 -acodec mp3 -vcodec mpeg4 -s 1280x720 -b 4000k -vtag DIVX {DEST_FILE}" targetExtension=".avi" />

You might be able to lower the bit rate -b option more but it looks good like this.
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#2
2010-01-29, 09:33 PM
I'm working on this conversion, but the audio gets out of sync if a frame is dropped during atsc recording. Not sure how to fix it yet.
JonnyCam
Offline

Posting Freak

Posts: 1,153
Threads: 87
Joined: Feb 2006
#3
2010-01-30, 12:50 AM
run the file through TSdoctor before doing your transcode? (or any ocf the other TS timeline tools)
"Shut up brain, or I'll stab you with a Q-Tip!"

--= Win7, C2D 2.93 GHz, ASUS 9400GT Silent, 2GB Ram, Few HDD's, 3TB unRAID server, Samsung 50" 1080p Plasma via HDMI, 40" 1080i LCD via VGA =-- * PVR2000 Analog PCI / Avermedia DVB-S PCI / Hauppauge 2200 DVB/Analog * PCH GBPVR Client * *BD-E6500 w/ NPVR client*
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#4
2010-01-30, 08:07 AM
I created a 2-pass batch file for avi, this might fix the problem but at least I learned how to do it and can put the fixer in the batch file if still needed. I'll post the code when I get it all straitened out.

I got most of the info from
http://forums.nextpvr.com/showthread.php?t=41060
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#5
2010-01-30, 07:22 PM
Do you know the command line options for tsdoctor. I could not find them. What other timeline tools are available I searched around but could only find stuff for linux.

A 2 pass ffmpeg sure takes a long time, I have a quad cored running at 3.6ghz and upped the threads to 8
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,119
Threads: 957
Joined: May 2006
#6
2010-01-30, 09:34 PM
There is no command line for tsdoctor and Cypheros the author was not interested in this the last time I asked. For just fixing the timeline on an otherwise good file tsmuxer is best but a generic command line requires a fixed input file name. ts4np and tsremux are two other command line options to consider.

Martin
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#7
2010-01-30, 11:38 PM
Thanks very much, something to do tonight Smile
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#8
2010-02-01, 11:18 PM
I found tsremux works and keeps the sound correct after Xvid conversion to avi. All in a batch file
Code:
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\tsremux.exe" %1 temp.ts
del %1
copy temp.ts %1
del temp.ts
tsremux stores the temp.ts file the gbpvr directory

Now I'm working on 2-pass mpeg4 VBR but am having problems but will start a new thread. Xvid codec does not allow upping the threads in ffmped. I can double the conversion speed using the mpeg4 codec.
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#9
2010-02-03, 06:07 PM (This post was last modified: 2010-02-03, 06:12 PM by luttrell1962.)
So I started using TsMuxer instead but you need to create a meta file, here's a copy of my bat file.

Code:
echo MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr  --vbv-len=500 > temp.meta
echo V_MPEG-2, %1, fps=29.970, track=49 >> temp.meta
echo A_AC3, %1, timeshift=-549ms, track=52, lang=eng >> temp.meta
"d:\Program Files (x86)\Devnz\GBPVR\Third Party\tsmuxer.exe" temp.meta temp.ts
del %1
copy temp.ts %1
del temp.ts
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i %1 -an -f avi -threads 6 -s 1280x720 -pass 1 -b 3000k -minrate 0k -maxrate 10000k -vcodec mpeg4 -bufsize 1000k -vtag divx nul
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i %1 -ab 128k -acodec mp3 -ac 2 -ar 44100 -f avi -threads 6 -s 1280x720 -pass 2 -b 3000k -minrate 0k -maxrate 10000k -vcodec mpeg4 -bufsize 1000k -vtag divx %2
DEL ffmpeg*.log
rem IF EXIST "%~dp1%~n1.avi" DEL %1
EXIT

It also has ffmpeg code to convert the ts file to a avi file to 720p. But the audio does not always convert but I'm working on that. Quality is great though and file size is is only 1/3 the size of original.

The batch file creates the meta file in the GBPVR directory and the temp.ts file there. Then I copy it to %1 source directory and filename.

After loading another file I'm not sure if the track= xxx does anything. Timeshift seems to be different for other files. So this may not be a good solution
majortom999
Offline

Junior Member

Posts: 33
Threads: 3
Joined: Jan 2010
#10
2010-02-04, 12:50 AM
Off topic, slightly...Just curious why it seems so many people seem to like .AVI? Pokin around the net, ya see most folks using .AVI to share their videos, etc.
must be a reason?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Merging video with web radio (ffmpeg) NumberFive 1 1,173 2021-05-04, 01:01 PM
Last Post: mvallevand
  Fun with ffmpeg mvallevand 5 2,652 2020-05-15, 03:01 PM
Last Post: mvallevand
  US OTA ATSC Rescanning mvallevand 1 1,909 2020-03-08, 09:58 PM
Last Post: mvallevand
  Using dshow or ffmpeg as an input to NPVR? gdogg371 80 25,838 2020-02-08, 05:12 PM
Last Post: gdogg371
  ATSC releases ATSC 3.0 at CES 2018 scJohn 4 3,607 2020-01-27, 07:01 PM
Last Post: sub
  anyone using the cloud to back up settings? jam_zhou 0 1,741 2014-09-24, 05:28 PM
Last Post: jam_zhou
  Please recommend tools for cutting / encoding H.264 HDTV. Thunderflash 1 1,849 2010-08-31, 12:47 AM
Last Post: pcostanza
  New Compiled ffmpeg luttrell1962 7 3,580 2010-03-06, 04:07 PM
Last Post: luttrell1962
  New Divx codec available luttrell1962 2 1,900 2010-02-21, 07:44 PM
Last Post: luttrell1962
  2010 Olympics recording settings Dale 2 1,934 2010-02-06, 05:16 PM
Last Post: Graham

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

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

Linear Mode
Threaded Mode