LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2011, 04:15 AM   #1
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Rep: Reputation: 26
ffmpeg from rtsp source (bosch ip camera)


Hi, i'm trying to use ffmpeg to capture a h264 video stream from a bosch ip camera, with no luck. vlc can connect and shows the stream really nice.
this works great:
Code:
vlc rtsp://192.168.1.60:554/video.mp4
but ffmpeg ends with an error:
Code:
bash-4.1$ ffmpeg -i rtsp://192.168.1.60:554/video.mp4 /tmp/video.mp4FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 15 2011 10:39:07 with gcc 4.5.2
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --enable-avfilter-lavf --arch=x86_64 --enable-libopenjpeg --enable-libdc1394 --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libspeex --enable-libdirac --enable-libschroedinger --enable-nonfree --enable-libgsm --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[rtsp @ 0x64b640]Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://192.168.1.60:554/video.mp4':
  Metadata:
    title           : LIVE VIEW
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: 0x0000, 90k tbr, 90k tbn, 90k tbc
File '/tmp/video.mp4' already exists. Overwrite ? [y/N] y
picture size invalid (0x0)
Cannot allocate temp picture, check pix fmt
the target is to connect it to zoneminder, but i figured that i would first at least get it to work with ffmpeg.
 
Old 10-11-2011, 07:03 AM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
this could work:
Code:
vlc --sout-all rtsp://192.168.1.60:554/video.mp4  --sout "#std{access=file,mux=ps,dst=./video.mpg}"
Then you could tune it for the exact output format you want
 
Old 10-11-2011, 07:06 AM   #3
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by 16pide View Post
this could work:
Code:
vlc --sout-all rtsp://192.168.1.60:554/video.mp4  --sout "#std{access=file,mux=ps,dst=./video.mpg}"
Then you could tune it for the exact output format you want
seems to work, but in this case the next question would be: How do i add this result to zoneminder?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
ffmpeg, dramatic decrease in size from camera videos. Romanus81 Linux - General 8 08-07-2008 07:49 PM
RTSP: Server for Linux: Livestream --> RTSP polemon Linux - Software 0 10-10-2007 06:37 AM
problems with mplayer after source install or ffmpeg rocksniffer Linux - Software 2 03-03-2006 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration