Jump to content

theYinYeti

Members
  • Posts

    2151
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by theYinYeti

  1. I don't agree. SVCD are still a nice thing. You have one movie on a simple CD (cost of a CD), and still playable on any DVD player, if you want to take some of your SVCDs with you on hollidays. Not all movies, however, actually fit on a SVCD. Your initial (capture) quality has to be good. Then, using avidemux, you can see what is the length in seconds of your movie (once ads and such are removed); let it be L. Now you compute the total bitrate (TBR)so that it fits on a CD: TBR=700000*8/L Depending on the quality you want the sound to retain, you'll choose an audio bitrate (ABR) between 48 and 128. You'll deduce the video bitrate (VBR): VBR=TBR-ABR From experiments, I've found that most of the time, VBR must be greater than 900 for acceptable results. If you decide it is worth a try, encoding your source video to SVCD is easily done with mencoder: mencoder -mc 0 SOURCE.avi -edl SOURCE.edl -af channels=2:2:0:1:0:0 -vf crop=W:H:X:Y,hqdn3d,pp=md/ha/va/dr,scale=480:SH,expand=480:576:0:SY,harddup -of mpeg -mpegopts format=xsvcd:vaspect=4/3 -ovc lavc -lavcopts vcodec=mpeg2video:vpass=1:turbo:aspect=4/3:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=VBR:keyint= 15:trell:mbd=2:dia=3:cmp=3:subcmp=3:last_pred=2 -oac twolame -twolameopts br=ABR -ofps 25 -o /dev/null mencoder -mc 0 SOURCE.avi -edl SOURCE.edl -af channels=2:2:0:1:0:0 -vf crop=W:H:X:Y,hqdn3d,pp=md/ha/va/dr,scale=480:SH,expand=480:576:0:SY,harddup -of mpeg -mpegopts format=xsvcd:vaspect=4/3 -ovc lavc -lavcopts vcodec=mpeg2video:vpass=2:aspect=4/3:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=VBR:keyint=15:trell: mbd=2:dia=3:cmp=3:subcmp=3:last_pred=2 -oac twolame -twolameopts br=ABR -ofps 25 -o DESTINATION.mpg vcdimager -t svcd -l "YOUR TITLE" DESTINATION.mpg cdrdao write --speed 4 --device /dev/hdc videocd.cue Note: Real line changes occur at empty lines; other apparent line breaks are fake, and inserted only for readability. - SOURCE.avi is your source video file, the aspect ratio of which is SAR (eg: 4/3=1.33...). - SH is the rescaled SVCD height (because SVCD aspect ratio is weird): SH = round((H*SAR/(4/3))*(480/W)*(576/360)/16)*16 = round((H/W)*SAR*576/16)*16 - W, H, X, Y are the cropped width, height, and X/Y offsets chosen (using eg. avidemux) so that: . all border-garbage or black borders is gone, . and: -5 < (H/W)*SAR*576 - SH < 5 (so that the rounded height is not too far from the theoric height). - SY is the 16px-aligned offset: SY = round((576-SH)/32)*16 - VBR and ABR are the bitrates calculated above. Besides: - If your SOURCE is anime, you should replace "dia=3:cmp=3:subcmp=3:last_pred=2" with "cmp=2:subcmp=2" in both mencoder lines (source: mencoder manual). - If your SOURCE is interleaved (as in TV), then W must be a multiple of 8, and H a multiple of 2. - If your SOURCE is NOT interleaved, you should remove the "md/" part from both mencoder lines (just after "pp="). - If your SOURCE is OK, as it should be, then you can probably remove the "ha/va/" part from both mencoder lines. - If your TV standard is NTSC, then you'll probably have to adapt further, as the number of frames per second is not 25 for NTSC. Here is a real example I have (my capture aspect-ratio is 2/3): mencoder -mc 0 yamadas.avi -edl yamada.edl -af channels=2:2:0:1:0:0 -vf crop=376:412:4:80,pp=md/ha/va/dr,hqdn3d,scale=480:416,expand=480:576:0:80,harddup -of mpeg -mpegopts format=xsvcd:vaspect=4/3 -ovc lavc -lavcopts vcodec=mpeg2video:vpass=1:turbo:aspect=4/3:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=880:keyint= 15:trell:mbd=2:cmp=2:subcmp=2 -oac twolame -twolameopts br=64 -ofps 25 -o /dev/null mencoder -mc 0 yamadas.avi -edl yamada.edl -af channels=2:2:0:1:0:0 -vf crop=376:412:4:80,pp=md/ha/va/dr,hqdn3d,scale=480:416,expand=480:576:0:80,harddup -of mpeg -mpegopts format=xsvcd:vaspect=4/3 -ovc lavc -lavcopts vcodec=mpeg2video:vpass=2:aspect=4/3:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=880:keyint=15:trell: mbd=2:cmp=2:subcmp=2 -oac twolame -twolameopts br=64 -ofps 25 -o yamada.mpg vcdimager -t svcd -l "Mes voisins les Yamada" yamada.mpg cdrdao write --device /dev/hdc videocd.cue "edl" files are "edition list" files, each line of which contains "FROM TO 0", where FROM and TO (in seconds) delimit a portion of the movie that must be cut and the final zero means "cut"; eg: 0.00 17.56 0 6383.20 7189.12 0 I hope this helps. Yves.
  2. Java does exist for 64bit OSes (Linux, Solaris, Windows), see: http://java.sun.com/javase/downloads/index.jsp From my experience, installing 32bit applications (Firefox) on the 64bit mandriva, althouth possible, leads to a nightmare in handling dependencies. This experience was on an unstable PC, however... Yves.
  3. As far as I know, "su -c" or "su" alone is the same, except with "su -c" you end-up as yourself when the command is done. However, "su" and "su -" are not the same: $ su root gives you root's privileges but you are still "yourself" with your environment variables. $ su - root gives you root's identity: you are root, with root's environment variables. Yves.
  4. Hello, I've been saving my old original VHS to hard disk lately, and now I try and group them on standard "Video DVD" (actually DVD+R). Successfully so far: I burned two 2-film DVDs :) The latest (3rd) DVD I "authored" was from the Stargate, Crying Freeman, and Xmen1 special edition VHSs. I structured the DVD like this: - VMGM : 1 720x576 menu ("title") : choice between Sg, CF, and Xm. - Titleset 1 : SG and CF (1 mpeg each, 352x576). - Titleset 2 : 2 352x576 menus ("root" for main Xm main menu, and "chapters" for Xm bonus menu) + 33 352x576 mpegs. Now the reason for those 33 mpegs for Xmen is that I sliced the main movie into 5 "common" parts, and 2 "normal-only" parts, the 8 bonus being insertable in place of a "normal-only" part or between two "common" parts. And each bonus is 3 videos: intro+bonus+conclusion. I also reused the "begin bonuses" short video from the VHS, as well as the "exit from bonuses" video. All this to say that I did a lot of virtual "cut" (using avidemux) and "paste" (using dvdauthor). The issue I have now is the "approximative" cutting of sound. To cut, I use avidemux, and choose the hh:mm:ss.th location where I feel the cut is safe. I save one file up to this point, another file after this point, then I compress each avi into a DVD-compliant mpeg using mencoder. Example of the problem I often have: - I cut here (translated from French): "I trained them, and they now teach other mutans at their turn." // " Most students are..." - I encode. - I read a playlist of both files and I hear: "I trained them, and they now teach other mutans at their tGrzz. Most students are..." Why is picture cut and paste precise, and sound cut and paste approximative? I know there are picture-related rules to choose the cutting point: - must correspond to a frame, eg 10:25.20 or 10:25.24, not 10:25.21; - if not mjpeg, then must be a I-frame (at most each 0.6 seconds for a DVD-compliant video). Are there such rules one has to know for the audio side, when it comes to choosing the point of the video where you will cut? Yves.
  5. You'll have to boot a live CD (or the rescue CD = Mandriva first install CD), then login to shell, mount your root partition under the "in-memory" /mnt location, edit /mnt/etc/fstab (change all "hda" with "hdb", and "hdb" with "hda"), and finally "chroot /mnt; /sbin/lilo". I know this is very summarized; I don't know how well you do in Linux. Don't hesitate to ask for advice for any of the above instructions. Yves.
  6. theYinYeti

    Logitech G7

    This should help you: http://yves.gablin.club.fr/gablin.php?page...le=config_mouse This is the technology you'll use eventually, but be aware there are nice front-ends for this, if you're patient enough to wait for someone who knows one such to tell you about it... Yves.
  7. I'm not surprised. I recently switched from a PII 350 with 300MB RAM to a Core2Duo with 1GB RAM (now 2GB), without having to reinstall anything! The whole system just booted as usual... and a LOT faster :) Yves.
  8. I have an Intel-HDA-based motherboard, and the manual says one should use the "front" (this is the label, not the location) plug for usage with 2 speakers. You may want to try this... Yves.
  9. That's because they are after Windows. The latter does it this way: updates are automatically downloaded, and then the taskbar says "Updates are ready to be installed; click here to install them", or something like that. They just want Mandriva to do the same... That's also the first thing I disable. Yves.
  10. Hello, 1. Yes. spumux for example allows precise timing of your subtitles. 2. I don't know all those formats, although I'm aware of them. All I can tell is: there are 2 kinds of subtitles: text (most existing formats) and graphics (DVD, VCD...). 3. As a consequence, if you want to translate your DVD subtitles to text, you'll have to rip them and keep the timing information, and run some kind of OCR (although Linux isn't very good at that). You may have luck with subtitleripper... Yves.
  11. theYinYeti

    resize partition

    Hello, First I beg your pardon for misreading the initial post; I got a little lost with the displayed numbers. LVM stands for Logical Volume Manager, and is quite well explained in this manual: http://www.tldp.org/HOWTO/LVM-HOWTO/ In short, it allows you: - to have variable-sized partitions, - to transfer free storage space from one partition to another, - to have partitions spanning multiple disks... LVM is accessible in the Mandriva DiskDrake (partitionning tool) either at install time or in the MCC (control center), provided you enabled "expert" mode. If you just want to move your data around, you'll have to use a live CD (eg: Mdv One), and make a plan, eg: - First resize partitions to their minimal size, - then use the trailing part of the disk to mirror the whole filesystem hierarchy, - then erase the initial partitions, - then create partitions starting from the head of the disk, and fill them, - when all is transfered back, remove the now-empty trailing partition, and expand the now-last partition if needed, - finally mount the new root partition, chroot to it, edit /etc/fstab, and possibly edit /etc/lilo.conf and run lilo -v. That's just an example though. Depending on your partitions scheme, and the amount of data in each, you'll probably have to adapt. It's rarely that simple... Yves.
  12. This could help you too: http://yves.gablin.club.fr/gablin.php?page=pc_linux The xmodmap command should work if placed into the .xprofile file in your home-directory. Yves.
  13. theYinYeti

    Mplayer

    I don't know for the no-play issue, but for big-lag issue, I had this problem once because "jack" sound server was installed and did not work, and MPlayer tried to use it and could not success. Yves.
  14. theYinYeti

    resize partition

    Given how full all your partitions are, the best thing to do IMO is to backup all your non-system data, and /etc, and then reinstall using LVM. Else you'll have to play "Towers of Hanoi"-game with your partitions... Doable but quite involved. Yves.
  15. Would it be ReactOS? Or maybe Plex86? This one has nothing to do with what it once was. Plex86 used to be a light-weight alternative to Bochs for x86 machines only, relying as much as possible on real-hardware, so that there wouldn't be much need for emulation, thus permitting rather good performances. Unfortunately, the task was probably too big, and it never got actually usable; the project eventually slowed to a halt, until it was awaken again with new (and more realistic) goals. Yves.
  16. Said and done :) I asked for advice, got it, and I finally bought some new hardware. I hope it will be more stable this time. I'm glad you convinced me, because after I decided to hand the PC back (but before I actually did it), my wife had plenty of crashes, so much in fact that the PC was next to unusable! That's past now. I'm back with the PII350, and I'll receive the Core2Duo this week. Thank you. Yves.
  17. Good news, but I'm not among those who think that this goes along with a political move in support of open source/free software. As I see it, there's just a clever open-source supporter in a decisional position, that managed to get his/her proposition approved, in particular thanks to reduced costs. Yves.
  18. Hi! I don't know how reliable the CODE snipplet is, but if it reflects your code, then there's an error there: "< (". The spacing is important: The first '<' is to instruct bash to read the following file as standard input to the command (read). Then there's a space, and then "<(" without spaces, which refers to the system's temporary file that contains the output of the enclosed command. In short, the command inside <(...) (that is: the identify|sed pipe) is executed. In Unix, everything is a file, and the output of this pipe is no exeption; the <(...) construct refers to this file, which is given as a standard input to the "read" command. This is a standard way of doing things in bash to keep the first command (read) from being executed in a subshell. Besides, your "sed" command seems to be all broken... Yves.
  19. I've written a script. Here it is: #!/bin/bash PHOTOBASE='/ici/partage/photos' SORTDIR='a_trier' function erreur() { echo Erreur: $1 >&2 exit 1 } cd "$PHOTOBASE" || erreur "Impossible d'aller dans $PHOTOBASE/" compte=1 while read jpg; do read iY iM iD ih im is < <(identify -format "%[EXIF:DateTime]" "$jpg" | sed -r -n 's/^[[:space:]]*([[:digit:]]{4})[^[:digit:]]*([[:digit:]]{2})[^[:digit:]]*([[:digit:]]{2})[^[:digit:]]*([[:digit:]] {2})[^[:digit:]]*([[:digit:]]{2})[^[:digit:]]*([[:digit:]]{2}).*$/\1 \2 \3 \4 \5 \6/p') iDir="${iY}-${iM}" iFile="${iY}-${iM}-${iD}-${ih}${im}${is}" echo "${iDir}/${iFile} : $jpg (${compte})" compte=$(( $compte + 1 )) if [ -n "$iDir" ]; then [ -d "$iDir" ] || mkdir "$iDir" [ -d "$iDir" ] || erreur "Impossible de créer $iDir/" suf= if [ -e "${iDir}/${iFile}.jpg" ] || [ -e "${iDir}/${iFile}_01.jpg" ]; then [ -e "${iDir}/${iFile}_01.jpg" ] || mv "${iDir}/${iFile}.jpg" "${iDir}/${iFile}_01.jpg" suf=02 while [ -e "${iDir}/${iFile}_${suf}.jpg" ]; do suf=$(awk '{printf "%02u", $1+1}' <<<"$suf"); done suf=_$suf fi mv "$jpg" "${iDir}/${iFile}${suf}.jpg" fi done < <(find "${SORTDIR}/" -iname "*.jpg" -type f -print) PHOTOBASE is a directory that contains a "a_trier" directory (=to_sort), and other directories will be created inside, based on year and month (eg: 200703). Besides, I've written another script, that put the remaining files (videos) in the right folders too: #!/bin/bash PHOTOBASE='/ici/partage/photos' SORTDIR='a_trier' function erreur() { echo Erreur: $1 >&2 exit 1 } cd "$PHOTOBASE" || erreur "Impossible d'aller dans $PHOTOBASE/" compte=1 while read fY fM fD fh fm fs file; do fDir="${fY}-${fM}" fFile="${fY}-${fM}-${fD}-${fh}${fm}${fs}" fExt="$(tr 'A-Z' 'a-z' <<<"${file##*.}")" echo "${fDir}/${fFile}.${fExt} : $file (${compte})" compte=$(( $compte + 1 )) if [ -n "$fDir" ]; then [ -d "$fDir" ] || mkdir "$fDir" [ -d "$fDir" ] || erreur "Impossible de créer $fDir/" suf= if [ -e "${fDir}/${fFile}.${fExt}" ] || [ -e "${fDir}/${fFile}_01.${fExt}" ]; then [ -e "${fDir}/${fFile}_01.${fExt}" ] || mv "${fDir}/${fFile}.${fExt}" "${fDir}/${fFile}_01.${fExt}" suf=02 while [ -e "${fDir}/${fFile}_${suf}.${fExt}" ]; do suf=$(awk '{printf "%02u", $1+1}' <<<"$suf"); done suf=_$suf fi mv "$file" "${fDir}/${fFile}${suf}.${fExt}" fi done < <(find "${SORTDIR}/" -type f -printf "%TY %Tm %Td %TH %TM %TS %p\n") Both scripts are interruptible anytime with CtrlC. HTH. Yves. [edit:]I've forgotten the most important: how does it answer to your question? Unless I've misunderstood your post, you could move all your current folders into PHOTOBASE/SORTDIR, and they'd get sorted again and the destination folders would be named after the exif data (and photographs too).[/edit]
  20. It WILL be usefull, someday, provided some company sees the oportunity. Look: Deaf people (at least in France) used to rely on some pre-internet-era device called Minitel (videotext device) for communications. Indeed, this device permits a "unix talk"-like, or msn-like if you prefer, chat. Now the Minitel is disappearing, and nothing was created to replace it! Deaf people turn to: - mobile phones' SMS: works and rings (ie: vibrations), but asynchronously, with a poor ergonomy, and at a great cost. - MSN and the like: works too, and cheap if you already have the computer, but: does not ring (eg: light-flash) when a call arrives, and is wayyy toooo loooong to start for receiving a phone call. Now, imagine a mini-ITX PC with this 2MB X-in-BIOS, a modem connection to the phone plug, and wake-on-ring enabled! We would have a device that enables deaf people to communicate! Yves.
  21. Thank you iphitus for your patience with me. I'm hard to convince because it is such a nice config! I had a PII 350, and now all is so fast! And for 190 EURO, I have the PC (HD, mouse, kbd, CPU, mb, radeon...), the DVD writer, the 17" screen, and the SD/MMC/... card reader! But well, I think you convinced me. All the more since I had yet another BIOS freeze today (so no OS running yet). I'm bound to soon ask advice on these boards for a new MB, CPU and graphics card ;-) Yves.
  22. Thank you for the advice. Since it is so much better with the 32-bit Mdv, the seller and I agreed that I'd keep the PC one more week, to see if it is indeed working OK. Early this morning, I had yet two other crashes from rpmdrake, one of which was while doing a system update (--auto-select...) which included updates for rpm, avahi, dbus, gtk... so quite a lot of "touchy" packages... then urpmi was broken, so I finished installing the urpmi cache using rpm -Uvh /var/cache/urpmi/rpms/*.rpm and urpmi was fine again. The other crash was on install of flash-plugin 9beta. All else is stable. I'll see how it goes this week... Yves.
  23. Well, I installed Mandriva again, this time from the CDs (i586) re-downloaded, sha1-checked, and reburnt. Install went fine. And now almost all is working OK. I still have a couple of applications that dump a core. Two such are Xephem and skijump. It is however predictable, not random. On the other hand, most that previously didn't run now run fine: celestia, stellarium, all other games, and last but not least partimage. Now would you say the system is fine? I would need a fast answer, because I must decide tomorrow morning if I give the PC back, or if I keep it (at most 9 hours from now). Thanks for any advice. Yves. [edit:]I almost forgot: I also had rpmdrake crash two times in a row while selecting updates, but it didn't crash again after that. And OpenOffice repeatedly crashed, until I installed OpenOffice-gnome, and now it seems to run fine.[/edit]
  24. As it is, it happens I already did this: first thing I did when I got the PC, I removed the cover, checked all connections, ensured the plugs where OK, and I changed all the IDE peripherals anyway: I changed the HD with my own, and put another HD (for backup) as slave. I even checked the leds plugs :lol: The person who sold me the PC said he'll try and find another PC similar to this one (which would be nice given the good offer that was), and if he doesn't find such a config, then he'll take the PC back (and I my money back). Sometimes, there's luck within bad news :) Yves.
×
×
  • Create New...