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 … 59 60 61 62 63 … 115 Next »
Anyone using MENCODER instead of FFMPEG for transcoding AVI for MVP

 
  • 0 Vote(s) - 0 Average
Anyone using MENCODER instead of FFMPEG for transcoding AVI for MVP
dazza139
Offline

Junior Member

Posts: 41
Threads: 13
Joined: Jun 2006
#1
2006-08-26, 11:29 PM
I have been having lonstanding troubles with ffmpeg and AV sync issues when trasncoding AVI on the fly for MVP. Today I found that this occurs when I use ffmpeg to make mpg files not on the fly as well.

As an experiment I used mencoder to transcode AVI to mpg (not on the fly) with no AV sync problems at all.

I would now like to replace the ffmpeg commands in the config.xml with ones that are suitable for mencoder so that I can use mencoder on the fly. I will rename mencoder to ffmpeg to fool GBPVR.

Has anyone done this and do they have examples of the commandline parameters they used/
jc8472
Offline

Member

Posts: 159
Threads: 36
Joined: Nov 2005
#2
2006-08-27, 12:36 AM
Have you tried searching GBPVR.com's wiki page?
GBPVR is the best pvr software on the planet!!!!!!!!Big Grin

AMD Sempron 2400+, 1 GIG DDR, 20+40+200+300 GIG HDDs, Liteon DVDRW Burner, Liteon DVDROM drive, Emuzed Maui III, PVR 150, Plextor Convertx, Linksys 5-port Hub, MediaMvp, FX5200 Nvidia Card
dazza139
Offline

Junior Member

Posts: 41
Threads: 13
Joined: Jun 2006
#3
2006-08-27, 06:35 PM
Here's my own answer to my problem which for the first time has produced DIVX transcoding without AV sync issues.

1) Install mplayer and mencoder into ffmpeg directory
2) rename mencoder to ffmpeg.exe
3) used the following line in config.xml

<MVPFFmpegTranscodeCmdLinePAL>-of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:mbd=2:keyint=25:vrc_minrate=600:vbitrate=2500 -oac lavc -af lavcresample=44100 -srate 44100 -mpegopts format=mpeg2 -vf scale=352:288 -vf harddup "{SOURCE_FILE}" -o "{DEST_FILE}"</MVPFFmpegTranscodeCmdLinePAL>

My PC is an Athlon XP2800+ with 1 GB ram. It easily handles the transcoding on the fly. The result is MVP playback with no av sync issues EXCEPT that when I use ff, rw, or skip, AV sync is lost. I'm not sure what the answer is to this problem? ?remuxing on the fly?

Anyway I can live with that for now.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#4
2006-08-27, 06:46 PM
dazza139 Wrote:My PC is an Athlon XP2800+ with 1 GB ram. It easily handles the transcoding on the fly. The result is MVP playback with no av sync issues EXCEPT that when I use ff, rw, or skip, AV sync is lost. I'm not sure what the answer is to this problem? ?remuxing on the fly?

Anyway I can live with that for now.

FF or skip is always a problem when playing avi's, because of the on the fly transcoding. I've read a while back that it should work with avisynth, thus playing avs-scripts, but that's not an easy way. I kind of got it to work but I don't remember about the FF/skip. There will always be the problem of the mvp getting no data for a while and therefore closing the connection, I think.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
dazza139
Offline

Junior Member

Posts: 41
Threads: 13
Joined: Jun 2006
#5
2006-08-27, 09:13 PM
Avisynth frameserving and transcoding on the fly appeared to be too much for my processot and caused process to halt after only 2 minutes of transcoded file. Oh well, for now I'm just happy that I can finally transcode XVID/DIVX.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#6
2006-08-27, 10:44 PM
I'm sorry i think I mis-understood your post. You clearly mentioned that you lost av-sync (with mencoder too) I thought you lost connection.Sad
I used avisynth for (not on the fly) transcoding, I was very pleased with it. It took some practice but then I was very happy with it's possibilities.
Specially with subtitles, probably of no interest to you.Smile
But at the end of the day (literally) all I can/should say is: I'm happy when you're happySmile
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
dazza139
Offline

Junior Member

Posts: 41
Threads: 13
Joined: Jun 2006
#7
2006-08-28, 01:45 AM
If I play an avi without using ff, rw, or skip, then there is no AV sync issue when using mencoder on the fly. If I use any of these keys AV sync is lost. With FFMPEG I had AV sync problems regardless of whether I pressed any of these keys.
fvfv
Offline

Member

Posts: 131
Threads: 20
Joined: Nov 2005
#8
2006-08-29, 07:39 PM
HTV. I am very interested on the Subtitles support of avisynth.

Can you share with us the actual script that you use in avisynth ?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#9
2006-08-29, 08:31 PM
it's all about the framerates...are you in PAL land?
what framerate are the avi's? and what was your line for ffmpeg?
the gbpvr built in line isn't that great,i had problems with it too..
order of params with ffmpeg is VERY important..
you can adjust the input fraterate with -r xxxx and also adjust output to PAL as ffmpeg defaults to NTSC if not told...
i usually use dvd output format '-target ntsc-dvd' tho for you it would be '-target pal-dvd' and also i use '-f dvd' to set output format to dvd compatible..
[seems to be more stable,and can be burnt to dvd directly]
you probably have to specify '-r 25' or '-r 24.97' for output framerate and also try '-re' as that willl read input file at native framerate..
[that one may be all you need]
ffmpeg puts out better looking pics than mencoder, even tho they are based on same codecs...tho mencoder is faster...
avi as a container isn't very good and isn't very standardized so lots of avi that come from the web aren't encoded properly...
hope that helps...
Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#10
2006-08-29, 08:31 PM (This post was last modified: 2006-08-29, 08:37 PM by HtV.)
Well I'll try to give some info.
This is a script I use a lot:

Code:
# Name     : Default ABatchScript Template
# Author    : Steven van Cauter
Clip="Tobit Sportgala"                                      # Store parameter in variable named "Clip"
DirectShowSource(Clip+".avi") # Set clip as AviSource
LanczosResize(720, 390)       # Resize to PAL square-pixel frame size
AddBorders(0, 0, 0, 0)                  
TextSub(Clip+".ssa", 25, 23.976)                 # TextSub("path\filename.ext"[, charset[, fps]])
AssumeFPS(25, 1, true)                 # Convert frame rate to PAL, also adjust audio
SSRC(44100)                                     # Restore audio sample

Some notes:
For the subs you have to install the vsfilter-plugin to avisynth:
http://www.avisynth.org/warpenterprises/

I found out I have to use ssa-subs, to be able to change the font-size.
Mostly you download srt-subs, I open them in Subtitleworkshop, save them in ssa format, then open the ssa-sub in Sub Station Alpha where you can adjust the font-size. If you don't need to change the fontsize you can also let vsfilter load srt-subs. The fps in the textsubline is the fps of the sub-file it has nothing to do with the resulting fps.

The LanczosResize(720, 390) line gives the output resolution. You have to do some math to get it. The resolution from an avi is always the display-resolution. I want to scale it to mvp-resolution:720x576 for me.

You can add borders to the movie if you want but I don't really need that because I choose aspect ratio adjustment on my tv.
however it can be nice to have a black border where the subs are blended in.

It's not a very userfriendly way to do it, but when you get the hack of it it's quite easy. And it works very well.
Afaik the mvp can play avs-scripts but as I recall only with the ffmpeg-option in config turned off and without trans2mvp.bat. That means it will use the mainconcept-decoder that is being installed by the hauppauge mvp appl. Although I've read posts from people who got it to work with ffmpeg aswell.

I found the ABatchScript: http://www.designfoto.nl/ABatchScript.htm quite handy.

Good luck, if you have questions just ask.

cya Hans

edit: I just want to add that I'm really an amateur at this, there will be a lot of things in my little routine that can be done better.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  MVP transcoding? dinki 12 9,276 2014-02-03, 09:35 PM
Last Post: mvallevand
  Change FFMPEG commandline Astraeus 5 3,473 2012-01-22, 06:49 PM
Last Post: mvallevand
  LiveTV & ffmpeg MVP playback stops pvruser 4 3,285 2009-02-27, 10:44 PM
Last Post: Bobins
  MVP Transcoding drbenjamin 1 1,717 2008-12-01, 06:07 AM
Last Post: mvallevand
  MVP transcoding with TS Mux daneo 0 1,456 2008-11-09, 09:20 AM
Last Post: daneo
  Transcoding files times out before they begin Zato 3 2,176 2008-10-13, 04:01 AM
Last Post: Zato
  Any way to automatically save MPG output file when transcoding jonrigg68 2 2,115 2008-06-27, 04:14 PM
Last Post: HtV
  MVP TS transcoding config.xml bug. BerkA 1 1,986 2008-06-07, 11:47 AM
Last Post: sub
  Transcoding causes pc to shut down jonrigg68 5 2,517 2008-06-07, 11:04 AM
Last Post: psycik
  MVP problems (Live TV/transcoding) natty 5 2,643 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