Changes between Initial Version and Version 1 of Ticket #4037, comment 14


Ignore:
Timestamp:
Oct 20, 2014, 12:08:45 PM (5 years ago)
Author:
hungnv
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4037, comment 14

    initial v1  
    22
    33Command to split to ts in step 1 I mentioned:
     4{{{
    45/usr/local/bin/ffmpeg -i Vetmua.mp4  -codec:v libx264 -b:v 750000 -g 25.0 -keyint_min 50 -x264opts keyint=50:min-keyint=50:no-scenecut -codec:a aac -strict -2 -map 0:v -map 0:a -f ssegment -segment_list playlist.m3u8 -segment_time 5 -segment_format mpegts streams/stream%4d.ts
     6}}}
     7
    58This playlist (playlist.m3u8) play well, no distortion.
    69
    710Go to step 2,
    8 2.1 # for i in *.ts; do /usr/local/bin/ffmpeg -y -i $i -vcodec libx264 -vb 500000 -s 640x360 -f mpegts -aspect 16:9 -g 25 -keyint_min 50 -vf scale=640:-1 ../transcode_streams/$i ; done
    9 2.2 cp playlist.m3u8 ../transcode_streams/
    10 
     112.1
     12{{{
     13# for i in *.ts; do /usr/local/bin/ffmpeg -y -i $i -vcodec libx264 -vb 500000 -s 640x360 -f mpegts -aspect 16:9 -g 25 -keyint_min 50 -vf scale=640:-1 ../transcode_streams/$i ; done
     14}}}
     152.2
     16{{{
     17cp playlist.m3u8 ../transcode_streams/
     18}}}
    1119Now play playlist.m3u8 with transcoded stream --> distortion. Actually I dont know how to name it right, it means, in playlist 1, file was not transcode, stream0000.ts and stream0001.ts are continuous, bit if we transcode them, it's not continuous anymore.
    1220