[streaming] Re: Crontab and VLC
Nils-Odd Solberg
nils.o.solberg at hiof.no
Fri Nov 7 14:54:56 CET 2003
well,
i have used -I dummy for a while and it works fine :) i send a "kill -s
2 $nr" where nr are
`/sbin/pidof vlc` so the exiting are not the issue. anyway; thanks
again.
but i still have problems. i got errors when trying to transcode the
audio to mp3 (i wish it was possible with aac, but it isn't so the mp3
is the nest best thing). the reason why i'm stressing this is that i in
addition to multicast realtime i also should do an on deman rtsp
streaming so then i need hinted .mp4 files..
can someone tell me what's going wrong or what i do wrong? i have
pasted in some stuff below here
* ffmpeg configure sentence
./configure --enable-mp3lame --enable-vorbis --enable-faad --enable-pp
* vlc 0.6.2 configure sentence
./configure --enable-v4l --enable-ffmpeg
--with-ffmpeg-tree=/home/nilsodd/downloads/vlc/ffmpeg-20030813
--with-ffmpeg-mp3 --enable-faad --enable-xvid
--with-xvid-tree=/home/nilsodd/downloads/vlc/xvidcore-0.9.2
* vlc output when trying acodec=mp3
[nilsodd at rod3 nilsodd]$ vlc
v4l:/dev/video0:norm=pal:size=704x576:adev=/dev/audio:audio=1 --sout
'#duplicate{dst="transcode{vcodec=mp4v,acodec=mp3,vb=4000,ab=256,vt=8000
00,keyint=80}:std{access=udp,mux=ts,url=224.1.2.3:
20000}",dst="transcode{vcodec=mp4v,acodec=mp3,vb=500,ab=128,vt=800000,ke
yint=80}:std{access=http,mux=ts,url=rod3.hiof.no:8080}"}' --ttl 15
VideoLAN Client 0.6.2 Trevelyan
[00000156] main input: playlist item
`v4l:/dev/video0:norm=pal:size=704x576:adev=/dev/audio:audio=1'
remote control interface initialized, `h' for help
[00000156] v4l input: v4l grabbing started
[00000164] access_output_udp private: Open: addr:`224.1.2.3'
port:`20000'
[00000169] access_output_http private: creating new http daemon
[00000171] httpd private: httpd started
[00000170] httpd private: http thread launched
[00000162] stream_out_transcode private error: cannot find encoder
(avcodec)
[00000162] stream_out_transcode private error: cannot create audio chain
[00000167] stream_out_transcode private error: cannot find encoder
(avcodec)
[00000167] stream_out_transcode private error: cannot create audio chain
[00000159] packetizer_copy decoder error: cannot add a new stream
* ffmpeg capturing video
[nilsodd at rod3 nilsodd]$ ffmpeg -ad /dev/audio -vd /dev/video0 -ab 256
-b 4000 -t 30 -vcodec mpeg4 -acodec mp3 -s 704x576 -f avi
~/ffmpeg_07112003.avi
Input #0, video4linux, from '':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 704x576, 25.00 fps
Input #1, audio_device, from '':
Duration: N/A, bitrate: N/A
Stream #1.0: Audio: pcm_s16le, 44100 Hz, mono, 705 kb/s
Output #0, avi, to '/home/nilsodd/ffmpeg_07112003.avi':
Stream #0.0: Video: mpeg4, 704x576, 25.00 fps, q=2-31, 4000 kb/s
Stream #0.1: Audio: mp3, 44100 Hz, mono, 256 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop encoding
frame= 750 q=5.0 size= 15804kB time=30.0 bitrate=4315.5kbits/s
* dump of the contents in the avi-file
[nilsodd at rod3 nilsodd]$ avidump ffmpeg_07112003.avi
avidump - mpeg4ip version 0.9.9
ffmpeg_07112003.avi
Video Information
Video compressor: DIVX
Video frame rate: 25
Number of frames: 750
Video height : 576
Video width : 704
Audio information:
Audio channels: 1
Audio bits/sample: 0
Audio format: 85 MP3
Audio sample rate: 44100
Audio bytes: 960004
* trying to make an .mp4 file
[nilsodd at rod3 nilsodd]$ mp4creator -create=ffmpeg_07112003.avi -I
ffmpeg_07112003.mp4
mp4creator: data in file doesn't appear to be valid mp3 audio
* trying to save to an avi file
[nilsodd at rod3 nilsodd]$ vlc
v4l:/dev/video0:norm=pal:size=704x576:adev=/dev/audio:audio=1 --sout
'#transcode{vcodec=mp4v,vb=4000,acodec=mpga,ab=256,vt=800000,keyint=80}:
std{access=file,mux=avi,url=vlc_07112003.avi}'
* trying to dump the contents in the avi-file
[nilsodd at rod3 nilsodd]$ avidump vlc_07112003.avi
avidump - mpeg4ip version 0.9.9
avidump: error vlc_07112003.avi: avilib - AVI file has no MOVI list
(corrupted?)
nils-odd
--
nils.o.solberg at hiof.no
http://www.ia-stud.hiof.no/~nilsosol/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 4118 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/streaming/attachments/20031107/5982bab1/attachment.bin
More information about the streaming
mailing list