Page 8 of 9 FirstFirst ... 6789 LastLast
Results 106 to 120 of 130

Thread: ffmpeg with MPEG to TY+ encoding support

  1. #106
    Join Date
    Jan 2003
    Location
    Mountain View, CA
    Posts
    7

    Updated ffmpeg patch svn r11213

    For those of us with HR10-250's and no MRV, this is still a valid option.

    Attached is a patch to HEAD (currently r11213) of ffmpeg.

  2. #107
    Join Date
    Feb 2003
    Posts
    411
    Quote Originally Posted by dsully View Post
    For those of us with HR10-250's and no MRV, this is still a valid option.

    Attached is a patch to HEAD (currently r11213) of ffmpeg.
    any chance of a windows compile?
    Thanks,
    Mikey

  3. #108
    Join Date
    Dec 2003
    Posts
    24
    Quote Originally Posted by dsully View Post
    For those of us with HR10-250's and no MRV, this is still a valid option.

    Attached is a patch to HEAD (currently r11213) of ffmpeg.
    Hey dsully, I was able to successfully apply your latest 1.8 patch, however it seg faults any time i deal with tivo files. Could we work out a test case to see if the seg fault is a result of the patch, or my environment. thanks
    If only I could figure out how to make my TiVo remote work in reality....

  4. #109
    Join Date
    Jun 2006
    Location
    Dougal County
    Posts
    1,007
    I had the same problem when I compiled it under cygwin, using various versions of gcc. It would transcode to mpg/vob/whatever just fine, but would seg fault if trying to go to ty/ty+. Compiling it under Ubuntu worked just fine though.

    -edit- nevermind, I must have screwed up my PATH or something. It seg faults under Ubuntu also when dealing with ty/ty+.
    Last edited by jt1134; 01-02-2008 at 02:35 PM.

  5. #110
    Join Date
    Mar 2005
    Posts
    4

    Ubuntu segfault on ty output here too

    This works under 1.7, but segfaults under 1.8:

    ./ffmpeg -i test.flv test.ty

    If I can get 1.7 to work for me, I'll probably stick with it. If not, I'll see if I can fix 1.8 and post back.

  6. #111
    Join Date
    Jan 2003
    Location
    Mountain View, CA
    Posts
    7
    Yeah, it appears that something has changed in ffmpeg to cause it to segfault.

    I've not had time to track this down.

  7. #112
    Join Date
    Jul 2007
    Location
    RTP, NC
    Posts
    4
    dsully or someone, I've not had luck building tyffmpeg with the latest ffmpeg source, but would be willing to go through it if you could describe the general process to a newbie? I program a lot (in Perl and R mostly lately) but am not familiar with patch files.

    Should I basically go through the patch files and figure out what they modify, emulate the same thing with my own patch? Do I modify the file, then do a diff which creates a patch? Sorry for the n00b questions, I want to help, and I want to use tyffmpeg on Ubuntu Hardy alongside MythTV and my HR10-250, but no luck yet.

    Thank you all for all this stuff -- too damn cool!

  8. #113
    Join Date
    Jul 2003
    Posts
    111
    I've attached a patch file that builds against SVN 13747. However, I ran it against some mpeg files I had and the TY output is different(and doesn't work-stuttering and sync issues) when compared against the TY output from SVN 9509 and patch 1.7. I suspect a lot of things have changed within ffmpeg and will require someone more versed in audio/video than I to figure it out.

    1. svn checkout -r 13747 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    2. cd ffmpeg
    3. patch -p1 < ../ffmpeg-diffs-1.9.txt
    4. on FC7:
    ./configure --enable-gpl --enable-liba52bin --disable-ffplay --disable-ffserver
    5. make
    6. make install

  9. #114
    Join Date
    Jul 2007
    Location
    RTP, NC
    Posts
    4
    I ended up building ty-ffmpeg 1.7 versus ffmpeg 9509, using whatever other newer libraries didn't cause errors with the older ffmpeg 9509... it works and seems to upload fine to the TiVo HR10-250 -- which fits my requirements.

    I do follow a process suggested previously in this thread, transcoding using the latest-greatest ffmpeg, then converting to TY+ using ty-ffmpeg-1.7. It seems to work well, though I haven't tested it with files > 2 GB yet. (I'm assuming it works, just sayin' I haven't tested it yet.)

    The other thing which may be important, I built it STATIC. So that build does two things:
    1. It means it cannot be built with x264 and xvid (both of which require dynamic builds)
    2. It can be run on basically any linux since it doesn't look for codec libraries all over the filesystem (which is the reason post 98's linux build didn't work for me.)

    I did, however, pretty much follow the steps in post 98 to build ty-ffmpeg-1.7.

  10. #115
    Join Date
    Dec 2005
    Posts
    42
    This has never happened before - anybody seen this?

    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    [mp2 @ 0x84b0118]bitrate 192 is not allowed in mp2
    Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
    dan@dan-desktop:~$

  11. #116
    Join Date
    Jul 2002
    Location
    Texas
    Posts
    102
    "bitrate 192 is not allowed in mp2"

    Perhaps a bit rate of 192k is what you want?
    Post your command line if the 'k' does not help

  12. #117
    Join Date
    Dec 2005
    Posts
    42
    Using the binary (can't seem to compile my own anymore)

    ./ffmpeg.app -i YouTube_-_Randy_Pausch_Last_Lecture__Achieving_Your_Childhood_Dreams.mpeg -vcodec mpeg2video -b 3000k -s 420x420 -padtop 30 -padbottom 30 -padleft 30 -padright 30 -ss 167 -t 170 -acodec mp2 -ab 192k "file-420x420-pad30.ty"
    FFmpeg version SVN-r6543, Copyright (c) 2000-2006 Fabrice Bellard, et al.
    configuration: --enable-gpl --enable-a52 --disable-v4l --disable-dv1394 --disable-ffplay --disable-ffserver
    libavutil version: 49.0.1
    libavcodec version: 51.16.0
    libavformat version: 50.5.0
    built on Oct 5 2006 21:38:15, gcc: 4.1.0 20060304 (Red Hat 4.1.0-3)
    Input #0, mpeg, from 'YouTube_-_Randy_Pausch_Last_Lecture__Achieving_Your_Childhood_Dreams.mpeg':
    Duration: 01:16:18.5, start: 0.500000, bitrate: 267 kb/s
    Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 320x240, 104857 kb/s, 29.97 fps(r)
    Stream #0.1[0x1c0]: Audio: mp2, 22050 Hz, mono, 64 kb/s
    File 'file-420x420-pad30.ty' already exists. Overwrite ? [y/N] y
    Output #0, ty, to 'file-420x420-pad30.ty':
    Stream #0.0: Video: mpeg2video, yuv420p, 480x480, q=2-31, 3000 kb/s, 29.97 fps(c)
    Stream #0.1: Audio: mp2, 22050 Hz, mono, 192 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    [mp2 @ 0x84b0118]bitrate 192 is not allowed in mp2
    Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    Strange. Oh well, I suppose I can just burn it to DVD. Thanks anyway!

  13. #118
    Join Date
    Mar 2008
    Posts
    4

    Current status

    (1) What's the current status of the TY-FFMPEG work?
    (2) Why hasn't this made it into FFMPEG at some point over the past several years?
    (3) Can I get a windows binary drop of a working version?
    (4) Can someone point me to documentation on the TY format? Why doesn't any form of straight MPEG2 work? What's inserted? Where?

    Thanks,

    Marc

  14. #119
    Join Date
    Feb 2003
    Posts
    411
    1) It works well.
    2) I have no idea though ffmpeg plays ty's and tmf's fine.
    3) Follow the link in the fist post.
    4) I don't know where any documentation is.Most mpgs's work however the tivo, depending on the model, can only play some resolutions. ty's are inserted. look at the mfs-ftp thread to figure out where to insert the ty's.

    Have fun,
    Mikey

  15. #120
    Join Date
    Nov 2002
    Posts
    1,076
    Quote Originally Posted by MarcPow View Post
    (2) Why hasn't this made it into FFMPEG at some point over the past several years?
    I can't speak for others, but for me, I had no interest in putting in extra effort to get the changes integrated by the ffmpeg team. I converted the work over from mplex to ffmpeg to address the ty-mplex problems, but never wanted to "own" TY encoding. Now that s3 tivos and mpeg4 pvrs have basically obsoleted TY format (TY is only being used by s1/s2 tivos which are at an architectural dead end), it seems a bit late to push for official ffmpeg integration of any new TY support.

    Of course it's all open source so anyone who is interested can put forth the time&effort.
    Quote Originally Posted by MarcPow View Post
    (4) Can someone point me to documentation on the TY format? Why doesn't any form of straight MPEG2 work? What's inserted? Where?
    Being a proprietary format that was never publicly documented by tivo (other than conceptually in their patent material), documentation is flimsy. There's the old sketchy draft-spec from tystudio: http://dvd-create.sourceforge.net/ty...tystream.shtml and there were some notes at alt.org about the master chunk header. The existing source code itself more accurately and completely describes things at this point.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •