![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Convert Flash Vids to mp3 I've been trying to hack together a Powershell script to use VLC media player to extract an mp3 from a downloaded flash video. The problem I've been having is with supplying the command line arguments to vlc.exe. No matter how I teak it, nothing seems to work. I've posted the latest error at the end of the post. $VlcPath = "& 'C:\Program Files\VideoLAN\VLC\VLC.exe' " cd "F:\Music\Ripping" $flashvids = Get-ChildItem * -Include *.flv -Recurse foreach ($flashvid in $flashvids) { $newFileName = ($flashvid -replace "\.flv", "\.mp3") $cmdline = ("'" + $flashvid.FullName + '":sout=#transcode{acodec=mp3,ab=320,channels=2}' + '"') Invoke-Expression "C:\Program Files\VideoLAN\VLC\vlc.exe F:\Music \Ripping\ $flashvid.flv :sout=#transcode{acodec=mp3,ab=320,channels=2}:duplicate{dst=std{access=file,mux=wav,dst= $flashvid.Fullname.mp3}} vlc:quit)" } ERROR MSG... Invoke-Expression : Unexpected token ')' in expression or statement. At C:\scripts\Powershell\Com\ConvertFlashVidsToMp3.ps1:17 char:19 + Invoke-Expression <<<< "C:\Program Files\VideoLAN\VLC\vlc.exe F: \Music\Ripping\$flashvid.flv :sout=#transcode{ac odec=mp3,ab=320,channels=2}:duplicate{dst=std{access=file,mux=wav,dst=export.mp3}} vlc:quit)" |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Convert Flash Vids to mp3 The original idea was taken from this blog post: How to extract audio from FLV files using VLC http://blog.hartwork.org/?p=58 |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Convert Flash Vids to mp3 stephenodonoghue@xxxxxx wrote: Quote: > I've been trying to hack together a Powershell script to use VLC media > player to extract an mp3 from a downloaded flash video. The problem > I've been having is with supplying the command line arguments to > vlc.exe. No matter how I teak it, nothing seems to work. I've posted > the latest error at the end of the post. > > $VlcPath = "& 'C:\Program Files\VideoLAN\VLC\VLC.exe' " > cd "F:\Music\Ripping" > $flashvids = Get-ChildItem * -Include *.flv -Recurse > foreach ($flashvid in $flashvids) > { > $newFileName = ($flashvid -replace "\.flv", "\.mp3") > $cmdline = ("'" + $flashvid.FullName + > '":sout=#transcode{acodec=mp3,ab=320,channels=2}' + '"') > Invoke-Expression "C:\Program Files\VideoLAN\VLC\vlc.exe F:\Music > \Ripping\ > $flashvid.flv :sout=#transcode{acodec=mp3,ab=320,channels=2}:duplicate{dst=std{access=file,mux=wav,dst= > $flashvid.Fullname.mp3}} vlc:quit)" utility that can help you determine how PowerShell will parse stuff. Just one question... Are you sure there's a closing ")" at the end of that command? I don't see an opening one, which seems odd. Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Convert Flash Vids to mp3 On the line with Invoke-Expression? It may have been that way originally. But I've done so much mucking around with it, that I can't say for certain. |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Convert Flash Vids to mp3 Quote: > Invoke-Expression "C:\Program Files\VideoLAN\VLC\vlc.exe F:\Music > \Ripping\ > $flashvid.flv :sout=#transcode{acodec=mp3,ab=320,channels=2}:duplicate{dst=std{access=file,mux=wav,dst= > $flashvid.Fullname.mp3}} vlc:quit)" > } would actually work on a single file? I'd get the program (if free or a demo is available), but I'm short on free time these days to go that far. Marco |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Convert flash files(*.swf) to mov on Vista?? | Software | |||
| Video not available, cannot find 'vids:lv50' decompressor | Vista music pictures video | |||
| convert avi to flash | Software | |||
| save youTube vids ? | Vista music pictures video | |||