User Tools

Site Tools


ffmpeg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
ffmpeg [2015/02/11 00:24] – created adminffmpeg [2015/02/19 18:31] – [VLC] admin
Line 13: Line 13:
   ffmpeg -i "/mnt/device/36/21 Jump Street/sons-21_jump_street-720p.mkv" -map 0 -bsf h264_mp4toannexb -c copy -vcodec copy -acodec copy -c:a libfaac -f segment -segment_list stream.m3u8 stream%03d.ts   ffmpeg -i "/mnt/device/36/21 Jump Street/sons-21_jump_street-720p.mkv" -map 0 -bsf h264_mp4toannexb -c copy -vcodec copy -acodec copy -c:a libfaac -f segment -segment_list stream.m3u8 stream%03d.ts
  
 +
 +
 +
 +===== PHP track process =====
 +
 +http://php.net/manual/de/function.exec.php
 +
 +===== Install latest ffmpeg =====
 +
 +https://gist.github.com/xdamman/e4f713c8cd1a389a5917
 +
 +lmce Video
 +
 +{{::lmcevideo.zip|oc videoapp}}
 +
 +{{::lmcevideo_2.zip|oc videoapp 2}}
 +
 +{{::lmcevideo_3.zip|oc videoapp 3}}
 +
 +
 +===== VLC =====
 +
 +<code bash>
 +// AVCONV START
 +$process = exec("nohup /usr/bin/avconv -i \"$localFile\" -vcodec h264 -acodec mp3 -hls_time 2 -hls_list_size 999999999 -s:v 848x480 -b:v 300k \"$tmp/stream.m3u8\" > /dev/null 2>&1 & echo $!");
 +// AVCONV END
 +</code>
 +
 +
 + // echo("/var/www/userspace/apps/lmcevideo/streamer.sh $localFile $tmp $url");
 +
 +/*
 + $process = exec("sudo -su www-data cvlc -I dummy --mms-caching 0 $localFile vlc://quit --sout='#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96}:std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=$tmp/stream.m3u8,index-url=$url},mux=ts{use-key-frames},dst=$tmp/stream0.ts}'");
 +*/
 +//echo("sudo -su www-data cvlc -I dummy --mms-caching 0 $localFile vlc://quit --sout='#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96}:std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=$tmp/stream.m3u8,index-url=$url},mux=ts{use-key-frames},dst=$tmp/stream0.ts}'");
  
  
  
ffmpeg.txt · Last modified: 2018/07/24 18:24 by admin