NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 29 30 31 32 33 … 56 Next »
Mencoder instead for built in processing!

 
  • 0 Vote(s) - 0 Average
Mencoder instead for built in processing!
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#11
2006-03-07, 11:56 PM
come to think of it,you may be able to use ffdshow with ffmpeg alone..
if you set ffdshow raw mode to do cc processing it should work with anything..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
fvfv
Offline

Member

Posts: 131
Threads: 20
Joined: Nov 2005
#12
2006-03-08, 03:23 PM
Thats's just the problem. How do I tell ffmpeg to use ffdshow as a filter ?

I have tried on the ffdshow control panel to set both mpeg2 and raw video but ffdshow is never used by ffmpeg.

I also believe I will be getting better mpegs out of ffmpeg. At least that is what I understand you are telling me on your posts.

Thanks for your support.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#13
2006-03-12, 04:55 AM
well mencoder does get pretty close actually...just seems like ffmpeg is using some combo of filters that i'm not guessing exactly..the spp filter does a pretty good job tho..
i just tried opening a avisynth script with ffmpeg and it worked fine..Smile
that would be your best bet..the scripts are simple and i'm pretty sure that's what the anime' kiddies like to overlay subs with..Smile [they're the subtitle freaks!]
go and get anisynth and look for a subtitle overlay plugin, they should allow complete placement/font/colors/etc..
the .avs files look like an ordinary .avi to most programs so the subs get overlayed as it reads the input file [which can be almost any kind of file...mpg,avi,mp3 etc. using directshow] then sends it to ffmpeg or whatever as a regular avi file.
all in realtime so no real speed decrease Smile
i made an avs script that reads a mp3 and produces a video with a waveform visual and the mp3 audio...all in realtime...Smile
mencoder couldn't do the audio from a avs last time i checked but ffmpeg seems to have no problem..
let us know how you get along with it..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
fvfv
Offline

Member

Posts: 131
Threads: 20
Joined: Nov 2005
#14
2006-03-14, 05:55 PM
Can you show me a bit of the script, at least the part where it opens the mpg source ?

I tried this simple script: (Named it c:\test.avs), using vobsub and it plays fine on wmpc but ffmepg says it does not support avs files.

LoadPlugin("C:\Program Files\Gabest\VobSub\textsub.vdf")
DirectShowSource("c:\Medium_20060306_22002300.mpg").TextSub("c:\Medium_20060306_22002300.srt")

I am a complete newbie with avisynth, so I am pretty much clueless on what I am doing.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#15
2006-03-14, 06:32 PM
looks ok, the .vdf is supported in avisynth? i think that's a virtualdub filter, but they may work in avisynth, but you'd be better off with a native avisynth plugin..you may have to do something special to use the virtualdub filters tho..
what version of ffmpeg are you using? rty the one that comes with gbpvr, it worked fine for me...
hmmm,looks like you're loading the plugin, then loading the file, but not processing the file with the plugin before passing on to ffmpeg..
look into the usage for the testsub.vdf and that should give you a clue as to what's not happening..
i think you need to load vsfilter...eg: LoadPlugin(vsfilter.dll)
seems it has the textsub() filter in it..
then just add a textsub line like TextSub("F:\From_hell\fh_ned.srt")
i don't really know much about doing them in avisynth myself...i don't really use subs ever...Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
fvfv
Offline

Member

Posts: 131
Threads: 20
Joined: Nov 2005
#16
2006-03-14, 07:39 PM
The vdf plugin should be supported by avisynth, as the avs file plays fine with mplayer2 (WMP Classic). My ffmpeg line is


ffmpeg -y -f mpeg -target ntsc-dvd -ildct -qscale 5 -bf 2 -i c:\test.avs -acodec mp2 -ab 128 -vcodec mpeg2video
c:\testcc2.mpg

Even the version that comes with gbpvr gives "c:\test.avs" Unknown Format"

When you say "you're loading the plugin, then loading the file, but not processing the file", What Am I missing on the avs file ?

May be that is why it says unknown format as it does not receive any frames from avisynth.


Thanks for your support
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#17
2006-03-14, 10:35 PM
hmmm,most likely it's a colorspace issue...[happens alot in avisynth]
it's really picky about them, and doesn't figure them out automatically sometimes...so you need to check the input colorspace types of the plugin and may need to specify whatever ffmpeg wants to see, as it looks like the conversion is producing a different output colorspace that needs to be a certain one for ffmpeg...been a while since i even used avisynth so not sure off hand..
hmm,seems like your script/plugin is working ok if it loads within MP.
MP can handle many colospaces but ffmpeg probably wants either a YV12 [mpeg native] or I420 [same thing] or RGB32...
avisynth has built in color conversion so shouldn't be too hard to implement...
should probably convert right at the end..
hmm,should be some help on avisynth site on subs somewhere..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
fvfv
Offline

Member

Posts: 131
Threads: 20
Joined: Nov 2005
#18
2006-03-14, 10:53 PM
Thanks. The version that comes with a program called "SUPER @" (http://www.erightsoft.com/) did work. This "SUPER @" is a freeware GUI front end to ffmpeg and mencoder. It created something that seems to work pretty good. I have not tested it on the MVP yet so I do not know. The only thing I do not like about ffmpeg is that is quite slow compared to mencoder.

I am kind of getting pretty frustrated trying to get these subtitles to work. I think the work involved does not justify the outcome. The mpegs produced by GBPVR work flawlessly on the MVP and on any player that i want. It is only when I try to put subtitles that it screws it up.

Thanks for all your help.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#19
2006-03-14, 11:24 PM
yea,i tried Super...wish he'd left it more open so we could use the magic...
yea,it installs a bunch of extra plugins so i bet that's why it worked for you..
i find ffmpeg's mpegs are the best output of all the encoders,but the others can make nice files with a few extra options..
the avisynth scripts allow amazing thnigs to happen, but it can be a bit bleeding edge sometimes..
but once ya get it goin,it opens up a lot of possibilities and all in realtime..
one of these days i'l finiish that slideshow with transitions and music i was working on for the MVP..Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
fvfv
Offline

Member

Posts: 131
Threads: 20
Joined: Nov 2005
#20
2006-03-15, 03:11 PM
I just noticed that I could play directly on GBPVR the test.avs file that I created. FF and REW worked great.

Would it not be awesome if GBPVR could FrameServe the avs file directly to the MVP ? This could work for mpg4 , avis, mpg, whatever program out there.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Comskip 0.77 build 61: Sound processing bug solved erik 17 6,048 2005-10-27, 05:09 PM
Last Post: erik
  mencoder plug-in 0.0.1 released erik 18 6,581 2005-10-08, 01:41 PM
Last Post: venger

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

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

Linear Mode
Threaded Mode