Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Comment Re:mpv does support user supplied shaders (Score 1) 220

mpv allows the user to supply GLSL scripts using the --opengl-shaders=filename option, and it can save single screenshots to files after those shaders have been applied (Ctrl-S), and mpv is scriptable (in Lua or C), so all you need to do is write a script that single-steps through the video, then writes such a post-processed screenshot to a pipe which you can use as input to "ffmpeg".

Doesn't mpv support direct output to a series of PNGs? MPlayer does it simply with -vo png.

Incidendally, I'm working on something related to the original question. I use shaders for math art demos, and I already have the option of using image files as the input (shameless example). It would be trivial to accept a new file for each frame, so it could process video from a series of images. The speed would only be a couple of FPS due to I/O bottleneck, but it won't be realtime anyway. The reason I haven't done this so far is that my focus is on the math of iterated shaders, not processing some existing video. Still, it would be fun to do some day, and of course I'm looking at ways to do it in realtime (the GPU is fast enough, but I/O is harder).

Lastly, you could use a screen recording software instead of the clunky series-of-screenshots idea. I did this for putting my first few demos on Youtube, but the quality is awful, so I much prefer taking the PNGs and encoding separately.


Headphone Users Rejoice: Samsung Reportedly Not Killing the Galaxy S8's Headphone Jack ( 78

An anonymous reader writes: Contrary to previous reports, Samsung's upcoming flagship Galaxy S8 smartphone will come with a headphone jack, unlike the new iPhone 7 and 7 Plus and several other Android smartphones. The news comes from both Sammobile and Android Police. The Next Web reports: "Both Sammobile and Android Police are today reporting that Samsung is not actually killing the headphone jack. Sammobile, appears to be retracting its own report last month suggesting the jack would be dropped thanks to recent case renders, while Android Police has independently confirmed that the S8 will maintain the 3.5mm jack through its own source. In related news, Samsung's display unit may have also just given us our first good look at the S8. While there's a good chance the phone in the video is a generic model (it appears to be a render, rather than a physical object), as CNET points out, it looks an awful lot like the leaks we've seen from the S8 so far. There are also a few curious touches for a something that's supposed to be just a render, including what might be a faint visible antenna line (on the upper left corner) and a couple of LEDs or sensors to the left of the earpiece grill. By the way, there's also a definitely a headphone jack in this render."

Comment Re:They need better cyber (Score 1) 278

Yeah, I tried putting a giant rubber sheath over my monitor too, but apparently that doesn't stop you from getting an infection when you cyber. I feel his pain.

I thought sexual education in the US was all about abstinence, never mind the resulting teen pregnancy rates. That rubber thingie sounds like some European socialist hippie plot.


Facebook No Longer Clearly Labels Edited Posts ( 52

An anonymous reader quotes a report from Mashable: Have you ever made a cringeworthy mistake in a Facebook post? Don't lie, the answer is yes. If you have a sense of shame, Facebook at least allows you to go back and correct your gaffe by editing the post, a feature that certain other social media networks still haven't added. But evidence of your slip-up lived on with the tiny "Edited" label on the bottom of the post, signaling to your followers that you cared just enough to correct yourself on the internet. Sad. Apparently, however, that's no longer the case. It seems that Facebook has removed the on-post edited label, making it much more difficult to know when someone actually took the time to fix their mistake. In order to actually know whether or not your eyes were playing tricks on you when a friend's rant no longer has 15 spelling errors the second time you see it, you'll need to do some digging. Here's how the new editing looks, courtesy of my colleague Raymond Wong and his doubts about how cool the upcoming Nintendo Switch actually is. I noticed that he added a comment about the Switch, so I checked out the post information, via the drop-down menu. To see what happened, I have to view the edit history. When I look at his edit history, I can see all the changes that were made. In most cases, this type of editing isn't a big deal, but the move to hide post edit labels takes away one of the few features that provided any transparency for our online behavior.

Comment Re:My art is shit (Score 1) 562

To me, music means sound waves in the air, something meant to be listened with your ears. Whenever I see these hipsters talking about vinyl or cassettes etc., I wonder if they care more about the storage format than the music itself. If they cared about the music, they might choose a format that doesn't degrade the music so much.

HTC's New Flagship Phone Has AI and a Second Screen, But No Headphone Jack ( 205

An anonymous reader shares a report on The Verge: HTC is getting 2017 off to a flying start with an unseasonably early announcement of its next flagship phone: the U Ultra. This 5.7-inch device inaugurates a new U series of smartphones and is joined by a smaller and lesser U Play, which scales things down to 5.2 inches and a humbler camera and processor spec. HTC is touting a new Sense Companion, which is its take on the growing trend for putting AI assistants into phones, plus the addition of a second screen at the top of the U Ultra. As with Apple's latest iPhones, Lenovo's Moto Z, and the HTC Bolt, neither of HTC's new handsets has a headphone jack. The other big change on the outside is the U Ultra's second screen, which is a thin 2-inch strip residing to the right of the front-facing camera and immediately above the Super LCD 5 screen.

Comment Re:When are we going optical? (Score 1) 192

Current systems can generally output S/PDIF digital audio through the line-out port; it's a standard feature, though somewhat hidden. You just need to connect an RCA adapter (use the right/red channel) and enable the S/PDIF output switch in the sound card settings. Audio quality is the same as Toslink (optical S/PDIF), though the signal may attenuate over very long coax links. There are devices like this one available which convert from coax to Toslink.

Ah, good point. I'm pretty sure I've encountered this once before, with a sound card that was specifically advertised to output S/PDIF, while having only 3.5 mm jacks. Alas, it's not quite general, as my Thinkpad is lacking the feature (the digital outputs are all labeled with "HDMI" in alsa).

Incidentally (and you probably know this already), the Toslink output in some earlier laptops was hidden within the line-out jack. A clever solution IMHO, as it doesn't mix up different kinds of signaling in the same electrical pin, and the light makes it clear there's something going on besides plain old analog. OTOH, it requires a small adapter for the Toslink fiber.

Comment Re:When are we going optical? (Score 1) 192

It's obvious if you look at the way people treat their cables. You can't expect them to obey something as esoteric as bend radius limits when their plain old copper wires hardly survive in one piece.

Incidentally, S/PDIF isn't doing too great these days, which is a shame. One of my old laptops from 2005 had optical audio output, and it was awesome especially given the poor quality of its analog output. Since then, this feature has been missing from most laptops, and even with desktop mobos you have to be careful. It seems since HDMI came out, you shouldn't need any other way of getting raw digital audio, which seems especially silly with something like 5.1 or better -- you'll probably want something more than the toy speakers in the TV or monitor.

Also, it sucks to have a professional laptop with DP output, only to realize that the projector at the venue only has consumer-style HDMI or even VGA.

Comment Re:Fun (Score 1) 449

Today we have a lot more learning resources out there, and the hardware is much more powerful but in my mind it just isn't as fun. There is certainly no way to whip up something that would "wow" anyone. It's more a tool now than a fun hobby.

You can always "wow" people when you do something remotely skilled and original (see my other post). People are used to throwing a ton of computing power at every single problem, but that doesn't make things inherently more interesting. I write software to make art, and I'm pretty sure I've seen the "wow" in action.

It's an interesting point, though, that computers now are more a tool rather than a novelty in themselves. With my algorithmic art, I like to remind people that it's simply math, it's just done on computers to make it fast enough. Nevertheless, the practical work is all about writing software, and it's certainly a fun hobby -- scratching my own artistic itches.

Comment Re:'Fun'? Not so much. (Score 1) 449

writing software yourself is almost pointless, you can download just about anything you want, too.

Not if you're doing anything remotely original. There was no software for doing my algorithmic art, and I guess if there had been, it wouldn't count as art. Similarly, I've done software for math and physics research. It's mostly math and algorithms, though, so technically the ideas could be implemented in something like Matlab (static images yes, live GPU-powered demos not so much). There's also the whole idea of knowing and controlling every aspect of your work that counts in art as well as science. (Unfortunately, there's quite a bit of proprietary "science" out there, for example in molecular modelling.)

As for electronics, FPGAs made it fun for me again, not the least because they bridge a conceptual gap between software and hardware. I don't even need to get into Linux and Free software in general :)

Slashdot Top Deals

"May your future be limited only by your dreams." -- Christa McAuliffe