Showing posts with label Video. Show all posts
Showing posts with label Video. Show all posts

Jun 26, 2011

Save Streamed Flash Video [Firefox-4] [Linux]

It cost me almost half an hour to find the location, where Firefox saves the streamed video. And I made a script for it as I often need it. Here's the script, hope it helps you:

file /proc/$(pidof npviewer.bin)/fd/* | grep -i "flash" | \
  cut -d':'  -f1 | xargs -i{} cp {} ./ 

Details of what the command will do:
Fifefox-4 uses an external process (npviewer.bin) to manage external plugins. So what I did was grabbed a copy of the deleted flash file (yea it deletes the file, but keeps a secret opening for itself) from npviewer.
Finally all the cached video are copied to current path named with some random numbers (technically, the number is file-descriptor).

Warning: Execute the command after complete streaming and before closing the firefox(-tab).

Dec 15, 2009

Convert VOB to AVI using ffmpeg

Suppose you have a myVideo.vob and you want to convert to avi format.
Open a terminal and execute the following command

$ ffmpeg -i myVideo.vob myvideo.avi

Possible errors:
1 "ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avcodec_channel_layout_num_channels"
Solution:
$ export LD_LIBRARY_PATH=/usr/local/lib/ && ffmpeg -i myVideo.vob myvideo.avi

If this doesnt solve the problem then retry that after installing the libavcodec52 and libavutil49 packages:
$ sudo apt-get install libavcodec52  libavutil49